public Int32 Delete(NameValueCollection where, out ErrorEntity ErrInfo) { SysDepartmentTypeDA da = new SysDepartmentTypeDA(); Int32 result = da.Delete(where); if (result >= 0) { ErrInfo = new ErrorEntity(RespCode.Success); } else { ErrInfo = new ErrorEntity(RespCode.SysError); } return result; }
public Int64 Insert(NameValueCollection parameters, out ErrorEntity ErrInfo) { SysDepartmentTypeDA da = new SysDepartmentTypeDA(); Int64 result = da.InsertAndReturnId64(parameters); if (result > 0) { ErrInfo = new ErrorEntity(RespCode.Success); } else { ErrInfo = new ErrorEntity(RespCode.SysError); } return result; }
public List<SysDepartmentType> Select(NameValueCollection where) { SysDepartmentTypeDA da = new SysDepartmentTypeDA(); return da.Select(where).DataTableToList<SysDepartmentType>(); }
public List<SysDepartmentType> Select(NameValueCollection where, NameValueCollection orderby, int pageIndex, int pageSize, out int totalCount) { SysDepartmentTypeDA da = new SysDepartmentTypeDA(); return da.Select(where, orderby, pageIndex, pageSize, out totalCount).DataTableToList<SysDepartmentType>(); }