Exemple #1
0
 private void hy_File(List<PD_PROJECT_ATTACH_PF_Model> SS_Model, string ShowText)
 {
     if (SS_Model == null)
     {
         SS_Model = this.GetAttach_SBModel(base.Request["UpdatePK"]);
     }
     DataSet ds = new DataSet();
     ds.Tables.Add();
     ds.Tables[0].Columns.Add("AUTO_NO");
     ds.Tables[0].Columns.Add("PD_PROJECT_CODE");
     ds.Tables[0].Columns.Add("PD_PROJECT_ATTACH_NAME");
     ds.Tables[0].Columns.Add("PD_PROJECT_ATTACH_NAME_SYSTEM");
     int num = 0;
     foreach (PD_PROJECT_ATTACH_PF_Model model in SS_Model)
     {
         DataRow row = ds.Tables[0].NewRow();
         row["AUTO_NO"] = num++;
         row["PD_PROJECT_CODE"] = model.PD_PROJECT_CODE;
         row["PD_PROJECT_ATTACH_NAME"] = model.PD_PROJECT_ATTACH_NAME;
         row["PD_PROJECT_ATTACH_NAME_SYSTEM"] = model.PD_PROJECT_ATTACH_NAME_SYSTEM;
         ds.Tables[0].Rows.Add(row);
     }
     string str = "try{PostLoadxmsszl('table_xmpfzl',eval(decodeURIComponent(\"" + base.Server.UrlEncode(PublicDal.DataToJSON(ds)) + "\")),'xmss_5');}catch(e){alert(e)};";
     DataSet list = new PD_PROJECT_ATTACH_SB_Bll().GetList(" PD_PROJECT_CODE='" + base.Request["UpdatePK"] + "'");
     str = str + "try{PostLoadxmsszl('table_xmsbzl',eval(decodeURIComponent(\"" + base.Server.UrlEncode(PublicDal.DataToJSON(list)) + "\")),'xmpf_4');}catch(e){alert(e)};";
     if (ShowText != null)
     {
         str = "alert(\"" + ShowText + "\");" + str;
     }
     this.FilePostCtr1.value = "";
     PageShowText.Run_javascript(str, this.Page);
 }
Exemple #2
0
 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 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);
 }
 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 addFileJSON(string PD_PROJECT_CODE)
 {
     DataSet list = new PD_PROJECT_ATTACH_SB_Bll().GetList(" PD_PROJECT_CODE='" + PD_PROJECT_CODE + "'");
     this.jsonStr = PublicDal.DataToJSON(list);
     if (list.Tables[0].Rows.Count > 0)
     {
         list.Tables[0].Rows.Clear();
     }
     DataRow row = list.Tables[0].NewRow();
     row[1] = PD_PROJECT_CODE;
     list.Tables[0].Rows.Add(row);
     this.jsonStrNull = PublicDal.DataToJSON(list);
 }
Exemple #6
0
 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);
 }
Exemple #7
0
 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);
 }