void UpdateRecordInfo() { if (m_ctor_SellListScrollViewContent != null) { stItemSellLogConsignmentUserCmd_S sellLogInfo = SaleItemDataManager.GetItemSellLogInfo(); if (sellLogInfo != null && sellLogInfo.log_list != null) { m_ctor_SellListScrollViewContent.CreateGrids(sellLogInfo.log_list.Count); } } }
void OnUpdateGridData(UIGridBase grid, int index) { if (grid is UIConsignmentSalesRecordsGrid) { UIConsignmentSalesRecordsGrid recordsGrid = grid as UIConsignmentSalesRecordsGrid; stItemSellLogConsignmentUserCmd_S sellLogInfo = SaleItemDataManager.GetItemSellLogInfo(); if (sellLogInfo != null && sellLogInfo.log_list != null) { ItemTradeLog tradeLog = (sellLogInfo.log_list.Count > index) ? sellLogInfo.log_list[index] : null; recordsGrid.SetGridData(tradeLog); } } }
/// <summary> /// 获取寄售日志 /// </summary> /// <param name="cmd"></param> public void OnResponItemSellLog(stItemSellLogConsignmentUserCmd_S cmd) { needReqItemSellLog = false; itemTradeLogInfo = cmd; DispatchValueUpdateEvent(new ValueUpdateEventArgs(SaleItemDispatchEvents.RefreshSaleRecord.ToString(), null, null)); }
public void OnResponItemSellLog(stItemSellLogConsignmentUserCmd_S cmd) { DataManager.Manager <ConsignmentManager>().OnResponItemSellLog(cmd); }