示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     //实例化
     PKID       = Request.QueryString["PKID"];
     ihb        = new HandleBusinessBase();
     arrParas   = new string[] { PKID };
     gv         = this.Gdv_SgxkCyryInfo;
     dtPageData = ihb.SearchInfo(InstanceName.Instance_Read_AqbjInfo.ToString(), arrParas);
     if (!IsPostBack)
     {
         if (dtPageData.Rows.Count > 0)
         {
             arrParas = new string[] { dtPageData.Rows[0]["aqjdbm"].ToString() };
             //查找相关数据并赋值给GridView数据源
             gv.DataSource = ihb.SearchInfo(InstanceHead + gv.ID, arrParas);
             gv.DataBind();
             //数据绑定
             if (dtPageData.Rows.Count > 0)
             {
                 this.SetControlValue(dtPageData.Rows[0].ToDataItem());
                 this.hlk_dwmc.Text = "";
                 if (string.IsNullOrEmpty(dtPageData.Rows[0]["qyID"].ToString2()))
                 {
                     this.hlk_dwmc.Enabled = false;
                 }
                 else
                 {
                     this.hlk_dwmc.NavigateUrl = string.Format("/WxjzgcjczyPage/Szqy/QyxxToolBar.aspx?qyid={0}", dtPageData.Rows[0]["qyID"]);
                 }
             }
         }
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            //实例化
            gv         = this.Gdv_LxxmDxgcInfo;
            PKID       = Request.QueryString["PKID"];
            ihb        = new HandleBusinessBase();
            arrParas   = new string[] { PKID };
            dtPageData = ihb.SearchInfo(InstanceName.Instance_Read_LxxmInfo.ToString(), arrParas);
            if (!IsPostBack)
            {
                //查找相关数据并赋值给GridView数据源
                gv.DataSource = ihb.SearchInfo(InstanceHead + gv.ID, arrParas);
                gv.DataBind();
                //数据绑定
                if (dtPageData.Rows.Count > 0)
                {
                    //dtPageData.Rows[0].SetControlValue(this);
                    this.SetControlValue(dtPageData.Rows[0].ToDataItem());


                    hlk_Jsdw.Text = dtPageData.Rows[0]["BuildCorpName"].ToString2();
                    if (!string.IsNullOrEmpty(dtPageData.Rows[0]["jsdwID"].ToString2()))
                    {
                        this.hlk_Jsdw.NavigateUrl = "/WxjzgcjczyPage/Szqy/JsdwxxToolBar.aspx?jsdwid=" + dtPageData.Rows[0]["jsdwID"].ToString2();
                    }
                    else
                    {
                        this.hlk_Jsdw.Enabled = false;
                    }
                }
            }
        }
示例#3
0
 //数据绑定
 private void powerGridViewDataBind(int pageIndex)
 {
     if (bIsBeFrom)
     {
         ihb.SearchInfo(InstanceHead + this.Gdv_AqbjInfo.ID, arrParas, this, "Gdv_AqbjInfo", pageIndex, 20);
     }
     else
     {
         ihb.SearchInfo(InstanceHead + this.Gdv_AqbjInfo.ID, null, this, "Gdv_AqbjInfo", pageIndex, 20);
     }
 }
示例#4
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_ZbtbInfo.ToString(), arrParas);
     if (!IsPostBack)
     {
         //数据绑定
         if (dtPageData.Rows.Count > 0)
         {
             //dtPageData.Rows[0].SetControlValue(this);
             this.SetControlValue(dtPageData.Rows[0].ToDataItem());
             this.hlk_TenderCorpName.Text = dtPageData.Rows[0]["TenderCorpName"].ToString();
             if (string.IsNullOrEmpty(dtPageData.Rows[0]["qyID"].ToString2()))
             {
                 this.hlk_TenderCorpName.Enabled = false;
             }
             else
             {
                 this.hlk_TenderCorpName.NavigateUrl = string.Format("/WxjzgcjczyPage/Szqy/QyxxToolBar.aspx?qyid={0}", dtPageData.Rows[0]["qyID"]);
             }
         }
     }
 }
