public async Task <List <Provider_item> > searchProvider_itemAsync(Provider_item Provider_item, ESearchOption filterOperator) { List <Provider_item> result = new List <Provider_item>(); try { result = await DAC.DALItem.searchProvider_itemAsync(Provider_item, filterOperator); } catch (Exception ex) { Log.error(ex.Message, EErrorFrom.ITEM); } return(result); }
public async Task <List <Provider_item> > searchProvider_itemAsync(Provider_item Provider_item, ESearchOption filterOperator) { List <Provider_item> result = new List <Provider_item>(); try { result = (await _channel.get_filter_provider_itemAsync(_companyName, Provider_item.Provider_itemTypeToFilterArray(filterOperator))).ArrayTypeToProvider_item(); } catch (FaultException) { Dispose(); throw; } catch (CommunicationException) { _channel.Abort(); throw; } catch (TimeoutException) { _channel.Abort(); } return(result); }
public int LoadProvider_item(Provider_item provider_item) { var dataFoundList = new Provider_item { ID = provider_item.ID }.filterDataTableToProvider_itemType(ESearchOption.AND); if (dataFoundList.Count != 0) { DALHelper.getDataTableFromSqlCEQuery(DALHelper.getUpdateSqlText(PROVIDER_ITEMTABLENAME, DALHelper.getColumDictionary(provider_item))); } else { DALHelper.getDataTableFromSqlCEQuery(DALHelper.getInsertSqlText(PROVIDER_ITEMTABLENAME, DALHelper.getColumDictionary(provider_item))); } return(new Provider_item { ID = provider_item.ID }.filterDataTableToProvider_itemType(ESearchOption.AND).Count); }
public List <Provider_item> searchProvider_item(Provider_item Provider_item, ESearchOption filterOperator) { return(Provider_item.filterDataTableToProvider_itemType(filterOperator)); }
public List <Currency> GetCurrencyDataByProvider_item(Provider_item provider_item) { return(new Currency { ID = provider_item.CurrencyId }.filterDataTableToCurrencyType(ESearchOption.AND)); }
public async Task <List <Provider_item> > searchProvider_itemFromWebServiceAsync(Provider_item Provider_item, ESearchOption filterOperator) { return(await searchProvider_itemAsync(Provider_item, filterOperator)); }
public Provider_itemModel() { _provider = new Provider(); _provider_item = new Provider_item(); _currencyModel = new CurrencyModel(); }
public async Task <List <Provider_item> > searchProvider_itemAsync(Provider_item Provider_item, ESearchOption filterOperator) { checkServiceCommunication(); return(await _gateWayItem.searchProvider_itemAsync(Provider_item, filterOperator)); }
public List <Provider_item> searchProvider_item(Provider_item Provider_item, ESearchOption filterOperator) { return(_dataSet.searchProvider_item(Provider_item, filterOperator)); }