예제 #1
0
 /// <summary>
 /// 保存部门或科室
 /// </summary>
 /// <param name="m"></param>
 public static void save(department m)
 {
     using (DAL.departmentDAL dal = new DAL.departmentDAL())
     {
         if (m.id > 0)
         {
             dal.updateks(m);//修改科室
         }
         else
         {
             dal.save(m);//添加科室
         }
     }
 }
예제 #2
0
 public static int departmentXiuGai(department d)
 {
     return(DAL.ZZXDAL.departmentXiuGai(d));
 }
예제 #3
0
 //删除
 public static int departmentShanChu(department d)
 {
     return(DAL.ZZXDAL.departmentShanChu(d));
 }
예제 #4
0
 public static int departmentXinZeng(department d)
 {
     return(DAL.ZZXDAL.departmentXinZeng(d));
 }
예제 #5
0
 /// <summary>
 /// 根据部门id查询部门信息
 /// </summary>
 /// <param name="me"></param>
 /// <returns></returns>
 public static DataSet selectByDID(department me)
 {
     return(DAL.departmentServer.selectByDID(me));
 }
예제 #6
0
 /// <summary>
 /// 添加部门
 /// </summary>
 /// <param name="me"></param>
 /// <returns></returns>
 public static int department_ADD(department me)
 {
     return(Convert.ToInt32(DAL.departmentServer.department_ADD(me)));
 }
예제 #7
0
 public int Add(department department)
 {
     return(dal.Add(department));
 }
예제 #8
0
 public int Remove(department t)
 {
     return(dal.Remove(t));
 }