public void ApprovalBusiness(string keyValue, string flagApp, string appUser, DateTime appDate)
 {
     using (PurchaseModuleServiceClient client = SoapClientFactory.CreatePurchaseModuleClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         client.PO_ApprovalBusiness(loginTicket, keyValue, flagApp, appUser, appDate);
     }
 }
 public bool CheckNoExists(string keyValue)
 {
     using (PurchaseModuleServiceClient client = SoapClientFactory.CreatePurchaseModuleClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.PO_CheckNoExists(loginTicket, keyValue));
     }
 }
 public System.Data.DataSet GetSummaryByParam(string docNoFrom, string docNoTo, DateTime docDateFrom, DateTime docDateTo, string StockCode, string Customer)
 {
     using (PurchaseModuleServiceClient client = SoapClientFactory.CreatePurchaseModuleClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.PO_GetSummaryByParam(loginTicket, docNoFrom, docNoTo, docDateFrom, docDateTo, StockCode, Customer);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
 public System.Data.DataSet GetReportData(string DocNoFrom, string DocNoTo, DateTime DateFrom, DateTime DateTo)
 {
     using (PurchaseModuleServiceClient client = SoapClientFactory.CreatePurchaseModuleClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.PO_GetReportData(loginTicket, DocNoFrom, DocNoTo, DateFrom, DateTo);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
 public System.Data.DataSet GetBusinessByKey(string keyValue)
 {
     using (PurchaseModuleServiceClient client = SoapClientFactory.CreatePurchaseModuleClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.PO_GetBusinessByKey(loginTicket, keyValue);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
 public SaveResult Update(DataSet saveData)
 {
     using (PurchaseModuleServiceClient client = SoapClientFactory.CreatePurchaseModuleClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] bs           = ZipTools.CompressionDataSet(saveData);
         byte[] receivedData = client.PO_Update(loginTicket, bs);
         return(ZipTools.DecompressionObject(receivedData) as SaveResult);
     }
 }