Beispiel #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;
 }
Beispiel #2
0
 void client_GetUserPermissionByUserToUICompleted(object sender, GetUserPermissionByUserToUICompletedEventArgs e)
 {
     if (e.Result != null)
     {
         Permission = e.Result.ToList();
         personelClient.GetEmployeeDetailViewByIDAsync(User.EMPLOYEEID);
     }
 }
Beispiel #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;
 }
Beispiel #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();
     }
 }
Beispiel #5
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();
     }
 }
Beispiel #6
0
 void client_GetUserPermissionByUserToUICompleted(object sender, GetUserPermissionByUserToUICompletedEventArgs e)
 {
     if (e.Result != null)
     {
         Permission = e.Result.ToList();
         personelClient.GetEmployeeDetailViewByIDAsync(User.EMPLOYEEID);
     }
 }