示例#1
0
 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;
 }
示例#2
0
 public List<Customer> Query(CustomerQueryForm form)
 {
     CustomerDao dao = new CustomerDao();
     form.IsDeleted = 0;
     return dao.Query(form);
 }
示例#3
0
 public bool Delete(CustomerQueryForm form)
 {
     CustomerDao dao = new CustomerDao();
     dao.Delete(form);
     return true;
 }
示例#4
0
 public bool CheckIdentityCodeExists(CustomerQueryForm form)
 {
     CustomerDao dao = new CustomerDao();
     return dao.CheckIdentityCode(form) != null;
 }
示例#5
0
文件: Index.cs 项目: franknew/RiskMgr
 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;
 }
示例#6
0
 public bool Delete(CustomerQueryForm form)
 {
     if (string.IsNullOrEmpty(form.ID)) throw new Exception("删除失败,没有客户ID");
     return bll.Delete(new CustomerQueryForm { ID = form.ID });
 }
示例#7
0
 public bool CheckIdentityCodeExists(CustomerQueryForm form)
 {
     return bll.CheckIdentityCodeExists(form);
 }