protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { this.SetBind(); } if (base.Request["op"] == null) { this.FileLink1.Type = 1; return; } this.btnSave.Width = 0; this.TextBox1.ReadOnly = true; this.DateBox1.ReadOnly = true; this.TextBox4.ReadOnly = true; if (base.Request["op"] == "query") { this.btnSave.Width = 0; this.TextBox1.Enabled = false; this.DateBox1.Enabled = false; this.TextBox4.Enabled = false; this.FileLink1.Visible = false; this.Literal1.Text = FileView.FilesBind(1743, base.Request.QueryString["id"]); return; } this.btnSave.Width = 0; this.TextBox1.ReadOnly = true; this.DateBox1.ReadOnly = true; this.TextBox4.ReadOnly = true; }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { com.jwsoft.pm.entpm.PageHelper.BindDropDownTree(this.DDTClass, 20, true); if (base.Request.Params["id"] == null) { this.ViewState["ISEDIT"] = "false"; this.txtReporter.Text = userManageDb.GetCurrentUserInfo().UserName; this.txtReportTime.Text = DateTime.Today.ToString("yyyy-MM-dd"); if (base.Request["PrjCode"] != null) { string sqlString = "select PrjName from pt_PrjInfo where Prjguid='" + base.Request["PrjCode"].ToString() + "'"; DataTable dataTable = publicDbOpClass.DataTableQuary(sqlString); if (dataTable.Rows.Count > 0) { this.txtSumPrjName.Text = dataTable.Rows[0]["PrjName"].ToString(); } } this.FileLink1.MID = 1754; this.hdnWfGuid.Value = Guid.NewGuid().ToString(); this.FileLink1.FID = this.hdnWfGuid.Value.Trim(); this.FileLink1.Type = 2; } else { this.hidID.Value = base.Request.Params["id"].ToString(); this.BindData(); this.ViewState["ISEDIT"] = "true"; this.FileLink1.MID = 1754; this.FileLink1.Type = 1; } if (base.Request.Params["Type"] != null) { string text = base.Request.Params["Type"].ToString(); if (text != null && text == "view") { this.FileLink1.Type = 0; this.FileLink1.Visible = false; this.Literal1.Text = FileView.FilesBind(1754, this.hdnWfGuid.Value.Trim()); this.txtReporter.Enabled = false; this.txtReportTime.Enabled = false; this.txtSummaryName.Enabled = false; this.TextBox5.Enabled = false; this.btnSave.Attributes.Add("style", "display:none;"); this.BunClose.Value = "关 闭"; this.hdnType.Value = "view"; this.cbkmark.Disabled = true; this.DDTClass.Enabled = false; this.txtReportUnit.Enabled = false; } } if (base.Request["ic"] != null) { this.divFooter2.Visible = false; } } }
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) { if (!base.IsPostBack) { com.jwsoft.pm.entpm.PageHelper.BindDropDownTree(this.DDTClass, 20, true); DataTable dataTable = new DataTable(); if (base.Request.QueryString["ic"] != null) { string g = base.Request.QueryString["ic"]; dataTable = this.Bll.getModelByGuid("Prj_V_ExpertProject", new Guid(g)); } else { if (base.Request.QueryString["id"] != null) { string strId = base.Request.QueryString["id"]; dataTable = ExperProjectAction.GetSingleExpertInfo(strId); } } this.lblUnit.Text = dataTable.Rows[0]["V_BMMC"].ToString(); this.hdnmark.Value = dataTable.Rows[0]["mark"].ToString(); this.lblName.Text = ((dataTable.Rows[0]["Prjname"] != DBNull.Value) ? dataTable.Rows[0]["Prjname"].ToString() : ""); this.lblfangan.Text = ((dataTable.Rows[0]["SchemeName"] != DBNull.Value) ? dataTable.Rows[0]["SchemeName"].ToString() : ""); this.lblshenpi.Text = ((dataTable.Rows[0]["examineapprove"] != DBNull.Value) ? dataTable.Rows[0]["examineapprove"].ToString() : ""); this.lblpeople.Text = com.jwsoft.pm.entpm.action.PageHelper.QueryUser(this, dataTable.Rows[0]["WeavePeople"].ToString()); this.lblDate.Text = Convert.ToDateTime(dataTable.Rows[0]["WeaveDate"].ToString()).ToShortDateString(); this.lblTianPeople.Text = com.jwsoft.pm.entpm.action.PageHelper.QueryUser(this, dataTable.Rows[0]["FillPeople"].ToString()); this.lblTianDate.Text = Convert.ToDateTime(dataTable.Rows[0]["FillDate"].ToString()).ToShortDateString(); this.lblshuoming.Text = dataTable.Rows[0]["schemebewrite"].ToString(); this.lblRemark.Text = dataTable.Rows[0]["Remark"].ToString(); this.Literal1.Text = FileView.FilesBind(1722, dataTable.Rows[0]["FlowGuid"].ToString()); this.DDTClass.SelectedValue = dataTable.Rows[0]["filesType"].ToString(); if (dataTable.Rows[0]["mark"].ToString().Equals("2")) { this.TrGDType.Attributes.Add("style", "display:none;"); } else { this.TrGDType.Attributes.Add("style", "display:block;"); } this.lblmarkType.Text = this.DDTClass.SelectedItem.Text.ToString(); } }
protected void BindPage() { PayoutInvoiceInfo model = this.invoice.GetModel(base.Request["InvoiceId"]); if (model != null) { PayoutContractModel model2 = new PayoutContract().GetModel(model.ContractID); if (model2 != null) { this.lblContractCode.Text = model2.ContractCode; this.lblContractName.Text = model2.ContractName; PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); string prjCode = pTPrjInfoService.GetById(model2.PrjGuid).PrjCode; this.lblPrjCode.Text = prjCode; this.lblPrjName.Text = model2.PrjName; this.lblContractMoney.Text = model2.ModifiedMoney.ToString(); this.lblSignedDate.Text = Convert.ToDateTime(model2.SignDate).ToShortDateString(); PayoutPayment payoutPayment = new PayoutPayment(); decimal? paySum = payoutPayment.GetPaySum(model2.ContractID); decimal? invoiceSum = this.invoice.GetInvoiceSum(model2.ContractID); this.lblPaymentSum.Text = paySum.ToString(); this.lblInvoiceSum.Text = invoiceSum.ToString(); this.lblDiff.Text = Convert.ToString(paySum - invoiceSum); } this.lblAmountMoney.Text = model.Amount.ToString(); this.lblInvoiceNo.Text = model.InvoiceNo; this.lblInvoiceCode.Text = model.InvoiceCode; this.lblParty.Text = model.Payer; this.lblSecond.Text = model.Payee; this.lblInvoiceType.Text = this.getInvoiceType(model.InvoiceType); this.lblTaxNo.Text = model.TaxNo; this.lblTransactor.Text = model.Transactor; this.lblInvoiceDate.Text = model.InvoiceDate.ToString(); this.lblAddress.Text = model.Contact; this.lblBankCode.Text = model.BankCode; this.lblInputUser.Text = model.InputPerson; this.lblInputTime.Text = Convert.ToDateTime(model.InputDate).ToShortDateString(); this.lblNote.Text = model.Notes; this.lblOrganizationCode.Text = model.OrganizationCode; this.lblUpFiled.Text = FileView.FilesBind(1911, model.InvoiceID); } }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { this.lblBllProducer.Text = WebUtil.GetUserNames(this.Session["yhdm"].ToString()); this.lblPrintDate.Text = Common2.GetTime(DateTime.Now); IncometContractModel model = this.incometContractBll.GetModel(base.Request.QueryString["ContractID"]); if (model != null) { this.lblContractCode.Text = model.ContractCode; this.lblContractName.Text = model.ContractName; this.lblContractMoney.Text = WebUtil.GetEnPrice(model.ContractPrice.ToString(), model.ContractID); this.lblSignedDate.Text = Common2.GetTime(model.SignedTime.ToString()); this.lblPrjCode.Text = ((model.Project != null) ? model.Project.PrjCode : string.Empty); this.lblPrjName.Text = ((model.Project != null) ? model.Project.PrjName : string.Empty); this.lblPaymentSum.Text = WebUtil.GetPaymentSum(model.ContractID, "Con_Incomet_Payment", "CllectionPrice"); this.lbldiff.Text = string.Concat(Convert.ToDecimal(this.lblContractMoney.Text) - Convert.ToDecimal(this.lblPaymentSum.Text)); } IncometPaymentModel model2 = this.incometPaymentBll.GetModel(base.Request.QueryString["id"]); if (model2 != null) { this.lblPaymentCode.Text = model2.CllectionCode; this.lblPayMoney.Text = model2.CllectionPrice.ToString(); this.lblPayTime.Text = Common2.GetTime(model2.CllectionTime.ToString()); this.lblPaymentUser.Text = model2.CllectionUser; this.lblInputTime.Text = Common2.GetTime(model2.InputDate.ToString()); this.lblInputUser.Text = model2.InputPerson; this.lblnote.Text = model2.Remark; List <string> fundPlanByMonthPlanUID = this.incometPaymentBll.GetFundPlanByMonthPlanUID(model2.MonthPlanUID, false); if (fundPlanByMonthPlanUID.Count > 0) { this.lblPlanMonth.Text = fundPlanByMonthPlanUID[1].ToString(); this.lblPlanMoney.Text = fundPlanByMonthPlanUID[2].ToString(); this.lblFinshMoney.Text = fundPlanByMonthPlanUID[4].ToString(); this.lblAllowCollectMoney.Text = fundPlanByMonthPlanUID[5].ToString(); this.lblPlanote.Text = fundPlanByMonthPlanUID[6].ToString(); } } this.lblUpFiled.Text = FileView.FilesBind(1908, model2.ID); } }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { com.jwsoft.pm.entpm.PageHelper.BindDropDownTree(this.DDTClass, 20, true); DataTable dataTable = new DataTable(); if (base.Request.QueryString["ic"] != null) { string g = base.Request.QueryString["ic"]; dataTable = this.Bll.getModelByGuid("Prj_V_ScienceInnovate", new Guid(g)); } else { if (base.Request.QueryString["id"] != null) { string strId = base.Request.QueryString["id"]; dataTable = ConstructOrganizeAction.GetSingleConOrgInfo(strId); } } this.lblUnit.Text = dataTable.Rows[0]["FillUnit"].ToString(); this.hdnmark.Value = dataTable.Rows[0]["mark"].ToString(); this.lblName.Text = ((dataTable.Rows[0]["TCO_Name"] != DBNull.Value) ? dataTable.Rows[0]["TCO_Name"].ToString() : ""); this.lblpeople.Text = dataTable.Rows[0]["WeavePerson"].ToString(); this.lblDate.Text = Convert.ToDateTime(dataTable.Rows[0]["WeaveTime"].ToString()).ToShortDateString(); this.lblshuoming.Text = dataTable.Rows[0]["Maindescripe"].ToString(); this.lblRemark.Text = dataTable.Rows[0]["Remark"].ToString(); this.Literal1.Text = FileView.FilesBind(1720, dataTable.Rows[0]["FlowGuid"].ToString()); this.DDTClass.SelectedValue = dataTable.Rows[0]["filesType"].ToString(); if (dataTable.Rows[0]["mark"].ToString().Equals("2")) { this.TrGDType.Attributes.Add("style", "display:none;"); } else { this.TrGDType.Attributes.Add("style", "display:block;"); } this.lblmarkType.Text = this.DDTClass.SelectedItem.Text.ToString(); } }
protected void InitPage() { IncometContractModel model = this.incometContractBll.GetModel(base.Request.QueryString["ContractID"]); if (model != null) { this.lblPrjCode.Text = model.Project.PrjCode; this.lblPrjName.Text = model.Project.PrjName; this.lblContractCode.Text = model.ContractCode; this.lblContractName.Text = model.ContractName; this.lblContractMoney.Text = WebUtil.GetEnPrice(model.ContractPrice.ToString(), model.ContractID); this.lblSignedDate.Text = Common2.GetTime(model.SignedTime.ToString()); this.lblPaymentSum.Text = WebUtil.GetPaymentSum(model.ContractID, "Con_Incomet_Payment", "CllectionPrice"); this.lblInvoiceSum.Text = WebUtil.GetPaymentSum(model.ContractID, "Con_Incomet_Invoice", "Amount"); this.lblBalance.Text = string.Concat(Convert.ToDecimal(this.lblPaymentSum.Text) - Convert.ToDecimal(this.lblInvoiceSum.Text)); } IncometInvoiceModel model2 = this.incometInvoiceBll.GetModel(base.Request.QueryString["id"]); if (model2 != null) { this.lblAmountMoney.Text = model2.Amount.ToString(); this.lblInputTime.Text = Common2.GetTime(model2.InputDate.ToString()); this.lblInputUser.Text = model2.InputPerson; this.lblInvoiceDate.Text = Common2.GetTime(model2.InvoiceDate.ToString()); this.lblNote.Text = model2.Notes; this.lblTransactor.Text = model2.Transactor; this.lblInvoiceNo.Text = model2.InvoiceNo; this.lblInvoiceCode.Text = model2.InvoiceCode; this.lblParty.Text = model2.Payer; this.lblSecond.Text = model2.Payee; this.lblInvoiceType.Text = this.GetInvoiceType(model2.InvoiceType); this.lblTaxNo.Text = model2.TaxNo; this.lblAddress.Text = model2.Contact; this.lblBankCode.Text = model2.BankCode; this.lblOrganizationCode.Text = model2.OrganizationCode; this.lblUpFiled.Text = FileView.FilesBind(1912, model2.InvoiceID); } }
private void InitUpdateAndQuery() { string userCode = this.Session["yhdm"].ToString(); DataTable dataTable = PersonnelAction.QueryPersonnelById(userCode); if (dataTable != null && dataTable.Rows.Count == 1) { this.lblBllProducer.Text = dataTable.Rows[0]["v_xm"].ToString(); } this.lblPrintDate.Text = System.DateTime.Now.ToShortDateString(); IncometContractModel model = this.incometContractBll.GetModel(ContractManage_IncometContract_IncometContractQuery.contractID); if (model != null) { if (model.Project != null) { this.txtProject.Text = model.Project.PrjName; } this.txtContractCode.Text = model.ContractCode; this.txtContractName.Text = model.ContractName; this.txtContractMoney.Text = ((!model.ContractPrice.HasValue) ? string.Empty : WebUtil.GetEnPrice(model.ContractPrice.ToString(), model.ContractID)); this.contractType.Text = model.TypeID.TypeName; this.txtSignPeople.Text = WebUtil.GetUserNames(model.SignPepole); this.txtQualityPeriod.Text = model.QualityPeriod; if (model.Party != null) { this.txtAName.Text = model.Party.CorpName; } this.txtBName.Text = model.Second; this.txtCParty.Text = model.CParty; this.txtAddress.Text = model.SignedAddress; this.txtSignDate.Text = ((!model.SignedTime.HasValue) ? string.Empty : System.Convert.ToDateTime(model.SignedTime).ToShortDateString()); this.txtConState.Text = WebUtil.GetConState(model.ConState.ToString()); DataTable table = Common2.GetTable("dbo.XPM_Basic_CodeList", "where typeId=27 and ParentCodeID=0"); DataTable table2 = Common2.GetTable("dbo.XPM_Basic_CodeList", "where typeId=25 and ParentCodeID=0"); if (table.Rows.Count > 0) { foreach (DataRow dataRow in table.Rows) { if (dataRow["NoteID"].ToString() == model.BalanceMode) { this.txtBalanceMode.Text = dataRow["CodeName"].ToString(); } } } if (table2.Rows.Count > 0) { foreach (DataRow dataRow2 in table2.Rows) { if (dataRow2["NoteID"].ToString() == model.PayMode) { this.txtdropPayMode.Text = dataRow2["CodeName"].ToString(); } } } this.txtStartDate.Text = ((!model.StartDate.HasValue) ? string.Empty : System.Convert.ToDateTime(model.StartDate).ToShortDateString()); this.txtEndDate.Text = ((!model.EndDate.HasValue) ? string.Empty : System.Convert.ToDateTime(model.EndDate).ToShortDateString()); this.txtCllectionCondition.Text = model.CllectionCondition; this.txtMainItem.Text = model.MainProvision; this.txtNotes.Text = model.Remark; this.txtRefundDate.Text = Common2.GetTime(model.ReFundDate.ToString()); if (model.Project != null) { System.Collections.Generic.List <string> prjInfoIncoment = this.prjInfoBll.GetPrjInfoIncoment(model.Project.PrjGuid.ToString()); if (prjInfoIncoment.Count > 0) { this.lblPrjFundInfo.Text = prjInfoIncoment[3].ToString(); this.lblPrjFundWorkable.Text = prjInfoIncoment[0].ToString(); this.lblQualityClass.Text = prjInfoIncoment[2].ToString(); this.lblForecastProfitRate.Text = prjInfoIncoment[1].ToString(); } this.lblPrjType.Text = this.GetPrjTypeName(model.Project.PrjGuid); } else { System.Collections.Generic.List <string> prjInfoZTBIncoment = this.prjInfoBll.GetPrjInfoZTBIncoment(ContractManage_IncometContract_IncometContractQuery.contractID); if (prjInfoZTBIncoment.Count > 0) { this.lblPrjFundInfo.Text = prjInfoZTBIncoment[3].ToString(); this.lblPrjFundWorkable.Text = prjInfoZTBIncoment[0].ToString(); this.lblQualityClass.Text = prjInfoZTBIncoment[2].ToString(); this.lblForecastProfitRate.Text = prjInfoZTBIncoment[1].ToString(); this.txtProject.Text = prjInfoZTBIncoment[4].ToString(); } } this.ltlAnnex.Text = FileView.FilesBind(1905, model.ContractID); } }
private void BindEquInfo() { new ResResourceService(); EquEquipmentTypeService equEquipmentTypeService = new EquEquipmentTypeService(); EquEquipment byId = this.equSer.GetById(this.id); this.lblEquCode.Text = byId.EquCode; this.lblEquName.Text = byId.EquName; EquEquipmentType byId2 = equEquipmentTypeService.GetById(byId.TypeId); if (byId2 != null) { this.lblEquTypeName.Text = byId2.Name; } if (byId.SupplierId.HasValue) { XPMBasicContactCorpService xPMBasicContactCorpService = new XPMBasicContactCorpService(); XPMBasicContactCorp byId3 = xPMBasicContactCorpService.GetById(byId.SupplierId.Value); if (byId3 != null) { this.lblCorpName.Text = byId3.CorpName; } } this.lblFactoryNumber.Text = byId.FactoryNumber; this.lblFactoryDate.Text = this.ConvertToString(byId.FactoryDate); this.lblPurchaseDate.Text = this.ConvertToString(byId.PurchaseDate); this.lblDepreciationRate.Text = byId.DepreciationRate.ToString("0.000"); this.lblPeriodicVertification.Text = byId.PeriodicVertification; this.lblDurableYear.Text = byId.DurableYear; this.lblPurchasePrice.Text = byId.PurchasePrice.ToString("0.000"); this.lblState.Text = this.GetStateOrProperty("EquState", byId.State); this.lblEquProperty.Text = this.GetStateOrProperty("EquProperty", byId.EquProperty); this.lblReceiptNo.Text = byId.ReceiptNo; if (equEquipmentTypeService.IsShip(byId.TypeId)) { this.trShip.Style["Display"] = "Block"; this.lblShipLength.Text = byId.ShipLength; this.lblShipWidth.Text = byId.ShipWidth; this.lblShipCapacity.Text = byId.ShipCapaticy; EquShipTechnicalParasService equShipTechnicalParasService = new EquShipTechnicalParasService(); System.Collections.Generic.IList <EquShipTechnicalParas> equShipTechParasByEquId = equShipTechnicalParasService.GetEquShipTechParasByEquId(this.id); if (equShipTechParasByEquId == null || equShipTechParasByEquId.Count <= 0) { goto IL_352; } if (equShipTechParasByEquId.Count == 1) { this.lblOtherShipInfo.Text = equShipTechParasByEquId.First <EquShipTechnicalParas>().OtherShipInfo; } int num = 0; Label label = null; using (System.Collections.Generic.IEnumerator <EquShipTechnicalParas> enumerator = equShipTechParasByEquId.GetEnumerator()) { while (enumerator.MoveNext()) { EquShipTechnicalParas current = enumerator.Current; if (num == 0) { this.lblOtherShipInfo.Text = string.Format("参数{0}: {1}", (num + 1).ToString(), current.OtherShipInfo); label = (this.plOtherShips.FindControl("lblOtherShipInfo") as Label); } else { Literal literal = new Literal(); literal.Text = "<br />"; this.plOtherShips.Controls.Add(literal); Label label2 = new Label(); label2.ID = label.ID + num.ToString(); label2.Text = string.Format("参数{0}: {1}", num + 1, current.OtherShipInfo); this.plOtherShips.Controls.Add(label2); } num++; } goto IL_352; } } this.trShip.Style["Display"] = "None"; IL_352: this.lblMiddleInspectDate.Text = this.ConvertToString(byId.MiddleInspectDate); this.lblYearInspectDate.Text = this.ConvertToString(byId.YearInspectDate); this.lblOtherCredentials.Text = byId.OtherCredentials; this.lblAnnex.Text = FileView.FilesBind(1901, byId.Id); this.lblNotes.Text = byId.Note; }
protected void Page_Load(object sender, EventArgs e) { this.BindDropDownList(); if (!base.IsPostBack) { this.ViewState["Type"] = base.Request.QueryString["Type"].ToString(); this._Type = this.ViewState["Type"].ToString(); this.HdnType.Value = this._Type; this.FileLink1.MID = 1721; this.FileLink1.Type = 1; if (this._Type == "Upd") { this.ViewState["Id"] = base.Request.QueryString["Id"].ToString(); this._Id = this.ViewState["Id"].ToString(); this.GetEntStandardInfoOfUpd(this._Id); this.lb_change.Text = "编辑"; return; } if (this._Type == "Add") { this.ViewState["ClassId"] = base.Request.QueryString["ClassId"].ToString(); this.ViewState["ID"] = EntStandardAction.GetMaxId(); this.ViewState["ID"].ToString(); this._ClassId = this.ViewState["ClassId"].ToString(); this._MaxId = this.ViewState["ID"].ToString(); this.lb_change.Text = "新增"; this.hdnEnterGuid.Value = Guid.NewGuid().ToString(); this.FileLink1.FID = this.hdnEnterGuid.Value.Trim(); return; } if (this._Type == "View") { this.FileLink1.Type = 0; this.FileLink1.Visible = false; this.ControlSet(); this.BtnSave.Enabled = false; this.ViewState["Id"] = base.Request.QueryString["Id"].ToString(); this._Id = this.ViewState["Id"].ToString(); this.GetEntStandardInfoOfUpd(this._Id); this.lb_change.Text = "查看"; this.BunClose.Value = "关 闭"; this.Literal1.Text = FileView.FilesBind(1721, this.hdnEnterGuid.Value.Trim()); return; } } else { this._Type = this.ViewState["Type"].ToString(); if (this._Type == "Upd") { this._Id = this.ViewState["Id"].ToString(); return; } if (this._Type == "Add") { this._ClassId = this.ViewState["ClassId"].ToString(); this._MaxId = this.ViewState["ID"].ToString(); return; } if (this._Type == "View") { this._Id = this.ViewState["Id"].ToString(); } } }
protected void Page_Load(object sender, EventArgs e) { this.BindDropDownList(); if (!base.IsPostBack) { com.jwsoft.pm.entpm.PageHelper.BindDropDownTree(this.DDTClass, 20, true); this.ViewState["PRJCODE"] = base.Request.QueryString["pc"].ToString(); this.ViewState["TYPE"] = base.Request.QueryString["Type"].ToString(); this._PrjCode = this.ViewState["PRJCODE"].ToString(); this._Type = this.ViewState["TYPE"].ToString(); this.HdnTypeOld.Value = this._Type; this.FileLink1.MID = 1725; if (this._Type == "Upd") { this.FileLink1.Type = 1; this.TxtStandCode.Enabled = false; this.ViewState["ID"] = base.Request.QueryString["Id"].ToString(); this._Id = this.ViewState["ID"].ToString(); this.GetStandardInfoOfUpd(this._Id); this.lb_change.Text = "修改"; return; } if (this._Type == "Add") { this.ViewState["MAXID"] = TechnologyStandardAction.GetMaxId(); this._MaxId = this.ViewState["MAXID"].ToString(); this.FileLink1.Type = 1; this.hdnTechGuid.Value = Guid.NewGuid().ToString(); this.FileLink1.FID = this.hdnTechGuid.Value.Trim(); this.lb_change.Text = "新增"; return; } if (this._Type == "View") { this.BtnSave.Attributes.Add("style", "display:none;"); this.SetControl(); this.TxtStandCode.Enabled = false; this.ViewState["ID"] = base.Request.QueryString["Id"].ToString(); this._Id = this.ViewState["ID"].ToString(); this.GetStandardInfoOfUpd(this._Id); this.lb_change.Text = "查看"; this.BunClose.Value = "关 闭"; this.hdnType.Value = "view"; this.cbkmark.Disabled = true; this.DDTClass.Enabled = false; this.FileLink1.Type = 1; this.FileLink1.Visible = false; this.Literal1.Text = FileView.FilesBind(1725, this.hdnTechGuid.Value); return; } } else { this._Type = this.ViewState["TYPE"].ToString(); if (this._Type == "Add") { this._PrjCode = this.ViewState["PRJCODE"].ToString(); this._MaxId = this.ViewState["MAXID"].ToString(); return; } this._Id = this.ViewState["ID"].ToString(); } }
protected void Page_Load(object sender, EventArgs e) { this.ViewState["Mark"] = string.Empty; if (!base.IsPostBack) { this.lbTitle.Text = "项目检查"; this.DateBox_jcrq.Text = DateTime.Now.ToString("d"); if (!string.IsNullOrWhiteSpace(this.pk)) { this.bind(this.pk); } DataTable allCheckClassCollections = CheckClassAction.GetAllCheckClassCollections(); this.DropDownList_lb.DataSource = allCheckClassCollections; this.DropDownList_lb.DataTextField = "ItemInspectSortName"; this.DropDownList_lb.DataValueField = "SortID"; this.DropDownList_lb.DataBind(); if (!string.IsNullOrWhiteSpace(this.pk)) { this.FileLink1.MID = 1755; this.FileLink1.FID = this.pk; this.FileLink1.Type = 1; this.FileLink2.MID = 1755; this.FileLink2.Type = 1; if (string.IsNullOrEmpty(this.rectifyMarkID)) { this.rectifyMarkID = Guid.NewGuid().ToString(); } this.ViewState["rmid"] = this.rectifyMarkID; this.FileLink2.FID = this.rectifyMarkID; } else { this.id_max = this.dl.getMaxID("Prj_ItemInspect"); this.FileLink1.Type = 1; this.FileLink1.MID = 1755; this.FileLink1.FID = this.id_max.ToString(); this.FileLink2.Type = 1; this.FileLink2.MID = 1755; this.rectifyMarkID = Guid.NewGuid().ToString(); this.ViewState["rmid"] = this.rectifyMarkID; this.FileLink2.FID = this.rectifyMarkID; } if (base.Request.Params["Type"] != null) { if (base.Request["Levels"] != null && base.Request["Levels"].ToString() == "0") { if (base.Request.Params["Type"].ToString() == PageType.Edit.ToString()) { this.DateBox_sjwcsj.Enabled = false; this.DateBox_jhwcsj.Enabled = false; this.TextBox_sjjg.Enabled = false; this.ddlCertifiResult.Enabled = false; this.TextBox_xmjh.Enabled = false; this.Textbox_zgnr.Enabled = false; } if (base.Request.Params["Type"].ToString() == PageType.Rectify.ToString()) { this.SetDisplayControl(); this.DateBox_sjwcsj.Enabled = true; this.DateBox_jhwcsj.Enabled = true; this.TextBox_xmjh.Enabled = true; this.lbTitle.Text = "项目整改"; this.FileLink1.Visible = false; this.Literal1.Text = FileView.FilesBind(1755, base.Request["pk"].ToString()); } if (base.Request.Params["Type"].ToString() == PageType.Certify.ToString()) { this.SetDisplayControl(); this.ddlCertifiResult.Enabled = true; this.lbTitle.Text = "项目验证"; this.FileLink1.Visible = false; this.Literal1.Text = FileView.FilesBind(1755, base.Request["pk"].ToString()); this.FileLink2.Visible = false; this.Literal2.Text = FileView.FilesBind(1755, this.ViewState["rmid"].ToString()); } } if (base.Request.Params["Type"].ToString() == "View") { this.Button_save.Visible = false; this.Button1.Style.Add("display", ""); this.Button1.Value = "关 闭"; this.SetDisplayControl(); this.FileLink1.Type = 0; this.FileLink1.Visible = false; this.Literal1.Text = FileView.FilesBind(1755, this.pk); this.FileLink2.Visible = false; this.Literal2.Text = FileView.FilesBind(1755, this.ViewState["rmid"].ToString()); } } } }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { if (base.Request.QueryString["pc"] != null) { this.ViewState["PRJCODE"] = base.Request.QueryString["pc"].ToString(); } if (base.Request.QueryString["Type"] != null) { this.ViewState["TYPE"] = base.Request.QueryString["Type"].ToString(); } if (this.ViewState["PRJCODE"] != null) { this._PrjCode = this.ViewState["PRJCODE"].ToString(); } if (this.ViewState["TYPE"] != null) { this._Type = this.ViewState["TYPE"].ToString(); } if (base.Request.QueryString["bs"] != null) { this.ViewState["BIGSORT"] = base.Request.QueryString["bs"].ToString(); } if (this.ViewState["BIGSORT"] != null) { this._BigSort = this.ViewState["BIGSORT"].ToString(); } if (base.Request.QueryString["sm"] != null) { this.ViewState["SMALLSORT"] = base.Request.QueryString["sm"].ToString(); this._SmallSort = this.ViewState["SMALLSORT"].ToString(); } if (this._BigSort == "1") { if (!string.IsNullOrEmpty(base.Request["sm"].ToString())) { string text = base.Request["sm"].ToString(); if (text.Equals("1")) { this.LblTitle.Text = "业主控制网资料"; } else { if (text.Equals("2")) { this.LblTitle.Text = "测量控制网资料"; } else { this.LblTitle.Text = "测量放线资料"; } } } this.LblName.Text = this.LblTitle.Text + "名称:"; } else { if (this._BigSort == "2") { this.ViewState["parentName"] = "_measuredataquery"; if (this._SmallSort == "1") { this.LblTitle.Text = "图纸自审"; this.LblName.Text = "图纸自审名称:"; } else { if (this._SmallSort == "10") { this.LblTitle.Text = "图纸审核"; this.LblName.Text = "图纸审核名称:"; } else { this.LblTitle.Text = "图纸会审"; this.LblName.Text = "图纸会审名称:"; } } } else { if (this._BigSort == "3") { this.ViewState["parentName"] = "__projectlinkquery"; this.LblTitle.Text = "工程联系单"; this.LblName.Text = "工程联系单名称:"; } else { if (this._BigSort == "4") { this.ViewState["parentName"] = "__projectlinkquery"; this.LblTitle.Text = "设计变更"; this.LblName.Text = "设计变更名称:"; } else { if (this._BigSort == "5") { this.ViewState["parentName"] = "__projectlinkquery"; this.LblTitle.Text = "中间交接资料"; this.LblName.Text = "中间交接名称:"; this.TRName.Visible = true; this.TRReceive.Visible = true; } else { if (this._BigSort == "7") { this.ViewState["parentName"] = "_EngineerConfirmList"; this.LblTitle.Text = "工程确认单"; this.LblName.Text = "工程确认单名称:"; } else { if (this._BigSort == "8") { this.ViewState["parentName"] = "_EngineerConfirmList"; this.LblTitle.Text = "工程洽商单"; this.LblName.Text = "工程洽商单名称:"; } else { if (this._BigSort == "6") { this.ViewState["parentName"] = "_measuredataquery"; if (this._SmallSort == "1") { this.LblTitle.Text = "技术竣工计划"; this.LblName.Text = "技术竣工计划名称:"; } else { this.LblTitle.Text = "试车主要计划"; this.LblName.Text = "试车主要计划名称:"; } } } } } } } } } if (this._Type == "Upd") { this.TxtStandCode.Enabled = false; this.ViewState["ID"] = base.Request.QueryString["Id"].ToString(); this._Id = this.ViewState["ID"].ToString(); this.GetMeasureInfoOfUpd(this._Id); this.FileLink1.MID = 1726; this.FileLink1.Type = 1; this.lb_change.Text = "编辑"; } else { if (this._Type == "Add") { this.ViewState["MAXID"] = MeasureDataAction.GetMaxId(); this._MaxId = this.ViewState["MAXID"].ToString(); this.FileLink1.MID = 1726; this.hdnTechGuid.Value = Guid.NewGuid().ToString(); this.FileLink1.FID = this.hdnTechGuid.Value.Trim(); this.FileLink1.Type = 2; this.lb_change.Text = "新增"; } else { if (this._Type == "View") { this.BtnSave.Visible = false; this.SetControl(); this.TxtStandCode.Enabled = false; if (base.Request.QueryString["Id"] != null) { this.ViewState["ID"] = base.Request.QueryString["Id"].ToString(); } if (base.Request.QueryString["ic"] != null) { DataTable modelByGuid = MeasureDataAction.GetModelByGuid(base.Request.QueryString["ic"].ToString()); if (modelByGuid != null) { this.ViewState["ID"] = modelByGuid.Rows[0]["Id"].ToString(); } } this._Id = this.ViewState["ID"].ToString(); this.GetMeasureInfoOfUpd(this._Id); this.FileLink1.MID = 1726; this.FileLink1.Type = 0; this.lb_change.Text = "查看"; this.BunClose.Value = "关 闭"; this.FileLink1.Visible = false; this.Literal1.Text = FileView.FilesBind(1726, this.hdnTechGuid.Value.Trim()); } } } } else { this._Type = this.ViewState["TYPE"].ToString(); if (this._Type == "Add") { this._PrjCode = this.ViewState["PRJCODE"].ToString(); this._MaxId = this.ViewState["MAXID"].ToString(); this._SmallSort = this.ViewState["SMALLSORT"].ToString(); this._BigSort = this.ViewState["BIGSORT"].ToString(); } else { if (this._Type == "Upd") { this._Id = this.ViewState["ID"].ToString(); } else { if (this._Type == "View") { this._Id = this.ViewState["ID"].ToString(); if (this._Id != "" && this._Id != null) { this.GetMeasureInfoOfUpd(this._Id); } } } } } if (!string.IsNullOrEmpty(base.Request["pn"])) { this.parentName = base.Request["pn"]; } }
protected void Page_Load(object sender, EventArgs e) { base.Response.Cache.SetNoStore(); if (!this.Page.IsPostBack) { if (base.Request.QueryString["t"] == "2") { ConstructionLogModel model = ConstructionLog.GetModel(base.Request.QueryString["LogID"].ToString()); this.hdnRecordId.Value = base.Request.QueryString["LogID"].ToString(); this.txtcode.Text = model.code.ToString(); this.txtamweather.Text = model.amweather; this.txtoperations.Text = model.operations; this.txtthisDate.Text = model.thisDate.ToShortDateString(); DateTime thisDate = model.thisDate; int month = thisDate.Month; int year = thisDate.Year; int day = thisDate.Day; switch (ProjectManage_Construction_ConstructionLogAdd.getWeekDay(year, month, day)) { case 1: this.lbWeek.Text = "星期一"; break; case 2: this.lbWeek.Text = "星期二"; break; case 3: this.lbWeek.Text = "星期三"; break; case 4: this.lbWeek.Text = "星期四"; break; case 5: this.lbWeek.Text = "星期五"; break; case 6: this.lbWeek.Text = "星期六"; break; case 7: this.lbWeek.Text = "星期日"; break; } this.txtdaycontent.Text = model.daycontent; this.txtdesign.Text = model.design; this.txtacceptance.Text = model.acceptance; this.txtbeton.Text = model.beton; this.txtdatum.Text = model.datum; this.txtproduct.Text = model.product; this.txtremark.Text = model.remark; this.txtPart.Text = model.part; this.Literal1.Visible = false; this.FileLink1.MID = 1913; this.FileLink1.FID = this.hdnRecordId.Value; this.FileLink1.Type = 1; return; } if (base.Request.QueryString["t"] == "3") { ConstructionLogModel model2 = ConstructionLog.GetModel(base.Request.QueryString["LogID"].ToString()); this.txtcode.Text = model2.code.ToString(); this.txtamweather.Text = model2.amweather; this.txtoperations.Text = model2.operations; this.txtthisDate.Text = model2.thisDate.ToShortDateString(); DateTime thisDate2 = model2.thisDate; int month2 = thisDate2.Month; int year2 = thisDate2.Year; int day2 = thisDate2.Day; switch (ProjectManage_Construction_ConstructionLogAdd.getWeekDay(year2, month2, day2)) { case 1: this.lbWeek.Text = "星期一"; break; case 2: this.lbWeek.Text = "星期二"; break; case 3: this.lbWeek.Text = "星期三"; break; case 4: this.lbWeek.Text = "星期四"; break; case 5: this.lbWeek.Text = "星期五"; break; case 6: this.lbWeek.Text = "星期六"; break; case 7: this.lbWeek.Text = "星期日"; break; } this.txtdaycontent.Text = model2.daycontent; this.txtdesign.Text = model2.design; this.txtacceptance.Text = model2.acceptance; this.txtbeton.Text = model2.beton; this.txtdatum.Text = model2.datum; this.txtproduct.Text = model2.product; this.txtremark.Text = model2.remark; this.txtPart.Text = model2.part; this.txtcode.ReadOnly = true; this.txtamweather.ReadOnly = true; this.txtoperations.ReadOnly = true; this.txtthisDate.ReadOnly = true; this.txtdaycontent.ReadOnly = true; this.txtdesign.ReadOnly = true; this.txtacceptance.ReadOnly = true; this.txtbeton.ReadOnly = true; this.txtdatum.ReadOnly = true; this.txtproduct.ReadOnly = true; this.txtremark.ReadOnly = true; this.txtPart.ReadOnly = true; this.BtnAdd.Visible = false; this.FileLink1.MID = 1913; this.FileLink1.FID = model2.logID.ToString(); this.FileLink1.Type = 1; this.FileLink1.Visible = false; this.Literal1.Text = FileView.FilesBind(1913, model2.logID.ToString()); return; } this.hdnRecordId.Value = Convert.ToString(Guid.NewGuid()); this.txtthisDate.Text = DateTime.Today.ToShortDateString(); this.Literal1.Visible = false; this.FileLink1.MID = 1913; this.FileLink1.FID = this.hdnRecordId.Value; this.FileLink1.Type = 1; DateTime today = DateTime.Today; int month3 = today.Month; int year3 = today.Year; int day3 = today.Day; switch (ProjectManage_Construction_ConstructionLogAdd.getWeekDay(year3, month3, day3)) { case 1: this.lbWeek.Text = "星期一"; return; case 2: this.lbWeek.Text = "星期二"; return; case 3: this.lbWeek.Text = "星期三"; return; case 4: this.lbWeek.Text = "星期四"; return; case 5: this.lbWeek.Text = "星期五"; return; case 6: this.lbWeek.Text = "星期六"; return; case 7: this.lbWeek.Text = "星期日"; break; default: return; } } }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { if (base.Request.QueryString["Type"] != null) { this._Type = base.Request.QueryString["Type"].ToString(); } if (base.Request.QueryString["pc"] != null) { this._PrjCode = base.Request.QueryString["pc"].ToString(); } if (base.Request.QueryString["pn"] != null) { this._PrjName = base.Request.QueryString["pn"].ToString(); } this.ViewState["TYPE"] = this._Type; this.ViewState["PRJCODE"] = this._PrjCode; this.ViewState["PRJNAME"] = this._PrjName; if (this._Type == "Upd") { this._Id = base.Request.QueryString["Id"].ToString(); this.TxtId.Enabled = false; this.GetTechnologyOfUpd(this._Id); this.lb_change.Text = "编辑技术交底"; this.FileLink1.Type = 1; } else { if (this._Type == "Add") { this.FileLink1.Type = 2; this.TxtId.Text = TechnologyJDAction.GetMaxId().ToString(); this.TxtId.Enabled = false; this.TxtPrjName.Text = this._PrjName; this.DateFill.Text = DateTime.Now.ToString("yyyy-MM-dd"); this.DateTellTime.Text = DateTime.Now.ToString("yyyy-MM-dd"); this.HdnFill.Value = userManageDb.GetCurrentUserInfo().UserCode; this.TxtFillName.Text = userManageDb.GetCurrentUserInfo().UserName; this.HdnTell.Value = userManageDb.GetCurrentUserInfo().UserCode; this.TxtTellName.Value = userManageDb.GetCurrentUserInfo().UserName; this.HdnByTell.Value = userManageDb.GetCurrentUserInfo().UserCode; this.TxtByTellName.Text = userManageDb.GetCurrentUserInfo().UserName; this.ViewState["RecordId"] = TechnologyJDAction.GetMaxId().ToString(); this._RecordId = this.ViewState["RecordId"].ToString(); this._Id = this.TxtId.Text; this.lb_change.Text = "新增技术交底"; this.hdnTechGuid.Value = Guid.NewGuid().ToString(); } else { if (this._Type == "View") { if (base.Request.QueryString["Id"] != null) { this._Id = base.Request.QueryString["Id"].ToString(); } if (base.Request.QueryString["ic"] != null) { string guid = base.Request.QueryString["ic"].ToString(); DataTable modelByGuid = TechnologyJDAction.GetModelByGuid(guid); this._Id = modelByGuid.Rows[0]["MainId"].ToString(); } this.FileLink1.Type = 0; this.FileLink1.Visible = false; this.BtnSave.Visible = false; this.SetControl(); this.TxtId.Enabled = false; this.GetTechnologyOfUpd(this._Id); this.lb_change.Text = "查看技术交底"; this.BunClose.Value = "关 闭"; if (this.cbkmark.Checked) { this.DDTClass.Enabled = false; } this.Img1.Disabled = true; this.TxtTellName.Disabled = true; this.Literal1.Text = FileView.FilesBind(1728, this.hdnTechGuid.Value.Trim()); } } } this.ViewState["ID"] = this._Id; this.FileLink1.MID = 1728; this.FileLink1.FID = this.hdnTechGuid.Value.Trim(); } else { this._Type = this.ViewState["TYPE"].ToString(); this._PrjCode = this.ViewState["PRJCODE"].ToString(); if (this._Type == "Add") { this._PrjName = this.ViewState["PRJNAME"].ToString(); this._RecordId = this.ViewState["RecordId"].ToString(); } else { this._PrjName = this.ViewState["PRJNAME"].ToString(); this._Id = this.ViewState["ID"].ToString(); } } com.jwsoft.pm.entpm.PageHelper.BindDropDownTree(this.DDTClass, 20, true); }