public ChooseWhsBinViewModel(IPageService pageService)
        {
            _pageService = pageService;
            SelectedWhs  = new vwWarehouseBins();
            back         = new Command(async() =>
            {
                await _pageService.PopModalAsync();
            });

            submit = new Command(async() =>
            {
                await submitForm();
            });
        }
Example #2
0
        public ActionResult Get(string bokey)
        {
            try
            {
                GenHelper.WriteLog("[Log]", "[" + securityProvider.GetUserName() + "]" + controllername + "-Get(" + bokey + "):[" + DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss tt") + "]");

                vwWarehouseBins existing = objectSpace.FindObject <vwWarehouseBins>(CriteriaOperator.Parse("BoKey=?", bokey));
                if (existing == null)
                {
                    NotFound();
                }
                return(Ok(existing));
            }
            catch (Exception ex)
            {
                GenHelper.WriteLog("[Error]", "[" + securityProvider.GetUserName() + "]" + controllername + "-Get(" + bokey + "):[" + ex.Message + "][" + DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss tt") + "]");
                throw new Exception(ex.Message);
            }
        }