private void DeleteObject(string p) { if (PublicDal.IsDelete(this.Page, "TB_PROJECT", "PD_PROJECT_CODE", p, "PD_PROJECT_SERVERPK")) { TB_PROJECT_Bll bll = new TB_PROJECT_Bll(); if (bll.ProjectIsBX(p)) { PageShowText.ShowMessage("项目状态为已选,无法删除,请先删除项目情况登记中的项目!", this.Page); } else { bll.Delete(p); if (this.Master.PageIndex > 1) { this.pageind = this.Master.PageIndex; } this.ShowData(this.Master.StrSelect); PageShowText.ShowMessage("删除成功!", this.Page); } } else { PageShowText.ShowMessage("单据已进入业务流程,需删除请追回单据后再进行删除。", this.Page); } }
private void ShowInfo(int AUTO_NO_GS) { this.ShowInfo_Project(base.Request["UpdatePK"].ToString()); PD_PROJECT_GKGS_Model model = new PD_PROJECT_GKGS_Bll().GetModel(AUTO_NO_GS); TB_PROJECT_Model model2 = new TB_PROJECT_Bll().GetModel(model.PD_PROJECT_CODE); this.lblGKGSAUTO_NO.Text = model.AUTO_NO.ToString(); this.lblAUTO_NO.Text = model.PD_PROJECT_CODE.ToString(); str_MXID = model.AUTO_NO.ToString(); this.txtPD_GS_ADDR.Value = model.PD_GS_ADDR.ToString(); this.txtPD_GS_DATE.Value = model.PD_GS_DATE.Value.ToString(); this.txtPD_GS_DATE_END.Value = model.PD_GS_DATE_END.Value.ToString(); this.txtPD_GS_STYLE.Value = model.PD_GS_STYLE.ToString(); this.txtPD_GS_TYPE.SelectedValue = model.PD_GS_TYPE.Value.ToString(); this.txtPD_GS_ZHUTI.Value = model.PD_GS_ZHUTI.ToString(); this.txtPD_GS_DETAIL.Value = model.PD_GS_DETAIL.ToString(); this.txtPD_PROJECT_CODE.Value = model2.PD_PROJECT_CODE.ToString(); this.txtPD_JB_TELEPHONE.Value = model2.PD_JB_TELEPHONE.ToString(); this.txtPD_PROJECT_BZDX.Text = model2.PD_PROJECT_BZDX.ToString(); try { this.txtPD_PROJECT_BZMONEY.Value = model2.PD_PROJECT_BZMONEY.Value.ToString(); this.txtPD_PROJECT_BZNUM.Value = model2.PD_PROJECT_BZNUM.Value.ToString(); } catch { this.txtPD_PROJECT_BZMONEY.Value = "0"; this.txtPD_PROJECT_BZNUM.Value = "0"; } this.txtPD_PROJECT_BZSTAND_NUM.Text = model2.PD_PROJECT_BZSTAND_NUM.ToString(); this.txtPD_PROJECT_FILENO_JG.Text = model2.PD_PROJECT_BZYJ.ToString(); this.txtPD_PROJECT_NAME.Text = model2.PD_PROJECT_NAME.ToString(); this.txtPD_YEAR.Value = model2.PD_YEAR.Value.ToString(); DataSet ds = new DataSet(); ds.Tables.Add(); ds.Tables[0].Columns.Add("AUTO_NO"); ds.Tables[0].Columns.Add("FILE_NAME"); ds.Tables[0].Columns.Add("FILE_SYSNAME"); if (((model != null) && (model.PD_GS_FILENAME_SYSTEM != null)) && (model.PD_GS_FILENAME_SYSTEM.Trim() != "")) { DataRow row = ds.Tables[0].NewRow(); row["AUTO_NO"] = model.AUTO_NO; row["FILE_NAME"] = model.PD_GS_FILENAME; row["FILE_SYSNAME"] = model.PD_GS_FILENAME_SYSTEM; ds.Tables[0].Rows.Add(row); } this.json_btData.Value = PublicDal.DataToJSON(ds); }
private void ShowInfo_Project(string PD_PROJECT_CODE) { TB_PROJECT_Model model = new TB_PROJECT_Bll().GetModel(PD_PROJECT_CODE); this.txtPD_PROJECT_CODE.Value = model.PD_PROJECT_CODE.ToString(); if (model.PD_JB_TELEPHONE != null) { this.txtPD_JB_TELEPHONE.Value = model.PD_JB_TELEPHONE.ToString(); } if (model.PD_PROJECT_BZDX != null) { this.txtPD_PROJECT_BZDX.Text = model.PD_PROJECT_BZDX.ToString(); } if (model.PD_PROJECT_BZMONEY.HasValue) { this.txtPD_PROJECT_BZMONEY.Value = model.PD_PROJECT_BZMONEY.Value.ToString(); } if (model.PD_PROJECT_BZNUM.HasValue) { this.txtPD_PROJECT_BZNUM.Value = model.PD_PROJECT_BZNUM.Value.ToString(); } if (model.PD_PROJECT_BZSTAND_NUM != null) { this.txtPD_PROJECT_BZSTAND_NUM.Text = model.PD_PROJECT_BZSTAND_NUM.ToString(); } if (model.PD_PROJECT_FILENO_JG != null) { this.txtPD_PROJECT_FILENO_JG.Text = model.PD_PROJECT_FILENO_JG.ToString(); } this.txtPD_PROJECT_NAME.Text = model.PD_PROJECT_NAME.ToString(); this.txtPD_YEAR.Value = model.PD_YEAR.Value.ToString(); string sQLString = ""; int num = 0; try { num = Convert.ToInt32(this.gvResult.DataKeys[Work_BZ_GKGS_BZGKGSMX.num].Value.ToString()); sQLString = string.Concat(new object[] { "select * from view_pd_project_gkgs where pd_project_code='", PD_PROJECT_CODE, "' and auto_no=", num }); } catch { sQLString = "select * from view_pd_project_gkgs where pd_project_code='" + PD_PROJECT_CODE + "'"; } DataSet set = DbHelperOra.Query(sQLString); if ((set != null) && (set.Tables[0].Rows.Count > 0)) { this.lblAUTO_NO.Text = set.Tables[0].Rows[0]["auto_no"].ToString(); this.lblGKGSAUTO_NO.Text = set.Tables[0].Rows[0]["auto_no"].ToString(); str_MXID = this.lblAUTO_NO.Text; this.txtPD_GS_TYPE.SelectedValue = set.Tables[0].Rows[0]["PD_GS_TYPE"].ToString(); this.txtPD_GS_STYLE.Value = set.Tables[0].Rows[0]["PD_GS_STYLE"].ToString(); this.txtPD_GS_ZHUTI.Value = set.Tables[0].Rows[0]["PD_GS_ZHUTI"].ToString(); this.txtPD_GS_DATE.Value = set.Tables[0].Rows[0]["PD_GS_DATE"].ToString(); this.txtPD_GS_DATE_END.Value = set.Tables[0].Rows[0]["PD_GS_DATE_END"].ToString(); this.txtPD_GS_ADDR.Value = set.Tables[0].Rows[0]["PD_GS_ADDR"].ToString(); this.txtPD_GS_DETAIL.Value = set.Tables[0].Rows[0]["PD_GS_DETAIL"].ToString(); DataSet ds = new DataSet(); ds.Tables.Add(); ds.Tables[0].Columns.Add("AUTO_NO"); ds.Tables[0].Columns.Add("FILE_NAME"); ds.Tables[0].Columns.Add("FILE_SYSNAME"); if (((set != null) && (set.Tables[0].Rows[0]["PD_GS_FILENAME"].ToString() != null)) && (set.Tables[0].Rows[0]["PD_GS_FILENAME_SYSTEM"].ToString().Trim() != "")) { DataRow row = ds.Tables[0].NewRow(); row["AUTO_NO"] = set.Tables[0].Rows[0]["AUTO_NO"].ToString(); row["FILE_NAME"] = set.Tables[0].Rows[0]["PD_GS_FILENAME"].ToString(); row["FILE_SYSNAME"] = set.Tables[0].Rows[0]["PD_GS_FILENAME_SYSTEM"].ToString(); ds.Tables[0].Rows.Add(row); } this.json_btData.Value = PublicDal.DataToJSON(ds); this.BindImg(); } }
private void ShowInfo(string PD_PROJECT_CODE) { TB_PROJECT_Model modelName = new TB_PROJECT_Bll().GetModelName(PD_PROJECT_CODE); this.lblPD_PROJECT_CODE.Text = modelName.PD_PROJECT_CODE; this.lblPD_PROJECT_NAME.Text = modelName.PD_PROJECT_NAME; this.lblPD_YEAR.Text = modelName.PD_YEAR.ToString(); this.lblPD_YEAR.Attributes.Add("Code", modelName.PD_YEAR.ToString()); this.lblPD_PROJECT_TYPE.Text = modelName.PD_PROJECT_TYPE_NAME; this.lblPD_YEAR.Attributes.Add("Code", modelName.PD_PROJECT_TYPE.ToString()); this.lblPD_GK_DEPART.Text = "dfd"; this.lblPD_YEAR.Attributes.Add("Code", modelName.PD_GK_DEPART_ID.ToString()); this.lblPD_FOUND_XZ.Text = modelName.PD_FOUND_XZ_Name; this.lblPD_PROJECT_MONEY_ADDR.Text = modelName.PD_PROJECT_MONEY_ADDR; this.lblPD_PROJECT_CONTENT.Text = modelName.PD_PROJECT_CONTENT; this.lblPD_PROJECT_XMYT.Text = modelName.PD_PROJECT_XMYT; this.lblPD_PROJECT_IFXZGL.Text = (modelName.PD_PROJECT_IFXZGL.ToString() == "1") ? "是" : "否"; this.lblPD_PROJECT_IFGS.Text = (modelName.PD_PROJECT_IFGS.ToString() == "1") ? "是" : "否"; this.lblPD_PROJECT_IFGS_BEFORE.Text = (modelName.PD_PROJECT_IFGS_BEFORE.ToString() == "1") ? "是" : "否"; this.lblPD_PROJECT_OPEN_BODY.Text = modelName.PD_PROJECT_OPEN_BODY; this.lblPD_PROJECT_FZR.Text = modelName.PD_PROJECT_FZR; this.lblPD_PROJECT_CWFZR.Text = modelName.PD_PROJECT_CWFZR; this.lblPD_PROJECT_SYRS.Text = modelName.PD_PROJECT_SYRS.ToString(); this.lblPD_PROJECT_STATUS.Text = modelName.PD_PROJECT_STATUS_Name; this.lblPD_PROJECT_STATUS.Attributes.Add("Code", modelName.PD_PROJECT_STATUS); this.lblPD_PROJECT_BEGIN_DATE.Text = modelName.PD_PROJECT_BEGIN_DATE.Value.ToShortDateString(); this.lblPD_PROJECT_END_DATE.Text = modelName.PD_PROJECT_END_DATE.Value.ToShortDateString(); this.lblPD_PROJECT_YEARS.Text = modelName.PD_PROJECT_YEARS.ToString() + "月"; this.lblPD_PROJECT_FILENO_JG.Text = modelName.PD_PROJECT_FILENO_JG; this.lblPD_PROJECT_INPUT_COMPANY.Text = modelName.PD_PROJECT_INPUT_COMPANY_Name; this.lblPD_PROJECT_INPUT_MAN.Text = modelName.PD_PROJECT_INPUT_MAN; this.lblPD_PROJECT_INPUT_DATE.Text = modelName.PD_PROJECT_INPUT_DATE; this.lblPD_PROJECT_REPLY_COMPANY.Text = modelName.PD_PROJECT_REPLY_COMPANY_Name; this.lblPD_PROJECT_REPLY_MAN2.Text = modelName.PD_PROJECT_REPLY_MAN2; this.lblPD_PROJECT_REPLY_DATE.Text = modelName.PD_PROJECT_REPLY_DATE; this.lblPD_PROJECT_COUNTRY.Text = modelName.PD_PROJECT_COUNTRY_Name; this.lblPD_PROJECT_COUNTRY.Attributes.Add("Code", modelName.PD_PROJECT_COUNTRY); this.lblPD_PROJECT_ZJLY.Text = modelName.PD_PROJECT_ZJLY; this.lblPD_PROJECT_ZGKJ.Text = modelName.PD_PROJECT_ZGKJ; this.lblPD_PROJECT_REPLY_COMPANY.Text = modelName.PD_PROJECT_REPLY_COMPANY_Name; this.lblPD_PROJECT_FILENO_PF.Text = modelName.PD_PROJECT_FILENO_PF.ToString(); }
private void ShowInfo(string PD_PROJECT_CODE) { TB_PROJECT_Model modelName = new TB_PROJECT_Bll().GetModelName(PD_PROJECT_CODE); this.lblPD_PROJECT_CODE.Text = modelName.PD_PROJECT_CODE; this.lblPD_PROJECT_NAME.Text = modelName.PD_PROJECT_NAME; this.lblPD_YEAR.Text = modelName.PD_YEAR.ToString(); this.lblPD_YEAR.Attributes.Add("Code", modelName.PD_YEAR.ToString()); this.lblPD_PROJECT_TYPE.Text = modelName.PD_PROJECT_TYPE_NAME; this.lblPD_YEAR.Attributes.Add("Code", modelName.PD_PROJECT_TYPE.ToString()); this.lblPD_GK_DEPART.Text = "dfd"; this.lblPD_YEAR.Attributes.Add("Code", modelName.PD_GK_DEPART_ID.ToString()); this.lblPD_FOUND_XZ.Text = modelName.PD_FOUND_XZ_Name; this.lblPD_PROJECT_MONEY_ADDR.Text = modelName.PD_PROJECT_MONEY_ADDR; this.lblPD_PROJECT_CONTENT.Text = modelName.PD_PROJECT_CONTENT; this.lblPD_PROJECT_XMYT.Text = modelName.PD_PROJECT_XMYT; this.lblPD_PROJECT_IFXZGL.Text = (modelName.PD_PROJECT_IFXZGL.ToString() == "1") ? "是" : "否"; this.lblPD_PROJECT_IFGS.Text = (modelName.PD_PROJECT_IFGS.ToString() == "1") ? "是" : "否"; this.lblPD_PROJECT_IFGS_BEFORE.Text = (modelName.PD_PROJECT_IFGS_BEFORE.ToString() == "1") ? "是" : "否"; this.lblPD_PROJECT_OPEN_BODY.Text = modelName.PD_PROJECT_OPEN_BODY; this.lblPD_PROJECT_FZR.Text = modelName.PD_PROJECT_FZR; this.lblPD_PROJECT_CWFZR.Text = modelName.PD_PROJECT_CWFZR; this.lblPD_PROJECT_SYRS.Text = modelName.PD_PROJECT_SYRS.ToString(); this.lblPD_PROJECT_STATUS.Text = modelName.PD_PROJECT_STATUS_Name; this.lblPD_PROJECT_STATUS.Attributes.Add("Code", modelName.PD_PROJECT_STATUS); this.lblPD_PROJECT_BEGIN_DATE.Text = modelName.PD_PROJECT_BEGIN_DATE.Value.ToShortDateString(); this.lblPD_PROJECT_END_DATE.Text = modelName.PD_PROJECT_END_DATE.Value.ToShortDateString(); this.lblPD_PROJECT_YEARS.Text = modelName.PD_PROJECT_YEARS.ToString() + "月"; this.lblPD_PROJECT_FILENO_JG.Text = modelName.PD_PROJECT_FILENO_JG; this.lblPD_PROJECT_INPUT_COMPANY.Text = modelName.PD_PROJECT_INPUT_COMPANY_Name; this.lblPD_PROJECT_INPUT_MAN.Text = modelName.PD_PROJECT_INPUT_MAN; this.lblPD_PROJECT_INPUT_DATE.Text = modelName.PD_PROJECT_INPUT_DATE; this.lblPD_PROJECT_REPLY_COMPANY.Text = modelName.PD_PROJECT_REPLY_COMPANY_Name; this.lblPD_PROJECT_REPLY_MAN2.Text = modelName.PD_PROJECT_REPLY_MAN2; this.lblPD_PROJECT_REPLY_DATE.Text = modelName.PD_PROJECT_REPLY_DATE; this.lblPD_PROJECT_COUNTRY.Text = modelName.PD_PROJECT_COUNTRY_Name; this.lblPD_PROJECT_COUNTRY.Attributes.Add("Code", modelName.PD_PROJECT_COUNTRY); this.lblPD_PROJECT_REPLY_COMPANY.Text = modelName.PD_PROJECT_REPLY_COMPANY_Name; this.lblPD_PROJECT_FILENO_PF.Text = modelName.PD_PROJECT_FILENO_PF.ToString(); this.PD_PROJECT_JGJL.Text = modelName.PD_PROJECT_JGJL; this.PD_PROJECT_JG_RESULT.Text = modelName.PD_PROJECT_JG_RESULT; this.PD_PROJECT_JG_SUGGEST.Text = modelName.PD_PROJECT_JG_SUGGEST; this.lblPD_PROJECT_ZJLY.Text = modelName.PD_PROJECT_ZJLY; this.lblPD_PROJECT_ZGKJ.Text = modelName.PD_PROJECT_ZGKJ; PD_PROJECT_ZTB_Model modelPROJECT = new PD_PROJECT_ZTB_Bll().GetModelPROJECT(PD_PROJECT_CODE); if (modelPROJECT != null) { this.ddlPD_PROJECT_ZTB_IF_SSFA.SelectedValue = modelPROJECT.PD_PROJECT_ZTB_IF_SSFA.ToString(); this.ddlPD_PROJECT_ZTB_IF_ZTB.SelectedValue = modelPROJECT.PD_PROJECT_ZTB_IF_ZTB.ToString(); this.ddlPD_PROJECT_ZTB_STYLE.SelectedValue = modelPROJECT.PD_PROJECT_ZTB_STYLE; this.ddlPD_PROJECT_ISCONTRACT.SelectedValue = modelPROJECT.PD_PROJECT_ISCONTRACT; this.txtPD_PROJECT_XXJD.Text = modelPROJECT.PD_PROJECT_XXJD; this.txtPD_PROJECT_FCXMGCL.Text = modelPROJECT.PD_PROJECT_FCXMGCL; this.txtPD_PROJECT_GCZLQK.Text = modelPROJECT.PD_PROJECT_GCZLQK; } }
private void ShowInfo(int AUTO_NO_XC) { this.Session["PrintId"] = AUTO_NO_XC.ToString(); PD_PROJECT_INSPECTION_Model model = new PD_PROJECT_INSPECTION_Bll().GetModel(AUTO_NO_XC); if (model != null) { TB_PROJECT_Model model2 = new TB_PROJECT_Bll().GetModel(model.PD_PROJECT_CODE); this.lblAUTO_NO.Text = model.AUTO_NO.ToString(); str_MXID = this.lblAUTO_NO.Text; this.txtPD_PROJECT_CODE.Value = model.PD_PROJECT_CODE; this.txtPD_PROJECT_Name.Value = model2.PD_PROJECT_NAME; this.txtPD_INSPECTION_PROCESS.SelectedValue = model.PD_INSPECTION_PROCESS; this.txtPD_INSPECTION_DATE.Value = model.PD_INSPECTION_DATE.ToString(); this.txtPD_INSPECTION_MANS.Text = model.PD_INSPECTION_MANS; this.txtPD_INSPECTION_ADDR.Text = model.PD_INSPECTION_ADDR; this.txtPD_INSPECTION_CONTENT.Text = model.PD_INSPECTION_CONTENT; this.txtPD_INSPECTION_SUGGEST.Text = model.PD_INSPECTION_SUGGEST; this.txtPD_INSPECTION_CONCLUSION.Text = model.PD_INSPECTION_CONCLUSION; this.txtPD_INSPECTION_PEASANT.Text = model.PD_INSPECTION_PEASANT; this.txtPD_INSPECTION_IDNO.Text = model.PD_INSPECTION_IDNO; this.txtPD_INSPECTION_FFNUM.Text = model.PD_INSPECTION_FFNUM.ToString(); this.txtPD_INSPECTION_FFSTAND.Text = Convert.ToDecimal(!model.PD_INSPECTION_FFSTAND.HasValue ? 0 : model.PD_INSPECTION_FFSTAND).ToString("F2"); this.txtPD_INSPECTION_FFMONEY.Text = Convert.ToDecimal(!model.PD_INSPECTION_FFMONEY.HasValue ? 0 : model.PD_INSPECTION_FFMONEY).ToString("F2"); this.txtPD_INSPECTION_ACCOUNTNO.Text = model.PD_INSPECTION_ACCOUNTNO; this.txtPD_INSPECTION_PEASANT_ADDR.Text = model.PD_INSPECTION_PEASANT_ADDR; this.txtPD_MONITOR_TOTAL_MONEY_PAY.Text = model.PD_MONITOR_TOTAL_MONEY_PAY.Value.ToString(); if (model.PD_BZFFLIST_DATE.HasValue) { this.txtPD_DB_LOOP.Text = model.PD_DB_LOOP; } this.ddlPD_YEAR.SelectedValue = model.PD_YEAR; DataSet ds = new DataSet(); ds.Tables.Add(); ds.Tables[0].Columns.Add("AUTO_NO"); ds.Tables[0].Columns.Add("FILE_NAME"); ds.Tables[0].Columns.Add("FILE_SYSNAME"); if (((model != null) && (model.PD_INSPECTION_FILENAME_SYSTEM != null)) && (model.PD_INSPECTION_FILENAME_SYSTEM.Trim() != "")) { DataRow row = ds.Tables[0].NewRow(); row["AUTO_NO"] = model.AUTO_NO; row["FILE_NAME"] = model.PD_INSPECTION_FILENAME; row["FILE_SYSNAME"] = model.PD_INSPECTION_FILENAME_SYSTEM; ds.Tables[0].Rows.Add(row); } this.json_btData.Value = PublicDal.DataToJSON(ds); this.BindImg(); } }
private void ShowInfo(int AUTO_NO, int AUTO_NO_BG) { decimal iD = -1M; if (AUTO_NO_BG != -1) { PD_CONTRACT_CHANGE_Model model = new PD_CONTRACT_CHANGE_Bll().GetModel(AUTO_NO_BG); if (model == null) { return; } iD = model.CONTR_CHANGE_MIAN_ID; if (model.PD_CONTRACT_CHANGE_DATE.HasValue) { this.txtPD_CONTRACT_CHANGE_DATE.Value = model.PD_CONTRACT_CHANGE_DATE.Value.ToString("yyyy/MM/dd"); } if (model.PD_CONTRACT_CHANGE_TYPE == null) { this.txtPD_CONTRACT_CHANGE_TYPE.SelectedIndex = 0; } else { this.txtPD_CONTRACT_CHANGE_TYPE.SelectedValue = model.PD_CONTRACT_CHANGE_TYPE; } this.txtPD_CONTRACT_CHANGE_REASON.Value = model.PD_CONTRACT_CHANGE_REASON; this.txtPD_CONTRACT_TYPE.SelectedValue = model.PD_CONTRACT_TYPE; this.txtPD_CONTRACT_NO.Value = model.PD_CONTRACT_NO; this.txtPD_CONTRACT_CHANGE_WH.Value = model.PD_CONTRACT_CHANGE_WH.ToString(); if (model.PD_YEAR != "") { this.ddlPD_YEAR.SelectedValue = model.PD_YEAR.ToString(); } DataSet ds = new DataSet(); ds.Tables.Add(); ds.Tables[0].Columns.Add("AUTO_NO"); ds.Tables[0].Columns.Add("FILE_NAME"); ds.Tables[0].Columns.Add("FILE_SYSNAME"); if (((model != null) && (model.PD_CONTRACT_FILENAME_SYSTEM_SQ != null)) && (model.PD_CONTRACT_FILENAME_SYSTEM_SQ.Trim() != "")) { DataRow row = ds.Tables[0].NewRow(); row["AUTO_NO"] = model.AUTO_NO; row["FILE_NAME"] = model.PD_CONTRACT_CHANGE_FILENAME_SQ; row["FILE_SYSNAME"] = model.PD_CONTRACT_FILENAME_SYSTEM_SQ; ds.Tables[0].Rows.Add(row); } this.json_btData2.Value = base.Server.UrlEncode(PublicDal.DataToJSON(ds)); } PD_PROJECT_CONTRACT_BAK_Model model2 = new PD_PROJECT_CONTRACT_BAK_Bll().GetModel(iD); TB_PROJECT_Bll bll3 = new TB_PROJECT_Bll(); if (model2 != null) { TB_PROJECT_Model model3 = bll3.GetModel(model2.PD_PROJECT_CODE); this.txtPD_PROJECT_Name.Value = model3.PD_PROJECT_NAME; this.lblAUTO_NO.Text = model2.ID.ToString("0"); this.txtPD_PROJECT_CODE.Value = model2.PD_PROJECT_CODE; this.txtPD_CONTRACT_TYPE.SelectedValue = model2.PD_CONTRACT_TYPE; this.txtPD_CONTRACT_NO.Value = model2.PD_CONTRACT_NO; this.txtPD_CONTRACT_DATE.Value = model2.PD_CONTRACT_DATE.ToString(); this.txtPD_CONTRACT_COMPANY.Text = model2.PD_CONTRACT_COMPANY; this.txtPD_CONTRACT_MOENY.Value = model2.PD_CONTRACT_MOENY.ToString(); this.txtPD_CONTRACT_ASK_LIMIT.Text = model2.PD_CONTRACT_ASK_LIMIT; this.txtPD_CONTRACT_ASK_PROCEED.Value = model2.PD_CONTRACT_ASK_PROCEED; this.txtPD_CONTRACT_ASK_PAYMENT.Text = model2.PD_CONTRACT_ASK_PAYMENT; this.txtPD_CONTRACT_NOTE.Text = model2.PD_CONTRACT_NOTE; this.txtPD_CONTRACT_NAME.Text = model2.PD_CONTRACT_NAME; this.txtPD_CONTRACT_TYPE.SelectedValue = model2.PD_CONTRACT_TYPE; if (model2.PD_YEAR.HasValue) { this.ddlPD_YEAR.SelectedValue = model2.PD_YEAR.Value.ToString(); } DataSet set2 = new DataSet(); set2.Tables.Add(); set2.Tables[0].Columns.Add("AUTO_NO"); set2.Tables[0].Columns.Add("FILE_NAME"); set2.Tables[0].Columns.Add("FILE_SYSNAME"); if (((model2 != null) && (model2.PD_CONTRACT_FILENAME_SYSTEM != null)) && (model2.PD_CONTRACT_FILENAME_SYSTEM.Trim() != "")) { DataRow row2 = set2.Tables[0].NewRow(); row2["AUTO_NO"] = model2.ID; row2["FILE_NAME"] = model2.PD_CONTRACT_FILENAME; row2["FILE_SYSNAME"] = model2.PD_CONTRACT_FILENAME_SYSTEM; set2.Tables[0].Rows.Add(row2); } this.json_btData.Value = base.Server.UrlEncode(PublicDal.DataToJSON(set2)); } }
private void CreateData() { TB_PROJECT_Model model = this.GetModel(new TB_PROJECT_Model()); model.PD_PROJECT_CODE = DateTime.Now.ToString("yyyyMMddhhmmssffffff"); TB_PROJECT_Bll bll = new TB_PROJECT_Bll(); bll.Add(model); bll.UpdateServerPK("TB_PROJECT", "PD_PROJECT_CODE", model.PD_PROJECT_CODE, PublicDal.SetCreateServiceStream(this.Page), "PD_PROJECT_SERVERPK"); PD_PROJECT_ATTACH_SB_Bll bll2 = new PD_PROJECT_ATTACH_SB_Bll(); List<PD_PROJECT_ATTACH_SB_Model> modelList = this.GetAttach_SBModel(model.PD_PROJECT_CODE); bll2.AddList(modelList); PD_PROJECT_TZJGC_Bll bll3 = new PD_PROJECT_TZJGC_Bll(); List<PD_PROJECT_TZJGC_Model> listModel = this.getTZJGCModel(model.PD_PROJECT_CODE); bll3.Add(listModel); Const.DoSuccessNoClose("添加成功", this.Page.Request.Url.LocalPath + "?UpdatePK=" + model.PD_PROJECT_CODE, this.Page); }
private void ShowInfo(string PD_PROJECT_CODE) { TB_PROJECT_Model model = new TB_PROJECT_Bll().GetModel(PD_PROJECT_CODE); this.txtPD_PROJECT_CODE.Enabled = false; this.txtPD_PROJECT_NAME.Enabled = false; this.txtPD_PROJECT_CODE.Text = model.PD_PROJECT_CODE; this.txtPD_PROJECT_NAME.Text = model.PD_PROJECT_NAME; this.ddlPD_YEAR.SelectedValue = model.PD_YEAR.ToString(); this.ddlPD_PROJECT_TYPE.SelectedValue = model.PD_PROJECT_TYPE; this.ddlPD_FOUND_XZ.SelectedValue = model.PD_FOUND_XZ; this.ddlPD_PROJECT_COUNTRY.Text = model.PD_PROJECT_COUNTRY; this.ddlPD_PROJECT_VILLAGE.Value = model.PD_PROJECT_VILLAGE; this.ddlPD_PROJECT_GROUP.Value = model.PD_PROJECT_GROUP; this.txtPD_PROJECT_CONTENT.Text = model.PD_PROJECT_CONTENT; this.txtPD_PROJECT_XMYT.Text = model.PD_PROJECT_XMYT; this.ddlPD_PROJECT_IFXZGL.SelectedValue = model.PD_PROJECT_IFXZGL.ToString(); this.txtPD_PROJECT_SYRS.Text = model.PD_PROJECT_SYRS.ToString(); this.txtPD_PROJECT_FILENO_LX.Text = model.PD_PROJECT_FILENO_LX; this.ShowPD_PROJECT_INPUT_COMPANY.Text = model.ShowPD_PROJECT_INPUT_COMPANY; this.ShowPD_PROJECT_INPUT_MAN.Text = model.ShowPD_PROJECT_INPUT_MAN; this.txtPD_PROJECT_INPUT_COMPANY.Text = model.PD_PROJECT_INPUT_COMPANY; this.txtPD_PROJECT_INPUT_MAN.Text = model.PD_PROJECT_INPUT_MAN; this.txtPD_PROJECT_INPUT_DATE.Text = model.PD_PROJECT_INPUT_DATE; this.ddlPD_PROJECT_COUNTRY.Text = model.PD_PROJECT_COUNTRY; this.txtPD_PROJECT_MONEY_TOTAL.Text = model.PD_PROJECT_MONEY_TOTAL.ToString(); this.txtPD_PROJECT_MONEY_CZ_SJ.Value = model.PD_PROJECT_MONEY_CZ_SJ.ToString(); this.txtPD_PROJECT_MONEY_CZ_BJ.Value = model.PD_PROJECT_MONEY_CZ_BJ.ToString(); this.txtPD_PROJECT_MONEY_ZC.Value = model.PD_PROJECT_MONEY_ZC.ToString(); this.txtPD_PROJECT_MONEY_QT.Value = model.PD_PROJECT_MONEY_QT.ToString(); this.txtPD_PROJECT_SSFW.Text = model.PD_PROJECT_SSFW; this.pd_project_cm.Text = model.Free2; }
public static string SetServiceStream(Page pages, int operation, string tableName, string IdName, string IdValue, string Mess, string PD_NOW_SERVERPK_NAME) { UserModel model = new UserDal(); DB_OPT dbo = new DB_OPT(); string newServerPK = ""; TB_PROJECT_Bll bll = new TB_PROJECT_Bll(); string str3 = pages.Request.Url.ToString(); int startIndex = str3.LastIndexOf("/") + 1; int num2 = str3.LastIndexOf("?"); string path = (num2 < 0) ? str3.Substring(startIndex) : str3.Substring(startIndex, num2 - startIndex); UserModel model2 = (UserModel) pages.Session["User"]; string userName = model2.UserName; string userCompany = pages.Session["pk_corp"].ToString(); string bH = model2.Branch.BH; string userDate = DateTime.Now.ToString("yyyy-MM-dd"); string serverPK = bll.GetServerPK(tableName, IdName, IdValue, PD_NOW_SERVERPK_NAME); model.SetServiceStream(path, IdValue, userName, userCompany, bH, userDate, serverPK, operation, out newServerPK, dbo); if (bll.UpdateServerPK(tableName, IdName, IdValue, newServerPK, PD_NOW_SERVERPK_NAME)) { if (Mess != null) { PageShowText.Refurbish(Mess + "成功", pages); } return newServerPK; } if (Mess != null) { PageShowText.Refurbish(Mess + "失败", pages); } return newServerPK; }
public static string ShowMxButton(Page page, out ButtonsModel main_bm, string tableName, string IdName, string IdValue, string PD_NOW_SERVERPK_NAME) { if (HttpContext.Current.Session["User"] == null) { PageShowText.GoLoginPath_List(page); main_bm = null; return null; } string userName = ((UserModel) HttpContext.Current.Session["User"]).UserName; main_bm = new ButtonsModel(userName); string mainServerPK = ""; if ((IdValue != null) && (IdValue.Trim() != "")) { mainServerPK = new TB_PROJECT_Bll().GetServerPK(tableName, IdName, IdValue, PD_NOW_SERVERPK_NAME); } else { main_bm.IfSave = true; return "新建"; } string str3 = page.Request.Url.ToString(); int startIndex = str3.LastIndexOf("/") + 1; int num2 = str3.LastIndexOf("?"); string path = (num2 < 0) ? str3.Substring(startIndex) : str3.Substring(startIndex, num2 - startIndex); UserModel model = new UserDal(); DB_OPT dbo = new DB_OPT(); string showButtonID = ""; string buttonShowTxt = ""; string str7 = ""; string str8 = ""; model.GetServiceStream(path, userName, mainServerPK, out showButtonID, out buttonShowTxt, out str7, out str8, dbo); string str9 = showButtonID.Trim(); if (str9 != null) { if (!(str9 == "ibtcontrol_ibtaudit")) { if (str9 == "ibtcontrol_ibtapply") { main_bm.IfApply = true; if (buttonShowTxt != "") { main_bm.IbtApplyText = buttonShowTxt; } } } else { main_bm.IfAudit = true; if (buttonShowTxt != "") { main_bm.IbtAuditText = buttonShowTxt; } } } if (str8.Trim() != null) { string[] strArray = str8.Split(new char[] { '_' }); if ((strArray.Length == 2) && (int.Parse(strArray[0]) == 1)) { main_bm.IfSave = true; } } if (str7 != null) { string[] strArray2 = str7.Split(new char[] { '_' }); if (strArray2.Length != 2) { return buttonShowTxt; } if (int.Parse(strArray2[0]) == 1) { main_bm.IfSetBack = true; } if (int.Parse(strArray2[1]) == 1) { main_bm.IfRollBack = true; } } return buttonShowTxt; }
private void ShowInfo(string PD_PROJECT_CODE) { TB_PROJECT_Model model = new TB_PROJECT_Bll().GetModel(PD_PROJECT_CODE); this.txtPD_PROJECT_CODE.Enabled = false; this.txtPD_PROJECT_NAME.Enabled = false; this.imgSearch.Attributes.Remove("onclick"); this.txtPD_PROJECT_NAME.Attributes.Remove("QiPao"); this.txtPD_PROJECT_CODE.Text = model.PD_PROJECT_CODE; this.txtPD_PROJECT_NAME.Text = model.PD_PROJECT_NAME; this.ddlPD_YEAR.SelectedValue = model.PD_YEAR.ToString(); this.ddlPD_PROJECT_TYPE.SelectedValue = model.PD_PROJECT_TYPE; this.ddlPD_FOUND_XZ.SelectedValue = model.PD_FOUND_XZ; this.ddlPD_PROJECT_COUNTRY.Text = model.PD_PROJECT_COUNTRY; this.ddlPD_PROJECT_VILLAGE.Value = model.PD_PROJECT_VILLAGE; this.ddlPD_PROJECT_GROUP.Value = model.PD_PROJECT_GROUP; this.txtPD_PROJECT_CONTENT.Text = model.PD_PROJECT_CONTENT; this.txtPD_PROJECT_XMYT.Text = model.PD_PROJECT_XMYT; this.ddlPD_PROJECT_IFXZGL.SelectedValue = model.PD_PROJECT_IFXZGL.ToString(); this.ddlPD_PROJECT_IFGS.SelectedValue = model.PD_PROJECT_IFGS.ToString(); this.ddlPD_PROJECT_IFGS_BEFORE.SelectedValue = model.PD_PROJECT_IFGS_BEFORE.ToString(); this.txtPD_PROJECT_OPEN_BODY.Text = model.PD_PROJECT_OPEN_BODY; this.txtPD_PROJECT_FZR.Text = model.PD_PROJECT_FZR; this.txtPD_PROJECT_CWFZR.Text = model.PD_PROJECT_CWFZR; this.txtPD_PROJECT_SYRS.Text = model.PD_PROJECT_SYRS.ToString(); this.ddlPD_PROJECT_STATUS.SelectedValue = model.PD_PROJECT_STATUS; this.txtPD_PROJECT_BEGIN_DATE.Text = model.PD_PROJECT_BEGIN_DATE.ToString(); this.txtPD_PROJECT_END_DATE.Text = model.PD_PROJECT_END_DATE.ToString(); this.txtPD_PROJECT_YEARS.Text = model.PD_PROJECT_YEARS.ToString(); this.txtPD_PROJECT_FILENO_LX.Text = model.PD_PROJECT_FILENO_LX; this.ShowPD_PROJECT_INPUT_COMPANY.Text = model.ShowPD_PROJECT_INPUT_COMPANY; this.ShowPD_PROJECT_INPUT_MAN.Text = model.ShowPD_PROJECT_INPUT_MAN; this.txtPD_PROJECT_INPUT_COMPANY.Text = model.PD_PROJECT_INPUT_COMPANY; this.txtPD_PROJECT_INPUT_MAN.Text = model.PD_PROJECT_INPUT_MAN; this.txtPD_PROJECT_INPUT_DATE.Text = model.PD_PROJECT_INPUT_DATE; this.ddlPD_PROJECT_COUNTRY.Text = model.PD_PROJECT_COUNTRY; this.txtPD_PROJECT_MONEY_TOTAL.Text = model.PD_PROJECT_MONEY_TOTAL.ToString(); this.txtPD_PROJECT_MONEY_CZ_TOTAL.Text = model.PD_PROJECT_MONEY_CZ_TOTAL.ToString(); this.txtPD_PROJECT_MONEY_CZ_SJ.Value = model.PD_PROJECT_MONEY_CZ_SJ.ToString(); this.txtPD_PROJECT_MONEY_CZ_BJ.Value = model.PD_PROJECT_MONEY_CZ_BJ.ToString(); this.txtPD_PROJECT_MONEY_ZC.Value = model.PD_PROJECT_MONEY_ZC.ToString(); this.txtPD_PROJECT_MONEY_QT.Value = model.PD_PROJECT_MONEY_QT.ToString(); this.lblPD_PROJECT_FILENO_PF.Value = model.PD_PROJECT_FILENO_PF; this.txtPD_PROJECT_FILENO_PF.Value = model.PD_PROJECT_FILENO_PF_CODE; this.txtPD_PROJECT_SSFW.Text = model.PD_PROJECT_SSFW; this.HdFree1.Value = model.Free1; this.pd_project_cm.Text = model.Free2; this.FREE8.Text = model.Free8.ToString(); decimal num = new PD_FOUND_OUT_Bll().getLJMoney(model.PD_PROJECT_CODE, -1L); if (model.Free8 != 0M) { this.pd_project_jsje.Text = (((num / model.Free8) * 100M)).ToString("0.00") + "%"; } else { this.pd_project_jsje.Text = "0%"; } PD_PROJECT_ZTB_Model modelPROJECT = new PD_PROJECT_ZTB_Bll().GetModelPROJECT(PD_PROJECT_CODE); if (modelPROJECT != null) { this.ddlPD_PROJECT_ZTB_IF_SSFA.SelectedValue = modelPROJECT.PD_PROJECT_ZTB_IF_SSFA.ToString();//黄文华加tostring() this.ddlPD_PROJECT_ZTB_IF_ZTB.SelectedValue = modelPROJECT.PD_PROJECT_ZTB_IF_ZTB.ToString();//黄文华加tostring() this.ddlPD_PROJECT_ZTB_STYLE.SelectedValue = modelPROJECT.PD_PROJECT_ZTB_STYLE; this.ddlPD_PROJECT_ISCONTRACT.SelectedValue = modelPROJECT.PD_PROJECT_ISCONTRACT; this.txtPD_PROJECT_XXJD.Text = modelPROJECT.PD_PROJECT_XXJD; this.txtPD_PROJECT_FCXMGCL.Text = modelPROJECT.PD_PROJECT_FCXMGCL; this.txtPD_PROJECT_GCZLQK.Text = modelPROJECT.PD_PROJECT_GCZLQK; } this.BindImg(); PD_PROJECT_JGYS_Model modelByProCode = new PD_PROJECT_JGYS_Bll().GetModelByProCode(PD_PROJECT_CODE); if (modelByProCode != null) { if (PublicDal.PageValidate.IsDateTime(modelByProCode.PD_PROJECT_COMPLETE_DATE)) { this.txtPD_PROJECT_COMPLETE_DATE.Value = modelByProCode.PD_PROJECT_COMPLETE_DATE.ToString(); } if (PublicDal.PageValidate.IsDateTime(modelByProCode.PD_PROJECT_YSSQ_DATE)) { this.txtPD_PROJECT_YSSQ_DATE.Value = modelByProCode.PD_PROJECT_YSSQ_DATE.Value.ToShortDateString(); } if (PublicDal.PageValidate.IsDateTime(modelByProCode.PD_PROJECT_YS_DATE)) { this.txtPD_PROJECT_YS_DATE.Value = modelByProCode.PD_PROJECT_YS_DATE.Value.ToShortDateString(); } this.ddlPD_PROJECT_YS_COMPANY.SelectedValue = modelByProCode.PD_PROJECT_YS_COMPANY; this.txtPD_PROJECT_YS_ZRR.Text = modelByProCode.PD_PROJECT_YS_ZRR; this.txtPD_PROJECT_YS_NAME.Text = modelByProCode.PD_PROJECT_YS_NAME; this.txtPD_PROJECT_YS_SUGGEST.Text = modelByProCode.PD_PROJECT_YS_SUGGEST; this.ddlPD_PROJECT_YS_RESULT.SelectedValue = modelByProCode.PD_PROJECT_YS_RESULT; this.txtPD_PROJECT_YS_CONDITION.Text = modelByProCode.PD_PROJECT_YS_CONDITION; } PD_PROJECT_APPRAISE_Model modelByProjectCode = new PD_PROJECT_APPRAISE_Bll().GetModelByProjectCode(PD_PROJECT_CODE); if (modelByProjectCode != null) { this.txtAUTO_NO_APPRAISE.Text = modelByProjectCode.AUTO_NO.ToString(); if (PublicDal.PageValidate.IsDateTime(modelByProjectCode.PD_PROJECT_APP_DATE)) { this.txtPD_PROJECT_APP_DATE.Value = modelByProjectCode.PD_PROJECT_APP_DATE.Value.ToShortDateString(); } this.txtPD_PROJECT_APP_COMPANY.Text = modelByProjectCode.PD_PROJECT_APP_COMPANY; this.txtPD_PROJECT_APP_COMPANY_LIST.Text = modelByProjectCode.PD_PROJECT_APP_COMPANY_LIST; this.txtPD_PROJECT_APP_MAN_LIST.Text = modelByProjectCode.PD_PROJECT_APP_MAN_LIST; this.txtPD_PROJECT_APPRAISE_FILENO.Text = modelByProjectCode.PD_PROJECT_APPRAISE_FILENO.ToString(); } if (this.ddlPD_PROJECT_STATUS.SelectedValue.Trim() == "05") { DataSet ds = DbHelperOra.Query("select * from view_pd_project_gkgs where PD_Project_Code = '" + PD_PROJECT_CODE + "' order by pd_project_code,auto_no desc "); if ((ds != null) && (ds.Tables[0].Rows.Count > 0)) { this.gvResult_gkgs.DataSource = ds.Tables[0]; this.gvResult_gkgs.DataBind(); } else { DataTable table = new DataTable(); table = ds.Tables[0]; DataRow row = table.NewRow(); table.Rows.Add(row); this.gvResult_gkgs.DataSource = table.DefaultView; this.gvResult_gkgs.DataBind(); } ds = DbHelperOra.Query("select * from view_inspection_list where PD_Project_Code = '" + PD_PROJECT_CODE + "' order by pd_project_code,auto_no desc "); if ((ds != null) && (ds.Tables[0].Rows.Count > 0)) { DataView defaultView = ds.Tables[0].DefaultView; if ((this.ViewState["SortOrder"] != null) && (this.ViewState["OrderDire"] != null)) { string str2 = ((string)this.ViewState["SortOrder"]) + " " + ((string)this.ViewState["OrderDire"]); defaultView.Sort = str2; } this.gvResult_xmxc.DataSource = defaultView; this.gvResult_xmxc.DataBind(); } else { DataTable table2 = new DataTable(); table2 = ds.Tables[0]; DataRow row2 = table2.NewRow(); table2.Rows.Add(row2); this.gvResult_xmxc.DataSource = table2.DefaultView; this.gvResult_xmxc.DataBind(); } ds = DbHelperOra.Query("select * from view_contract_change_list where pd_project_code='" + PD_PROJECT_CODE + "' order by auto_no "); if ((ds != null) && (ds.Tables[0].Rows.Count > 0)) { this.gvResult_HeTong.DataSource = ds; this.gvResult_HeTong.DataBind(); } else { DataTable table3 = new DataTable(); table3 = ds.Tables[0]; DataRow row3 = table3.NewRow(); table3.Rows.Add(row3); this.gvResult_HeTong.DataSource = table3.DefaultView; this.gvResult_HeTong.DataBind(); } ds = DbHelperOra.Query("select * from v_pd_found_out_xmlist where pd_project_code='" + PD_PROJECT_CODE + "' order by auto_no "); if (this.gvResult_zjbf.Columns.Count == 0) { PublicDal.setGViewColumns(ds, this.gvResult_zjbf); } if ((ds != null) && (ds.Tables[0].Rows.Count > 0)) { this.gvResult_zjbf.DataSource = ds; this.gvResult_zjbf.DataBind(); } else { DataTable table4 = new DataTable(); table4 = ds.Tables[0]; DataRow row4 = table4.NewRow(); table4.Rows.Add(row4); this.gvResult_zjbf.DataSource = table4.DefaultView; this.gvResult_zjbf.DataBind(); } } else { this.RemoveTab(); } }
private void CreateData() { TB_PROJECT_Model model = this.GetModel(new TB_PROJECT_Model()); model.PD_PROJECT_CODE = DateTime.Now.ToString("yyyyMMddhhmmssffffff"); TB_PROJECT_Bll bll = new TB_PROJECT_Bll(); bll.Add(model); PD_PROJECT_JGYS_Model model2 = this.getModer_jgys(null, model.PD_PROJECT_CODE); new PD_PROJECT_JGYS_Bll().Add(model2); PD_PROJECT_APPRAISE_Model model3 = this.getModer_jgys_pj(null, model.PD_PROJECT_CODE); new PD_PROJECT_APPRAISE_Bll().Add(model3); PD_PROJECT_ZTB_Model model4 = this.GetModel_Ztb(null, model.PD_PROJECT_CODE); new PD_PROJECT_ZTB_Bll().Add(model4); this.AddImgMethod(model); bll.UpdateServerPK("TB_PROJECT", "PD_PROJECT_CODE", model.PD_PROJECT_CODE, PublicDal.SetCreateServiceStream(this.Page), "PD_PROJECT_SERVERPK"); PD_PROJECT_ATTACH_SB_Bll bll5 = new PD_PROJECT_ATTACH_SB_Bll(); List<PD_PROJECT_ATTACH_SB_Model> modelList = this.GetAttach_SBModel(model.PD_PROJECT_CODE); bll5.AddList(modelList); PD_PROJECT_TZJGC_Bll bll6 = new PD_PROJECT_TZJGC_Bll(); List<PD_PROJECT_TZJGC_Model> listModel = this.getTZJGCModel(model.PD_PROJECT_CODE); bll6.Add(listModel); Const.DoSuccessNoClose("添加成功", this.Page.Request.Url.LocalPath + "?UpdatePK=" + model.PD_PROJECT_CODE, this.Page); }
private void UpdataData(string PD_PROJECT_CODE) { TB_PROJECT_Bll bll = new TB_PROJECT_Bll(); TB_PROJECT_Model model = bll.GetModel(PD_PROJECT_CODE); string text1 = model.PD_PROJECT_STATUS; TB_PROJECT_Model model2 = this.GetModel(model); model2.PD_PROJECT_CODE = PD_PROJECT_CODE; bll.Update(model2); PD_PROJECT_ATTACH_SB_Bll bll2 = new PD_PROJECT_ATTACH_SB_Bll(); bll2.Delete(PD_PROJECT_CODE); List<PD_PROJECT_ATTACH_SB_Model> modelList = this.GetAttach_SBModel(PD_PROJECT_CODE); bll2.AddList(modelList); PD_PROJECT_JGYS_Bll bll3 = new PD_PROJECT_JGYS_Bll(); PD_PROJECT_JGYS_Model model3 = bll3.GetModel(PD_PROJECT_CODE); if (model3 != null) { model3 = this.getModer_jgys(model3, PD_PROJECT_CODE); bll3.Update(model3); } else { model3 = this.getModer_jgys(model3, PD_PROJECT_CODE); bll3.Add(model3); } PD_PROJECT_APPRAISE_Bll bll4 = new PD_PROJECT_APPRAISE_Bll(); PD_PROJECT_APPRAISE_Model modelByProjectCode = bll4.GetModelByProjectCode(PD_PROJECT_CODE); if (modelByProjectCode != null) { modelByProjectCode = this.getModer_jgys_pj(modelByProjectCode, PD_PROJECT_CODE); bll4.Update(modelByProjectCode); } else { modelByProjectCode = this.getModer_jgys_pj(modelByProjectCode, PD_PROJECT_CODE); bll4.Add(modelByProjectCode); } PD_PROJECT_ZTB_Bll bll5 = new PD_PROJECT_ZTB_Bll(); PD_PROJECT_ZTB_Model modelPROJECT = bll5.GetModelPROJECT(PD_PROJECT_CODE); if (modelPROJECT != null) { modelPROJECT = this.GetModel_Ztb(modelPROJECT, PD_PROJECT_CODE); bll5.Update(modelPROJECT); } else { modelPROJECT = this.GetModel_Ztb(modelPROJECT, PD_PROJECT_CODE); bll5.Add(modelPROJECT); } this.AddImgMethod(model2); PD_PROJECT_TZJGC_Bll bll6 = new PD_PROJECT_TZJGC_Bll(); bll6.DeleteAll(PD_PROJECT_CODE); List<PD_PROJECT_TZJGC_Model> listModel = this.getTZJGCModel(PD_PROJECT_CODE); bll6.Add(listModel); new PD_FOUND_OUT_Bll().UpdateLJMoney(PD_PROJECT_CODE); PageShowText.Refurbish("修改成功", this.Page); }
private void ShowInfo(int AUTO_NO_XC) { this.Session["PrintId"] = AUTO_NO_XC.ToString(); PD_PROJECT_INSPECTION_Model model = new PD_PROJECT_INSPECTION_Bll().GetModel(AUTO_NO_XC); TB_PROJECT_Model model2 = new TB_PROJECT_Bll().GetModel(model.PD_PROJECT_CODE); this.txtPD_PROJECT_CODE.Value = model.PD_PROJECT_CODE; this.txtPD_PROJECT_Name.Value = model2.PD_PROJECT_NAME; this.ddlPD_YEAR.SelectedValue = model.PD_YEAR; this.txtPD_PROJECT_TOTAL_MONEY.Value = model2.PD_PROJECT_MONEY_TOTAL.ToString(); this.Pk = AUTO_NO_XC; this.lblAUTO_NO.Text = model.AUTO_NO; str_MXID = model.AUTO_NO; this.txtPD_PROJECT_CODE.Value = model.PD_PROJECT_CODE; this.txtPD_PROJECT_Name.Value = model2.PD_PROJECT_NAME; this.txtPD_INSPECTION_PROCESS.SelectedValue = model.PD_INSPECTION_PROCESS; this.txtPD_INSPECTION_DATE.Value = model.PD_INSPECTION_DATE.ToString(); this.txtPD_INSPECTION_MANS.Text = model.PD_INSPECTION_MANS; this.txtPD_INSPECTION_ADDR.Text = model.PD_INSPECTION_ADDR; this.txtPD_INSPECTION_CONTENT.Text = model.PD_INSPECTION_CONTENT; this.txtPD_INSPECTION_SUGGEST.Text = model.PD_INSPECTION_SUGGEST; this.txtPD_INSPECTION_CONCLUSION.Text = model.PD_INSPECTION_CONCLUSION; this.txtPD_MONITOR_PROCEED_WCL.Value = model.PD_MONITOR_PROCEED_WCL.ToString(); this.txtPD_DB_LOOP.Text = model.PD_DB_LOOP; this.ddlPD_YEAR.SelectedValue = model.PD_YEAR; DataSet set = DbHelperOra.Query(" select * from pd_found_out where pd_project_code=" + model.PD_PROJECT_CODE + " "); if ((set != null) && (set.Tables[0].Rows.Count > 0)) { this.txtPD_MONITOR_TOTAL_MONEY_PAY.Value = set.Tables[0].Rows[0]["PD_FOUND_MONEY_TOTAL"].ToString(); this.txtPD_MONITOR_TOTAL_MONEY_WCL.Value = set.Tables[0].Rows[0]["PD_FOUND_MONEY_WCL"].ToString(); } DataSet ds = new DataSet(); ds.Tables.Add(); ds.Tables[0].Columns.Add("AUTO_NO"); ds.Tables[0].Columns.Add("FILE_NAME"); ds.Tables[0].Columns.Add("FILE_SYSNAME"); if (((model != null) && (model.PD_INSPECTION_FILENAME_SYSTEM != null)) && (model.PD_INSPECTION_FILENAME_SYSTEM.Trim() != "")) { DataRow row = ds.Tables[0].NewRow(); row["AUTO_NO"] = model.AUTO_NO; row["FILE_NAME"] = model.PD_INSPECTION_FILENAME; row["FILE_SYSNAME"] = model.PD_INSPECTION_FILENAME_SYSTEM; ds.Tables[0].Rows.Add(row); } this.json_btData.Value = PublicDal.DataToJSON(ds); this.BindImg(); }
private void UpdataData(string PD_PROJECT_CODE) { TB_PROJECT_Bll bll = new TB_PROJECT_Bll(); TB_PROJECT_Model model = this.GetModel(bll.GetModel(PD_PROJECT_CODE)); model.PD_PROJECT_CODE = PD_PROJECT_CODE; bll.Update(model); PD_PROJECT_ATTACH_SB_Bll bll2 = new PD_PROJECT_ATTACH_SB_Bll(); bll2.Delete(PD_PROJECT_CODE); List<PD_PROJECT_ATTACH_SB_Model> modelList = this.GetAttach_SBModel(PD_PROJECT_CODE); bll2.AddList(modelList); PD_PROJECT_TZJGC_Bll bll3 = new PD_PROJECT_TZJGC_Bll(); bll3.DeleteAll(PD_PROJECT_CODE); List<PD_PROJECT_TZJGC_Model> listModel = this.getTZJGCModel(PD_PROJECT_CODE); bll3.Add(listModel); PageShowText.Refurbish("修改成功", this.Page); }
public bool ShowData(string str) { try { TB_PROJECT_Model model = new TB_PROJECT_Bll().GetModel(base.Request["UpdatePK"].ToString()); this.txtPD_PROJECT_Name.Value = model.PD_PROJECT_NAME; this.txtPD_PROJECT_CODE.Value = model.PD_PROJECT_CODE; this.dbo = new DB_OPT(); this.dbo.Open(); string companyWhere = PublicDal.GetCompanyWhere(); if (str != "") { str = " where " + str + " and pd_found_xz='02' " + companyWhere; } else { str = "where pd_found_xz='02' " + companyWhere; } str = "select " + this.getColumns() + " from view_inspection_list " + str + " order by pd_project_code,auto_no desc "; DataSet set = DbHelperOra.Query(str); if ((set != null) && (set.Tables[0].Rows.Count > 0)) { DataView defaultView = set.Tables[0].DefaultView; if ((this.ViewState["SortOrder"] != null) && (this.ViewState["OrderDire"] != null)) { string str3 = ((string)this.ViewState["SortOrder"]) + " " + ((string)this.ViewState["OrderDire"]); defaultView.Sort = str3; } this.gvResult.DataSource = defaultView; this.gvResult.DataBind(); return true; } DataTable table = new DataTable(); table = set.Tables[0]; DataRow row = table.NewRow(); table.Rows.Add(row); this.gvResult.DataSource = table.DefaultView; this.gvResult.DataBind(); return false; } catch (Exception exception) { this.el = new ExceptionLog.ExceptionLog(); this.el.ErrClassName = base.GetType().ToString(); this.el.ErrMessage = exception.Message.ToString(); this.el.ErrMethod = "ShowData()"; this.el.WriteExceptionLog(true); Const.OpenErrorPage("获取数据失败,请联系系统管理员!", this.Page); } finally { if (this.dbo != null) { this.dbo.Close(); } } return false; }
private void ShowInfo_Project(string PD_PROJECT_CODE) { TB_PROJECT_Model model = new TB_PROJECT_Bll().GetModel(PD_PROJECT_CODE); this.txtPD_YEAR.Value = model.PD_YEAR.ToString(); this.txtPD_PROJECT_CODE.Value = model.PD_PROJECT_CODE.ToString(); this.txtPD_PROJECT_NAME.Text = model.PD_PROJECT_NAME.ToString(); this.txt_PD_PROJECT_FILENO_LX.Text = model.PD_PROJECT_FILENO_LX.ToString(); this.txtPD_PROJECT_BZNUM.Value = model.PD_PROJECT_OPEN_BODY.ToString(); this.txt_PD_PROJECT_FZR.Text = model.PD_PROJECT_FZR.ToString(); this.txt_PD_PROJECT_SYRS.Text = model.PD_PROJECT_SYRS.ToString(); this.txt_PD_PROJECT_SSFW.Value = model.PD_PROJECT_SSFW.ToString(); this.txt_PD_PROJECT_YEARS.Text = model.PD_PROJECT_YEARS.ToString(); this.txt_PD_PROJECT_CONTENT.Value = model.PD_PROJECT_CONTENT.ToString(); this.txt_PD_PROJECT_MONEY_TOTAL.Value = model.PD_PROJECT_MONEY_TOTAL.ToString(); this.txt_PD_PROJECT_MONEY_CZ_TOTAL.Value = model.PD_PROJECT_MONEY_CZ_TOTAL.ToString(); this.txt_PD_PROJECT_MONEY_CZ_SJ.Value = model.PD_PROJECT_MONEY_CZ_SJ.ToString(); this.txt_PD_PROJECT_MONEY_CZ_BJ.Value = model.PD_PROJECT_MONEY_CZ_BJ.ToString(); this.txt_PD_PROJECT_MONEY_ZC.Value = model.PD_PROJECT_MONEY_ZC.ToString(); this.txt_PD_PROJECT_MONEY_QT.Value = model.PD_PROJECT_MONEY_QT.ToString(); DbHelperOra.Query("select * from pd_project_contract where pd_project_code=" + PD_PROJECT_CODE); string sQLString = ""; int num = 0; try { num = Convert.ToInt32(this.gvResult.DataKeys[Work_projectGL_ssProjectGKGS_proJSGKGSMX.num].Value.ToString()); sQLString = string.Concat(new object[] { "select * from view_pd_project_gkgs where pd_project_code='", PD_PROJECT_CODE, "' and auto_no=", num }); } catch { sQLString = "select * from view_pd_project_gkgs where pd_project_code='" + PD_PROJECT_CODE + "'"; } DataSet set = DbHelperOra.Query(sQLString); if ((set != null) && (set.Tables[0].Rows.Count > 0)) { this.lblAUTO_NO.Text = set.Tables[0].Rows[0]["auto_no"].ToString(); str_MXID = this.lblAUTO_NO.Text.ToString(); this.lblGKGSAUTO_NO.Text = set.Tables[0].Rows[0]["auto_no"].ToString(); this.txtPD_GS_TYPE.SelectedValue = set.Tables[0].Rows[0]["PD_GS_TYPE"].ToString(); this.txtPD_GS_STYLE.Value = set.Tables[0].Rows[0]["PD_GS_STYLE"].ToString(); this.txtPD_GS_ZHUTI.Value = set.Tables[0].Rows[0]["PD_GS_ZHUTI"].ToString(); if (PublicDal.PageValidate.IsDateTime(set.Tables[0].Rows[0]["PD_GS_DATE"])) { this.txtPD_GS_DATE.Value = DateTime.Parse(set.Tables[0].Rows[0]["PD_GS_DATE"].ToString()).ToString("yyyy-MM-dd"); } this.txtPD_GS_ADDR.Value = set.Tables[0].Rows[0]["PD_GS_ADDR"].ToString(); this.txtPD_GS_DETAIL.Value = set.Tables[0].Rows[0]["PD_GS_DETAIL"].ToString(); if (PublicDal.PageValidate.IsDateTime(set.Tables[0].Rows[0]["PD_GS_DATE_END"])) { this.txtPD_GS_DATE_END.Value = DateTime.Parse(set.Tables[0].Rows[0]["PD_GS_DATE_END"].ToString()).ToString("yyyy-MM-dd"); } DataSet ds = new DataSet(); ds.Tables.Add(); ds.Tables[0].Columns.Add("AUTO_NO"); ds.Tables[0].Columns.Add("FILE_NAME"); ds.Tables[0].Columns.Add("FILE_SYSNAME"); if (((set != null) && (set.Tables[0].Rows[0]["PD_GS_FILENAME"].ToString() != null)) && (set.Tables[0].Rows[0]["PD_GS_FILENAME_SYSTEM"].ToString().Trim() != "")) { DataRow row = ds.Tables[0].NewRow(); row["AUTO_NO"] = set.Tables[0].Rows[0]["AUTO_NO"].ToString(); row["FILE_NAME"] = set.Tables[0].Rows[0]["PD_GS_FILENAME"].ToString(); row["FILE_SYSNAME"] = set.Tables[0].Rows[0]["PD_GS_FILENAME_SYSTEM"].ToString(); ds.Tables[0].Rows.Add(row); } this.json_btData.Value = PublicDal.DataToJSON(ds); this.BindImg(); } }
private void ShowInfoProject(string ProjectCode) { TB_PROJECT_Model model = new TB_PROJECT_Bll().GetModel(ProjectCode); this.txtPD_PROJECT_CODE.Value = model.PD_PROJECT_CODE; this.txtPD_PROJECT_Name.Value = model.PD_PROJECT_NAME; this.ddlPD_YEAR.SelectedValue = model.PD_YEAR.ToString(); }
private void ShowInfo(string PD_PROJECT_CODE) { TB_PROJECT_Model modelName = new TB_PROJECT_Bll().GetModelName(PD_PROJECT_CODE); this.lblPD_PROJECT_CODE.Text = modelName.PD_PROJECT_CODE; this.lblPD_PROJECT_NAME.Text = modelName.PD_PROJECT_NAME; this.lblPD_YEAR.Text = modelName.PD_YEAR.ToString(); this.lblPD_YEAR.Attributes.Add("Code", modelName.PD_YEAR.ToString()); this.lblPD_PROJECT_TYPE.Text = modelName.PD_PROJECT_TYPE_NAME; this.lblPD_YEAR.Attributes.Add("Code", modelName.PD_PROJECT_TYPE.ToString()); this.lblPD_GK_DEPART.Text = modelName.PD_GK_DEPART; this.txtPD_GK_DEPART.Text = modelName.PD_GK_DEPART_ID; this.lblPD_YEAR.Attributes.Add("Code", modelName.PD_GK_DEPART_ID.ToString()); this.lblPD_FOUND_XZ.Text = modelName.PD_FOUND_XZ_Name; this.lblPD_PROJECT_MONEY_TOTAL.Text = modelName.PD_PROJECT_MONEY_TOTAL.ToString(); this.lblPD_PROJECT_MONEY_CZ_TOTAL.Text = modelName.PD_PROJECT_MONEY_CZ_TOTAL.ToString(); this.lblPD_PROJECT_MONEY_CZ_SJ.Text = modelName.PD_PROJECT_MONEY_CZ_SJ.ToString(); this.lblPD_PROJECT_MONEY_CZ_BJ.Text = modelName.PD_PROJECT_MONEY_CZ_BJ.ToString(); this.lblPD_PROJECT_MONEY_ZC.Text = modelName.PD_PROJECT_MONEY_ZC.ToString(); this.lblPD_PROJECT_MONEY_QT.Text = modelName.PD_PROJECT_MONEY_QT.ToString(); this.lblPD_PROJECT_MONEY_ADDR.Text = modelName.PD_PROJECT_MONEY_ADDR; this.lblPD_PROJECT_CONTENT.Text = modelName.PD_PROJECT_CONTENT; this.lblPD_PROJECT_XMYT.Text = modelName.PD_PROJECT_XMYT; this.lblPD_PROJECT_IFXZGL.Text = (modelName.PD_PROJECT_IFXZGL.ToString() == "1") ? "是" : "否"; this.lblPD_PROJECT_IFGS.Text = (modelName.PD_PROJECT_IFGS.ToString() == "1") ? "是" : "否"; this.lblPD_PROJECT_IFGS_BEFORE.Text = (modelName.PD_PROJECT_IFGS_BEFORE.ToString() == "1") ? "是" : "否"; this.lblPD_PROJECT_OPEN_BODY.Text = modelName.PD_PROJECT_OPEN_BODY; this.lblPD_PROJECT_FZR.Text = modelName.PD_PROJECT_FZR; this.lblPD_PROJECT_CWFZR.Text = modelName.PD_PROJECT_CWFZR; this.lblPD_PROJECT_SYRS.Text = modelName.PD_PROJECT_SYRS.ToString(); this.lblPD_PROJECT_STATUS.Text = modelName.PD_PROJECT_STATUS_Name; this.lblPD_PROJECT_STATUS.Attributes.Add("Code", modelName.PD_PROJECT_STATUS); this.lblPD_PROJECT_BEGIN_DATE.Text = modelName.PD_PROJECT_BEGIN_DATE.Value.ToShortDateString(); this.lblPD_PROJECT_END_DATE.Text = modelName.PD_PROJECT_END_DATE.Value.ToShortDateString(); this.lblPD_PROJECT_YEARS.Text = modelName.PD_PROJECT_YEARS.ToString() + "月"; this.lblPD_PROJECT_FILENO_JG.Text = modelName.PD_PROJECT_FILENO_JG; this.lblPD_PROJECT_INPUT_COMPANY.Text = modelName.PD_PROJECT_INPUT_COMPANY_Name; this.lblPD_PROJECT_INPUT_MAN.Text = modelName.PD_PROJECT_INPUT_MAN; this.lblPD_PROJECT_INPUT_DATE.Text = modelName.PD_PROJECT_INPUT_DATE; this.lblPD_PROJECT_REPLY_COMPANY.Text = modelName.PD_PROJECT_REPLY_COMPANY_Name; this.lblPD_PROJECT_REPLY_MAN2.Text = modelName.PD_PROJECT_REPLY_MAN2; this.lblPD_PROJECT_REPLY_DATE.Text = modelName.PD_PROJECT_REPLY_DATE; this.lblPD_PROJECT_COUNTRY.Text = modelName.PD_PROJECT_COUNTRY_Name; this.lblPD_PROJECT_COUNTRY.Attributes.Add("Code", modelName.PD_PROJECT_COUNTRY); this.txtPD_PROJECT_MONEY_TOTAL_PF.Text = modelName.PD_PROJECT_MONEY_TOTAL_PF.ToString(); this.txtPD_PROJECT_MONEY_CZ_TOTAL_PF.Text = modelName.PD_PROJECT_MONEY_CZ_TOTAL_PF.ToString(); this.txtPD_PROJECT_MONEY_CZ_SJ_PF.Text = modelName.PD_PROJECT_MONEY_CZ_SJ_PF.ToString(); this.txtPD_PROJECT_MONEY_CZ_BJ_PF.Text = modelName.PD_PROJECT_MONEY_CZ_BJ_PF.ToString(); this.txtPD_PROJECT_MONEY_ZC_PF.Text = modelName.PD_PROJECT_MONEY_ZC_PF.ToString(); this.txtPD_PROJECT_MONEY_QT_PF.Text = modelName.PD_PROJECT_MONEY_QT_PF.ToString(); this.lblPD_PROJECT_FILENO_PF.Text = modelName.PD_PROJECT_FILENO_PF; this.txtPD_PROJECT_FILENO_PF.Value = modelName.PD_PROJECT_FILENO_PF_CODE; this.lblPD_PROJECT_ZJLY.Text = modelName.PD_PROJECT_ZJLY; this.lblPD_PROJECT_ZGKJ.Text = modelName.PD_PROJECT_ZGKJ; DataSet list = new PD_PROJECT_ATTACH_SB_Bll().GetList(" PD_PROJECT_CODE='" + PD_PROJECT_CODE + "'"); this.jsonStr_sb = PublicDal.DataToJSON(list); DataSet ds = new PD_PROJECT_ATTACH_PF_Bll().GetList(" PD_PROJECT_CODE='" + PD_PROJECT_CODE + "'"); this.jsonStr_pf = PublicDal.DataToJSON(ds); if (ds.Tables[0].Rows.Count > 0) { ds.Tables[0].Rows.Clear(); } DataRow row = ds.Tables[0].NewRow(); row[1] = PD_PROJECT_CODE; ds.Tables[0].Rows.Add(row); this.jsonStrNull = PublicDal.DataToJSON(ds); }
private void ShowInfo(string AUTO_NO) { PD_PROJECT_CONTRACT_Model model = new PD_PROJECT_CONTRACT_Bll().GetModel(AUTO_NO); TB_PROJECT_Model model2 = new TB_PROJECT_Bll().GetModel(model.PD_PROJECT_CODE); this.txtPD_PROJECT_Name.Value = model2.PD_PROJECT_NAME; this.lblAUTO_NO.Text = model.AUTO_NO; this.txtPD_PROJECT_CODE.Value = model.PD_PROJECT_CODE; this.txtPD_CONTRACT_TYPE.SelectedValue = model.PD_CONTRACT_TYPE; this.txtPD_CONTRACT_NO.Value = model.PD_CONTRACT_NO; this.txtPD_CONTRACT_DATE.Value = model.PD_CONTRACT_DATE.ToString(); this.txtPD_CONTRACT_COMPANY.Text = model.PD_CONTRACT_COMPANY; this.txtPD_CONTRACT_MOENY.Value = model.PD_CONTRACT_MOENY.ToString(); this.txtPD_CONTRACT_MOENY_CHANGE.Value = model.PD_CONTRACT_MOENY_CHANGE.ToString(); this.txtPD_CONTRACT_ASK_LIMIT.Text = model.PD_CONTRACT_ASK_LIMIT; this.txtPD_CONTRACT_ASK_PROCEED.Value = model.PD_CONTRACT_ASK_PROCEED; this.txtPD_CONTRACT_ASK_PAYMENT.Text = model.PD_CONTRACT_ASK_PAYMENT; this.txtPD_CONTRACT_NOTE.Text = model.PD_CONTRACT_NOTE; this.txtPD_CONTRACT_NAME.Text = model.PD_CONTRACT_NAME; this.txtPD_CONTRACT_TYPE.SelectedValue = model.PD_CONTRACT_TYPE; this.ddlPD_YEAR.SelectedValue = model.PD_YEAR; DataSet ds = new DataSet(); ds.Tables.Add(); ds.Tables[0].Columns.Add("AUTO_NO"); ds.Tables[0].Columns.Add("FILE_NAME"); ds.Tables[0].Columns.Add("FILE_SYSNAME"); if (((model != null) && (model.PD_CONTRACT_FILENAME_SYSTEM != null)) && (model.PD_CONTRACT_FILENAME_SYSTEM.Trim() != "")) { DataRow row = ds.Tables[0].NewRow(); row["AUTO_NO"] = model.AUTO_NO; row["FILE_NAME"] = model.PD_CONTRACT_FILENAME; row["FILE_SYSNAME"] = model.PD_CONTRACT_FILENAME_SYSTEM; ds.Tables[0].Rows.Add(row); } this.json_btData.Value = PublicDal.DataToJSON(ds); }
private void UpdataData(string PD_PROJECT_CODE) { string strErr = ""; if (!this.Panduan(ref strErr)) { this.hy_File(null, strErr); } else { TB_PROJECT_Bll bll = new TB_PROJECT_Bll(); TB_PROJECT_Model model = this.GetModel(bll.GetModel(PD_PROJECT_CODE)); model.PD_PROJECT_CODE = PD_PROJECT_CODE; bll.Update(model); PD_PROJECT_ATTACH_PF_Bll bll2 = new PD_PROJECT_ATTACH_PF_Bll(); bll2.Delete(PD_PROJECT_CODE); bll2.AddList(this.GetAttach_SBModel(PD_PROJECT_CODE)); PageShowText.Refurbish("修改成功", this.Page); } }
private void ShowInfo(int AUTO_NO) { PD_CONTRACT_CHANGE_Model model = new PD_CONTRACT_CHANGE_Bll().GetModel(AUTO_NO); TB_PROJECT_Model model2 = new TB_PROJECT_Bll().GetModel(model.PD_PROJECT_CODE); this.txtPD_PROJECT_Name.Value = model2.PD_PROJECT_NAME; this.lblAUTO_NO.Text = model.AUTO_NO.ToString(); this.txtPD_PROJECT_CODE.Value = model.PD_PROJECT_CODE; this.txtPD_CONTRACT_CHANGE_DATE.Value = model.PD_CONTRACT_CHANGE_DATE.ToString(); this.txtPD_CONTRACT_CHANGE_TYPE.SelectedValue = model.PD_CONTRACT_CHANGE_TYPE; this.txtPD_CONTRACT_CHANGE_REASON.Text = model.PD_CONTRACT_CHANGE_REASON; this.txtPD_CONTRACT_TYPE.SelectedValue = model.PD_CONTRACT_TYPE; this.txtPD_CONTRACT_NO.Value = model.PD_CONTRACT_NO; this.txtPD_CONTRACT_NO_Name.Value = model.PD_CONTRACT_NO_Name; this.txtPD_CONTRACT_MONEY.Value = model.PD_CONTRACT_MONEY.ToString(); this.txtPD_CONTRACT_CHANGE_ZJ.Value = model.PD_CONTRACT_CHANGE_ZJ; this.txtPD_CONTRACT_CHANGE_MONEY.Value = model.PD_CONTRACT_CHANGE_MONEY.ToString(); this.txtPD_CONTRACT_CHANGE_WH.Value = model.PD_CONTRACT_CHANGE_WH.ToString(); this.ddlPD_YEAR.SelectedValue = model.PD_YEAR.ToString(); DataSet ds = new DataSet(); ds.Tables.Add(); ds.Tables[0].Columns.Add("AUTO_NO"); ds.Tables[0].Columns.Add("FILE_NAME"); ds.Tables[0].Columns.Add("FILE_SYSNAME"); if (((model != null) && (model.PD_CONTRACT_FILENAME_SYSTEM_SQ != null)) && (model.PD_CONTRACT_FILENAME_SYSTEM_SQ.Trim() != "")) { DataRow row = ds.Tables[0].NewRow(); row["AUTO_NO"] = model.AUTO_NO; row["FILE_NAME"] = model.PD_CONTRACT_CHANGE_FILENAME_SQ; row["FILE_SYSNAME"] = model.PD_CONTRACT_FILENAME_SYSTEM_SQ; ds.Tables[0].Rows.Add(row); } this.json_btData.Value = PublicDal.DataToJSON(ds); }
private void UpdataData(string PD_PROJECT_CODE) { List<PD_CONTRACT_CHANGE_Model> list = null; List<PD_PROJECT_ATTACH_SS_Model> list2 = null; List<PD_PROJECT_CONTRACT_Model> list3 = null; List<PD_PROJECT_INSPECTION_Model> list4 = null; List<PD_PROJECT_MONITOR_Model> list5 = null; PD_PROJECT_ZTB_Model model = new PD_PROJECT_ZTB_Model(); string errText = ""; if (!this.GetModel(PD_PROJECT_CODE, ref list, ref list2, ref list3, ref list4, ref list5, ref model, ref errText)) { this.hy_File(list2, list3, list, list5, list4, errText); } else { PD_PROJECT_ATTACH_SS_Bll bll = new PD_PROJECT_ATTACH_SS_Bll(); bll.Delete(PD_PROJECT_CODE); bll.AddList(list2); PD_PROJECT_ZTB_Bll bll2 = new PD_PROJECT_ZTB_Bll(); bll2.DeletePROJECT(PD_PROJECT_CODE); bll2.Add(model); TB_PROJECT_Bll bll3 = new TB_PROJECT_Bll(); TB_PROJECT_Model model2 = new TB_PROJECT_Model { PD_PROJECT_CODE = PD_PROJECT_CODE, PD_PROJECT_JGJL = this.PD_PROJECT_JGJL.Text, PD_PROJECT_JG_RESULT = this.PD_PROJECT_JG_RESULT.Text, PD_PROJECT_JG_SUGGEST = this.PD_PROJECT_JG_SUGGEST.Text }; bll3.UpdateJGJL(model2); PageShowText.Refurbish("修改成功", this.Page); } }