Beispiel #1
0
 public int GetMenuShow(string account, int moduleID)
 {
     using (SGBaseUser_WClient client = SoapClientFactory.CreateSGBaseUser_WClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.GetMenuShow(loginTicket, account, moduleID));
     }
 }
Beispiel #2
0
 public bool DeleteGroupByKey(string groupCode)
 {
     using (SGBaseUser_WClient client = SoapClientFactory.CreateSGBaseUser_WClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.G_DeleteGroupByKey(loginTicket, groupCode));
     }
 }
 public DataSet Getb_sys_UserReportData(DateTime createDateFrom, DateTime createDateTo)
 {
     using (SGBaseUser_WClient client = SoapClientFactory.CreateSGBaseUser_WClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.U_GetUserReportData(loginTicket, createDateFrom, createDateTo);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
        public void Logout(string account)
        {
            using (SGBaseUser_WClient client = SoapClientFactory.CreateSGBaseUser_WClient())
            {
                byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);

                client.U_Logout(loginTicket);
            }
        }
        public bool ModifyPwdDirect(string account, string pwd, string DBName)
        {
            using (SGBaseUser_WClient client = SoapClientFactory.CreateSGBaseUser_WClient())
            {
                byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);

                return(client.U_ModifyPwdDirect(loginTicket, account, pwd, DBName));
            }
        }
        public bool ExistsUser(string account)
        {
            using (SGBaseUser_WClient client = SoapClientFactory.CreateSGBaseUser_WClient())
            {
                byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);

                return(client.U_ExistsUser(loginTicket, account));
            }
        }
 public bool Update(DataSet ds)
 {
     using (SGBaseUser_WClient client = SoapClientFactory.CreateSGBaseUser_WClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] bDs         = ZipTools.CompressionDataSet(ds);
         return(client.U_UpdateUser(loginTicket, bDs));
     }
 }
 public DataTable Getb_sys_UserGroups(string account)
 {
     using (SGBaseUser_WClient client = SoapClientFactory.CreateSGBaseUser_WClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.U_GetUserGroups(loginTicket, account);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Beispiel #9
0
 public System.Data.DataTable GetFormTagCustomName()
 {
     using (SGBaseUser_WClient client = SoapClientFactory.CreateSGBaseUser_WClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.G_GetFormTagCustomName(loginTicket);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Beispiel #10
0
 public System.Data.DataSet GetUserGroup(string groupCode)
 {
     using (SGBaseUser_WClient client = SoapClientFactory.CreateSGBaseUser_WClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.G_GetUserGroupByCode(loginTicket, groupCode);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
        public DataTable LoginByCard(LoginUser loginUser, char LoginUserType)
        {
            using (SGBaseUser_WClient client = SoapClientFactory.CreateSGBaseUser_WClient())
            {
                byte[] loginTicket = WebServiceSecurity.GetLoginTicket();
                byte[] login       = ZipTools.CompressionObject(loginUser);


                byte[] receivedData = client.U_LoginByCard(loginTicket, login, LoginUserType);
                return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
            }
        }