Exemplo n.º 1
0
 private void SaveBDData(string PD_PROJECT_CODE)
 {
     TB_PROJECT_BZ_Bll bll = new TB_PROJECT_BZ_Bll();
     TB_PROJECT_BZ_Model model = bll.GetModel(PD_PROJECT_CODE);
     model.PD_PROJECT_JGJL = this.jgjlText_H.Value;
     if (bll.Update(model))
     {
         PageShowText.ShowMessage("保存成功!", this.Page);
     }
     else
     {
         PageShowText.ShowMessage("保存失败!", this.Page);
     }
 }
Exemplo n.º 2
0
 private void UpdataData(string PD_PROJECT_CODE, string CCXC)
 {
     string strErr = "";
     if (!this.Panduan(ref strErr))
     {
         this.TabContainer1.ActiveTabIndex = 0;
     }
     else
     {
         TB_PROJECT_BZ_Bll bll = new TB_PROJECT_BZ_Bll();
         TB_PROJECT_BZ_Model model = this.GetModel(bll.GetModel(PD_PROJECT_CODE));
         model.PD_PROJECT_CODE = PD_PROJECT_CODE;
         bll.Update(model);
         PD_PROJECT_ATTACH_BZ_Bll bll2 = new PD_PROJECT_ATTACH_BZ_Bll();
         List<PD_PROJECT_ATTACH_BZ_Model> modelList = this.GetATTACH_BZ_Model(model.PD_PROJECT_CODE);
         bll2.Delete(model.PD_PROJECT_CODE);
         bll2.AddList(modelList);
         PD_PROJECT_INSPECTION_Bll bll3 = new PD_PROJECT_INSPECTION_Bll();
         List<PD_PROJECT_INSPECTION_Model> inspectionModel = this.GetInspectionModel(model.PD_PROJECT_CODE);
         bll3.Delete(model.PD_PROJECT_CODE, " and PD_DB_LOOP=0 ");
         bll3.AddList(inspectionModel);
         PageShowText.Refurbish("修改成功", this.Page);
     }
 }