protected void Page_Load(object sender, EventArgs e)
        {
            //实例化
            ihb = new HandleBusinessBase();
            //gv = this.Gdv_AqbjInfo;
            BeFrom = Request.QueryString["BeFrom"];
            if (!string.IsNullOrEmpty(BeFrom) && BeFrom == IntegrativeShow2.BeFrom.Zhjg_Lxxmdj_Menu.ToString())
            {
                bIsBeFrom = true;
                arrParas  = new string[] { Request.QueryString["PrjNum"] };
            }
            if (!IsPostBack)
            {
                //数据绑定
                powerGridViewDataBind(0);
                WebCommon.DropDownListDataBind(this.DDL_xmsd, true);
            }

            //控制手动下行列是否显示
            if ("wangxp" == this.WorkUser.LoginName.ToString() || "wangyj" == this.WorkUser.LoginName.ToString())
            {
                this.Gdv_AqbjNewInfo.Columns[11].Visible = true;
            }
            else
            {
                this.Gdv_AqbjNewInfo.Columns[11].Visible = false;
            }
        }
Esempio n. 2
0
        protected void Page_Load(object seder, EventArgs e)
        {
            PkId = Request.QueryString["pkid"];
            BLL  = new XmxxBLL(WorkUser);

            if (!this.IsPostBack)
            {
                WebCommon.DropDownListDataBind(this.ddl_sbdqbm, "Xzqdm", true);
                if (!WorkUser.list.Exists(p => p.moduleCode.Equals(ModuleCode_Enum.zjxx.ToString(), StringComparison.CurrentCultureIgnoreCase)))
                {
                    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "myScript", "showWarn('您没有权限进行此操作!');", true);
                    return;
                }

                FunctionResult <DataTable> result = BLL.Read_zj_gcjbxx_zrdw(PkId);

                if (result.Status != FunctionResultStatus.Error)
                {
                    if (result.Result.Rows.Count > 0)
                    {
                        List <IDataItem> list = result.Result.Rows[0].ToDataItem();
                        this.SetControlValue(list);
                    }
                }
                else
                {
                    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "myScript", "showError('" + result.Message.Message + "');", true);
                    return;
                }
            }
        }
Esempio n. 3
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);
     }
 }
Esempio n. 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     BLL = new TjfxBLL(this.WorkUser);
     if (!this.IsPostBack)
     {
         WebCommon.DropDownListDataBind(this.ddl_Xmfl, true);
         WebCommon.CheckBoxListDataBind(this.cbl_ssdq);
         searchData();
     }
 }
Esempio n. 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     scztBll = new ScztBLL(this.WorkUser);
     if (!IsPostBack)
     {
         WebCommon.DropDownListDataBind(this.ssdq, true);
         //数据绑定
         SearData(0);
     }
 }
Esempio n. 6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     xxgxBll = new XxgxBLL(this.WorkUser);
     if (!IsPostBack)
     {
         WebCommon.DropDownListDataBind(this.DDL_xmsd, true);
         //数据绑定
         SearData(0);
     }
 }
Esempio n. 7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            BLL     = new XmxxBLL(WorkUser);
            Operate = Request.QueryString["operate"];
            PkId    = Request.QueryString["pkid"];

            if (!this.IsPostBack)
            {
                if (!WorkUser.list.Exists(p => p.moduleCode.Equals(ModuleCode_Enum.ajxx.ToString(), StringComparison.CurrentCultureIgnoreCase) && p.operateCode.Equals(Ajxx_Operate.CreateOrEdit.ToString())))
                {
                    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "myScript", "showWarn('您没有权限进行此操作!');", true);
                    return;
                }

                WebCommon.DropDownListDataBind(this.ddl_gcgk_jglx, "PrjStructureType", true);
                if (Operate.Equals("edit", StringComparison.CurrentCultureIgnoreCase))
                {
                    this.btnSelectLxxm.Visible = false;
                    FunctionResult <DataTable> result = BLL.Read_aj_gcjbxx(PkId);

                    if (result.Status != FunctionResultStatus.Error)
                    {
                        if (result.Result.Rows.Count > 0)
                        {
                            List <IDataItem> list = result.Result.Rows[0].ToDataItem();
                            this.SetControlValue(list);

                            result = BLL.Read_TBProjectInfo(list.GetDataItem("PrjNum").ItemData);

                            if (result.Status != FunctionResultStatus.Error)
                            {
                                if (result.Result.Rows.Count > 0)
                                {
                                    list = result.Result.Rows[0].ToDataItem();
                                    this.SetControlValue(list);
                                }
                            }
                            else
                            {
                                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "myScript", "showError('" + result.Message.Message + "');", true);
                                return;
                            }
                        }
                    }
                    else
                    {
                        ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "myScript", "showError('" + result.Message.Message + "');", true);
                        return;
                    }
                }
            }
        }
Esempio n. 8
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);
            }
        }