示例#5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //实例化
            PKID     = Request.QueryString["PKID"];
            ihb      = new HandleBusinessBase();
            arrParas = new string[] { PKID };

            gvHt        = this.Gdv_AqbjNew_ht;
            gvDwry      = this.Gdv_AqbjNew_dwry;
            gvClqd      = this.Gdv_AqbjNew_clqd;
            gvHjssjd    = this.Gdv_AqbjNew_hjssjd;
            gvWxyjdgcqd = this.Gdv_AqbjNew_wxyjdgcqd;
            gvCgmgcqd   = this.Gdv_AqbjNew_cgmgcqd;
            gvSprz      = this.Gdv_AqbjNew_sprz;

            dtPageData = ihb.SearchInfo(InstanceName.Instance_Read_AqbjNewInfo.ToString(), arrParas);
            if (!IsPostBack)
            {
                if (dtPageData.Rows.Count > 0)
                {
                    arrParas = new string[] { dtPageData.Rows[0]["uuid"].ToString() };
                    //查找合同数据并赋值给合同gridview
                    gvHt.DataSource = ihb.SearchInfo(InstanceHead + gvHt.ID, arrParas);
                    gvHt.DataBind();

                    //查找单位人员数据并赋值给单位人员gridview
                    gvDwry.DataSource = ihb.SearchInfo(InstanceHead + gvDwry.ID, arrParas);
                    gvDwry.DataBind();

                    //材料清单
                    gvClqd.DataSource = ihb.SearchInfo(InstanceHead + gvClqd.ID, arrParas);
                    gvClqd.DataBind();

                    //环境及地下设施交底项目
                    gvHjssjd.DataSource = ihb.SearchInfo(InstanceHead + gvHjssjd.ID, arrParas);
                    gvHjssjd.DataBind();

                    //危险源较大工程清单
                    gvWxyjdgcqd.DataSource = ihb.SearchInfo(InstanceHead + gvWxyjdgcqd.ID, arrParas);
                    gvWxyjdgcqd.DataBind();

                    //超大规模危险源工程清单
                    gvCgmgcqd.DataSource = ihb.SearchInfo(InstanceHead + gvCgmgcqd.ID, arrParas);
                    gvCgmgcqd.DataBind();

                    //审批日志列表
                    gvSprz.DataSource = ihb.SearchInfo(InstanceHead + gvSprz.ID, arrParas);
                    gvSprz.DataBind();

                    //数据绑定
                    if (dtPageData.Rows.Count > 0)
                    {
                        this.SetControlValue(dtPageData.Rows[0].ToDataItem());
                    }
                }
            }
        }
