protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { com.jwsoft.pm.entpm.PageHelper.BindDropDownTree(this.DDTClass, 20, true); if (base.Request.QueryString["DatumClass"] == "8") { EPC_QuaitySafety_HighlightsView._showAffairTitle = "质量亮点名称"; } else { if (base.Request.QueryString["DatumClass"] == "9") { EPC_QuaitySafety_HighlightsView._showAffairTitle = "质量活动名称"; } } AffairAction affairAction = new AffairAction(); AffairModel singleAffair = affairAction.GetSingleAffair(base.Request.QueryString["i_id"].ToString()); this.litContent.Text = singleAffair.Context; this.litRemark.Text = singleAffair.Remark; DateTime arg_C0_0 = singleAffair.Date; if (singleAffair.Date.ToString() != "") { this.litDate.Text = singleAffair.Date.ToShortDateString().Replace("/", "-"); } this.litName.Text = singleAffair.AffairTitle; int arg_120_0 = singleAffair.Mark; if (singleAffair.Mark.ToString() != "") { this.hdnmark.Value = singleAffair.Mark.ToString(); if (singleAffair.Mark == 2) { this.litGD.Text = "否"; } else { this.litGD.Text = "是"; } } else { this.litGD.Text = "否"; } this.Literal1.Text = FileView.FilesBind(1755, singleAffair.i_id.ToString()); int arg_1C3_0 = singleAffair.FilesType; if (singleAffair.FilesType.ToString() != "" && singleAffair.FilesType > 0) { this.DDTClass.SelectedValue = singleAffair.FilesType.ToString(); if (this.DDTClass.SelectedItem.Text != null && this.DDTClass.SelectedItem.Text.ToString() != "") { this.litType.Text = this.DDTClass.SelectedItem.Text.ToString(); } } } }
protected void Page_Load(object sender, EventArgs e) { this.hdnDacumClass.Value = base.Request.QueryString["DatumClass"]; if (!this.Page.IsPostBack) { if (base.Request.QueryString["PrjCode"] != null) { this.PrjCode = new Guid(base.Request.QueryString["PrjCode"].ToString()); } if (base.Request.QueryString["Type"] == "Add") { this.FileLink1.Type = 1; this.FileLink1.MID = 1755; this.FileLink1.FID = Guid.NewGuid().ToString(); this.CalDate.Text = DateTime.Today.ToString("yyyy-MM-dd"); return; } this.i_id = base.Request.QueryString["i_id"].ToString(); string sqlString = "SELECT * FROM EPM_Datum_Affair eda WHERE eda.i_id='" + this.i_id + "';"; DataRow dataRow = publicDbOpClass.QueryDataRow(sqlString); string text = dataRow["mark"].ToString(); if (text != "2") { this.cbkmark.Checked = true; } else { this.cbkmark.Checked = false; } this.hdnmark.Value = text; AffairAction affairAction = new AffairAction(); AffairModel singleAffair = affairAction.GetSingleAffair(this.i_id); this.TxtAffairTitle.Text = singleAffair.AffairTitle; this.TxtContext.Text = singleAffair.Context; this.CalDate.Text = singleAffair.Date.ToShortDateString(); this.Txtremark.Text = singleAffair.Remark; this.hdnClass.Value = singleAffair.Flage; this.FileLink1.MID = 1755; this.FileLink1.FID = this.i_id; text = dataRow["filesType"].ToString(); this.hidenClass.Value = text; if (base.Request.QueryString["Type"] == "EDIT") { this.FileLink1.Type = 1; if (base.Request.QueryString["Flag"] == "Q") { AffairEdit._showtitle = "修改质量事务"; AffairEdit._showAffairTitle = "质量事务名称"; } else { if (base.Request.QueryString["Flag"] == "S") { } } } else { if (base.Request.QueryString["Type"] == "SEE") { this.FileLink1.Type = 0; this.BtnSave.Visible = false; if (!(base.Request.QueryString["Flag"] == "Q")) { } this.showText.Visible = true; this.showText.InnerHtml = singleAffair.Context; this.TxtContext.Visible = false; this.Button1.Style.Add("display", ""); this.Button1.Value = "关 闭"; this.TxtAffairTitle.Enabled = (this.CalDate.Enabled = (this.TxtContext.Enabled = (this.Txtremark.Enabled = false))); this.DDTClass.Enabled = false; this.cbkmark.Enabled = false; } } if (dataRow["mark"].ToString() == "1") { this.FileLink1.Type = 0; this.BtnSave.Visible = false; this.showText.Visible = true; this.showText.InnerHtml = singleAffair.Context; this.TxtContext.Visible = false; this.Button1.Style.Add("display", ""); this.Button1.Value = "关 闭"; this.TxtAffairTitle.Enabled = (this.CalDate.Enabled = (this.TxtContext.Enabled = (this.Txtremark.Enabled = false))); this.DDTClass.Enabled = false; this.cbkmark.Enabled = false; this.DDTClass.Enabled = false; this.cbkmark.Enabled = false; } } }
protected void Page_Load(object sender, EventArgs e) { this.hdnDacumClass.Value = base.Request.QueryString["DatumClass"]; if (!this.Page.IsPostBack) { if (base.Request.QueryString["PrjCode"] != null) { this.PrjCode = new Guid(base.Request.QueryString["PrjCode"].ToString()); } if (base.Request.QueryString["Type"] == "Add") { this.FileLink1.Type = 1; this.FileLink1.MID = 1755; this.FileLink1.FID = Guid.NewGuid().ToString(); this.CalDate.Text = DateTime.Today.ToString("yyyy-MM-dd"); } else { this.i_id = base.Request.QueryString["i_id"].ToString(); AffairAction affairAction = new AffairAction(); AffairModel singleAffair = affairAction.GetSingleAffair(this.i_id); this.TxtAffairTitle.Text = singleAffair.AffairTitle; this.TxtContext.Text = singleAffair.Context; this.CalDate.Text = singleAffair.Date.ToShortDateString(); this.Txtremark.Text = singleAffair.Remark; this.hdnClass.Value = singleAffair.Flage; this.FileLink1.MID = 1755; this.FileLink1.FID = this.i_id; string text = singleAffair.Mark.ToString(); if (text != "2") { this.cbkmark.Checked = true; } else { this.cbkmark.Checked = false; } this.hdnmark.Value = text; this.hidenClass.Value = singleAffair.FilesType.ToString(); if (base.Request.QueryString["Type"] == "EDIT") { this.FileLink1.Type = 1; } else { if (base.Request.QueryString["Type"] == "SEE") { this.FileLink1.Type = 0; this.BtnSave.Visible = false; this.showText.Visible = true; this.TextBox1.Text = ProjectSuperviseEdit.StripHTML(singleAffair.Context); this.TextBox1.Enabled = false; this.TxtContext.Visible = false; this.Button1.Style.Add("display", ""); this.Button1.Value = "关 闭"; this.TxtAffairTitle.Enabled = (this.CalDate.Enabled = (this.TxtContext.Enabled = (this.Txtremark.Enabled = false))); this.DDTClass.Enabled = false; this.cbkmark.Enabled = false; } } if (singleAffair.Mark.ToString() == "1") { this.FileLink1.Type = 0; this.BtnSave.Visible = false; this.showText.Visible = true; this.TextBox1.Text = ProjectSuperviseEdit.StripHTML(singleAffair.Context); this.TextBox1.Enabled = false; this.TxtContext.Visible = false; this.TxtContext.Text = singleAffair.Context; this.Button1.Style.Add("display", ""); this.Button1.Value = "关 闭"; this.TxtAffairTitle.Enabled = (this.CalDate.Enabled = (this.TxtContext.Enabled = (this.Txtremark.Enabled = false))); this.DDTClass.Enabled = false; this.cbkmark.Enabled = false; } } com.jwsoft.pm.entpm.PageHelper.BindDropDownTree(this.DDTClass, 20, true); } }