Beispiel #1
0
 public Item_deliveryModel()
 {
     _itemModel           = new ItemModel();
     _deliveryReceiptList = new DeliveryModel();
     _item_delivery       = new Item_delivery();
     _isSelected          = true;
 }
Beispiel #2
0
        public async Task <List <Item_delivery> > searchItem_deliveryAsync(Item_delivery Item_delivery, ESearchOption filterOperator)
        {
            List <Item_delivery> result = new List <Item_delivery>();

            try
            {
                result = await DAC.DALItem.searchItem_deliveryAsync(Item_delivery, filterOperator);
            }
            catch (Exception ex) { Log.error(ex.Message, EErrorFrom.ITEM); }
            return(result);
        }
Beispiel #3
0
        public async Task <List <Item_delivery> > searchItem_deliveryAsync(Item_delivery Item_delivery, ESearchOption filterOperator)
        {
            List <Item_delivery> result = new List <Item_delivery>();

            try
            {
                result = (await _channel.get_filter_item_deliveryAsync(_companyName, Item_delivery.Item_deliveryTypeToFilterArray(filterOperator))).ArrayTypeToItem_delivery();
            }
            catch (FaultException) { Dispose(); throw; }
            catch (CommunicationException) { _channel.Abort(); throw; }
            catch (TimeoutException) { _channel.Abort(); }
            return(result);
        }
Beispiel #4
0
        public int LoadItem_delivery(Item_delivery item_delivery)
        {
            var dataFoundList = new Item_delivery {
                ID = item_delivery.ID
            }.filterDataTableToItem_deliveryType(ESearchOption.AND);

            if (dataFoundList.Count != 0)
            {
                DALHelper.getDataTableFromSqlCEQuery(DALHelper.getUpdateSqlText(ITEM_DELIVERYTABLENAME, DALHelper.getColumDictionary(item_delivery)));
            }
            else
            {
                DALHelper.getDataTableFromSqlCEQuery(DALHelper.getInsertSqlText(ITEM_DELIVERYTABLENAME, DALHelper.getColumDictionary(item_delivery)));
            }
            return(new Item_delivery {
                ID = item_delivery.ID
            }.filterDataTableToItem_deliveryType(ESearchOption.AND).Count);
        }
Beispiel #5
0
 public List <Item_delivery> searchItem_delivery(Item_delivery Item_delivery, ESearchOption filterOperator)
 {
     return(Item_delivery.filterDataTableToItem_deliveryType(filterOperator));
 }
Beispiel #6
0
 public async Task <List <Item_delivery> > searchItem_deliveryFromWebServiceAsync(Item_delivery Item_delivery, ESearchOption filterOperator)
 {
     return(await searchItem_deliveryAsync(Item_delivery, filterOperator));
 }
Beispiel #7
0
 public async Task <List <Item_delivery> > searchItem_deliveryAsync(Item_delivery Item_delivery, ESearchOption filterOperator)
 {
     checkServiceCommunication();
     return(await _gateWayItem.searchItem_deliveryAsync(Item_delivery, filterOperator));
 }
Beispiel #8
0
 public List <Item_delivery> searchItem_delivery(Item_delivery Item_delivery, ESearchOption filterOperator)
 {
     return(_dataSet.searchItem_delivery(Item_delivery, filterOperator));
 }