public ActionResult Upload() { string SnNum = WebUtil.GetQueryStringValue <string>("SnNum"); InventoryOrderEntity entity = null; if (!SnNum.IsEmpty()) { ITopClient client = new TopClientDefault(); Dictionary <string, string> dic = new Dictionary <string, string>(); dic.Add("CompanyID", CompanyID); dic.Add("SnNum", SnNum); string result = client.Execute(CheckApiName.CheckApiName_GetOrder, dic); DataResult <InventoryOrderEntity> dataResult = JsonConvert.DeserializeObject <DataResult <InventoryOrderEntity> >(result); entity = dataResult.Result; } entity = entity.IsNull() ? new InventoryOrderEntity() : entity; ViewBag.Entity = entity; //加载默认的库位 string LocationStr = DropDownHelper.GetLocation(this.DefaultStorageNum, "", this.CompanyID); ViewBag.LocationStr = LocationStr; return(View()); }
public ActionResult AddProduct() { ViewBag.Location = DropDownHelper.GetLocation(this.DefaultStorageNum, string.Empty, this.CompanyID, new List <int>() { (int)ELocalType.Normal, (int)ELocalType.WaitIn }); return(View()); }
public ActionResult AddProduct() { ViewBag.Location = DropDownHelper.GetLocation(this.DefaultStorageNum, string.Empty, this.CompanyID); return(View()); }