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