username@email.com
2021-10-15 60e78c332cd5597f955e150e1a5f239db8facc59
题库规则和测试结论
8个文件已修改
2个文件已添加
1250 ■■■■■ 已修改文件
zhengcaioa/DTO/ExpertTestResultDTO.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/DTO/ExpertTestTopicDTO.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/DTO/ExpertTestTopicpeizhiDTO.cs 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/IServices/IExpertTestTopicService.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/Services/ExpertTestTopicService.cs 60 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs 218 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Edit.cshtml 265 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/ExpertTestTopic/EditPeizhi.cshtml 369 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/ExpertTestTopic/EditResult.cshtml 300 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Index.cshtml 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/DTO/ExpertTestResultDTO.cs
@@ -15,5 +15,9 @@
        public DateTime Createtime { get; set; }
        public string Modifier { get; set; }
        public DateTime Modifytime { get; set; }
        public string[] Resulttypes { get; set; }
        public string[] Results { get; set; }
    }
}
zhengcaioa/DTO/ExpertTestTopicDTO.cs
@@ -48,6 +48,9 @@
        public string[] Flag { get; set; }
        public string[] Fatiaomingxi { get; set; }
    }
zhengcaioa/DTO/ExpertTestTopicpeizhiDTO.cs
@@ -21,5 +21,24 @@
        public DateTime Createtime { get; set; }
        public string Modifier { get; set; }
        public DateTime Modifytime { get; set; }
        public string[] Topictypes { get; set; }
        public string[] Zhishitypes { get; set; }
        public decimal?[] Fenshus { get; set; }
        public decimal?[] Fenzhis { get; set; }
        public string[] ShijianIds { get; set; }
        public decimal?[] Fenshuszong { get; set; }
        public decimal?[] Fenzhizong { get; set; }
        public string[] Topictypeszong { get; set; }
        public string zongFenshu { get; set; }
        public string zongFenzhi { get; set; }
    }
}
zhengcaioa/IServices/IExpertTestTopicService.cs
@@ -36,9 +36,11 @@
        List<ExpertTestResultDTO> GetListResult();
        ResultEntity saveResult(ExpertTestResultDTO dto);
        ExpertTestResultDTO GetResult(string Resulttype);
        List<ExpertTestTopicpeizhiDTO> GetListpeizhi();
        ResultEntity savepeizhi(ExpertTestTopicpeizhiDTO dto);
        ExpertTestTopicpeizhiDTO Getpeizhi(string Topictype,string Zhishitype);
    }
}
zhengcaioa/Services/ExpertTestTopicService.cs
@@ -132,6 +132,7 @@
                            expertTestTopicjiexi.Falv = dto.Falv[i];
                            expertTestTopicjiexi.Fatiao = dto.Fatiao[i];
                            expertTestTopicjiexi.Flag = dto.Flag[i];
                            expertTestTopicjiexi.Jiexi = dto.Fatiaomingxi[i];
                            expertTestTopicjiexi.Creater = dto.Modifier;
                            expertTestTopicjiexi.Createtime = DateTime.Now;
                            expertTestTopicjiexi.Modifier = dto.Modifier;
@@ -330,6 +331,21 @@
                }
            }
            var queryjiexis = (from aaa in _context.ExpertTestTopicjiexis.Where(x => x.RecStatus == "A" && lianlist11.Contains(x.Topic)) select aaa).ToList();
            var falvs = listCode.Where(x => x.CodeTable == "expert_test_topicjiexi" && x.CodeField == "falv").ToList();
            foreach (var lian in lianlist)
            {
                var queryjiexi = queryjiexis.Where(x => x.Topic == lian.Id).OrderBy(x => x.Flag).ToList();
                var jiexi = "";
                foreach (var quer in queryjiexi)
                {
                 var falv = falvs.Where(x => x.CodeSn == quer.Falv).FirstOrDefault();
                    jiexi +=(falv!=null? "《" + falv.Comments + "》" : "") + " " + quer.Fatiao + " " + quer.Jiexi + " </br>" ;
                }
                lian.Jiexi = jiexi + lian.Jiexi + " </br>";
            }
            data.LoadData(searchEntity, lianlist);
            return data;
@@ -760,7 +776,7 @@
                                Modifytime = a.Modifytime,
                            }
                ).OrderBy(x => x).ToList();
                ).OrderBy(x => x.Resulttype).ToList();
            return listRole;
        }
@@ -813,9 +829,10 @@
                                TopictypeName = eee.Comments,
                                Zhishitype = a.Zhishitype,
                                ZhishitypeName = fff.Comments,
                                Fenshu = a.Fenshu,
                                Fenzhi = a.Fenzhi,
                                Fenshu = a.Fenshu ?? 0,
                                Fenzhi = a.Fenzhi??0,
                                FenshuName = (a.Fenshu ?? 0).ToString("0.##"),
                                FenzhiName = (a.Fenzhi ?? 0).ToString("0.##"),
                                Creater = a.Creater,
                                Createtime = a.Createtime,
