private void DoSelect() { if (!string.IsNullOrEmpty(id)) { WarehouseExchangeDetail[] wedEnts = WarehouseExchangeDetail.FindAllByProperties("WarehouseExchangeId", id); PageState.Add("DataList", wedEnts); } }
private void ProcessDetail(IList <string> entStrList, WarehouseExchange weEnt) { if (entStrList != null && entStrList.Count > 0) { for (int j = 0; j < entStrList.Count; j++) { Newtonsoft.Json.Linq.JObject objL = JsonHelper.GetObject <Newtonsoft.Json.Linq.JObject>(entStrList[j]); WarehouseExchangeDetail wedEnt = new WarehouseExchangeDetail(); wedEnt.WarehouseExchangeId = weEnt.Id; wedEnt.ProductId = objL.Value <string>("ProductId"); wedEnt.ProductName = objL.Value <string>("ProductName"); wedEnt.ProductCode = objL.Value <string>("ProductCode"); wedEnt.ProductPcn = objL.Value <string>("ProductPcn"); wedEnt.ProductIsbn = objL.Value <string>("ProductIsbn"); wedEnt.ExchangeQuantity = objL.Value <int>("ExchangeQuantity"); wedEnt.DoCreate(); } } }