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)); } }
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)); } }
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)); } }
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]); } }
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)); } }