public string GetObjectById_Supply_DeliverGoods(QueryCommon <IWantToBuyQuery> query) { Result_Model <Result_IWantToBuy_Orders> res = new Result_Model <Result_IWantToBuy_Orders>() { Msg = new Result_Msg() { IsSuccess = true }, Model = new Result_IWantToBuy_Orders() }; var listHash = hashSet.Get_DictionariesList(); Result_Model <IWantToSupply> model1 = iWantToBuyService.GetObjectById_Supply(query.ParamInfo.Id); Result_Model <IWantToBuy_Orders> model = iWantToBuyService.GetObjectById_Web_Supply_DeliverGoods(model1.Model.Id); if (model.Msg.IsSuccess) { res.Model = new Result_IWantToBuy_Orders() { Id = model.Model.Id, ProductName = model.Model.ProductName, PurchaseNum = model.Model.PurchaseNum.ToString(), UnitPrice = model.Model.UnitPrice, Quantity = model.Model.Quantity, TotalPrice = model.Model.TotalPrice, Unit = model.Model.Unit, Status = model.Model.Status, CreateDate = model.Model.CreateDate.ToString("yyyy-MM-dd hh:mm"), PayDate = model.Model.PayDate.ToString("yyyy-MM-dd hh:mm"), IWantToSupplyID = model.Model.IWantToSupplyID, LogisticsNum = model.Model.LogisticsNum, LogisticsType = model.Model.LogisticsType, LogisticsDes = model.Model.LogisticsDes }; } else { res.Msg = model.Msg; } return(Newtonsoft.Json.JsonConvert.SerializeObject(res)); }