Beispiel #1
0
    public bool SaveFieldDef(byte[] loginTicket, byte[] data)
    {
        Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);
        DataSet ds      = ZipTools.DecompressionDataSet(data);

        return(new dalEditLogHistory(loginer).SaveFieldDef(ds.Tables[0]));
    }
Beispiel #2
0
 public DataTable GetUserAuthorities(Loginer user)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.U_GetUserAuthorities(loginTicket);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Beispiel #3
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));
     }
 }
Beispiel #4
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 #5
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]);
     }
 }
Beispiel #6
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 DataSet DownloadDicts()
 {
     using (DataDictServiceClient client = SoapClientFactory.CreateDataDictClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.DownloadDicts(loginTicket);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
 public System.Data.DataTable GetSystemDataSet()
 {
     using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         byte[] receivedData     = client.GetSystemDataSet(validationTicket);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
 public System.Data.DataTable GetFormTagCustomName()
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.G_GetFormTagCustomName(loginTicket);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
 public System.Data.DataSet GetUserGroup(string groupCode)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.G_GetUserGroupByCode(loginTicket, groupCode);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
Beispiel #11
0
 public System.Data.DataTable SearchBy(string dataType)
 {
     using (SGDatabase_WClient client = SoapClientFactory.CreateSGDatabase_WClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         byte[] receivedData     = client.SearchCommonType(validationTicket, dataType);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
 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));
     }
 }
Beispiel #14
0
 public System.Data.DataSet GetItemDesc(string FNumber)
 {
     using (SGDatabase_WClient client = SoapClientFactory.CreateSGDatabase_WClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         byte[] receivedData     = client.GetItemDesc(validationTicket, FNumber);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
Beispiel #15
0
 public DataTable GetUserDirect(string account, string DBName)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         byte[] receivedData     = client.U_GetUserDirect(validationTicket, account, DBName);
         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]);
     }
 }
 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]);
     }
 }
 public System.Data.DataTable GetDataByKey(string key)
 {
     using (SGBaseDict_HClient client = WcfClientFactory.CreateBaseDict_HClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetDataByKey(loginTicket, _ORM.FullName, key);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Beispiel #19
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));
     }
 }
 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));
     }
 }
 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 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]);
     }
 }
Beispiel #23
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]);
     }
 }
Beispiel #24
0
 public DataTable GetReportFiled(string sReportName)
 {
     using (ExtGridControl_HClient client = WcfClientFactory.CreateExtGridControl_HClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetReportFiled(loginTicket, sReportName);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Beispiel #25
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]);
     }
 }
Beispiel #26
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]);
     }
 }
Beispiel #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]);
     }
 }
Beispiel #28
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]);
     }
 }
Beispiel #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]);
     }
 }
Beispiel #30
0
 public DataSet GetUserReportData(DateTime createDateFrom, DateTime createDateTo)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] bs          = client.U_GetUserReportData(loginTicket, createDateFrom, createDateTo);
         return(ZipTools.DecompressionDataSet(bs));
     }
 }