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); }
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); }
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); }
public List <Tax_item> searchTax_item(Tax_item Tax_item, ESearchOption filterOperator) { return(Tax_item.filterDataTableToTax_itemType(filterOperator)); }
public async Task <List <Tax_item> > searchTax_itemAsync(Tax_item Tax_item, ESearchOption filterOperator) { checkServiceCommunication(); return(await _gateWayItem.searchTax_itemAsync(Tax_item, filterOperator)); }
public List <Tax_item> searchTax_item(Tax_item Tax_item, ESearchOption filterOperator) { return(_dataSet.searchTax_item(Tax_item, filterOperator)); }