Beispiel #1
0
        public ActionResult ModifyWarehouse(string id)
        {
            string strErrText;

            //生成Model数据
            DDSystem dd = new DDSystem();
            Warehouse data = dd.LoadWarehouse(long.Parse(id), LoginAccountId, LoginStaffName, out strErrText);
            if (data == null)
            {
                throw new Exception(strErrText);
            }

            WarehouseViewModel model = new WarehouseViewModel();
            model.Id = data.Id;
            model.Name = data.Name;
            model.IsLease = data.IsLease;
            model.Remark = data.Remark;

            return View(model);
        }