Example #1
0
 public string GetDataSN(string dataCode, bool asHeader)
 {
     using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.GetDataSN(loginTicket, dataCode, asHeader));
     }
 }
 public void ApprovalBusiness(string keyValue, string flagApp, string appUser, DateTime appDate)
 {
     using (InventoryModuleServiceClient client = SoapClientFactory.CreateInventoryModuleServiceClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         client.IC_ApprovalBusiness(loginTicket, keyValue, flagApp, appUser, appDate);
     }
 }
Example #3
0
 public bool BackupDatabase(string DBNAME, string BKPATH)
 {
     using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.BackupDatabase(DBNAME, BKPATH));
     }
 }
Example #4
0
 public bool RestoreDatabase(string BKFILE, string DBNAME)
 {
     using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.RestoreDatabase(BKFILE, DBNAME));
     }
 }
Example #5
0
 public void Logout(string account)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         client.U_Logout(loginTicket);
     }
 }
Example #6
0
 public bool ModifyPassword(string account, string pwd)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.U_ModifyPassword(loginTicket, account, pwd));
     }
 }
Example #7
0
 public bool ExistsUser(string account)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.U_ExistsUser(loginTicket, account));
     }
 }
 public bool CheckNoExists(string keyValue)
 {
     using (InventoryModuleServiceClient client = SoapClientFactory.CreateInventoryModuleServiceClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.IC_CheckNoExists(loginTicket, keyValue));
     }
 }
Example #9
0
 public bool DeleteGroupByKey(string groupCode)
 {
     using (SGBaseUser_HClient client = WcfClientFactory.CreateSGBaseUser_HClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.G_DeleteGroupByKey(loginTicket, groupCode));
     }
 }
Example #10
0
 public int GetFormAuthority(string account, int moduleID, string menuName)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.G_GetFormAuthority(loginTicket, account, moduleID, menuName));
     }
 }
Example #11
0
 public bool CheckNoExists(string groupCode)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.G_CheckNoExists(loginTicket, groupCode));
     }
 }
Example #12
0
 public DataSet SearchLog(string logUser, string tableName, DateTime dateFrom, DateTime dateTo)
 {
     using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.SearchLog(loginTicket, logUser, tableName, dateFrom, dateTo);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
 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));
     }
 }
Example #16
0
 public System.Data.DataSet GetBusinessByKey(string keyValue)
 {
     using (InventoryModuleServiceClient client = SoapClientFactory.CreateInventoryModuleServiceClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.IC_GetBusinessByKey(loginTicket, keyValue);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
Example #17
0
 public string GetSystemProfileVal(string key)
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         //byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         return(client.G_GetSystemProfileVal(loginTicket, key));
     }
 }
Example #18
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]);
     }
 }
Example #19
0
 public bool SaveFieldDef(DataTable data)
 {
     using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] bsData      = ZipTools.CompressionDataSet(dalBase.TableToDataSet(data));
         return(client.SaveFieldDef(loginTicket, bsData));
     }
 }
Example #20
0
 public DataTable GetLogFieldDef(string tableName)
 {
     using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetLogFieldDef(loginTicket, tableName);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Example #21
0
 public string[] GetTracedFields(string tableName)
 {
     using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient())
     {
         byte[]   loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         string[] arr         = client.GetTracedFields(loginTicket, tableName);
         return(arr);
     }
 }
Example #22
0
 public DataTable GetRportData(string sReportName, string sFilter, bool bIsGetCount, int nPageIndex)
 {
     using (ExtGridControl_WClient client = SoapClientFactory.CreateExtGridControl_WClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetRportData(loginTicket, sReportName, sFilter, bIsGetCount, nPageIndex);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Example #23
0
 public System.Data.DataTable GetAttachFileData(string docID)
 {
     using (CommonService_HClient client = WcfClientFactory.CreateCommonService_HClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetAttachedFiles(loginTicket, docID);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Example #24
0
 public DataTable GetDataTableBySQL(string sql)
 {
     using (ExtGridControl_WClient client = SoapClientFactory.CreateExtGridControl_WClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetDataTableBySQL(loginTicket, sql);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Example #25
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]);
     }
 }
 public DataTable GetBackupHistory(int topList)
 {
     using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] bs          = client.GetBackupHistory(loginTicket, topList);
         return(ZipTools.DecompressionDataSet(bs).Tables[0]);
     }
 }
Example #27
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]);
     }
 }
 public DataTable SearchOutstanding(string invoiceNo, string customer, DateTime dateFrom, DateTime dateTo, DateTime dateEnd, string outstandingType)
 {
     using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] bs          = client.SearchOutstanding(loginTicket, invoiceNo, customer, dateFrom, dateTo, dateEnd, outstandingType);
         return(ZipTools.DecompressionDataSet(bs).Tables[0]);
     }
 }
Example #29
0
 public System.Data.DataTable GetSummaryByParam(string docNoFrom, string docNoTo, DateTime docDateFrom, DateTime docDateTo)
 {
     using (InventoryModuleServiceClient client = SoapClientFactory.CreateInventoryModuleServiceClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.IC_GetSummaryByParam(loginTicket, docNoFrom, docNoTo, docDateFrom, docDateTo);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Example #30
0
 public DataSet GetReportData_Checklist(string DocNoFrom, string DocNoTo, DateTime DateFrom, DateTime DateTo)
 {
     using (AccountModuleServiceClient client = SoapClientFactory.CreateAccountModuleServiceClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.AP_GetReportData(loginTicket, DocNoFrom, DocNoTo, DateFrom, DateTo);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }