예제 #1
0
 public bool Delete(Asset form)
 {
     if (string.IsNullOrEmpty(form.ID)) throw new Exception("删除失败,没有房产ID");
     AssetQueryForm deleteform = new AssetQueryForm
     {
         ID = form.ID,
     };
     return bll.Delete(deleteform);
 }
예제 #2
0
 public PagingEntity<Asset> Query(AssetQueryForm form)
 {
     List<string> useridList = Common.GetDataAuthorityUserIDList();
     form.Creators = useridList;
     var list = bll.Query(form);
     PagingEntity<Asset> assets = new PagingEntity<Asset>
     {
         Record = list,
         PageCount = form.PageCount,
         RecordCount = form.RecordCount,
     };
     return assets;
 }
예제 #3
0
 public List<Asset> Query(AssetQueryForm form)
 {
     AssetDao dao = new AssetDao();
     form.IsDeleted = 0;
     return dao.Query(form);
 }
예제 #4
0
 public bool Delete(AssetQueryForm form)
 {
     AssetDao dao = new AssetDao();
     return dao.Delete(form);
 }