コード例 #1
0
 public DataTable FindByColumn( )
 {
     dt          = UserDto.Data();
     dr          = dt.NewRow();
     dr["FName"] = "";
     return(dao.FindByColumn(dt));
 }
コード例 #2
0
 public DataTable FindByPK(string User_Oid)
 {
     dt             = UserDto.Data();
     dr             = dt.NewRow();
     dr["USER_OID"] = User_Oid;
     dt.Rows.Add(dr);
     return(dao.FindByPK(dt));
 }
コード例 #3
0
 public DataTable UserLogin(string userName, string password)
 {
     dt = UserDto.Data();
     dr = dt.NewRow();
     dr["USER_LOGIN"] = userName;
     dr["PASSWORD"]   = password;
     dt.Rows.Add(dr);
     return(dao.FindByUserLogin(dt));
 }
コード例 #4
0
 /// <summary>
 /// active =1 /0 if active is empty then show all
 /// </summary>
 /// <param name="name"></param>
 /// <param name="active"></param>
 /// <returns></returns>
 public DataTable FindByColumn(string fname, string usergroup_OID, string active)
 {
     dt                  = UserDto.Data();
     dr                  = dt.NewRow();
     dr["FName"]         = fname;
     dr["USERGROUP_OID"] = usergroup_OID;
     dr["ROW_STATE"]     = active;
     dt.Rows.Add(dr);
     return(dao.FindByColumn(dt));
 }
コード例 #5
0
        public bool Action(string USER_OID
                           , string USERGROUP_OID
                           , string USER_LOGIN
                           , string FName
                           , string LName
                           , string Position
                           , string Addr1
                           , string Telephone
                           , string Email
                           , string PASSWORD
                           , bool rowState
                           , string userLogin
                           , PAction action)
        {
            dt                     = UserDto.Data();
            dr                     = dt.NewRow();
            dr["USER_OID"]         = USER_OID;
            dr["USERGROUP_OID"]    = USERGROUP_OID;
            dr["USER_LOGIN"]       = USER_LOGIN;
            dr["FName"]            = FName;
            dr["LName"]            = LName;
            dr["Position"]         = Position;
            dr["Addr1"]            = Addr1;
            dr["Telephone"]        = Telephone;
            dr["Email"]            = Email;
            dr["PASSWORD"]         = PASSWORD;
            dr["MAX_SESSION"]      = "";
            dr["SESSION_TIME_OUT"] = "";
            dr["CREATE_BY"]        = userLogin;
            dr["CREATE_DATE"]      = "";
            dr["UPDATE_BY"]        = userLogin;
            dr["UPDATE_DATE"]      = "";
            dr["ROW_STATE"]        = rowState?"1":"0";
            dr["Active"]           = "";
            dt.Rows.Add(dr);
            switch (action)
            {
            case  PAction.Add: isCan = Add(); break;

            case PAction.Update: isCan = Update(); break;

            case PAction.Delete: isCan = Delete(); break;
            }
            return(isCan);
        }