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 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); }