Esempio n. 9
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.DropDownListDataBind(this.DDL_xmsd, true);
         //数据绑定
         SearData(0);
     }
 }
Esempio n. 10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //实例化
            ihb = new HandleBusinessBase();
            if (!IsPostBack)
            {
                this.holder_gjcx.Visible = false;
                WebCommon.DropDownListDataBind(this.ddl_lxjb, true);
                WebCommon.DropDownListDataBind(this.ddl_Xmfl, true);
                WebCommon.DropDownListDataBind(this.ddl_jsxz, true);
                //WebCommon.DropDownListDataBind(this.ddl_ssdq, true);
                WebCommon.CheckBoxListDataBind(this.cbl_ssdq);

                //数据绑定
                powerGridViewDataBind(0);
            }
        }
Esempio n. 11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     //实例化
     ihb    = new HandleBusinessBase();
     BeFrom = Request.QueryString["BeFrom"];
     if (!string.IsNullOrEmpty(BeFrom) && BeFrom == IntegrativeShow2.BeFrom.Zhjg_Lxxmdj_Menu.ToString())
     {
         bIsBeFrom = true;
         arrParas  = new string[] { Request.QueryString["PrjNum"] };
     }
     if (!IsPostBack)
     {
         WebCommon.DropDownListDataBind(this.DDL_xmsd, true);
         //数据绑定
         powerGridViewDataBind(0);
     }
 }
Esempio n. 12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //实例化
            PKID       = Request.QueryString["PKID"];
            ihb        = new HandleBusinessBase();
            arrParas   = new string[] { PKID };
            dtPageData = ihb.SearchInfo(InstanceName.Instance_Read_HtbaInfo.ToString(), arrParas);
            if (!IsPostBack)
            {
                //数据绑定
                WebCommon.DropDownListDataBind(this.ddl_Xmfl, true);

                if (dtPageData.Rows.Count > 0)
                {
                    //dtPageData.Rows[0].SetControlValue(this);
                    this.SetControlValue(dtPageData.Rows[0].ToDataItem());
                    this.hlk_PropietorCorpName.Text = dtPageData.Rows[0]["PropietorCorpName"].ToString();
                    if (string.IsNullOrEmpty(dtPageData.Rows[0]["jsdwID"].ToString()))
                    {
                        this.hlk_PropietorCorpName.Enabled = false;
                    }
                    else
                    {
                        this.hlk_PropietorCorpName.NavigateUrl = string.Format("/WxjzgcjczyPage/Szqy/JsdwxxToolBar.aspx?jsdwid={0}", dtPageData.Rows[0]["jsdwID"]);
                    }

                    this.hlk_ContractorCorpName.Text = dtPageData.Rows[0]["ContractorCorpName"].ToString();
                    if (string.IsNullOrEmpty(dtPageData.Rows[0]["qyID"].ToString()))
                    {
                        this.hlk_ContractorCorpName.Enabled = false;
                    }
                    else
                    {
                        this.hlk_ContractorCorpName.NavigateUrl = string.Format("/WxjzgcjczyPage/Szqy/QyxxToolBar.aspx?qyid={0}", dtPageData.Rows[0]["qyID"]);
                    }

                    this.hlk_PrjHead.Text = dtPageData.Rows[0]["PrjHead"].ToString();
                    if (dtPageData.Rows[0]["ContractTypeNum"].ToString().IndexOf("301,302,304") >= 0)
                    {
                        this.hlk_PrjHead.NavigateUrl = string.Format("/WxjzgcjczyPage/RyxxToolBar.aspx?ryid={0}&rylx=zczyry", dtPageData.Rows[0]["ryID"]);
                    }

                    this.ddl_Xmfl.SelectedValue = dtPageData.Rows[0]["PrjType"].ToString();

                    if (dtPageData.Rows[0]["tag"].ToString() == "省一体化平台")
                    {
                        this.hl_htbaxxView.Enabled = true;
                        string htbabm = dtPageData.Rows[0]["RecordInnerNum"].ToString();

                        string contractTypeNum = dtPageData.Rows[0]["ContractTypeNum"].ToString();
                        string htlx            = null;
                        if (contractTypeNum.StartsWith("3"))
                        {
                            htlx = "sght";
                        }
                        else if (contractTypeNum.StartsWith("4"))
                        {
                            htlx = "jlht";
                        }
                        else
                        {
                            htlx = "sght";
                        }

                        string key = SecurityUtility.MD5(dtPageData.Rows[0]["RecordInnerNum"].ToString() + "wx98jkd2sf" + DateTime.Now.ToString("yyyyMMdd"));
                        this.hl_htbaxxView.NavigateUrl = string.Format("http://58.213.147.230:8089/Jsjzyxyglpt/faces/sthtba.jsp?htbabm={0}&key={1}&yhmc=wxht&htlx={2}", htbabm, key, htlx);
                    }
                    else
                    {
                        this.hl_htbaxxView.Enabled = false;
                    }
                }
            }
        }