public string Update(Department entity, string oldName)
 {
     try
     {
         if (entity.Id < 1)
         {
             return("Lütfen Geçerli Bir Departman Seçiniz");
         }
         controlText = IsDepartmentComplete(entity);
         if (controlText != "")
         {
             return(controlText);
         }
         if (string.IsNullOrEmpty(oldName))
         {
             return("Departman Bilgilerine Ulaşılamadı");
         }
         return(departmentDal.Update(entity, oldName));
     }
     catch (Exception ex)
     {
         return(ex.Message);
     }
 }
예제 #2
0
 /// <summary>
 /// 更新部门数据
 /// </summary>
 /// <param name="departmentList">部门实体对象</param>
 /// <param name="tran">中间事务对象</param>
 public static void UpdateDepartment(IList <Department> departmentList, ICTransaction tran)
 {
     DepartmentDal.Update(departmentList, tran);
 }
예제 #3
0
 /// <summary>
 /// 更新部门数据
 /// </summary>
 /// <param name="departmentList">部门实体对象</param>
 public static void UpdateDepartment(IList <Department> departmentList)
 {
     DepartmentDal.Update(departmentList);
 }
예제 #4
0
 /// <summary>
 /// 更新部门数据
 /// </summary>
 /// <param name="department">部门实体对象</param>
 /// <param name="tran">中间事务对象</param>
 public static void UpdateDepartment(Department department, ICTransaction tran)
 {
     DepartmentDal.Update(department, tran);
 }
예제 #5
0
 /// <summary>
 /// 更新部门数据
 /// </summary>
 /// <param name="department">部门实体对象</param>
 public static void UpdateDepartment(Department department)
 {
     DepartmentDal.Update(department);
 }