コード例 #1
0
 //查询单个(查ID)
 public static int Select(ref M_EmployeeLogin Obj, int ID, ref string ErrMsg)
 {
     I_EmployeeLogin I = (D_EmployeeLogin)SimpleFactory.CreateObject(DBType.EmployeeLogin);
     return I.Select(ref Obj, ID, ref ErrMsg);
 }
コード例 #2
0
 //分页
 public static int TurnPage(ref List<M_EmployeeLogin> Obj, int Page, int PageSize, ref string ErrMsg)
 {
     I_EmployeeLogin I = (D_EmployeeLogin)SimpleFactory.CreateObject(DBType.EmployeeLogin);
     return I.TurnPage(ref Obj, Page, PageSize, ref ErrMsg);
 }
コード例 #3
0
 //更新单个(查ID)
 public static int Update(M_EmployeeLogin Obj, ref string ErrMsg)
 {
     I_EmployeeLogin I = (D_EmployeeLogin)SimpleFactory.CreateObject(DBType.EmployeeLogin);
     return I.Update(Obj, ref ErrMsg);
 }
コード例 #4
0
 //插入多个
 public static int Insert(ref List<M_EmployeeLogin> Obj, ref string ErrMsg)
 {
     I_EmployeeLogin I = (D_EmployeeLogin)SimpleFactory.CreateObject(DBType.EmployeeLogin);
     return I.Insert(ref Obj, ref ErrMsg);
 }
コード例 #5
0
 //删除单个(查ID)
 public static int Delete(int ID, ref string ErrMsg)
 {
     I_EmployeeLogin I = (D_EmployeeLogin)SimpleFactory.CreateObject(DBType.EmployeeLogin);
     return I.Delete(ID, ref ErrMsg);
 }
コード例 #6
0
 //员工登录
 public static int Login(ref M_EmployeeLogin Obj, string username, string password, ref string ErrMsg)
 {
     I_EmployeeLogin I = (D_EmployeeLogin)SimpleFactory.CreateObject(DBType.EmployeeLogin);
     return I.Login(ref Obj, username, password, ref ErrMsg);
 }
コード例 #7
0
 //查询(查用户名)
 public static int Select_Name(ref List<M_EmployeeLogin> Obj, string username, ref string ErrMsg)
 {
     I_EmployeeLogin I = (D_EmployeeLogin)SimpleFactory.CreateObject(DBType.EmployeeLogin);
     return I.Select_Name(ref Obj, username, ref ErrMsg);
 }