protected void Page_Load(object sender, EventArgs e) { #region 接受参数 strGuid = Request["Guid"] != null ? Request["Guid"] : ""; #endregion //this.Date.Text = DateTime.Now.ToString("yyyy-MM-dd"); if (strGuid == "") { this.CreateDate.Value = DateTime.Now.ToString(); ///处理有附件的页面 ViewState["Guid"] 无附件去掉以下代码 if (ViewState["Guid"] == null) { ViewState["Guid"] = Guid.NewGuid().ToString(); } else { form.StateGuid = ViewState["Guid"].ToString(); } if (ViewState["PsFiles"] == null) { ViewState["PsFiles"] = Guid.NewGuid().ToString(); } this.PsFiles.Text = ViewState["PsFiles"].ToString(); this.StartDeptGuid.Text = CurrentUser.UserGroup.Guid; this.StartDeptName.Text = CurrentUser.UserGroup.Name; this.StartDate.Text = DateTime.Now.ToString("yyyy-MM-dd"); } else { ViewState["Guid"] = strGuid; } //********************************************* form.TableName = "tz_Project"; //表名 form.Key = "ProGuid"; //主键 form.KeyValue = strGuid; //主键的值 form.CurrentUser = CurrentUser; #region 初始化信息 if (!IsPostBack) { form.SetControlValue(this.Page); } if (strGuid != "") { this.EditDate.Value = DateTime.Now.ToString(); } #endregion System.GC.Collect(); }
protected void Page_Load(object sender, EventArgs e) { #region 接受参数 strGuid = Request["Guid"] != null ? Request["Guid"] : ""; this.ProGuid.Value = Request["xmguid"] != null ? Request["xmguid"] : ""; this.xmguid = Request["xmguid"] != null ? Request["xmguid"] : ""; this.ExpertGuid.Value = Request["expertguid"] != null ? Request["expertguid"] : "1"; this.pssj.Value = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); #endregion //this.Date.Text = DateTime.Now.ToString("yyyy-MM-dd"); if (strGuid == "") { this.CreateDate.Value = DateTime.Now.ToString(); ///处理有附件的页面 ViewState["Guid"] 无附件去掉以下代码 if (ViewState["Guid"] == null) { ViewState["Guid"] = Guid.NewGuid().ToString(); } else { form.StateGuid = ViewState["Guid"].ToString(); } } else { ViewState["Guid"] = strGuid; } //********************************************* form.TableName = "tz_ProjectExpertPS"; //表名 form.Key = "Guid"; //主键 form.KeyValue = strGuid; //主键的值 form.CurrentUser = CurrentUser; #region 初始化信息 if (!IsPostBack) { form.SetControlValue(this.Page); } if (strGuid != "") { this.EditDate.Value = DateTime.Now.ToString(); } #endregion System.GC.Collect(); }
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(); }
protected void Page_Load(object sender, EventArgs e) { proGuid = Request["xmguid"] != null ? Request["xmguid"] : ""; strGuid = Request["guid"] != null ? Request["guid"] : ""; if (strGuid == "") { this.CreateDate.Value = DateTime.Now.ToString(); ///处理有附件的页面 ViewState["Guid"] 无附件去掉以下代码 if (ViewState["guid"] == null) { ViewState["guid"] = Guid.NewGuid().ToString(); } else { form.StateGuid = ViewState["guid"].ToString(); } this.xmGuid.Value = proGuid; } else { ViewState["guid"] = strGuid; } form.TableName = "tz_jxkh"; //表名 form.Key = "guid"; //主键 form.KeyValue = strGuid; //主键的值 form.CurrentUser = CurrentUser; #region 初始化信息 if (!IsPostBack) { form.SetControlValue(this.Page); } if (strGuid != "") { this.EditDate.Value = DateTime.Now.ToString(); } #endregion System.GC.Collect(); }
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(); }
protected void Page_Load(object sender, EventArgs e) { roleCheck = new RoleCheck(CurrentUser); bmGuid = CurrentUser.UserGroup.Guid; strGuid = Request["Guid"] != null ? Request["Guid"] : ""; proGuid = Request["xmguid"] != null ? Request["xmguid"] : ""; createType = Request["type"] != null ? Request["type"] : ""; if (createType != "") { strProName = Request["proname"] != null ? Request["proname"] : ""; } if (strGuid == "") { this.CreateDate.Value = DateTime.Now.ToString(); ///处理有附件的页面 ViewState["Guid"] 无附件去掉以下代码 if (ViewState["Guid"] == null) { ViewState["Guid"] = Guid.NewGuid().ToString(); } else { form.StateGuid = ViewState["Guid"].ToString(); } } else { ViewState["Guid"] = strGuid; } form.TableName = "tz_xmyw"; //表名 form.Key = "guid"; //主键 form.KeyValue = strGuid; //主键的值 form.CurrentUser = CurrentUser; #region 初始化信息 if (!IsPostBack) { form.SetControlValue(this.Page); } #endregion string bmWhere = " (StartDeptGuid='" + bmGuid + "' and ProState='申报')"; //此处查看所有审核通过的项目 if (roleCheck.isAdmin() || roleCheck.isSjj() || roleCheck.isZfb()) { roleWhere = "ProState='申报'"; } if (roleWhere != "") { sqlWhere = baseWhere + "and (" + bmWhere + " or " + roleWhere + ")"; } else { sqlWhere = baseWhere + "and (" + bmWhere + ")"; } System.GC.Collect(); }
protected void Page_Load(object sender, EventArgs e) { #region 接受参数 strGuid = Request["Guid"] != null ? Request["Guid"] : ""; this.ProGuid.Value = Request["xmguid"] != null ? Request["xmguid"] : ""; this.xmguid = Request["xmguid"] != null ? Request["xmguid"] : ""; this.zjguid = Request["zjguid"] != null ? Request["zjguid"] : ""; this.ExpertGuid.Value = zjguid; this.pssj.Value = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); #endregion //加载项目信息 db = Yawei.DataAccess.DatabaseFactory.CreateDatabase(); System.Data.DataSet dsProject = db.ExecuteDataSet(" select * from tz_project where proguid='" + xmguid + "' "); foreach (DataColumn col in dsProject.Tables[0].Columns) { if (dsProject.Tables[0].Rows.Count > 0) { document.Add(col.ColumnName, dsProject.Tables[0].Rows[0][col].ToString()); } } //this.Date.Text = DateTime.Now.ToString("yyyy-MM-dd"); if (strGuid == "") { this.CreateDate.Value = DateTime.Now.ToString(); ///处理有附件的页面 ViewState["Guid"] 无附件去掉以下代码 if (ViewState["Guid"] == null) { ViewState["Guid"] = Guid.NewGuid().ToString(); } else { form.StateGuid = ViewState["Guid"].ToString(); } } else { ViewState["Guid"] = strGuid; } //********************************************* form.TableName = "tz_ProjectExpertPS"; //表名 form.Key = "Guid"; //主键 form.KeyValue = strGuid; //主键的值 form.CurrentUser = CurrentUser; #region 初始化信息 if (!IsPostBack) { form.SetControlValue(this.Page); } if (strGuid != "") { this.EditDate.Value = DateTime.Now.ToString(); } #endregion System.GC.Collect(); }