示例#1
0
 //Init
 private void initConstructor(DBMAINContext poDB)
 {
     //DBContext
     this.db = poDB;
     //DS
     this.oDS = new UserDS(this.db);
     this.oDSRole = new RoleDS();
     //CRUD
     this.oCRUD = new UserCRUD(this.db);
     //BL
     //MAP
 } //End initConstructor
示例#2
0
        //BL
        //MAP


        //Init
        private void initConstructor(DBMAINContext poDB)
        {
            //DBContext
            this.db = poDB;
            //VM
            this.oVM = new EmployeeuserVM();
            //DS
            this.oDS         = new EmployeeuserDS(this.db);
            this.oDSUnit     = new UnitDS(this.db);
            this.oDSJobtitle = new JobtitleDS(this.db);
            this.oDSRole     = new RoleDS(this.db);
            //CRUD
            this.oCRUD = new EmployeeuserCRUD(this.db);

            //BL
            //MAP
        } //End initConstructor
示例#3
0
 public List <Role> GetRoleById(int roleid)
 {
     return(RoleDS.GetRoleById(roleid));
 }
示例#4
0
 public string InUpDeRole(Role role)
 {
     return(RoleDS.InsUpdDelRole(role));
 }
示例#5
0
 public List <Role> GetAllRole()
 {
     return(RoleDS.GetAllRole());
 }