Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     PKID = Request.QueryString["PKID"].ToString();
     gcxm = new GcxmBLL(this.WorkUser);
     if (!IsPostBack)
     {
         SearchData();
     }
 }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     BLL = new GcxmBLL(this.WorkUser);
     if (!this.IsPostBack)
     {
         //数据绑定
         WebCommon.DropDownListDataBind(this.DDL_Htlb, true);
         powerGridViewDataBind(0);
     }
 }
Exemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     gcxmBll = new GcxmBLL(this.WorkUser);
     BeFrom  = Request.QueryString["BeFrom"];
     if (!string.IsNullOrEmpty(BeFrom) && BeFrom == WxjzgcjczyQyb.BeFrom.Zhjg_Lxxmdj_Menu.ToString())
     {
         bIsBeFrom = true;
         PrjNum    = Request.QueryString["PrjNum"];
     }
     if (!IsPostBack)
     {
         //数据绑定
         SearData(0);
     }
 }
Exemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            gcxmBll = new GcxmBLL(this.WorkUser);
            if (!IsPostBack)
            {
                this.pl_gjss.Visible = false;
                //WebCommon.DropDownListDataBind(this.ddl_lxjb, true);
                WebCommon.DropDownListDataBind(this.ddl_Xmfl, true);
                //WebCommon.DropDownListDataBind(this.ddl_jsxz, true);
                WebCommon.CheckBoxListDataBind(this.cbl_ssdq);

                //数据绑定
                SearData(0);
            }
        }
Exemplo n.º 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     gcxmBll = new GcxmBLL(this.WorkUser);
     BeFrom  = Request.QueryString["BeFrom"];
     if (!string.IsNullOrEmpty(BeFrom) && BeFrom == WxjzgcjczyQyb.BeFrom.Zhjg_Lxxmdj_Menu.ToString())
     {
         bIsBeFrom = true;
         PrjNum    = Request.QueryString["PrjNum"];
     }
     if (!IsPostBack)
     {
         WebCommon.CheckBoxListDataBind(this.cbl_Htlb);
         WebCommon.DropDownListDataBind(this.DDL_xmsd, true);
         //数据绑定
         SearData(0);
     }
 }
Exemplo n.º 6
0
        /// <summary>
        /// 填充 DropDownList
        /// </summary>
        public static void DropDownListDataBind(DBDropDownList dropdonlist, bool addSpaceItem)
        {
            string sql = string.Empty;

            switch (dropdonlist.ToolTip)
            {
            case "zbfs":    //招标方式
                sql = "select CodeInfo,Code from tbTenderTypeDic ";
                break;

            case "PrjType":
                sql = "select CodeInfo,Code from tbPrjTypeDic ";
                break;

            case "Lxjb":
                sql = "select CodeInfo,Code from tbLxjbDic ";
                break;

            case "PrjProperty":
                sql = "select CodeInfo,Code from tbPrjPropertyDic ";
                break;

            case "PrjStructureType":
                sql = "select CodeInfo,Code from tbPrjStructureTypeDic ";
                break;

            case "TenderClass":
                sql = "select CodeInfo,Code from tbTenderClassDic ";
                break;

            case "TenderType":
                sql = "select CodeInfo,Code from tbTenderTypeDic ";
                break;

            case "ContractType":
                sql = "select CodeInfo,Code from tbContractTypeDic ";
                break;

            case "WorkDuty":
                sql = "select CodeInfo,Code from tbWorkDutyDic ";
                break;

            case "IDCardType":
                sql = "select CodeInfo,Code from tbIDCardTypeDic ";
                break;

            case "SpecialtyType":
                sql = "select CodeInfo,Code from tbSpecialtyTypeDic ";
                break;

            case "Xzqdm":
                sql = "select CodeInfo,Code from tbXzqdmDic where parentCode='320200' ";
                break;

            case "ApprovalLevel":
                sql = "select CodeInfo,Code from tbLxjbDic  ";
                break;

            case "KCSJContractType":
                sql = "select CodeInfo,Code from tbContractTypeDic where Code='100' or  Code='200'  ";
                break;

            case "SGJLContractType":
                sql = "select CodeInfo,Code from tbContractTypeDic where Code<>'100' and  Code<>'200' ";
                break;
            }
            if (sql != string.Empty)
            {
                GcxmBLL   bll = new GcxmBLL(new AppUser());
                DataTable dt  = bll.GetTable(sql, null, "t");
                UIUtility.ListControlDataBind(dropdonlist, dt, addSpaceItem);
            }
        }