protected override ComSubGridColumnUpdate GetDContextSubToUpdateSubGrid(IEnumerable <System.ServiceModel.DomainServices.Client.Entity> items) { this.DContextSub = new System.Collections.ObjectModel.ObservableCollection <System.ServiceModel.DomainServices.Client.Entity>(); V_Ware_Bill_PD_Detail _item = null; foreach (V_Ware_Bill_PD_Detail item in items) { _item = new V_Ware_Bill_PD_Detail() { CYL = item.CYL, ID = item.ID, Price = item.Price, Qty = item.Qty, X_ADD = item.X_ADD, SPH = item.SPH, SubID = item.SubID }; this.DContextSub.Add(_item); } ComSubGridColumnUpdate t = new ComSubGridColumnUpdate() { GridName = this.VMNameAuthority, Source = DContextSub }; return(t); }
protected override ComSubGridColumnUpdate GetReturnXYData(System.Collections.ObjectModel.ObservableCollection <ComXYInputListFormat> comXYInputListFormat) { this.DContextSub = new System.Collections.ObjectModel.ObservableCollection <System.ServiceModel.DomainServices.Client.Entity>(); V_Ware_Bill_PD_Detail _item = null; foreach (ComXYInputListFormat item in comXYInputListFormat) { _item = new V_Ware_Bill_PD_Detail() { ID = "", SubID = item.SubID, SPH = item.SPH, CYL = item.CYL, X_ADD = item.X_ADD, Qty = item.Qty, Price = 0 }; this.DContextSub.Add(_item); } ComSubGridColumnUpdate t = new ComSubGridColumnUpdate() { GridName = this.VMNameAuthority, Source = DContextSub }; return(t); }