Beispiel #1
0
 public bool CheckNoExists(string TableName, string SqlCondition)
 {
     using (DataDictServiceClient client = SoapClientFactory.CreateDataDictClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.CheckNoExistsBySql(loginTicket, TableName, SqlCondition, _ORM.FullName));
     }
 }
 public bool CheckNoExists(string keyValue)
 {
     using (DataDictServiceClient client = SoapClientFactory.CreateDataDictClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.CheckNoExists(loginTicket, keyValue, _ORM.FullName));
     }
 }
 public bool IsExistsCommonType(int code)
 {
     using (DataDictServiceClient client = SoapClientFactory.CreateDataDictClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.IsExistsCommonType(loginTicket, code));
     }
 }
Beispiel #4
0
 public DataTable FuzzySearch(string content)
 {
     using (DataDictServiceClient client = SoapClientFactory.CreateDataDictClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.FuzzySearchProduct(loginTicket, content);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Beispiel #5
0
 public DataTable GetCustomerByAttributeCodes(string attributeCodes, bool nameWithCode)
 {
     using (DataDictServiceClient client = SoapClientFactory.CreateDataDictClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetCustomerByAttributeCodes(loginTicket, attributeCodes, nameWithCode);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Beispiel #6
0
 public DataTable SearchBy(string CustomerFrom, string CustomerTo, string Name, string Attribute)
 {
     using (DataDictServiceClient client = SoapClientFactory.CreateDataDictClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.FuzzySearchCustomer(loginTicket, CustomerFrom, CustomerTo, Name, Attribute);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
 public bool Update(System.Data.DataSet data)
 {
     using (DataDictServiceClient client = SoapClientFactory.CreateDataDictClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] bs          = ZipTools.CompressionDataSet(data);
         return(client.Update(loginTicket, bs, _ORM.FullName));
     }
 }
 public System.Data.DataTable GetSummaryData()
 {
     using (DataDictServiceClient client = SoapClientFactory.CreateDataDictClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetSummaryData(loginTicket, _ORM.FullName);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
 public DataSet DownloadDicts()
 {
     using (DataDictServiceClient client = SoapClientFactory.CreateDataDictClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.DownloadDicts(loginTicket);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
 public DataTable GetDataDictByTableName(string tableName)
 {
     using (DataDictServiceClient client = SoapClientFactory.CreateDataDictClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetDataDictByTableName(loginTicket, tableName);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
 public System.Data.DataTable SearchBy(int dataType)
 {
     using (DataDictServiceClient client = SoapClientFactory.CreateDataDictClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.SearchCommonType(loginTicket, dataType);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
 public SaveResultEx UpdateEx(System.Data.DataSet data)
 {
     using (DataDictServiceClient client = SoapClientFactory.CreateDataDictClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] bs          = ZipTools.CompressionDataSet(data);
         byte[] rt          = client.UpdateEx(loginTicket, bs, _ORM.FullName);
         return((SaveResultEx)ZipTools.DecompressionObject(rt));
     }
 }