From 60e78c332cd5597f955e150e1a5f239db8facc59 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期五, 15 十月 2021 15:41:47 +0800 Subject: [PATCH] 题库规则和测试结论 --- zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Edit.cshtml | 265 ++++++++++++++++++++++++++++++----------------------- 1 files changed, 150 insertions(+), 115 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Edit.cshtml index 828458a..1b2af21 100644 --- a/zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Edit.cshtml +++ b/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">瑙f瀽</label> - <div class="col-sm-11 col-md-11"> - <textarea class="form-control bt" id="Jiexi" name="Jiexi" title="瑙f瀽" 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">瑙f瀽</label> + <div class="col-sm-11 col-md-11"> + <textarea class="form-control bt" id="Jiexi" name="Jiexi" title="瑙f瀽" 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> -- Gitblit v1.9.1