예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //this.CurrentPosition = "待办件";

                //DataView dv = Msg.GetWaitHandleType();
                //dropType.DataSource = dv;
                //dropType.DataTextField = "HandleType";
                //dropType.DataValueField = "HandleType";
                //dropType.DataBind();
                //dropType.Items.Insert(0, new ListItem("所有", ""));
                //if (dropType.Items.Count == 1)
                //{
                //    dropType.Visible = false;
                //    tdtype.Visible = false;
                //}

                String WaitHandleShowArchiveNo = new Epoint.Frame.Bizlogic.Frame_Config().GetDetail("WaitHandleShowArchiveNo").ConfigValue;
                if (WaitHandleShowArchiveNo == "1")
                {
                    tdArchiveS1.Style.Add("display", "");
                    tdArchiveS2.Style.Add("display", "");

                    //for(int i = 0; i < GridHandle.Columns.Count; i++)
                    //{
                    //    if(GridHandle.Columns[i].HeaderText == "文号")
                    //    {
                    //    }
                    //}
                }
                else
                {
                    tdArchiveS1.Style.Add("display", "none");
                    tdArchiveS2.Style.Add("display", "none");

                    for (int i = 0; i < GridHandle.Columns.Count; i++)
                    {
                        if (GridHandle.Columns[i].HeaderText == "文号")
                        {
                            GridHandle.Columns[i].Visible = false;
                        }
                    }
                }


                btnAddFavorite.Visible = !(new Epoint.Frame.Bizlogic.Frame_Config().GetDetail("Favorite_NoCanAdd").ConfigValue == "1");


                dropType.Visible = false;
                tdtype.Visible   = false;

                btn_Huanban.Visible = false; //ApplicationOperate.IsNeedHuanBan;

                Pager.PageSize        = Convert.ToInt32(Session["GridItemsCount"]);
                AspNetPager1.PageSize = Convert.ToInt32(Session["GridItemsCount"]);
                BindGrid();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //this.CurrentPosition = "�����";

                //DataView dv = Msg.GetWaitHandleType();
                //dropType.DataSource = dv;
                //dropType.DataTextField = "HandleType";
                //dropType.DataValueField = "HandleType";
                //dropType.DataBind();
                //dropType.Items.Insert(0, new ListItem("����", ""));
                //if (dropType.Items.Count == 1)
                //{
                //    dropType.Visible = false;
                //    tdtype.Visible = false;
                //}

                String WaitHandleShowArchiveNo = new Epoint.Frame.Bizlogic.Frame_Config().GetDetail("WaitHandleShowArchiveNo").ConfigValue;
                if (WaitHandleShowArchiveNo == "1")
                {
                    tdArchiveS1.Style.Add("display", "");
                    tdArchiveS2.Style.Add("display", "");

                    //for(int i = 0; i < GridHandle.Columns.Count; i++)
                    //{
                    //    if(GridHandle.Columns[i].HeaderText == "�ĺ�")
                    //    {
                    //    }
                    //}
                }
                else
                {
                    tdArchiveS1.Style.Add("display", "none");
                    tdArchiveS2.Style.Add("display", "none");

                    for (int i = 0; i < GridHandle.Columns.Count; i++)
                    {
                        if (GridHandle.Columns[i].HeaderText == "�ĺ�")
                            GridHandle.Columns[i].Visible = false;
                    }
                }

                btnAddFavorite.Visible = !(new Epoint.Frame.Bizlogic.Frame_Config().GetDetail("Favorite_NoCanAdd").ConfigValue == "1");

                dropType.Visible = false;
                tdtype.Visible = false;

                btn_Huanban.Visible = false; //ApplicationOperate.IsNeedHuanBan;

                Pager.PageSize = Convert.ToInt32(Session["GridItemsCount"]);
                AspNetPager1.PageSize = Convert.ToInt32(Session["GridItemsCount"]);
                BindGrid();
            }
        }