예제 #1
0
        protected string strIssueRect = string.Empty;//问题整改动态行信息

        protected void Page_Load(object sender, EventArgs e)
        {
            db      = Yawei.DataAccess.DatabaseFactory.CreateDatabase();
            strGuid = this.Request.Params["xmguid"] ?? "";
            xmguid  = this.Request.Params["xmguid"] ?? "";

            form.TableName   = "tz_Project"; //表名
            form.Key         = "ProGuid";    //主键
            form.KeyValue    = strGuid;      //主键的值
            form.CurrentUser = CurrentUser;
            document         = form.SetViewData(null);

            strIssueRect = form.GetRowDataXml("v_tz_ProjectExpert", "ProGuid", form.KeyValue, null, " order by pssj asc ");
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // strProjGuid = Request["Guid"] != null ? Request["Guid"] : "";
            strGuid = Request["Guid"] != null ? Request["Guid"] : "";

            form.TableName   = "tz_zjys"; //表名
            form.Key         = "guid";    //主键
            form.KeyValue    = strGuid;   //主键的值
            form.CurrentUser = CurrentUser;

            document = form.SetViewData(null);

            datarow = form.GetRowDataXml("tz_zjys_mx", "refguid", form.KeyValue, null);
            System.GC.Collect();
        }
예제 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            db      = Yawei.DataAccess.DatabaseFactory.CreateDatabase();
            strGuid = Request["Guid"] != null ? Request["Guid"] : "";
            proGuid = Request["ProjGuid"] != null ? Request["ProjGuid"] : "";

            if (strGuid == "")
            {
                ///处理有附件的页面 ViewState["Guid"] 无附件去掉以下代码
                if (ViewState["Guid"] == null)
                {
                    ViewState["Guid"] = Guid.NewGuid().ToString();
                }
                else
                {
                    form.StateGuid = ViewState["Guid"].ToString();
                }
            }
            else
            {
                ViewState["Guid"] = strGuid;
            }

            form.TableName   = "tz_xmht"; //表名
            form.Key         = "guid";    //主键
            form.KeyValue    = strGuid;   //主键的值
            form.CurrentUser = CurrentUser;

            strIssueRect = form.GetRowDataXml("tz_xmht_zffs", "htguid", form.KeyValue, null, " order by updatesj asc ");

            // DataSet ds = db.ExecuteDataSet(" select t2.* from tz_ProjectAndExpert t1 inner join  tz_ProjectExpert t2 on t1.ExpertGuid=t2.guid and t1.proguid='" + xmguid + "' ");
            // this.ProGuid.DataSource = ds.Tables[0];
            // this.ProGuid.DataTextField = "zjmc";
            // this.ProGuid.DataValueField = "Guid";
            // this.ProGuid.DataBind();

            #region 初始化信息

            if (!IsPostBack)
            {
                form.SetControlValue(this.Page);
            }

            #endregion

            System.GC.Collect();
        }
예제 #4
0
        protected string strIssueRect = string.Empty;//问题整改动态行信息

        protected void Page_Load(object sender, EventArgs e)
        {
            db      = Yawei.DataAccess.DatabaseFactory.CreateDatabase();
            strGuid = this.Request.Params["xmguid"] ?? "";
            xmguid  = this.Request.Params["xmguid"] ?? "";

            form.TableName   = "tz_Project"; //表名
            form.Key         = "ProGuid";    //主键
            form.KeyValue    = strGuid;      //主键的值
            form.CurrentUser = CurrentUser;
            document         = form.SetViewData(null);

            strIssueRect = form.GetRowDataXml("tz_ProjectExpertPS", "ProGuid", form.KeyValue, null, " order by pssj asc ");

            DataSet ds = db.ExecuteDataSet(" select t2.* from tz_ProjectAndExpert t1 inner join  tz_ProjectExpert t2 on t1.ExpertGuid=t2.guid and t1.proguid='" + xmguid + "' ");

            this.ProGuid.DataSource     = ds.Tables[0];
            this.ProGuid.DataTextField  = "zjmc";
            this.ProGuid.DataValueField = "Guid";
            this.ProGuid.DataBind();
        }
예제 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            strGuid = Request["Guid"] != null ? Request["Guid"] : "";
            proGuid = Request["ProjGuid"] != null ? Request["ProjGuid"] : "";

            if (strGuid == "")
            {
                ///处理有附件的页面 ViewState["Guid"] 无附件去掉以下代码
                if (ViewState["Guid"] == null)
                {
                    ViewState["Guid"] = Guid.NewGuid().ToString();
                }
                else
                {
                    form.StateGuid = ViewState["Guid"].ToString();
                }
            }
            else
            {
                ViewState["Guid"] = strGuid;
            }

            form.TableName   = "tz_zjgs"; //表名
            form.Key         = "guid";    //主键
            form.KeyValue    = strGuid;   //主键的值
            form.CurrentUser = CurrentUser;
            //获取动态行数据
            datarow = form.GetRowDataXml("tz_zjgs_mx", "refguid", form.KeyValue, null);
            #region 初始化信息

            if (!IsPostBack)
            {
                form.SetControlValue(this.Page);
            }

            #endregion

            System.GC.Collect();
        }