예제 #1
0
 static void client_GetEntityPermissionByUserCompleted(object sender, GetEntityPermissionByUserCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (e.Result != null)
         {
             SavePermissionByLocal(e.Result);
         }
     }else
     {
         MessageBox.Show("获取员工模块权限失败!");
         if (OnGetUserMenuPermissionCompleted != null)
         {
             OnGetUserMenuPermissionCompleted(null, EventArgs.Empty);
         }
     }
 }
예제 #2
0
 static void client_GetEntityPermissionByUserCompleted(object sender, GetEntityPermissionByUserCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (e.Result != null)
         {
             SavePermissionByLocal(e.Result);
         }
     }
     else
     {
         MessageBox.Show("获取员工模块权限失败!");
         if (OnGetUserMenuPermissionCompleted != null)
         {
             OnGetUserMenuPermissionCompleted(null, EventArgs.Empty);
         }
     }
 }