Пример #1
0
 private CExamLevel create1EntByDtAndRowIndex(DataTable dtRet, int i)
 {
     CExamLevel ret = new CExamLevel();
     ret.ExamId = Int32.Parse(dtRet.Rows[i][FIELD_EXAM_ID].ToString());
     ret.LevelName = dtRet.Rows[i][FIELD_LEVEL_NAME].ToString();
     ret.LevelOrder = Int32.Parse(dtRet.Rows[i][FIELD_LEVEL_ORDER].ToString());
     ret.GroupPilesNum = Int32.Parse(dtRet.Rows[i][FIELD_GROUP_PILES_NUM].ToString());
     ret.PilesTypeId = dtRet.Rows[i][FIELD_PILES_TYPE_ID].ToString();
     return ret;
 }
 private IExamLevelInfo create1LvInfoByEnt(CExamLevel lvEnt)
 {
     IExamLevelInfo ret = new CExamLevelInfoImpl();
     ret.ExamId = lvEnt.ExamId;
     ret.LevelName = lvEnt.LevelName;
     ret.LevelOrder = lvEnt.LevelOrder;
     ret.OneGoupPilesNum = lvEnt.GroupPilesNum;
     ret.PilesTypeId = lvEnt.PilesTypeId;
     ret.PrimPiles = this.loadPilesByeTypeId(lvEnt.PilesTypeId);
     ret.RandOrderPiles = CUtilFunctions.Inst.genRandOrderPilesList(ret.PrimPiles);
     ret.Goups = new CLevelGroupsDataGenerator().genDo(ret.RandOrderPiles,ret.OneGoupPilesNum);
     return ret;
 }