Beispiel #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //获取对用户有效的 AttributeItem 属性。与valObj进行交集。

        title      = valObj._ZhName + "管理";
        Page.Title = title;

        if (Request["PID"] != null)
        {
            pid = Request["PID"];
        }

        #region//默认隐藏的列//zlg 新增 ShowAttributeItemList(未来允许存在关系外键),屏蔽 HideAttributeItemList
        hideTableColumnList = new List <AttributeItem>();
        hideTableColumnList.Add(IM_STORAGE.Attribute.EXP1);
        hideTableColumnList.Add(IM_STORAGE.Attribute.EXP2);
        hideTableColumnList.Add(IM_STORAGE.Attribute.EXP3);
        valObj.LoadAllAttributes(true);//暂时加此代码,以后框架更新将不需要
        valObj.Remove(hideTableColumnList);
        //暂时用下面两行
        #endregion

        if (!IsPostBack)
        {
            #region                                                                  //默认属性初始化
            aspPager.CurrentPageIndex = 1;
            aspPager.ShowInputBox     = AgileFrame.Core.WebSystem.ShowInputBox.Auto; //WebCtrls.
            txtPageNum.Value          = "30";
            aspPager.PageSize         = 30;
            if (pid == "" || pid == "0")
            {
                a_top.Visible = false;
            }
            #endregion
            #region//数据初始化

            txtSTATE.Items.AddRange(FormHelper.GetListItem(IM_STORAGE.Attribute.USE_FLAG));
            #endregion

            BindList(condObj, 1);
        }
    }