public PagingEntity<Customer> Query(CustomerQueryForm form) { List<string> useridList = Common.GetDataAuthorityUserIDList(); form.Creators = useridList; var list = bll.Query(form); PagingEntity<Customer> paggingList = new PagingEntity<Customer>(); paggingList.Record = list; paggingList.PageCount = form.PageCount; paggingList.RecordCount = form.RecordCount; return paggingList; }
public List<Customer> Query(CustomerQueryForm form) { CustomerDao dao = new CustomerDao(); form.IsDeleted = 0; return dao.Query(form); }
public bool Delete(CustomerQueryForm form) { CustomerDao dao = new CustomerDao(); dao.Delete(form); return true; }
public bool CheckIdentityCodeExists(CustomerQueryForm form) { CustomerDao dao = new CustomerDao(); return dao.CheckIdentityCode(form) != null; }
private void button16_Click(object sender, EventArgs e) { Workflow workflow = new Workflow(); RoleBLL rolebll = new RoleBLL(); CustomerBLL customerbll = new CustomerBLL(); List<string> ids = rolebll.GetUserSubUserIDs("13"); CustomerQueryForm form = new CustomerQueryForm(); form.Creators = ids; var list = customerbll.Query(form); PagingEntity<Customer> paggingList = new PagingEntity<Customer>(); paggingList.Record = list; paggingList.PageCount = form.PageCount; paggingList.RecordCount = form.RecordCount; }
public bool Delete(CustomerQueryForm form) { if (string.IsNullOrEmpty(form.ID)) throw new Exception("删除失败,没有客户ID"); return bll.Delete(new CustomerQueryForm { ID = form.ID }); }
public bool CheckIdentityCodeExists(CustomerQueryForm form) { return bll.CheckIdentityCodeExists(form); }