コード例 #1
0
 public bool CheckNoExists(string keyValue)
 {
     using (SGBaseDict_WClient client = SoapClientFactory.CreateSGBaseDict_WClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.CheckNoExists(loginTicket, keyValue, _ORM.FullName));
     }
 }
コード例 #2
0
 public System.Data.DataSet DownloadDicts()
 {
     using (SGBaseDict_WClient client = SoapClientFactory.CreateSGBaseDict_WClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.DownloadDicts(loginTicket);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
コード例 #3
0
 public bool Update(System.Data.DataSet data)
 {
     using (SGBaseDict_WClient client = SoapClientFactory.CreateSGBaseDict_WClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] bs          = ZipTools.CompressionDataSet(data);
         return(client.Update(loginTicket, bs, _ORM.FullName));
     }
 }
コード例 #4
0
 public System.Data.DataTable GetDataDictByTableName(string tableName)
 {
     using (SGBaseDict_WClient client = SoapClientFactory.CreateSGBaseDict_WClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetDataDictByTableName(loginTicket, tableName);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
コード例 #5
0
 public SaveResultEx UpdateEx(System.Data.DataSet data)
 {
     using (SGBaseDict_WClient client = SoapClientFactory.CreateSGBaseDict_WClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] bs          = ZipTools.CompressionDataSet(data);
         byte[] rt          = client.UpdateEx(loginTicket, bs, _ORM.FullName);
         return((SaveResultEx)ZipTools.DecompressionObject(rt));
     }
 }