Ejemplo n.º 1
0
 public bool CheckNoExists(string keyValue)
 {
     using (SGBaseDict_HClient client = WcfClientFactory.CreateBaseDict_HClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.CheckNoExists(loginTicket, keyValue, _ORM.FullName));
     }
 }
Ejemplo n.º 2
0
 public System.Data.DataSet DownloadDicts()
 {
     using (SGBaseDict_HClient client = WcfClientFactory.CreateBaseDict_HClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.DownloadDicts(loginTicket);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
Ejemplo n.º 3
0
 public bool Update(System.Data.DataSet data)
 {
     using (SGBaseDict_HClient client = WcfClientFactory.CreateBaseDict_HClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] bs          = ZipTools.CompressionDataSet(data);
         return(client.Update(loginTicket, bs, _ORM.FullName));
     }
 }
Ejemplo n.º 4
0
 public System.Data.DataTable GetDataDictByTableName(string tableName)
 {
     using (SGBaseDict_HClient client = WcfClientFactory.CreateBaseDict_HClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetDataDictByTableName(loginTicket, tableName);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Ejemplo n.º 5
0
 public SaveResultEx UpdateEx(System.Data.DataSet data)
 {
     using (SGBaseDict_HClient client = WcfClientFactory.CreateBaseDict_HClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] bs          = ZipTools.CompressionDataSet(data);
         byte[] rt          = client.UpdateEx(loginTicket, bs, _ORM.FullName);
         return((SaveResultEx)ZipTools.DecompressionObject(rt));
     }
 }