示例#1
0
        public async Task <List <Tax_item> > searchTax_itemAsync(Tax_item Tax_item, ESearchOption filterOperator)
        {
            List <Tax_item> result = new List <Tax_item>();

            try
            {
                result = await DAC.DALItem.searchTax_itemAsync(Tax_item, filterOperator);
            }
            catch (Exception ex) { Log.error(ex.Message, EErrorFrom.ITEM); }
            return(result);
        }
示例#2
0
        public async Task <List <Tax_item> > searchTax_itemAsync(Tax_item Tax_item, ESearchOption filterOperator)
        {
            List <Tax_item> result = new List <Tax_item>();

            try
            {
                result = (await _channel.get_filter_tax_itemAsync(_companyName, Tax_item.Tax_itemTypeToFilterArray(filterOperator))).ArrayTypeToTax_item();
            }
            catch (FaultException) { Dispose(); throw; }
            catch (CommunicationException) { _channel.Abort(); throw; }
            catch (TimeoutException) { _channel.Abort(); }
            return(result);
        }
示例#3
0
        public int LoadTax_item(Tax_item tax_item)
        {
            var dataFoundList = new Tax_item {
                ID = tax_item.ID
            }.filterDataTableToTax_itemType(ESearchOption.AND);

            if (dataFoundList.Count != 0)
            {
                DALHelper.getDataTableFromSqlCEQuery(DALHelper.getUpdateSqlText(TAX_ITEMTABLENAME, DALHelper.getColumDictionary(tax_item)));
            }
            else
            {
                DALHelper.getDataTableFromSqlCEQuery(DALHelper.getInsertSqlText(TAX_ITEMTABLENAME, DALHelper.getColumDictionary(tax_item)));
            }
            return(new Tax_item {
                ID = tax_item.ID
            }.filterDataTableToTax_itemType(ESearchOption.AND).Count);
        }
示例#4
0
 public List <Tax_item> searchTax_item(Tax_item Tax_item, ESearchOption filterOperator)
 {
     return(Tax_item.filterDataTableToTax_itemType(filterOperator));
 }
示例#5
0
 public async Task <List <Tax_item> > searchTax_itemAsync(Tax_item Tax_item, ESearchOption filterOperator)
 {
     checkServiceCommunication();
     return(await _gateWayItem.searchTax_itemAsync(Tax_item, filterOperator));
 }
示例#6
0
 public List <Tax_item> searchTax_item(Tax_item Tax_item, ESearchOption filterOperator)
 {
     return(_dataSet.searchTax_item(Tax_item, filterOperator));
 }