protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Grid2.Hidden = true;
                //Grid3.Hidden = true;
                DataSet   ds     = bll.首页_X_资产转移流程表("流程状态-全部");
                DataTable dt     = ds.Tables[0].Copy();//复制一份table
                DataTable source = dt;

                // 3.绑定到Grid
                Grid1.DataSource = dt;//DataTable
                Grid1.DataBind();
                二级.Enabled  = false;
                级.Enabled   = false;
                负责人.Enabled = false;
                房间.Enabled  = false;

                School清查盘点BLL pdbll = new School清查盘点BLL();

                List <School一级部门表> xxmc = pdbll.查询一级部门();
                部门.DataTextField  = "名称";
                部门.DataValueField = "ID";
                部门.DataSource     = xxmc;
                部门.DataBind();
                部门.EmptyText = "全部";

                List <School一级类别表> yjlb = pdbll.查询一级类别();
                一级.DataTextField  = "名称";
                一级.DataValueField = "ID";
                一级.DataSource     = yjlb;
                一级.DataBind();
                一级.EmptyText = "全部";

                List <School建筑物信息表> 查询建筑物 = pdbll.查询建筑物信息表();
                存放地点.DataTextField  = "名称";
                存放地点.DataValueField = "ID";
                存放地点.DataSource     = 查询建筑物;
                存放地点.DataBind();
                存放地点.EmptyText = "全部";

                二级.Enabled  = false;
                级.Enabled   = false;
                负责人.Enabled = false;
                房间.Enabled  = false;

                二级.EmptyText  = "全部";
                级.EmptyText   = "全部";
                负责人.EmptyText = "全部";
                房间.EmptyText  = "全部";
            }
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                // 1.获取数据总数
                流程状态.Text = "待审核";
                string str = "ZCZY";

                单据编号.Text = SchoolUtility.strbumber(str);
                OffSession();
                申请人.Text        = HttpContext.Current.Session["姓名"].ToString();
                Button9.Enabled = false;
                Button3.Enabled = false;

                二级.Enabled  = false;
                级.Enabled   = false;
                负责人.Enabled = false;
                房间.Enabled  = false;

                // 2.获取当前分页数据
                //DataTable table = GetPagedDataTable(Grid1.PageIndex, Grid1.PageSize);//查询方法
                DataSet   ds     = bll.首页_X_资产转移流程表("流程状态-全部");
                DataTable dt     = ds.Tables[0].Copy();//复制一份table
                DataTable source = dt;

                // 3.绑定到Grid
                Grid1.DataSource = dt;//DataTable
                Grid1.DataBind();

                List <School一级部门表> gsbm = bll.byzc();
                归属部门变更为.DataTextField  = "名称";
                归属部门变更为.DataValueField = "ID";
                归属部门变更为.DataSource     = gsbm;
                归属部门变更为.DataBind();

                List <School房间信息表> cfdd = bll.cfdd();

                存放地点变更为.DataTextField  = "名称";
                存放地点变更为.DataValueField = "ID";
                存放地点变更为.DataSource     = cfdd;
                存放地点变更为.DataBind();
            }
        }