Exemple #1
0
 private void Bind(string PD_PROJECT_CODE)
 {
     DataSet list = new PD_CONTRACT_CHANGE_Bll().GetList(" PD_PROJECT_CODE='" + PD_PROJECT_CODE + "'");
     this.jsonData_htbggl = PublicDal.DataToJSON(list);
     if (list.Tables[0].Rows.Count > 0)
     {
         list.Tables[0].Rows.Clear();
     }
     DataRow row = list.Tables[0].NewRow();
     row["PD_PROJECT_CODE"] = PD_PROJECT_CODE;
     list.Tables[0].Rows.Add(row);
     this.json_htbggl = PublicDal.DataToJSON(list);
     DataSet ds = new PD_PROJECT_CONTRACT_Bll().GetList(" PD_PROJECT_CODE='" + PD_PROJECT_CODE + "'");
     this.jsonData_htgl = PublicDal.DataToJSON(ds);
     if (ds.Tables[0].Rows.Count > 0)
     {
         ds.Tables[0].Rows.Clear();
     }
     DataRow row2 = ds.Tables[0].NewRow();
     ds.Tables[0].Rows.Add(row2);
     this.json_htgl = PublicDal.DataToJSON(ds);
     DataSet set3 = new PD_PROJECT_ATTACH_SS_Bll().GetList(" PD_PROJECT_CODE='" + PD_PROJECT_CODE + "'");
     this.jsonData_xmsszl = PublicDal.DataToJSON(set3);
     if (set3.Tables[0].Rows.Count > 0)
     {
         set3.Tables[0].Rows.Clear();
     }
     DataRow row3 = set3.Tables[0].NewRow();
     row3[1] = PD_PROJECT_CODE;
     set3.Tables[0].Rows.Add(row3);
     this.json_xmsszl = PublicDal.DataToJSON(set3);
     DataSet set4 = new PD_PROJECT_INSPECTION_Bll().GetList(" PD_PROJECT_CODE='" + PD_PROJECT_CODE + "'");
     this.jsonData_xmccxc = PublicDal.DataToJSON(set4);
     if (set4.Tables[0].Rows.Count > 0)
     {
         set4.Tables[0].Rows.Clear();
     }
     DataRow row4 = set4.Tables[0].NewRow();
     row4[1] = PD_PROJECT_CODE;
     set4.Tables[0].Rows.Add(row4);
     this.json_xmccxc = PublicDal.DataToJSON(set4);
 }
 public DataSet get_xmss_DataSet(string PD_PROJECT_CODE)
 {
     PD_PROJECT_ATTACH_SS_Bll bll = new PD_PROJECT_ATTACH_SS_Bll();
     return bll.GetList(" PD_PROJECT_CODE='" + PD_PROJECT_CODE + "'");
 }
Exemple #3
0
 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);
     }
 }