protected override void OnInitialized() { dropdownOptions = PinhuaContext.DropdownOptions_客户(); main.日期 = DateTime.Now; Filter = model => !detailsTableDataSource.Any(s => s.子单号 == model.Detail.子单号) && !(model.Detail.状态 ?? string.Empty).Contains("已"); }
protected override void OnInitialized() { dropdownOptions = PinhuaContext.DropdownOptions_客户(); main.日期 = DateTime.Now; Filter = m => m.往来号 == main.往来号 && m.待发 > 0 && !detailsTableDataSource.Any(d => d.子单号 == m.子单号); }
protected override void OnInitialized() { dropdownOptions = PinhuaContext.DropdownOptions_客户(); main.日期 = DateTime.Now; Filter = m => m.往来号 == main.往来号 && m.待收 > 0; }
protected override void OnInitialized() { dropdownOptions = PinhuaContext.DropdownOptions_客户(); main.日期 = DateTime.Now; Filter = model => model.Main.往来号 == main.往来号 && !model.Detail.状态.Contains("已"); }
protected override void OnInitialized() { main = Mapper.Map <dto采购订单>(PinhuaContext.GetViews().采购.采购订单().FirstOrDefault(m => m.RecordId == RecordId)); detailsTableDataSource = Mapper.ProjectTo <dto采购订单D>(PinhuaContext.GetViews().采购.采购订单D(RecordId)).ToList(); dropdownOptions = PinhuaContext.DropdownOptions_客户(); Filter = model => model.Main.往来号 == main.往来号 && !model.Detail.状态.Contains("已"); }
protected override void OnInitialized() { main = Mapper.Map <dto采购询价>(PinhuaContext.GetViews().采购.采购询价().FirstOrDefault(m => m.RecordId == RecordId)); detailsTableDataSource = Mapper.ProjectTo <dto采购询价D>(PinhuaContext.GetViews().采购.采购询价D(RecordId)).ToList(); dropdownOptions = PinhuaContext.DropdownOptions_客户(); Filter = model => !detailsTableDataSource.Any(s => s.子单号 == model.Detail.子单号) && !(model.Detail.状态 ?? string.Empty).Contains("已"); }
protected override void OnInitialized() { main = Mapper.Map <dto销售出库>(PinhuaContext.GetViews().销售.销售出库(RecordId)); detailsTableDataSource = Mapper.ProjectTo <dto销售出库D>(PinhuaContext.GetViews().销售.销售出库D(RecordId)).ToList(); dropdownOptions = PinhuaContext.DropdownOptions_客户(); Filter = m => m.往来号 == main.往来号 && m.待发 > 0 && !detailsTableDataSource.Any(d => d.子单号 == m.子单号); }
protected override void OnInitialized() { main = Mapper.Map <dto采购入库>(PinhuaContext.GetViews().采购.采购入库().FirstOrDefault(m => m.RecordId == RecordId)); detailsTableDataSource = Mapper.ProjectTo <dto采购入库D>(PinhuaContext.GetViews().采购.采购入库D(RecordId)).ToList(); dropdownOptions = PinhuaContext.DropdownOptions_客户(); Filter = m => m.往来号 == main.往来号 && m.待收 > 0; }
protected override void OnInitialized() { dropdownOptions = PinhuaContext.DropdownOptions_客户(); main.日期 = DateTime.Now; }
protected override void OnInitialized() { main = Mapper.Map <dto销售报价>(PinhuaContext.GetViews().销售.销售报价().FirstOrDefault(m => m.RecordId == RecordId)); detailsTableDataSource = Mapper.ProjectTo <dto销售报价D>(PinhuaContext.GetViews().销售.销售报价D(RecordId)).ToList(); dropdownOptions = PinhuaContext.DropdownOptions_客户(); }