Пример #1
0
 public PagingEntity<Customer> QueryAllPaging()
 {
     CustomerQueryForm form = new CustomerQueryForm { Enabled = 1, IsDeleted = 0 };
     PagingEntity<Customer> result = new PagingEntity<Customer>();
     result.Record = bll.Query(form);
     result.RecordCount = bll.QueryCount(form);
     return result;
 }
Пример #2
0
 public int QueryCount(CustomerQueryForm form)
 {
     ISqlMapper mapper = MapperHelper.GetMapper();
     CustomerDao dao = new CustomerDao(mapper);
     return dao.QueryCount(form);
 }
Пример #3
0
 public List<Customer> Query(CustomerQueryForm form)
 {
     ISqlMapper mapper = MapperHelper.GetMapper();
     CustomerDao dao = new CustomerDao(mapper);
     return dao.Query(form);
 }
Пример #4
0
 public bool Delete(CustomerQueryForm form)
 {
     ISqlMapper mapper = MapperHelper.GetMapper();
     CustomerDao dao = new CustomerDao(mapper);
     return dao.Delete(form);
 }
Пример #5
0
 public PagingEntity<Customer> QueryRenterPaging(CustomerQueryForm form)
 {
     if (form == null) form = new CustomerQueryForm();
     form.Type = (int)CustomerType.租客;
     form.IsDeleted = 0;
     List<string> userids = Common.GetDataAuthorityUserIDList();
     form.Creators = userids;
     PagingEntity<Customer> result = new PagingEntity<Customer>();
     result.Record = bll.Query(form);
     result.RecordCount = bll.QueryCount(form);
     return result;
 }
Пример #6
0
 public List<Customer> QueryRenter(CustomerQueryForm form)
 {
     if (form == null) form = new CustomerQueryForm();
     form.Type = (int)CustomerType.租客;
     form.IsDeleted = 0;
     List<string> userids = Common.GetDataAuthorityUserIDList();
     form.Creators = userids;
     return bll.Query(form);
 }