public bool DeleteGroupByKey(string groupCode)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.G_DeleteGroupByKey(loginTicket, groupCode));
     }
 }
Example #2
0
 public bool ModifyPwdDirect(string account, string pwd, string DBName)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.U_ModifyPwdDirect(validationTicket, account, pwd, DBName));
     }
 }
 public int GetFormAuthority(string account, int moduleID, string menuName)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.G_GetFormAuthority(loginTicket, account, moduleID, menuName));
     }
 }
Example #4
0
 public bool ModifyPassword(string account, string pwd)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.U_ModifyPassword(loginTicket, account, pwd));
     }
 }
Example #5
0
 public void Logout(string account)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         client.U_Logout(loginTicket);
     }
 }
Example #6
0
 public bool ExistsUser(string account)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.U_ExistsUser(loginTicket, account));
     }
 }
 public System.Data.DataTable GetFormTagCustomName()
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.G_GetFormTagCustomName(loginTicket);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
 public System.Data.DataSet GetUserGroup(string groupCode)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.G_GetUserGroupByCode(loginTicket, groupCode);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
Example #9
0
 public DataTable GetUserDirect(string account, string DBName)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         byte[] receivedData     = client.U_GetUserDirect(validationTicket, account, DBName);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Example #10
0
 public DataTable GetUserAuthorities(Loginer user)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.U_GetUserAuthorities(loginTicket);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Example #11
0
 public DataSet GetUserReportData(DateTime createDateFrom, DateTime createDateTo)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] bs          = client.U_GetUserReportData(loginTicket, createDateFrom, createDateTo);
         return(ZipTools.DecompressionDataSet(bs));
     }
 }
Example #12
0
 public bool Update(System.Data.DataSet ds)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] userData    = ZipTools.CompressionDataSet(ds);
         return(client.U_UpdateUser(loginTicket, userData));
     }
 }
Example #13
0
 public System.Data.DataTable GetUserByNovellID(string novellAccount)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.U_GetUserByNovellID(loginTicket, novellAccount);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Example #14
0
 public DataTable Login(LoginUser loginUser, char LoginUserType)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[]  validationTicket = WebServiceSecurity.GetLoginTicket();
         byte[]  bsLoginUser      = ZipTools.CompressionObject(loginUser);
         byte[]  receivedData     = client.U_Login(validationTicket, bsLoginUser, LoginUserType);
         DataSet ds = ZipTools.DecompressionDataSet(receivedData);
         return(ds.Tables[0]);
     }
 }