示例#1
0
        public ActionResult InquirieZkz(FormCollection form)
        {
            var queryStr = form["CardIdOrRegistNo"];

            //var queryStr = Request["CardIdOrRegistNo"];

            #region 判断是否存在
            var stuModel = _iEnrolsysService.getStudentInfoByCardID(queryStr);
            #endregion

            if (stuModel == null)
            {
                ViewBag.mes = "查无此信息";
                return(View());
            }
            else
            {
                var model = new ZkzInfo();
                model.stuInfo        = stuModel;
                model.ZkzNo          = "10697WS273";
                model.ExamNo         = "25";
                model.RoomNo         = "3308";
                model.SiteNo         = "3";
                model.ExamPlace      = "西北大学桃园校区(高新四路15号)";
                model.ExamTime       = "2016年 3月20日 9:00-12:00";
                model.SubjectAndTime = "其中:9:00-10:00 语文; 10:00-11:00 数学; 11:00-12:00 英语;";
                return(View("PreviewZkz", model));
            }
        }
示例#2
0
        /// <summary>
        /// 准考证图片原型页面
        /// </summary>
        /// <returns></returns>
        public ActionResult GenerateZkzPng(string id)
        {
            var StuModel = _iEnrolsysService.getStudentInfoByCardID(id);
            var model    = new ZkzInfo();

            model.stuInfo        = StuModel;
            model.ZkzNo          = "10697WS273";
            model.ExamNo         = "25";
            model.RoomNo         = "3308";
            model.SiteNo         = "3";
            model.ExamPlace      = "西北大学桃园校区(高新四路15号)";
            model.ExamTime       = "2016年 3月20日 9:00-12:00";
            model.SubjectAndTime = "其中:9:00-10:00 语文; 10:00-11:00 数学; 11:00-12:00 英语;";
            return(View(model));
        }