Ejemplo n.º 1
0
 void client_GetUserPermissionByUserToUICompleted(object sender, GetUserPermissionByUserToUICompletedEventArgs e)
 {
     if (e.Result != null)
         Permission = e.Result.ToList();
     var ents = from ent in Permission
                where ent.EntityMenuID == "ccf0b182-a339-4276-80ce-2b644e426a91"
                select ent;
 }
Ejemplo n.º 2
0
 void client_GetUserPermissionByUserToUICompleted(object sender, GetUserPermissionByUserToUICompletedEventArgs e)
 {
     if (e.Result != null)
     {
         Permission = e.Result.ToList();
         personelClient.GetEmployeeDetailViewByIDAsync(User.EMPLOYEEID);
     }
 }
Ejemplo n.º 3
0
 void client_GetUserPermissionByUserToUICompleted(object sender, GetUserPermissionByUserToUICompletedEventArgs e)
 {
     if (e.Result != null)
     {
         Permission = e.Result.ToList();
     }
     var ents = from ent in Permission
                where ent.EntityMenuID == "ccf0b182-a339-4276-80ce-2b644e426a91"
                select ent;
 }
Ejemplo n.º 4
0
 static void clientPerm_GetUserPermissionByUserToUICompleted(object sender, GetUserPermissionByUserToUICompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (e.Result == null)
         {
             return;
         }
         List <V_UserPermissionUI> entPermList = e.Result.ToList();
         foreach (var fent in entPermList)
         {
             SMT.SaaS.LocalData.V_UserPermissionUI tps = new SMT.SaaS.LocalData.V_UserPermissionUI();
             tps = SMT.SAAS.Main.CurrentContext.Common.CloneObject <V_UserPermissionUI, SMT.SaaS.LocalData.V_UserPermissionUI>(fent, tps);
             SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.PermissionInfoUI.Add(tps);
         }
         ShowForm();
     }
 }
Ejemplo n.º 5
0
Archivo: Utility.cs Proyecto: JuRogn/OA
 static void clientPerm_GetUserPermissionByUserToUICompleted(object sender, GetUserPermissionByUserToUICompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (e.Result == null)
         {
             return;
         }
         List<V_UserPermissionUI> entPermList = e.Result.ToList();
         foreach (var fent in entPermList)
         {
             SMT.SaaS.LocalData.V_UserPermissionUI tps = new SMT.SaaS.LocalData.V_UserPermissionUI();
             tps = SMT.SAAS.Main.CurrentContext.Common.CloneObject<V_UserPermissionUI, SMT.SaaS.LocalData.V_UserPermissionUI>(fent, tps);
             SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.PermissionInfoUI.Add(tps);
         }
         ShowForm();
     }
 }
Ejemplo n.º 6
0
 void client_GetUserPermissionByUserToUICompleted(object sender, GetUserPermissionByUserToUICompletedEventArgs e)
 {
     if (e.Result != null)
     {
         Permission = e.Result.ToList();
         personelClient.GetEmployeeDetailViewByIDAsync(User.EMPLOYEEID);
     }
 }