public System.Data.DataTable GetUserByNovellID(string novellAccount)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.U_GetUserByNovellID(loginTicket, novellAccount);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
 public string[] GetTracedFields(string tableName)
 {
     using (CommonService_HClient client = WcfClientFactory.CreateCommonService_HClient())
     {
         byte[]   loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         string[] arr         = client.GetTracedFields(loginTicket, tableName);
         return(arr);
     }
 }
 public DataSet SearchLog(string logUser, string tableName, DateTime dateFrom, DateTime dateTo)
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.SearchLogData(loginTicket, logUser, tableName, dateFrom, dateTo);
         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 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 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));
     }
 }
 public System.Data.DataTable GetSummaryData()
 {
     using (SGBaseDict_HClient client = WcfClientFactory.CreateBaseDict_HClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetSummaryData(loginTicket, _ORM.FullName);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
 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 DataTable GetDB4Backup()
 {
     using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] bs          = client.GetDB4Backup(loginTicket);
         return(ZipTools.DecompressionDataSet(bs).Tables[0]);
     }
 }
Exemple #10
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 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]);
     }
 }
Exemple #12
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]);
     }
 }
Exemple #13
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));
     }
 }
Exemple #14
0
 public bool Update(System.Data.DataSet ds)
 {
     using (SystemSecurityServiceClient client = SoapClientFactory.CreateSecurityClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] userData    = ZipTools.CompressionDataSet(ds);
         return(client.U_UpdateUser(loginTicket, userData));
     }
 }
 public System.Data.DataSet GetReportData(string DocNoFrom, string DocNoTo, DateTime DateFrom, DateTime DateTo)
 {
     using (SalesModuleServiceClient client = SoapClientFactory.CreateSalesModuleClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.SO_GetReportData(loginTicket, DocNoFrom, DocNoTo, DateFrom, DateTo);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
Exemple #16
0
 public DataTable GetDataByKey(string key)
 {
     using (DataDictServiceClient client = SoapClientFactory.CreateDataDictClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetDataByKey(loginTicket, _ORM.FullName, key);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
 public System.Data.DataTable GetSummaryByParam(string docNoFrom, string docNoTo, DateTime docDateFrom, DateTime docDateTo)
 {
     using (SalesModuleServiceClient client = SoapClientFactory.CreateSalesModuleClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.SO_GetSummaryByParam(loginTicket, docNoFrom, docNoTo, docDateFrom, docDateTo);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Exemple #18
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));
     }
 }
 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 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.AR_GetReportData_Checklist(loginTicket, DocNoFrom, DocNoTo, DateFrom, DateTo);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
 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 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 DownloadDicts()
 {
     using (SGBaseDict_WClient client = SoapClientFactory.CreateSGBaseDict_WClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.DownloadDicts(loginTicket);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
Exemple #24
0
 public DataTable GetSUPPLIERCUSTOMERByAttributeCodes(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 System.Data.DataTable GetData(string docID)
 {
     using (CommonServiceClient client = SoapClientFactory.CreateCommonServiceClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetAttachedFiles(loginTicket, docID);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Exemple #26
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 bool SaveFieldDef(DataTable data)
 {
     using (CommonService_HClient client = WcfClientFactory.CreateCommonService_HClient())
     {
         byte[] loginTicket = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] bsData      = ZipTools.CompressionDataSet(dalBase.TableToDataSet(data));
         return(client.SaveFieldDef(loginTicket, bsData));
     }
 }
 public System.Data.DataSet GetBusinessByKey(string keyValue)
 {
     using (SalesModuleServiceClient client = SoapClientFactory.CreateSalesModuleClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.SO_GetBusinessByKey(loginTicket, keyValue);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }
 public DataTable GetLogFieldDef(string tableName)
 {
     using (CommonService_WClient client = SoapClientFactory.CreateCommonService_WClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetLogFieldDef(loginTicket, tableName);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Exemple #30
0
        public bool Update(byte[] loginTicket, byte[] bs, string ORM_TypeName)
        {
            Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

            DataSet         data = ZipTools.DecompressionDataSet(bs);
            dalBaseDataDict dict = dalBaseDataDict.CreateDalByORM(loginer, ORM_TypeName);

            return(dict.Update(data));
        }