/// <summary> /// 查看手工组卷 /// </summary> /// <param name="epid"></param> public static showsgzj show_sgzj(int epid) { using (DAL.examPlanDAL dal = new DAL.examPlanDAL()) { DataSet ds = dal.show_sgzj(epid, "showInfo"); using (Common.DataParse dp = new Common.DataParse()) { showsgzj m = dp.DataRowToEntity <showsgzj>(ds.Tables[0].Rows[0]); m.examJoin = dp.DataTableToList <examJoin>(ds.Tables[1]); return(m); } } }
/// <summary> /// 导出试题-获得试题 /// </summary> /// <param name="epid"></param> /// <returns></returns> public static exportPaper export(int epid) { using (DAL.examPlanDAL dal = new DAL.examPlanDAL()) { DataSet ds = dal.show_sgzj(epid, "showSubject"); using (Common.DataParse dp = new Common.DataParse()) { exportPaper m = dp.DataRowToEntity <exportPaper>(ds.Tables[0].Rows[0]); m.dan = dp.DataTableToList <dan>(ds.Tables[1]); m.duo = dp.DataTableToList <duo>(ds.Tables[2]); m.pan = dp.DataTableToList <pan>(ds.Tables[3]); return(m); } } }