Beispiel #1
0
 public bool UpdateDeptFelling(Model.InDeptFellingModel model, string id)
 {
     return(inDeptFellingDAL.UpdateDeptFelling(model, id));
 }
Beispiel #2
0
 /// <summary>
 /// 得到一个对象实体
 /// </summary>
 public Model.InDeptFellingModel DataRowToModel(DataRow row)
 {
     Model.InDeptFellingModel model = new Model.InDeptFellingModel();
     if (row != null)
     {
         if (row["id"] != null)
         {
             model.id = row["id"].ToString();
         }
         if (row["name"] != null)
         {
             model.name = row["name"].ToString();
         }
         if (row["real_name"] != null)
         {
             model.real_name = row["real_name"].ToString();
         }
         if (row["training_base_code"] != null)
         {
             model.training_base_code = row["training_base_code"].ToString();
         }
         if (row["training_base_name"] != null)
         {
             model.training_base_name = row["training_base_name"].ToString();
         }
         if (row["professional_base_code"] != null)
         {
             model.professional_base_code = row["professional_base_code"].ToString();
         }
         if (row["professional_base_name"] != null)
         {
             model.professional_base_name = row["professional_base_name"].ToString();
         }
         if (row["rotary_dept_code"] != null)
         {
             model.rotary_dept_code = row["rotary_dept_code"].ToString();
         }
         if (row["rotary_dept_name"] != null)
         {
             model.rotary_dept_name = row["rotary_dept_name"].ToString();
         }
         if (row["indept_felling"] != null)
         {
             model.indept_felling = row["indept_felling"].ToString();
         }
         if (row["register_date"] != null)
         {
             model.register_date = row["register_date"].ToString();
         }
         if (row["writor"] != null)
         {
             model.writor = row["writor"].ToString();
         }
         if (row["teacher_status"] != null)
         {
             model.teacher_status = row["teacher_status"].ToString();
         }
         if (row["kzr_status"] != null)
         {
             model.kzr_status = row["kzr_status"].ToString();
         }
         if (row["base_status"] != null)
         {
             model.base_status = row["base_status"].ToString();
         }
         if (row["manager_status"] != null)
         {
             model.manager_status = row["manager_status"].ToString();
         }
         if (row["TeacherId"] != null)
         {
             model.TeacherId = row["TeacherId"].ToString();
         }
         if (row["TeacherName"] != null)
         {
             model.TeacherName = row["TeacherName"].ToString();
         }
     }
     return(model);
 }