Beispiel #1
0
 //分页
 public static int TurnPage(ref List<M_Purchase> Obj, int Page, int PageSize, ref string ErrMsg)
 {
     I_Purchase I = (D_Purchase)SimpleFactory.CreateObject(DBType.Purchase);
     return I.TurnPage(ref Obj, Page, PageSize, ref ErrMsg);
 }
Beispiel #2
0
 //查询单个(查ID)
 public static int Select(ref M_Purchase Obj, int ID, ref string ErrMsg)
 {
     I_Purchase I = (D_Purchase)SimpleFactory.CreateObject(DBType.Purchase);
     return I.Select(ref Obj, ID, ref ErrMsg);
 }
Beispiel #3
0
 //插入多个
 public static int Insert(ref List<M_Purchase> Obj, ref string ErrMsg)
 {
     I_Purchase I = (D_Purchase)SimpleFactory.CreateObject(DBType.Purchase);
     return I.Insert(ref Obj, ref ErrMsg);
 }
Beispiel #4
0
 //更新单个(查ID)
 public static int Update(M_Purchase Obj, ref string ErrMsg)
 {
     I_Purchase I = (D_Purchase)SimpleFactory.CreateObject(DBType.Purchase);
     return I.Update(Obj, ref ErrMsg);
 }
Beispiel #5
0
 //删除单个(查ID)
 public static int Delete(int ID, ref string ErrMsg)
 {
     I_Purchase I = (D_Purchase)SimpleFactory.CreateObject(DBType.Purchase);
     return I.Delete(ID, ref ErrMsg);
 }