示例#6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //实例化
            PKID     = Request.QueryString["PKID"];
            ihb      = new HandleBusinessBase();
            arrParas = new string[] { PKID };
            if (!IsPostBack)
            {
                dtPageData = ihb.SearchInfo(InstanceName.Instance_Read_ZlbjInfo.ToString(), arrParas);
                //数据绑定
                if (dtPageData.Rows.Count > 0)
                {
                    this.SetControlValue(dtPageData.Rows[0].ToDataItem());

                    arrParas = new string[] { dtPageData.Rows[0]["zljdbm"].ToString() };
                    //查找相关数据并赋值给GridView数据源
                    this.Gdv_ZlbjZrryInfo.DataSource = ihb.SearchInfo(InstanceHead + this.Gdv_ZlbjZrryInfo.ID, arrParas);
                    this.Gdv_ZlbjZrryInfo.DataBind();
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //实例化
            PKID     = Request.QueryString["PKID"];
            ihb      = new HandleBusinessBase();
            arrParas = new string[] { PKID };

            gvHt    = this.Gdv_ZlbjNew_ht;
            gvDwry  = this.Gdv_ZlbjNew_dwry;
            gvSchgs = this.Gdv_ZlbjNew_schgs;
            gvDwgc  = this.Gdv_ZlbjNew_dwgc;
            gvClqd  = this.Gdv_ZlbjNew_clqd;
            gvSprz  = this.Gdv_ZlbjNew_sprz;

            dtPageData = ihb.SearchInfo(InstanceName.Instance_Read_ZlbjNewInfo.ToString(), arrParas);
            if (!IsPostBack)
            {
                if (dtPageData.Rows.Count > 0)
                {
                    arrParas = new string[] { dtPageData.Rows[0]["uuid"].ToString() };
                    //合同
                    gvHt.DataSource = ihb.SearchInfo(InstanceHead + gvHt.ID, arrParas);
                    gvHt.DataBind();

                    //单位人员
                    gvDwry.DataSource = ihb.SearchInfo(InstanceHead + gvDwry.ID, arrParas);
                    gvDwry.DataBind();

                    //施工图审查合格书
                    gvSchgs.DataSource = ihb.SearchInfo(InstanceHead + gvSchgs.ID, arrParas);
                    gvSchgs.DataBind();

                    //单位工程
                    gvDwgc.DataSource = ihb.SearchInfo(InstanceHead + gvDwgc.ID, arrParas);
                    gvDwgc.DataBind();

                    //材料清单
                    gvClqd.DataSource = ihb.SearchInfo(InstanceHead + gvClqd.ID, arrParas);
                    gvClqd.DataBind();

                    //审批日志
                    gvSprz.DataSource = ihb.SearchInfo(InstanceHead + gvSprz.ID, arrParas);
                    gvSprz.DataBind();


                    //数据绑定
                    if (dtPageData.Rows.Count > 0)
                    {
                        this.SetControlValue(dtPageData.Rows[0].ToDataItem());
                    }
                }
            }
        }
 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_LxxmDxgcInfo.ToString(), arrParas);
     if (!IsPostBack)
     {
         //数据绑定
         if (dtPageData.Rows.Count > 0)
         {
             //dtPageData.Rows[0].SetControlValue(this);
             this.SetControlValue(dtPageData.Rows[0].ToDataItem());
         }
     }
 }
        //数据绑定
        private void powerGridViewDataBind(int pageIndex)
        {
            Gdv_LxxmInfo.PageIndex = pageIndex;
            string ssdq = "";

            foreach (ListItem item in this.cbl_ssdq.Items)
            {
                if (item.Selected)
                {
                    ssdq += item.Value + ",";

                    if (string.Equals(item.Value, "320213"))
                    {
                        ssdq += "320202,320203,320204,";
                    }
                }
            }

            //Gdv_LxxmInfo.DataSource = ihb.SearchInfo(InstanceHead + this
            //    .Gdv_LxxmInfo.ID, new string[] { this.ddl_Heba.SelectedValue, ssdq.TrimEnd(',') }, this);
            //Gdv_LxxmInfo.DataBind();
            ihb.SearchInfo(InstanceHead + this.Gdv_LxxmInfo.ID, new string[] { this.ddl_Heba.SelectedValue, ssdq.TrimEnd(',') }, this, "Gdv_LxxmInfo", pageIndex, 20);
        }
示例#10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //实例化
            gv         = this.Gdv_SgxkCyryInfo;
            PKID       = Request.QueryString["PKID"];
            ihb        = new HandleBusinessBase();
            arrParas   = new string[] { PKID };
            dtPageData = ihb.SearchInfo(InstanceName.Instance_Read_SgxkzInfo.ToString(), arrParas);
            if (!IsPostBack)
            {
                //查找相关数据并赋值给GridView数据源
                gv.DataSource = ihb.SearchInfo(InstanceHead + gv.ID, arrParas);
                gv.DataBind();
                //数据绑定
                if (dtPageData.Rows.Count > 0)
                {
                    //dtPageData.Rows[0].SetControlValue(this);
                    this.SetControlValue(dtPageData.Rows[0].ToDataItem());

                    this.hlk_BuildCorpName.Text = dtPageData.Rows[0]["BuildCorpName"].ToString();
                    if (string.IsNullOrEmpty(dtPageData.Rows[0]["BuildCorpCode"].ToString()))
                    {
                        this.hlk_BuildCorpName.Enabled = false;
                    }
                    else
                    {
                        this.hlk_BuildCorpName.NavigateUrl = string.Format("/WxjzgcjczyPage/Szqy/JsdwxxToolBar.aspx?jsdwid={0}", dtPageData.Rows[0]["BuildCorpCode"]);
                    }

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

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

                    this.hlk_ConsCorpName.Text = dtPageData.Rows[0]["ConsCorpName"].ToString();
                    if (string.IsNullOrEmpty(dtPageData.Rows[0]["sgqyID"].ToString()))
                    {
                        this.hlk_ConsCorpName.Enabled = false;
                    }
                    else
                    {
                        this.hlk_ConsCorpName.NavigateUrl = string.Format("/WxjzgcjczyPage/Szqy/QyxxToolBar.aspx?qyid={0}", dtPageData.Rows[0]["sgqyID"]);
                    }
                }
            }
        }
示例#11
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;
                    }
                }
            }
        }