public ActionResult outtsell() { dynamic data = new System.Dynamic.ExpandoObject(); var no = WebRequest.GetString("no", true); var type = WebRequest.GetString("type", true); var model = new StockModel(); var message = ""; if (type == "" || no == "") { #region 创建申请单 type = "add"; no = stockoutService.GetStockOutNo(); #endregion } else if (type == "edit") { model = stockoutService.StockOutList(no).FirstOrDefault(); } var mc = ServiceDB.Instance.QueryOneModel<Dictionary>("select * from Dictionary where dictionaryKey='ExpressCompany'"); var ds = mc.dictionaryValue.Split('|').Select(x => new SelectListItem { Text = x, Value = x }).ToList(); data.mc = ds; var ddl = purchaseService.QuerySupplier(1, 1).ToList(); data.ddl = ddl; data.no = no; data.no = no; data.one = model; data.message = message; data.type = type; return View(data); }
public ActionResult inorder() { dynamic data = new System.Dynamic.ExpandoObject(); var no = WebRequest.GetString("no", true); var type = WebRequest.GetString("type", true); var model = new StockModel(); var list = new List<StockDetailModel>(); if (type == "" || no == "") { #region 创建申请单 type = "add"; no = stockinService.GetStockInNo(); #endregion } else if (type == "edit") { model = stockinService.StockInList(no).FirstOrDefault(); list = purchaseService.GetStockHadDetailByPurchase(no); } var ddl = purchaseService.QuerySupplier(0, 1).ToList(); data.ddl = ddl; data.no = no; data.one = model; data.type = type; SessionHelper.SetSession("WE1" + no + Masterpage.CurrUser.staffid, list); return View(data); }
public ActionResult outsell() { dynamic data = new System.Dynamic.ExpandoObject(); var no = WebRequest.GetString("no", true); var type = WebRequest.GetString("type", true); var model = new StockModel(); var message = ""; if (type == "" || no == "") { #region 创建申请单 type = "add"; no = stockoutService.GetStockOutNo(); #endregion } else if (type == "edit") { model = stockoutService.StockOutList(no).FirstOrDefault(); } var mc = stockinService.GetMaterialCategory().Select(x => new SelectListItem { Text = x.text, Value = x.value }).ToList(); var depots = stockinService.QueryDepot(1).Select(x => new SelectListItem { Text = x.depotName, Value = x.depotId.ToString() }).ToList(); data.mc = mc; var ddl = purchaseService.QuerySupplier(1, 1).ToList(); data.ddl = ddl; data.no = no; data.depots = depots; data.no = no; data.one = model; data.message = message; data.type = type; return View(data); }
public ActionResult bomout() { dynamic data = new System.Dynamic.ExpandoObject(); var no = WebRequest.GetString("no", true); var type = WebRequest.GetString("type", true); var model = new StockModel(); var bom = new V_BomOrderDetailModel(); var message = ""; if (type == "" || no == "") { #region 创建申请单 type = "add"; no = stockoutService.GetStockOutNo(); #endregion } else if (type == "edit") { model = stockoutService.StockOutList(no).FirstOrDefault(); bom = bomService.BomOrderDetailOne(model.bomdetailsn.Value); } var ddl = purchaseService.QuerySupplier(1, 1).ToList(); data.ddl = ddl; var depots = stockinService.QueryDepot(1).Select(x => new SelectListItem { Text = x.depotName, Value = x.depotId.ToString() }).ToList(); data.depots = depots; data.no = no; data.one = model; data.bom = bom; data.message = message; data.type = type; return View(data); }