コード例 #1
0
 public bool DeleteGroupByKey(string groupCode)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.G_DeleteGroupByKey(loginTicket, groupCode));
     }
 }
コード例 #2
0
ファイル: User_Bridge.cs プロジェクト: zzpgeorge/HH-Client-CS
 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));
     }
 }
コード例 #3
0
 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));
     }
 }
コード例 #4
0
ファイル: User_Bridge.cs プロジェクト: zzpgeorge/HH-Client-CS
 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));
     }
 }
コード例 #5
0
ファイル: User_Bridge.cs プロジェクト: zzpgeorge/HH-Client-CS
 public void Logout(string account)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         client.U_Logout(loginTicket);
     }
 }
コード例 #6
0
ファイル: User_Bridge.cs プロジェクト: zzpgeorge/HH-Client-CS
 public bool ExistsUser(string account)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.U_ExistsUser(loginTicket, account));
     }
 }
コード例 #7
0
 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]);
     }
 }
コード例 #8
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));
     }
 }
コード例 #9
0
ファイル: User_Bridge.cs プロジェクト: zzpgeorge/HH-Client-CS
 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]);
     }
 }
コード例 #10
0
ファイル: User_Bridge.cs プロジェクト: zzpgeorge/HH-Client-CS
 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]);
     }
 }
コード例 #11
0
ファイル: User_Bridge.cs プロジェクト: zzpgeorge/HH-Client-CS
 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));
     }
 }
コード例 #12
0
ファイル: User_Bridge.cs プロジェクト: zzpgeorge/HH-Client-CS
 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));
     }
 }
コード例 #13
0
ファイル: User_Bridge.cs プロジェクト: zzpgeorge/HH-Client-CS
 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]);
     }
 }
コード例 #14
0
ファイル: User_Bridge.cs プロジェクト: zzpgeorge/HH-Client-CS
 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]);
     }
 }