Example #1
0
        public void Activate()
        {
            try
            {
                Agent = RemoteProxy.GetObject(typeof(ILXJHGLAddin),
                                              ConstLXJHGL.RemotingURL) as ILXJHGLAddin;

                var userType = Agent.GetUserType(ClientData.LogonUser.LogId);
                if (userType == LXJHGLUserType.组长)
                {
                    zzjm.showzzjm();
                }
                else if (userType == LXJHGLUserType.组员)
                {
                    zyjm.showzyjm();
                }
            }
            catch (Exception e)
            {
                PrintException.Print(e);
            }
        }
Example #2
0
 public void Activate()
 {
     try
     {
         Agent = RemoteProxy.GetObject(typeof(ILXJHGLAddin),
                                   ConstLXJHGL.RemotingURL) as ILXJHGLAddin;
         
         var userType = Agent.GetUserType(ClientData.LogonUser.LogId);
         if (userType == LXJHGLUserType.组长)
         {
             zzjm.showzzjm();
             
         }
         else if (userType == LXJHGLUserType.组员)
         {
             zyjm.showzyjm();
         }
     }
     catch (Exception e)
     {
         PrintException.Print(e);
     }
 }