예제 #1
0
 public InvoiceController(I_Invoice repo, IMapper mapper, IVendorsRepository vendorsRepository, I_ItemsRepository itemsRepository, IPurchaseOrderRepository POrepository)
 {
     _repo              = repo;
     _mapper            = mapper;
     _vendorsRepository = vendorsRepository;
     _itemsRepo         = itemsRepository;
     _POnumberRepo      = POrepository;
 }
예제 #2
0
 //分页
 public static int TurnPage(ref List<M_Invoice> Obj, int Page, int PageSize, ref string ErrMsg)
 {
     I_Invoice I = (D_Invoice)SimpleFactory.CreateObject(DBType.Invoice);
     return I.TurnPage(ref Obj, Page, PageSize, ref ErrMsg);
 }
예제 #3
0
 //查询单个(查ID)
 public static int Select(ref M_Invoice Obj, int ID, ref string ErrMsg)
 {
     I_Invoice I = (D_Invoice)SimpleFactory.CreateObject(DBType.Invoice);
     return I.Select(ref Obj, ID, ref ErrMsg);
 }
예제 #4
0
 //更新单个(查ID)
 public static int Update(M_Invoice Obj, ref string ErrMsg)
 {
     I_Invoice I = (D_Invoice)SimpleFactory.CreateObject(DBType.Invoice);
     return I.Update(Obj, ref ErrMsg);
 }
예제 #5
0
 //插入多个
 public static int Insert(ref List<M_Invoice> Obj, ref string ErrMsg)
 {
     I_Invoice I = (D_Invoice)SimpleFactory.CreateObject(DBType.Invoice);
     return I.Insert(ref Obj, ref ErrMsg);
 }
예제 #6
0
 //删除单个(查ID)
 public static int Delete(int ID, ref string ErrMsg)
 {
     I_Invoice I = (D_Invoice)SimpleFactory.CreateObject(DBType.Invoice);
     return I.Delete(ID, ref ErrMsg);
 }