Beispiel #1
0
 public object GetList([System.Web.Http.FromUri] LURowIndexSearchDTO indexSearchVM)
 {
     using (LURowService luRowService = new LURowService())
     {
         indexSearchVM.Update(indexSearchVM.LUTableID.HasValue ? luRowService.GetList(indexSearchVM.LUTableID.Value, "", true, indexSearchVM.GetPagingProperties).Select(c => new LURowDTO(c)).ToList() : new List <LURowDTO>());
         using (LUTableService luTableService = new LUTableService())
         {
             indexSearchVM.Update(luTableService.GetList());
         }
         return(indexSearchVM);
     }
 }
Beispiel #2
0
 public object GetAddEdit(Guid?ID = null, Guid?LUTableID = null)
 {
     using (LURowService luRowService = new LURowService())
     {
         using (LUTableService luTableService = new LUTableService())
         {
             sysBpmsLURow lURow = !ID.HasValue ?
                                  new sysBpmsLURow().Update(LUTableID.Value, "", (luRowService.MaxCodeOfByLUTableID(LUTableID.Value) + 1).ToStringObj(), luRowService.MaxOrderByLUTableID(LUTableID.Value) + 1, false, true) :
                                  luRowService.GetInfo(ID.Value);
             return(new LURowDTO(lURow));
         }
     }
 }