仅供个人参考,其他人毫无参考意义。

注意:此文献仅供个人参考,其他人毫无参考意义。

有关项目中需要把一个EntityList中的数据拿出来放入另一个EntityList,使用EntityList.Import(Entity)方法。

 1      public CoPaymentSchemeItemPriceEntityList CoPaymentSchemeItemPriceList
 2         {
 3             get { return _CoPaymentSchemeItemPriceList; }
 4             set
 5             {
 6                 _CoPaymentSchemeItemPriceList = value;
 7                 NotifyPropertyChanged("CoPaymentSchemeItemPriceList", this);
 8                 NotifyPropertyChanged("CoPaymentSchemeItemDrugPriceList", this);
 9             }
10         }
11         public CoPaymentSchemeItemPriceEntityList CoPaymentSchemeItemDrugPriceList
12         {
13             get
14             {
15                 var CoPaymentSchemeItemDrugPrice = new CoPaymentSchemeItemPriceEntityList();
16                 CoPaymentSchemeItemDrugPrice.InitEntityList();
17                 foreach (var item in CoPaymentSchemeItemPriceList)
18                 {
19                     if (item.ItemType == "Drug")
20                         CoPaymentSchemeItemDrugPrice.Import(item);
21                 }
22                 return CoPaymentSchemeItemDrugPrice;
23             }
24         }

 

posted @ 2018-03-15 10:39  b小青青  阅读(186)  评论(0编辑  收藏  举报