/// <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);//添加科室 } } }
public static int departmentXiuGai(department d) { return(DAL.ZZXDAL.departmentXiuGai(d)); }
//删除 public static int departmentShanChu(department d) { return(DAL.ZZXDAL.departmentShanChu(d)); }
public static int departmentXinZeng(department d) { return(DAL.ZZXDAL.departmentXinZeng(d)); }
/// <summary> /// 根据部门id查询部门信息 /// </summary> /// <param name="me"></param> /// <returns></returns> public static DataSet selectByDID(department me) { return(DAL.departmentServer.selectByDID(me)); }
/// <summary> /// 添加部门 /// </summary> /// <param name="me"></param> /// <returns></returns> public static int department_ADD(department me) { return(Convert.ToInt32(DAL.departmentServer.department_ADD(me))); }
public int Add(department department) { return(dal.Add(department)); }
public int Remove(department t) { return(dal.Remove(t)); }