Esempio n. 1
0
 /// <summary>
 /// Конструктор.
 /// </summary>
 /// <param name="model">Модель.</param>
 public DataSetsModel(DataSetsModel model)
 {
     if (model.DetailDataSet1 != null)
     {
         this.DetailDataSet1 = new DataSetModel(model.DetailDataSet1);
     }
     if (model.DetailDataSet2 != null)
     {
         this.DetailDataSet2 = new DataSetModel(model.DetailDataSet2);
     }
     if (model.DetailDataSet3 != null)
     {
         this.DetailDataSet3 = new DataSetModel(model.DetailDataSet3);
     }
     if (model.DetailDataSet4 != null)
     {
         this.DetailDataSet4 = new DataSetModel(model.DetailDataSet4);
     }
     if (model.DetailDataSet5 != null)
     {
         this.DetailDataSet5 = new DataSetModel(model.DetailDataSet5);
     }
     if (model.DetailDataSet6 != null)
     {
         this.DetailDataSet6 = new DataSetModel(model.DetailDataSet6);
     }
     if (model.DetailDataSet7 != null)
     {
         this.DetailDataSet7 = new DataSetModel(model.DetailDataSet7);
     }
     if (model.DetailDataSet8 != null)
     {
         this.DetailDataSet8 = new DataSetModel(model.DetailDataSet8);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Конструктор.
 /// </summary>
 /// <param name="model">Модель.</param>
 public ComponentModel(ComponentModel model)
 {
     this.KeyValue     = model.KeyValue;
     this.DisplayValue = model.DisplayValue;
     if (model.Card != null)
     {
         this.Card = new RowModel(model.Card);
     }
     if (model.DetailDataSets != null)
     {
         this.DetailDataSets = new DataSetsModel(model.DetailDataSets);
     }
 }