@@ -927,5 +944,40 @@
            return resultEntity;
        }
        public ExpertTestResultDTO GetResult(string Resulttype)
        {
            var entity = _context.ExpertTestResults.Where(x=>x.RecStatus =="A" && x.Resulttype == Resulttype).FirstOrDefault();
            if (entity==null)
            {
                entity = new ExpertTestResult();
            }
            var result = _mapper.Map<ExpertTestResultDTO>(entity);
            return result;
        }
        public ExpertTestTopicpeizhiDTO Getpeizhi(string Topictype, string Zhishitype)
        {
            var entity = _context.ExpertTestTopicpeizhis.Where(x => x.RecStatus == "A" && x.Topictype == Topictype && x.Zhishitype == Zhishitype).FirstOrDefault();
            if (entity == null)
            {
                entity = new ExpertTestTopicpeizhi();
            }
            var result = _mapper.Map<ExpertTestTopicpeizhiDTO>(entity);
            return result;
        }
    }
}
zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs
@@ -134,7 +134,12 @@
            if (!String.IsNullOrEmpty(id))
            {
                dto = _expertTestTopicService.Get(id);
                expertTestTopicanwserDTOs = _expertTestTopicService.GetListanwser(id);
                if (dto.Topictype=="03")
                {
                    expertTestTopicanwserDTOs = expertTestTopicanwserDTOs.OrderByDescending(x=>x.Anwserno).ToList();
                }
                if (expertTestTopicanwserDTOs.Count == 0)
                {
                    expertTestTopicanwserDTOs.Add(new ExpertTestTopicanwserDTO());
@@ -631,5 +636,218 @@
            return View();
        }
        public IActionResult EditResult()
        {
            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
            ViewData["curentuser"] = curentuser;
            var resultDTOs = _expertTestTopicService.GetListResult();
            var sysCodeDtls = _liaotianService.GetSYScode("expert_test_result", "resulttype");
            if (resultDTOs==null || resultDTOs.Count == 0)
            {
                resultDTOs = new List<ExpertTestResultDTO>();
                foreach (var sysCodeDtl in sysCodeDtls)
                {
                    ExpertTestResultDTO expertTestResultDTO = new ExpertTestResultDTO();
                    expertTestResultDTO.Resulttype = sysCodeDtl.CodeSn;
                    expertTestResultDTO.ResulttypeName = sysCodeDtl.Comments;
                    expertTestResultDTO.Result = "";
                    resultDTOs.Add(expertTestResultDTO);
                }
            }
            ViewBag.resultDTOs = resultDTOs;
            ViewBag.resulttype = sysCodeDtls;
            return View();
        }
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="data">岗位实体类对象</param>
        /// <returns></returns>
        ///
        [HttpPost]
        public  IActionResult SaveResult(ExpertTestResultDTO data)
        {
            ResultEntity resultEntity = new ResultEntity();
            using (TransactionScope scope = new TransactionScope())
            {
                var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
                ViewData["curentuser"] = curentuser;
                data.RecStatus = "A";
                if(data.Resulttypes!=null&& data.Resulttypes.Length > 0)
                {
                   for(int i=0;i< data.Resulttypes.Length; i++)
                    {
                      var resultDTO = _expertTestTopicService.GetResult(data.Resulttypes[i]);
                        if (string.IsNullOrEmpty(resultDTO.Id))
                        {
                            resultDTO = new ExpertTestResultDTO();
                            resultDTO.Resulttype = data.Resulttypes[i];
                            resultDTO.Result = data.Results[i];
                            resultDTO.Creater = curentuser.Id;
                            resultDTO.Createtime = DateTime.Now;
                        }
                        else
                        {
                            resultDTO.Resulttype = data.Resulttypes[i];
                            resultDTO.Result = data.Results[i];
                        }
                        resultDTO.Modifier = curentuser.Id;
                        resultDTO.Modifytime = DateTime.Now;
                        resultEntity = _expertTestTopicService.saveResult(resultDTO);
                    }
                }
                scope.Complete();
            }
            return new JsonResult(resultEntity);
        }
        public IActionResult EditPeizhi()
        {
            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
            ViewData["curentuser"] = curentuser;
            var expertTestTopicpeizhiDTOs = _expertTestTopicService.GetListpeizhi();
            var topictypes = _liaotianService.GetSYScode("expert_test_topic", "topictype");
            var zhishitypes = _liaotianService.GetSYScode("expert_test_topic", "zhishitype");
            if (expertTestTopicpeizhiDTOs == null || expertTestTopicpeizhiDTOs.Count == 0)
            {
                expertTestTopicpeizhiDTOs = new List<ExpertTestTopicpeizhiDTO>();
                foreach (var topictype in topictypes)
                {
                    foreach (var zhishitype in zhishitypes)
                    {
                        ExpertTestTopicpeizhiDTO expertTestTopicpeizhiDTO = new ExpertTestTopicpeizhiDTO();
                        expertTestTopicpeizhiDTO.ShijianId = "01";
                        expertTestTopicpeizhiDTO.Topictype = topictype.CodeSn;
                        expertTestTopicpeizhiDTO.TopictypeName = topictype.Comments;
                        expertTestTopicpeizhiDTO.Zhishitype = zhishitype.CodeSn;
                        expertTestTopicpeizhiDTO.ZhishitypeName = zhishitype.Comments;
                        expertTestTopicpeizhiDTO.Fenshu = 0;
                        expertTestTopicpeizhiDTO.Fenzhi = 0;
                        expertTestTopicpeizhiDTO.FenshuName = "0";
                        expertTestTopicpeizhiDTO.FenzhiName = "0";
                        expertTestTopicpeizhiDTO.zongFenshu = "0";
                        expertTestTopicpeizhiDTO.zongFenzhi = "0";
                        expertTestTopicpeizhiDTOs.Add(expertTestTopicpeizhiDTO);
                    }
                }
            }
            else
            {
                foreach (var expertTestTopicpeizhiDTO in expertTestTopicpeizhiDTOs)
                {
                    var aaaa  = expertTestTopicpeizhiDTOs.Where(x => x.Topictype == expertTestTopicpeizhiDTO.Topictype).Sum(x => x.Fenshu);
                    expertTestTopicpeizhiDTO.zongFenshu = aaaa.HasValue? aaaa.Value.ToString("0.##"):"";
                    expertTestTopicpeizhiDTO.zongFenzhi = expertTestTopicpeizhiDTO.Fenzhi.HasValue ? expertTestTopicpeizhiDTO.Fenzhi.Value.ToString("0.##") : "";
                }
            }
            ViewBag.expertTestTopicpeizhiDTOs = expertTestTopicpeizhiDTOs;
            ViewBag.topictype = topictypes;
            ViewBag.zhishitype = zhishitypes;
            return View();
        }
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="data">岗位实体类对象</param>
        /// <returns></returns>
        ///
        [HttpPost]
        public IActionResult SavePeizhi(ExpertTestTopicpeizhiDTO data)
        {
            ResultEntity resultEntity = new ResultEntity();
            using (TransactionScope scope = new TransactionScope())
            {
                var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
                ViewData["curentuser"] = curentuser;
                data.RecStatus = "A";
                if (data.Zhishitypes != null && data.Zhishitypes.Length > 0)
                {
                    for (int i = 0; i < data.Zhishitypes.Length; i++)
                    {
                        var resultDTO = _expertTestTopicService.Getpeizhi(data.Topictypes[i],data.Zhishitypes[i]);
                        if (string.IsNullOrEmpty(resultDTO.Id))
                        {
                            resultDTO = new ExpertTestTopicpeizhiDTO();
                            resultDTO.ShijianId = data.ShijianIds[i];
                            resultDTO.Topictype = data.Topictypes[i];
                            resultDTO.Zhishitype = data.Zhishitypes[i];
                            resultDTO.Fenshu = data.Fenshus[i];
                            for (int j = 0; j < data.Topictypeszong.Length; j++)
                            {
                                if(data.Topictypeszong[j]== resultDTO.Topictype)
                                {
                                    resultDTO.Fenzhi = data.Fenzhizong[j];
                                }
                            }
                            resultDTO.Creater = curentuser.Id;
                            resultDTO.Createtime = DateTime.Now;
                        }
                        else
                        {
                            resultDTO.ShijianId = data.ShijianIds[i];
                            resultDTO.Topictype = data.Topictypes[i];
                            resultDTO.Zhishitype = data.Zhishitypes[i];
                            resultDTO.Fenshu = data.Fenshus[i];
                            for (int j = 0; j < data.Topictypeszong.Length; j++)
                            {
                                if (data.Topictypeszong[j] == resultDTO.Topictype)
                                {
                                    resultDTO.Fenzhi = data.Fenzhizong[j];
                                }
                            }
                        }
                        resultDTO.Modifier = curentuser.Id;
                        resultDTO.Modifytime = DateTime.Now;
                        resultEntity = _expertTestTopicService.savepeizhi(resultDTO);
                    }
                }
                scope.Complete();
            }
            return new JsonResult(resultEntity);
        }
    }
}
zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Edit.cshtml
@@ -251,8 +251,8 @@
                                    {
                                    <div class="clearfix layer-area" style="padding-bottom:15px;">
                                        <label class="text-right col-sm-1 col-md-1 control-label"></label>
                                        <div class="col-sm-2 col-md-2" style="width:5%;">
                                            <input class="form-control" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@expertTestTopicanwserDTOs[i].Anwserno" readonly="readonly">
                                        <div class="col-sm-2 col-md-2" style="width:4%;">
                                            <input class="form-control" style="text-align:left;border:none;" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@expertTestTopicanwserDTOs[i].Anwserno" readonly="readonly">
                                        </div>
                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">、</label>
                                        <div class="col-sm-6 col-md-6" name="Anwser2">
@@ -316,7 +316,7 @@
                                    @for (int i = 0; i < expertTestTopicanwserDTOs.Count; i++)
                                    {
                                    <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
                                    <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:3%;text-align:left;padding-left:15px;">
                                        @if ("A" == expertTestTopicanwserDTOs[i].Shifouzhengqu)
                                        {
                                        <input type="checkbox" checked="checked" name="ShifouzhengquName" value="A" onclick="checkShifouzhengqu(this)" />
@@ -331,7 +331,7 @@
                                    </div>
                                    <div class="col-sm-2 col-md-2" style="width:5%;">
                                        <input class="form-control" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@expertTestTopicanwserDTOs[i].Anwserno" readonly="readonly">
                                        <input class="form-control" style="border:none;" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@expertTestTopicanwserDTOs[i].Anwserno" readonly="readonly">
                                    </div>
                                    <div class="col-sm-6 col-md-6" name="Anwser2" style="display:none;">
@@ -371,113 +371,112 @@
                                <div id="addlist_2">
                                    @for (int i = 0; i < expertTestTopicjiexiDTOs.Count; i++)
                                {
                                    <div class="clearfix layer-area" style="padding-bottom:15px;">
                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
                                            法律
                                        </label>
                                    {
                                    <div class="fatiaomeirong">
                                        <div class="clearfix layer-area" style="padding-bottom:15px;">
                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
                                                法律
                                            </label>
                                        <div class="col-sm-5 col-md-5" grouptype="Vdata">
                                            <select class="form-control" name="Falv" data-placeholder="选择 序列 ...">
                                                <option value="" hassubinfo="true">请选择</option>
                                                @foreach (var item in falv)
                                            {
                                                @if (!item.CodeSn.Equals(expertTestTopicjiexiDTOs[i].Falv))
                                            <div class="col-sm-5 col-md-5" grouptype="Vdata">
                                                <select class="form-control" name="Falv" data-placeholder="选择 序列 ...">
                                                    <option value="" hassubinfo="true">请选择</option>
                                                    @foreach (var item in falv)
                                                    {
                                                        @if (!item.CodeSn.Equals(expertTestTopicjiexiDTOs[i].Falv))
                                                        {
                                                            <option value="@item.CodeSn" hassubinfo="true">
                                                                @item.Comments
                                                            </option>
                                                        }
                                                        else
                                                        {
                                                            <option value="@item.CodeSn" hassubinfo="true" selected="selected">
                                                                @item.Comments
                                                            </option>
                                                        }
                                                    }
                                                </select>
                                            </div>
                                            <label class="text-right col-sm-1 col-md-1 control-label" style="width:30px;">法条</label>
                                            <div class="col-sm-2 col-md-2">
                                                <input class="form-control" label="法条" name="Fatiao" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="@expertTestTopicjiexiDTOs[i].Fatiao">
                                            </div>
                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
                                                主解析
                                            </label>
                                            <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
                                                @if ("A" == expertTestTopicjiexiDTOs[i].Flag)
                                                {
                                                <option value="@item.CodeSn" hassubinfo="true">
                                                    @item.Comments
                                                </option>
                                                    <input type="checkbox" checked="checked" name="FlagName" value="A" onclick="checkFlag(this)" />
                                                }
                                                else
                                                {
                                                <option value="@item.CodeSn" hassubinfo="true" selected="selected">
                                                    @item.Comments
                                                </option>
                                                    <input type="checkbox" name="FlagName" value="D" onclick="checkFlag(this)" />
                                                }
                                                <input type="hidden" name="Flag" value="" />
                                            </div>
                                            @if (i == 0)
                                            {
                                                <div class="col-sm-1 col-md-1" style="width:80px;">
                                                    <button type="button" class="addBtn" onclick="addBtn(this)" data-type="2" style="width:32px">+</button>
                                                    <button type="button" class="delBtn" onclick="delBtn(this)" data-type="2" style="width:32px">-</button>
                                                </div>
                                            }
                                            </select>
                                        </div>
                                        <div class="clearfix layer-area" style="padding-bottom:15px;">
                                            <label class="text-right col-sm-1 col-md-1 control-label">法条内容</label>
                                            <div class="col-sm-11 col-md-11">
                                                <textarea class="form-control bt" name="Fatiaomingxi" title="法条内容" isempty="" maxlength="4000" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@expertTestTopicjiexiDTOs[i].Jiexi</textarea>
                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:30px;">法条</label>
                                        <div class="col-sm-2 col-md-2">
                                            <input class="form-control" label="法条" name="Fatiao" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="@expertTestTopicjiexiDTOs[i].Fatiao">
                                            </div>
                                        </div>
                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
                                            主解析
                                        </label>
                                        <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
                                            @if ("A" == expertTestTopicjiexiDTOs[i].Flag)
                                        {
                                            <input type="checkbox" checked="checked" name="FlagName" value="A" onclick="checkFlag(this)" />
                                        }
                                        else
                                        {
                                            <input type="checkbox" name="FlagName" value="D" onclick="checkFlag(this)" />
                                        }
                                            <input type="hidden" name="Flag" value="" />
                                            @*<select class="form-control" name="Flag" data-placeholder="选择 序列 ...">
            @foreach (var item in Flag)
        {
            @if (!item.CodeSn.Equals(expertTestTopicjiexiDTOs[i].Flag))
            {
            <option value="@item.CodeSn" hassubinfo="true">
                @item.Comments
            </option>
            }
            else
            {
            <option value="@item.CodeSn" hassubinfo="true" selected="selected">
                @item.Comments
            </option>
            }
        }
        </select>*@
                                        </div>
                                        @if (i == 0)
                                    {
                                        <div class="col-sm-1 col-md-1" style="width:80px;">
                                            <button type="button" class="addBtn" onclick="addBtn(this)" data-type="2" style="width:32px">+</button>
                                            <button type="button" class="delBtn" onclick="delBtn(this)" data-type="2" style="width:32px">-</button>
                                        </div>
                                    }
                                    </div>
                                }
                                </div>
                                <div class="clearfix layer-area" style="padding-bottom:15px;">
                                    <label class="text-right col-sm-1 col-md-1 control-label">解析</label>
                                    <div class="col-sm-11 col-md-11">
                                        <textarea class="form-control bt" id="Jiexi" name="Jiexi" title="解析" isempty="" maxlength="4000" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@Model.Jiexi</textarea>
                                    </div>
                                </div>
                            </div>
                                            }
                                        </div>
                                        <div class="clearfix layer-area" style="padding-bottom:15px;">
                                            <label class="text-right col-sm-1 col-md-1 control-label">解析</label>
                                            <div class="col-sm-11 col-md-11">
                                                <textarea class="form-control bt" id="Jiexi" name="Jiexi" title="解析" isempty="" maxlength="4000" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@Model.Jiexi</textarea>
                                            </div>
                                        </div>
                                    </div>
@@ -516,6 +515,15 @@
        var Jiexi = document.getElementById("Jiexi");
        Jiexi.style.height = Jiexi.scrollHeight + 'px';
        var Fatiaomingxi = document.getElementsByName("Fatiaomingxi");
        for (var a = 0; a < Fatiaomingxi.length; a++) {
            Fatiaomingxi[a].style.height = Fatiaomingxi[a].scrollHeight + 'px';
        }
        var Topictype11 = $("#Topictype").val();
        if (Topictype11 == "03") {
            var sss = $("div[name='Anwser2']");
@@ -524,6 +532,19 @@
            ssss.hide();
        }
        Jiexi.style.height = Jiexi.scrollHeight + 'px';
        var Topictype11 = $("#Topictype").val();
        if (Topictype11 == "03") {
            var sss = $("div[name='Anwser2']");
            sss.hide();
            var ssss = $("label[name='Anwser1']");
            ssss.hide();
        }
        var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2;
        $("#div_content").height(hh);
@@ -894,8 +915,8 @@
                $('#addlist_3').append(oTr);
                $(oTr).html(` <div class="clearfix layer-area" style="padding-bottom:15px;">
                                                             <label class="text-right col-sm-1 col-md-1 control-label">答案编号</label>
                                                            <div class="col-sm-2 col-md-2" style="width:5%;">
                                            <input class="form-control" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="">
                                                             <div class="col-sm-2 col-md-2" style="width:4%;">
                                            <input class="form-control" style="text-align:left;border:none;"  label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="">
                                        </div>
                                                            <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1" >、</label>
                                        <div class="col-sm-6 col-md-6" name="Anwser2" >
@@ -929,7 +950,8 @@
                                                        </div>`);
              } else  if (num == 2) {
                $('#addlist_2').append(oTr);
                $(oTr).html(` <div class="clearfix layer-area" style="padding-bottom:15px;">
                  $(oTr).html(` <div class="fatiaomeirong" >
<div class="clearfix layer-area" style="padding-bottom:15px;">
 <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
                                            法律
@@ -981,7 +1003,20 @@
                                    </div>
                                                        </div>`);
                                                        </div>
 <div class="clearfix layer-area" style="padding-bottom:15px;">
                                            <label class="text-right col-sm-1 col-md-1 control-label">法条内容</label>
                                            <div class="col-sm-11 col-md-11">
                                                <textarea class="form-control bt" name="Fatiaomingxi" title="法条内容" isempty="" maxlength="4000" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'"></textarea>
                                            </div>
                                        </div>
 </div>
`);
            }
        }
@@ -995,8 +1030,8 @@
                }
            } else if (num == 2) {
                if ($('#addlist_2').find('.clearfix').length > 1) {
                    $('#addlist_2').find('.clearfix:last').remove();
                if ($('#addlist_2').find('.fatiaomeirong').length > 1) {
                    $('#addlist_2').find('.fatiaomeirong:last').remove();
                }
            }
@@ -1013,7 +1048,7 @@
                                    <label class="text-right col-sm-1 col-md-1 control-label"></label>
                                    <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
                                    <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:3%;">
                                        <input type="checkbox" name="ShifouzhengquName" value="A" onclick="checkShifouzhengqu(this)" />
@@ -1023,7 +1058,7 @@
                                    </div>
                                    <div class="col-sm-2 col-md-2" style="width:5%;">
                                        <input class="form-control" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="×" readonly="readonly">
                                        <input class="form-control" style="border:none;" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="√" readonly="readonly">
                                    </div>
                                    <div class="col-sm-6 col-md-6" name="Anwser2" style="display:none;">
@@ -1041,7 +1076,7 @@
                                    </div>
                                    <div class="col-sm-2 col-md-2" style="width:5%;">
                                        <input class="form-control" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="√" readonly="readonly">
                                        <input class="form-control" style="border:none;" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="×" readonly="readonly">
                                    </div>
                                    <div class="col-sm-6 col-md-6" name="Anwser2" style="display:none;">
@@ -1069,8 +1104,8 @@
                $('#addlist_3').html(`
<div class="clearfix layer-area" style="padding-bottom:15px;">
                                        <label class="text-right col-sm-1 col-md-1 control-label"></label>
                                        <div class="col-sm-2 col-md-2" style="width:5%;">
                                            <input class="form-control" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="A" readonly="readonly">
                                        <div class="col-sm-2 col-md-2" style="width:4%;">
                                            <input class="form-control" style="text-align:left;border:none;"  label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="A" readonly="readonly">
                                        </div>
                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">、</label>
                                        <div class="col-sm-6 col-md-6" name="Anwser2">
@@ -1084,17 +1119,17 @@
                                        <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
                                            <input type="checkbox" name="ShifouzhengquName" value="D" onclick="checkShifouzhengqu(this)" />
                                            <input type="hidden" name="Shifouzhengqu" value="" />
                                        </div>
                                    </div>
<div class="clearfix layer-area" style="padding-bottom:15px;">
                                        <label class="text-right col-sm-1 col-md-1 control-label"></label>
                                        <div class="col-sm-2 col-md-2" style="width:5%;">
                                            <input class="form-control" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="B" readonly="readonly">
                                        <div class="col-sm-2 col-md-2" style="width:4%;">
                                            <input class="form-control" style="text-align:left;border:none;"  label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="B" readonly="readonly">
                                        </div>
                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">、</label>
                                        <div class="col-sm-6 col-md-6" name="Anwser2">
@@ -1108,17 +1143,17 @@
                                        <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
                                            <input type="checkbox" name="ShifouzhengquName" value="D" onclick="checkShifouzhengqu(this)" />
                                            <input type="hidden" name="Shifouzhengqu" value="" />
                                        </div>
                                    </div>
<div class="clearfix layer-area" style="padding-bottom:15px;">
                                        <label class="text-right col-sm-1 col-md-1 control-label"></label>
                                        <div class="col-sm-2 col-md-2" style="width:5%;">
                                            <input class="form-control" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="C" readonly="readonly">
                                         <div class="col-sm-2 col-md-2" style="width:4%;">
                                            <input class="form-control" style="text-align:left;border:none;"  label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="C" readonly="readonly">
                                        </div>
                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">、</label>
                                        <div class="col-sm-6 col-md-6" name="Anwser2">
@@ -1132,17 +1167,17 @@
                                        <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
                                            <input type="checkbox" name="ShifouzhengquName" value="D" onclick="checkShifouzhengqu(this)" />
                                            <input type="hidden" name="Shifouzhengqu" value="" />
                                        </div>
                                    </div>
<div class="clearfix layer-area" style="padding-bottom:15px;">
                                        <label class="text-right col-sm-1 col-md-1 control-label"></label>
                                        <div class="col-sm-2 col-md-2" style="width:5%;">
                                            <input class="form-control" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="D" readonly="readonly">
                                         <div class="col-sm-2 col-md-2" style="width:4%;">
                                            <input class="form-control" style="text-align:left;border:none;"  label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="D" readonly="readonly">
                                        </div>
                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">、</label>
                                        <div class="col-sm-6 col-md-6" name="Anwser2">
@@ -1156,9 +1191,9 @@
                                        <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
                                            <input type="checkbox" name="ShifouzhengquName" value="D" onclick="checkShifouzhengqu(this)" />
                                            <input type="hidden" name="Shifouzhengqu" value="" />
                                        </div>
                                    </div>
zhengcaioa/zhengcaioa/Views/ExpertTestTopic/EditPeizhi.cshtml
New file
@@ -0,0 +1,369 @@
@model DTO.ExpertTestTopicpeizhiDTO
@using DTO;
@using zhengcaioa.Models;
@{
    List<SysCodeDtl> topictype = ViewData["topictype"] as List<SysCodeDtl>; //结论类型
    List<SysCodeDtl> zhishitype = ViewData["zhishitype"] as List<SysCodeDtl>; //结论类型
    List<ExpertTestTopicpeizhiDTO> expertTestTopicpeizhiDTOs = ViewBag.expertTestTopicpeizhiDTOs as List<ExpertTestTopicpeizhiDTO>; //数据
}
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <title>@(SiteConfig.SiteName)</title>
    <link href="~/css/bootstrap.min.css" rel="stylesheet">
    <link href="~/css/font-awesome.min.css" rel="stylesheet">
    <link href="~/css/animate.min.css" rel="stylesheet">
    @*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@
    <link href="~/css/style.min.css" rel="stylesheet">
    <link href="~/css/plugins/chosen/chosen.css" rel="stylesheet">
    @*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@
    @*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@
    <link href="~/css/style.min.css" rel="stylesheet">
    <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" />
    <link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" />
    <style type="text/css">
        .webuploader-pick {
            position: relative;
            display: inline-block;
            cursor: pointer;
            background: #00b7ee;
            padding: 8px 14px 7px 14px;
            color: #fff;
            text-align: center;
            border-radius: 3px;
            overflow: hidden;
        }
        div.clearfix > label {
            padding-top: 8px;
        }
        .chosen-container {
            border-radius: 1px;
            border: 1px solid #e5e6e7;
        }
        .col-md-1.control-label {
            padding-right: 0px;
            font-weight: 400;
        }
    </style>
    <!-- jqgrid-->
    @*<link href="~/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet">*@
    <script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script>
    <script src="~/js/bootstrap.min.js"></script>
    @*<script src="~/js/plugins/bootstro/bootstro.js"></script>*@
    <!--容器-->
    @*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@
    @*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@
    @*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@
    <script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script>
    @*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@
    <script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script>
    @*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@
    @*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@
    <script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script>
    <script src="~/js/plugins/webuploader/webuploader.min.js"></script>
    <script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script>
    <script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script>
    @*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@
    @*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@
    <script src="~/js/TUJS.js"></script>
</head>
<body class="gray-bg" style="overflow:auto">
    <form id="formtest">
        <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;">
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>                            <i class="fa fa-list"></i>&nbsp;基本信息</h5>
                        </div>
                        <div id="div_content" class="ibox-content" style="background-color:white;">
                            <div class="row">
                                <div class="clearfix layer-area" style="padding-bottom:15px;">
                                    @for (int i = 0; i < expertTestTopicpeizhiDTOs.Count; i++)
                                    {
                                        if (i == 0 || expertTestTopicpeizhiDTOs[i].Topictype != expertTestTopicpeizhiDTOs[i - 1].Topictype)
                                        {
                                    <h5>
                                        <div class="clearfix layer-area" style="padding-top:15px;">
                                            <label class="text-right col-sm-1 col-md-1 control-label" style="font-weight:bold;">@expertTestTopicpeizhiDTOs[i].Topictype @expertTestTopicpeizhiDTOs[i].TopictypeName</label>
                                            <label class="text-right col-sm-1 col-md-1 control-label" style="font-weight:bold;">
                                                (数量:
                                            </label>
                                            <div class="col-sm-2 col-md-2" style="width:5%;">
                                                <input class="form-control" style="border:none;" label="数量" name="Fenshuszong" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@expertTestTopicpeizhiDTOs[i].zongFenshu" readonly="readonly">
                                            </div>
                                            <label class="text-left col-sm-1 col-md-1 control-label" style="font-weight:bold;">题</label>
                                            <label class="text-right col-sm-1 col-md-1 control-label" style="font-weight:bold;">分值:</label>
                                            <div class="col-sm-2 col-md-2" style="width:5%;">
                                                <input class="form-control" label="结论类型" name="Fenzhizong" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@expertTestTopicpeizhiDTOs[i].zongFenzhi" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" onafterpaste="this.value=this.value.replace(/[^0-9]/g,'')">
                                            </div>
                                            <label class="text-left col-sm-1 col-md-1 control-label" style="font-weight:bold;">分)</label>
                                            <input type="hidden" name="Topictypeszong" value="@expertTestTopicpeizhiDTOs[i].Topictype" />
                                        </div>
                                    </h5>
                                        }
                                        @if (i == 0 || (i + 1) % 4 == 0)
                                        {
                                            @Html.Raw("<div class=\"clearfix layer - area\" >")
                                        }
                                        <label class="text-right col-sm-1 col-md-1 control-label">@expertTestTopicpeizhiDTOs[i].ZhishitypeName</label>
                                        <div class="col-sm-2 col-md-2">
                                            <input class="form-control" label="@expertTestTopicpeizhiDTOs[i].ZhishitypeName" name="Fenshus" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@expertTestTopicpeizhiDTOs[i].FenshuName" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" onafterpaste="this.value=this.value.replace(/[^0-9]/g,'')"  onchange="checknum('@expertTestTopicpeizhiDTOs[i].Topictype');">
                                            <input type="hidden" name="Topictypes" value="@expertTestTopicpeizhiDTOs[i].Topictype" />
                                            <input type="hidden" name="Zhishitypes" value="@expertTestTopicpeizhiDTOs[i].Zhishitype" />
                                            <input type="hidden" name="ShijianIds" value="@expertTestTopicpeizhiDTOs[i].ShijianId" />
                                            <input type="hidden" name="Fenzhis" value="@expertTestTopicpeizhiDTOs[i].Fenzhi" />
                                        </div>
                                        @if (i != 0 && ( i == (expertTestTopicpeizhiDTOs.Count - 1) || expertTestTopicpeizhiDTOs[i].Topictype != expertTestTopicpeizhiDTOs[i + 1].Topictype))
                                        {
                                            @Html.Raw("</div>")
                                        }
                                    }
                                </div>
                                        </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="wrapper wrapper-content" style="margin-top:0px"></div>
        <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px ">
            <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="功能按钮:“保存”,“删除”">
                <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;">
                    <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">提交</span>
                </a>
            </div>
        </div>
    </form>
    <script type="text/javascript">
        var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2;
        $("#div_content").height(hh);
        toastr.options = {
            "closeButton": true,
            "debug": false,
            "progressBar": true,
            "positionClass": "toast-bottom-right",
            "onclick": null,
            "showDuration": "300",
            "hideDuration": "600",
            "timeOut": "4500",
            "extendedTimeOut": "600",
            "showEasing": "swing",
            "hideEasing": "linear",
            "showMethod": "fadeIn",
            "hideMethod": "fadeOut"
        };
        @*var id = '@Model.Id';*@
        var checknum = function (Topictype) {
            var Topictypeszong = document.getElementsByName("Topictypeszong");
            var Fenshuszongs = document.getElementsByName("Fenshuszong");
            var Fenshus = document.getElementsByName("Fenshus");
            var Topictypes = document.getElementsByName("Topictypes");
            var Fenshuszong = 0;
            for (var j = 0; j < Topictypes.length; j++) {
                if (Topictypes[j].value == Topictype) {
                    if (Fenshus[j].value != "") {
                        Fenshuszong += parseInt(Fenshus[j].value);
                    }
                }
            }
            for (var a = 0; a < Topictypeszong.length; a++) {
                if (Topictype == Topictypeszong[a].value) {
                    Fenshuszongs[a].value = Fenshuszong;
                        }
            }
        }
        // 保存岗位信息
        var savePosition = function () {
            var sss = document.getElementsByName("Fenshus");
            for (var j = 0; j < sss.length; j++) {
                if ($.trim(sss[j].value)=="") {
                    toastr.warning("数量不能为空");
                    return;
                }
            }
            var sss = document.getElementsByName("Fenzhizong");
            for (var j = 0; j < sss.length; j++) {
                if ($.trim(sss[j].value) == "") {
                    toastr.warning("分值不能为空");
                    return;
                }
            }
           // var data = { id: $("#Id").val(), DocType: $("#DocType").val(), DocDept: $("#DocDept").val(), PublishTime: $("#PublishTime").val(), DocNo: $("#DocNo").val(), DocTitle: $("#DocTitle").val(), DocContent: ueue, DocZtc: $("#DocZtc").val(), Printtimes: $("#Printtimes").val(), DocCsdw: $("#DocCsdw").val(), PrintStatus: $("#PrintStatus").val()}
            $.ajax({
                type: "POST",
                url: "/ExpertTestTopic/SavePeizhi",
                dataType: "json",
                global: false,
                data: $('form').serializeArray(),
                success: function (data) {
                        if (data.Result) {
                            //  parent._afterSave(true);
                            parent.layer.msg('成功保存', { icon: 6 });
                            var Topictype = $("#Topictype").val();
                            var Zhishitype = $("#Zhishitype").val();
                            var Area = $("#Area").val();
                            window.location = "/ExpertTestTopic/EditPeizhi";
                            //try {
                            //    _pageAutoClose();//自动关闭页面方法
                            //}
                            //catch (err) {
                            //    parent._CloseTab1("/ExpertTestTopic/Edit/");
                            //}
                        }
                        else {
                            // toastr.error("失败");
                            parent.layer.msg(data.Message, { icon: 5 });
                        }
                },
                error: function () {
                    parent.layer.msg('失败', { icon: 5 });
                }
            });
        }
        function _pageAutoClose() {
            parent.window._reloadPageData();
            var index = parent.layer.getFrameIndex(window.name);
            parent.layer.isRefresh = true;
            parent.layer.closeAll('loading');
            parent.layer.close(index);
            return false;
        }
    </script>
</body>
</html>
zhengcaioa/zhengcaioa/Views/ExpertTestTopic/EditResult.cshtml
New file
@@ -0,0 +1,300 @@
@model DTO.ExpertTestResultDTO
@using DTO;
@using zhengcaioa.Models;
@{
    List<SysCodeDtl> resulttype = ViewData["resulttype"] as List<SysCodeDtl>; //结论类型
    List<ExpertTestResultDTO> resultDTOs = ViewBag.resultDTOs as List<ExpertTestResultDTO>; //数据
}
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <title>@(SiteConfig.SiteName)</title>
    <link href="~/css/bootstrap.min.css" rel="stylesheet">
    <link href="~/css/font-awesome.min.css" rel="stylesheet">
    <link href="~/css/animate.min.css" rel="stylesheet">
    @*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@
    <link href="~/css/style.min.css" rel="stylesheet">
    <link href="~/css/plugins/chosen/chosen.css" rel="stylesheet">
    @*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@
    @*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@
    <link href="~/css/style.min.css" rel="stylesheet">
    <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" />
    <link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" />
    <style type="text/css">
        .webuploader-pick {
            position: relative;
            display: inline-block;
            cursor: pointer;
            background: #00b7ee;
            padding: 8px 14px 7px 14px;
            color: #fff;
            text-align: center;
            border-radius: 3px;
            overflow: hidden;
        }
        div.clearfix > label {
            padding-top: 8px;
        }
        .chosen-container {
            border-radius: 1px;
            border: 1px solid #e5e6e7;
        }
        .col-md-1.control-label {
            padding-right: 0px;
            font-weight: 400;
        }
    </style>
    <!-- jqgrid-->
    @*<link href="~/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet">*@
    <script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script>
    <script src="~/js/bootstrap.min.js"></script>
    @*<script src="~/js/plugins/bootstro/bootstro.js"></script>*@
    <!--容器-->
    @*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@
    @*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@
    @*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@
    <script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script>
    @*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@
    <script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script>
    @*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@
    @*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@
    <script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script>
    <script src="~/js/plugins/webuploader/webuploader.min.js"></script>
    <script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script>
    <script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script>
    @*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@
    @*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@
    <script src="~/js/TUJS.js"></script>
</head>
<body class="gray-bg" style="overflow:auto">
    <form id="formtest">
        <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;">
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>                            <i class="fa fa-list"></i>&nbsp;基本信息</h5>
                        </div>
                        <div id="div_content" class="ibox-content" style="background-color:white;">
                            <div class="row">
                                <div class="clearfix layer-area" style="padding-bottom:15px;">
                                        @for (int i = 0; i < resultDTOs.Count; i++)
                                        {
                                            <div class="clearfix layer-area" style="padding-bottom:15px;">
                                                <label class="text-right col-sm-1 col-md-1 control-label">结论类型</label>
                                                <div class="col-sm-2 col-md-2">
                                                    <input class="form-control" label="结论类型" name="ResulttypeName" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@resultDTOs[i].ResulttypeName" readonly="readonly">
                                                    <input type="hidden" name="Resulttypes" value="@resultDTOs[i].Resulttype" />
                                                </div>
                                                <label class="text-right col-sm-1 col-md-1 control-label"  >测试结论</label>
                                                <div class="col-sm-6 col-md-6"  >
                                                    <input class="form-control" label="测试结论" name="Results" labtype="txt" addvisible="true" editvisible="true" maxlength="100" reg="" ismust="flase" type="text" value="@resultDTOs[i].Result">
                                                </div>
                                            </div>
                                        }
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        </div>
        <div class="wrapper wrapper-content" style="margin-top:0px"></div>
        <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px ">
            <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="功能按钮:“保存”,“删除”">
                <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;">
                    <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">提交</span>
                </a>
            </div>
        </div>
    </form>
    <script type="text/javascript">
        var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2;
        $("#div_content").height(hh);
        toastr.options = {
            "closeButton": true,
            "debug": false,
            "progressBar": true,
            "positionClass": "toast-bottom-right",
            "onclick": null,
            "showDuration": "300",
            "hideDuration": "600",
            "timeOut": "4500",
            "extendedTimeOut": "600",
            "showEasing": "swing",
            "hideEasing": "linear",
            "showMethod": "fadeIn",
            "hideMethod": "fadeOut"
        };
        @*var id = '@Model.Id';*@
        // 保存岗位信息
        var savePosition = function () {
            var sss = document.getElementsByName("Results");
            for (var j = 0; j < sss.length; j++) {
                if ($.trim(sss[j].value)=="") {
                    toastr.warning("测试结论不能为空");
                    return;
                }
            }
           // var data = { id: $("#Id").val(), DocType: $("#DocType").val(), DocDept: $("#DocDept").val(), PublishTime: $("#PublishTime").val(), DocNo: $("#DocNo").val(), DocTitle: $("#DocTitle").val(), DocContent: ueue, DocZtc: $("#DocZtc").val(), Printtimes: $("#Printtimes").val(), DocCsdw: $("#DocCsdw").val(), PrintStatus: $("#PrintStatus").val()}
            $.ajax({
                type: "POST",
                url: "/ExpertTestTopic/SaveResult",
                dataType: "json",
                global: false,
                data: $('form').serializeArray(),
                success: function (data) {
                        if (data.Result) {
                            //  parent._afterSave(true);
                            parent.layer.msg('成功保存', { icon: 6 });
                            var Topictype = $("#Topictype").val();
                            var Zhishitype = $("#Zhishitype").val();
                            var Area = $("#Area").val();
                            window.location = "/ExpertTestTopic/EditResult";
                            //try {
                            //    _pageAutoClose();//自动关闭页面方法
                            //}
                            //catch (err) {
                            //    parent._CloseTab1("/ExpertTestTopic/Edit/");
                            //}
                        }
                        else {
                            // toastr.error("失败");
                            parent.layer.msg(data.Message, { icon: 5 });
                        }
                },
                error: function () {
                    parent.layer.msg('失败', { icon: 5 });
                }
            });
        }
        function _pageAutoClose() {
            parent.window._reloadPageData();
            var index = parent.layer.getFrameIndex(window.name);
            parent.layer.isRefresh = true;
            parent.layer.closeAll('loading');
            parent.layer.close(index);
            return false;
        }
    </script>
</body>
</html>
zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Index.cshtml
@@ -16,16 +16,16 @@
        dataCol = [
            { label: 'id', name: 'Id', labtype: 'txt', hidden: true },
            {
                label: '题型', name: 'TopictypeName', labtype: 'txt', hidden: false, width: 70
                label: '题型', name: 'TopictypeName', labtype: 'txt', hidden: false, width: 50
            },
            {
                label: '知识点', name: 'ZhishitypeName', labtype: 'txt', hidden: false, width: 70
                label: '知识点', name: 'ZhishitypeName', labtype: 'txt', hidden: false, width: 50
            },
            { label: '区域', name: 'AreaName', labtype: 'txt', hidden: false, width: 70 },
            { label: '区域', name: 'AreaName', labtype: 'txt', hidden: false, width: 50 },
            { label: '试题', name: 'Topic', labtype: 'txt', hidden: false, width: 300 },
            { label: '重点标注', name: 'ZhongdianName', labtype: 'txt', hidden: false, width: 70 },
            { label: '审核', name: 'ShenpiStatusName', labtype: 'txt', hidden: false, width: 70 },
            { label: '重点标注', name: 'ZhongdianName', labtype: 'txt', hidden: false, width: 50 },
            { label: '审核', name: 'ShenpiStatusName', labtype: 'txt', hidden: false, width: 50 },
            { label: '解析', name: 'Jiexi', labtype: 'txt', hidden: false, width: 300 },