예제 #1
0
        public async Task RunBinContentTap(BinContentShortViewModel bcsvm)
        {
            try
            {
                State         = ModelState.Loading;
                LoadAnimation = true;
                NAVFilter navfilter = new NAVFilter
                {
                    LocationCodeFilter = LocationCode,
                    ZoneCodeFilter     = ZoneCode,
                    RackIDFilter       = ID.ToString(),
                    BinCodeFilter      = bcsvm.BinCode,
                    ItemNoFilter       = bcsvm.ItemNo,
                    DescriptionFilter  = bcsvm.Description
                };
                string response = await NAV.RunBCTap(navfilter, ACD.Default).ConfigureAwait(true);

                State = ModelState.Normal;
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.WriteLine(e.Message);
                State     = ModelState.Error;
                ErrorText = e.Message;
            }
            finally
            {
                LoadAnimation = false;
            }
        }