Пример #1
0
 public ActionResult EditInventory(string id)
 {
     Hyt.Model.InventorySheet.WhInventory model = new Hyt.Model.InventorySheet.WhInventory();
     ViewBag.Name  = MvcHtmlString.Create(MvcCreateHtml.EnumToString <Hyt.Model.InventorySheet.WhlnventoryEnum.WhlnventoryName>(null, null).ToString());
     ViewBag.Where = MvcHtmlString.Create(MvcCreateHtml.EnumToString <Hyt.Model.InventorySheet.WhlnventoryEnum.WhlnventoryWhere>(null, null).ToString());
     //ViewBag.Type = GetSyUserList((int)Hyt.Model.WorkflowStatus.SystemStatus.用户组状态.启用);
     //if (!string.IsNullOrEmpty(id))
     //{
     //    model = WhInventoryBo.Instance.GetModelId(Guid.Parse(id));
     //}
     return(View(model));
 }
Пример #2
0
        public ActionResult IcpGoodsCreate(int?id)
        {
            CIcp model = new CIcp();

            if (id != null)
            {
                model = IcpBo.Instance.GetEntity(id.Value);
                ViewBag.IcpGoodsItemList = IcpBo.Instance.GetListByIcpGoodsSysNo(id.Value);
                ViewBag.OpType           = "Update";
            }
            else
            {
                ViewBag.OpType = "Add";
            }
            ViewBag.IcpTypes = MvcHtmlString.Create(MvcCreateHtml.EnumToString <Hyt.Model.CommonEnum.商检>(null, null).ToString());
            return(View(model));
        }
Пример #3
0
        public ActionResult OtherOutOfStorage(int?id, string keyWord, int?status, int?PageType = (int)Hyt.Model.InventorySheet.OtherOutOfStorageTypeEnum.其他入库)
        {
            var list = new PagedList <OtherOutOfStorage>();

            if (Request.IsAjaxRequest())
            {
                var filter = new Pager <OtherOutOfStorage>();
                filter.CurrentPage       = (int)id;
                filter.PageFilter.Code   = keyWord;
                filter.PageFilter.Type   = (int)PageType;
                filter.PageFilter.Status = status != null?(int)status:-1;
                var pager = Hyt.BLL.InventorySheet.WhInventoryBo.Instance.GetOtherOutOfStoragePage(filter, PageType);
                list = new PagedList <OtherOutOfStorage>
                {
                    TData            = pager.Rows,
                    CurrentPageIndex = pager.CurrentPage,
                    TotalItemCount   = pager.TotalRows
                };
                return(PartialView("_OtherOutOfStorage", list));
            }
            ViewBag.Status   = MvcHtmlString.Create(MvcCreateHtml.EnumToString <OtherOutOfStorageStatusEnum>(null, null).ToString());
            ViewBag.PageType = PageType;
            return(View(list));
        }
Пример #4
0
 public ActionResult WhInventoryRepor()
 {
     ViewBag.Status = MvcHtmlString.Create(MvcCreateHtml.EnumToString <Hyt.Model.InventorySheet.WhlnventoryEnum.WhInventoryReporStatus>(null, null).ToString());
     return(View());
 }
Пример #5
0
 public ActionResult InventoryList(int?PageStatus = 1)
 {
     ViewBag.Status     = MvcHtmlString.Create(MvcCreateHtml.EnumToString <Hyt.Model.InventorySheet.WhlnventoryEnum.WhlnventoryStatus>(null, null).ToString());
     ViewBag.PageStatus = PageStatus;
     return(View());
 }
Пример #6
0
 public ActionResult IcpOrderList()
 {
     ViewBag.IcpTypes = MvcHtmlString.Create(MvcCreateHtml.EnumToString <Hyt.Model.CommonEnum.商检>(null, null).ToString());
     return(View());
 }