Esempio n. 1
0
 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);
 }
Esempio n. 2
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);
     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);
 }
Esempio n. 3
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);
 }
Esempio n. 4
0
 public static string getTZJGCAll(string PD_PROJECT_CODE)
 {
     DataSet projectList = new PD_PROJECT_TZJGC_Bll().GetProjectList(PD_PROJECT_CODE);
     foreach (DataRow row in projectList.Tables[0].Rows)
     {
         string str = "";
         if (PublicDal.PageValidate.IsInt(row["PD_BASE_TZJGC"]) && (int.Parse(row["ISGETQUOTA"].ToString()) != 1))
         {
             str = " disabled=\"disabled\" ";
         }
         row["CHECKBOX"] = "<input type=\"checkbox\" name=\"tb_tzjgc_1_cb\" >";
         row["PD_BASE_TZJGC"] = getTZJGC(row["PD_BASE_TZJGC"].ToString());
         row["TB_QUOTA_CODE"] = string.Concat(new object[] { "<input id=\"TB_QUOTA_ZBWH_H\" style=\"width: 98%;\" readonly=\"readonly\" value=\"", row["TB_QUOTA_ZBWH_H"], "\" ", str, " onclick=\"javascript:findwindow(1,this);\" /><input type=\"hidden\" name=\"TB_QUOTA_CODE\" id=\"TB_QUOTA_CODE\" value=\"", row["TB_QUOTA_CODE"], "\"/>" });
         row["PD_PROJECT_MONEY_CZ_SJ"] = "<input type=\"text\" name=\"PD_PROJECT_MONEY_CZ_SJ\" id=\"PD_PROJECT_MONEY_CZ_SJ\" onchange=\"SumMoney_TZGC()\" onKeyPress=\"myKeyDown(this,event,0)\" class=\"NumTextCss\" value=\"" + row["PD_PROJECT_MONEY_CZ_SJ"] + "\"/>";
         row["PD_GK_DEPART"] = "<a id=\"PD_GK_DEPART_A\">" + row["PD_GK_DEPART"] + "&nbsp;</a>";
         row["PD_PROJECT_FILENO_JG"] = "<a id=\"PD_PROJECT_FILENO_JG_A\">" + row["PD_PROJECT_FILENO_JG"] + "&nbsp;</a>";
         row["PD_PROJECT_ZJLY"] = "<a id=\"PD_PROJECT_ZJLY_A\">" + row["PD_PROJECT_ZJLY"] + "&nbsp;</a>";
         row["PD_PROJECT_ZGKJ"] = "<a id=\"PD_PROJECT_ZGKJ_A\">" + row["PD_PROJECT_ZGKJ"] + "&nbsp;</a>";
     }
     projectList.Tables[0].Columns.Remove("TB_QUOTA_ZBWH_H");
     projectList.Tables[0].Columns.Remove("ISGETQUOTA");
     return PublicDal.DataToJSON2(projectList);
 }
Esempio n. 5
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);
 }