• NorthSJ项目零碎知识点


    1 div显示纵向滚动条:

    <div style="overflow-y:auto;overflow-x:hidden;"></div>

    2 FineUI的控件Grid中的属性( AnchorValue="100% -70px") 表示100%占满外层div,-70是除去Top部的高度为70px的表单:(外层是个Panel面板,即div)

     <x:Form ID="Form2" runat="server" Height="70px" BodyPadding="5px" ShowHeader="false"
                    LabelWidth="75px" ShowBorder="false" >
                    <Rows>
                        <x:FormRow ID="FormRow2" runat="server" ColumnWidths="200px 200px ">
                            <Items>
                                <x:DropDownList runat="server" Label="客户" ID="ddlCustomer" AutoPostBack="true" OnSelectedIndexChanged="ddlCustomer_SelectedIndexChanged" LabelWidth="40px" />
                                <x:DropDownList runat="server" Label="项目" ID="ddlProject"  LabelWidth="40px"  />
                            </Items>
                        </x:FormRow>
                        <x:FormRow ID="FormRow1" runat="server" ColumnWidths="200px 200px 200px">
                            <Items>
                                <x:TextBox runat="server" ID="txtName" Label="名称" LabelWidth="40px" />
                                <x:DropDownList runat="server" Label="状态" ID="ddlSiteStatus"  LabelWidth="40px"  />
                                <x:Button runat="server" ID="btnSearch" Text="搜索" Icon="SystemSearch" OnClick="btnSearch_Click" />
                            </Items>
                        </x:FormRow>
                    </Rows>
                </x:Form>
                <x:Grid ID="Grid1" runat="server" AnchorValue="100% -70px" ShowBorder="true" ShowHeader="false"
                    OnRowCommand="Grid1_RowCommand" EnableCheckBoxSelect="true" 
                    DataKeyNames="ID" OnSort="Grid1_Sort"  AllowSorting="true" AllowPaging="true"
                    IsDatabasePaging="true" OnPageIndexChange="Grid1_PageIndexChange" Height="200px">
    </x:Grid>

     3 使FineUI的编辑窗口关闭,但是该窗体是使用模板页的窗体,找不到windowID,

    所以不能使用:

    btnClose.OnClientClick=window1.GetHideReference();
    protected void btnClose_Click(object sender,EventArg e)
    
    {
    
      window1.Hidden=true;
    
    }

    只能使用:

     public AlarmsEdit()
            {
                this.Load += new EventHandler(AlarmsEdit_Load);
            }
    
            protected void AlarmsEdit_Load(object sender, EventArgs e)
            {
                if (!IsPostBack)
                {
                    btnClose.OnClientClick = FineUI.ActiveWindow.GetHideReference();
                }
            }
  • 相关阅读:
    P4097 [HEOI2013]Segment(李超线段树模板)
    P2155 [SDOI2008]沙拉公主的困惑
    BZOJ3675 [Apio2014]序列分割[斜率优化dp]
    hdu4261 Estimation[暴力dp+对顶堆]
    poj2374 Fence Obstacle Course[线段树+DP]
    poj1463 Strategic game[树形DP]
    CH5E02 [IOI1999]花店橱窗[暴力dp]
    CH5E01[NOIP2010] 乌龟棋[暴力]
    CH5702 Count The Repetitions[倍增dp]
    P1081 [NOIP2012]开车旅行[倍增]
  • 原文地址:https://www.cnblogs.com/adolphyang/p/5250531.html
Copyright © 2020-2023  润新知