コード例 #1
0
 public RoleMenu(Context.RoleMenus dbitem)
 {
     IdMenu       = dbitem.IdMenu;
     StrMenuModul = dbitem.Menu == null ? "" : dbitem.Menu.Modul;
     IsCreate     = dbitem.IsCreate;
     IsRead       = dbitem.IsRead;
     IsUpdate     = dbitem.IsUpdate;
     IsDelete     = dbitem.IsDelete;
     IsPrint      = dbitem.IsPrint;
     IsProses     = dbitem.IsProses;
 }
コード例 #2
0
 public RoleMenu(Context.RoleMenus dbitem, int role_id)
 {
     IdMenu       = dbitem.IdMenu;
     StrMenu      = dbitem.Menu.MenuName;
     StrMenuModul = dbitem.Menu.Modul;
     IsCreate     = dbitem.IsCreate;
     IsRead       = dbitem.IsRead;
     IsUpdate     = dbitem.IsUpdate;
     IsDelete     = dbitem.IsDelete;
     IsPrint      = dbitem.IsPrint;
     IsProses     = dbitem.IsProses;
 }
コード例 #3
0
        public Context.RoleMenus setDb(Context.RoleMenus dbitem)
        {
            dbitem.Id       = Id;
            dbitem.IdMenu   = IdMenu.Value;
            dbitem.IsCreate = IsCreate;
            dbitem.IsRead   = IsRead;
            dbitem.IsUpdate = IsUpdate;
            dbitem.IsDelete = IsDelete;
            dbitem.IsPrint  = IsPrint;
            dbitem.IsProses = IsProses;

            return(dbitem);
        }