| | |
| | | @model DTO.LiaotianDTO |
| | | @using DTO; |
| | | @{ |
| | | Layout = null; |
| | | List<SysCodeDtl> problemtype = ViewData["problemtype"] as List<SysCodeDtl>; //问题类型 |
| | |
| | | { |
| | | tijiaobingshenhe = tijiaobingshenhesto.PageName; |
| | | } |
| | | |
| | | List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>; |
| | | |
| | | } |
| | | <!DOCTYPE html> |
| | |
| | | </div> |
| | | |
| | | @*<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label"> |
| | | 收藏 |
| | | </label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | @if ("A" == Model.ShouCangStatus) |
| | | { |
| | | <input type="checkbox" class="form-control" id="ShouCangStatusName" checked="checked" name="ShouCangStatusName" value="A" /> |
| | | } |
| | | else |
| | | { |
| | | <input type="checkbox" class="form-control" id="ShouCangStatusName" name="ShouCangStatusName" value="A" /> |
| | | } |
| | | <input type="hidden" id="ShouCangStatus" name="ShouCangStatus" value="" /> |
| | | 收藏 |
| | | </label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | @if ("A" == Model.ShouCangStatus) |
| | | { |
| | | <input type="checkbox" class="form-control" id="ShouCangStatusName" checked="checked" name="ShouCangStatusName" value="A" /> |
| | | } |
| | | else |
| | | { |
| | | <input type="checkbox" class="form-control" id="ShouCangStatusName" name="ShouCangStatusName" value="A" /> |
| | | } |
| | | <input type="hidden" id="ShouCangStatus" name="ShouCangStatus" value="" /> |
| | | |
| | | </div>*@ |
| | | |
| | | </div>*@ |
| | | |
| | | </div> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">问题<i class="red">*</i></label> |
| | |
| | | |
| | | </div> |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">答案<i class="red">*</i></label> |
| | | <div class="col-sm-11 col-md-11"> |
| | | <textarea class="form-control bt" id="Anwser" name="Anwser" 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.Anwser</textarea> |
| | | <textarea class="form-control bt" id="Anwser" name="Anwser" 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.Anwser</textarea> |
| | | </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="Shiyongfatiao" name="Shiyongfatiao" title="答案" isempty="" maxlength="450" 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.Shiyongfatiao</textarea> </div> |
| | | <div class="col-sm-11 col-md-11"> <textarea class="form-control bt" id="Shiyongfatiao" name="Shiyongfatiao" title="答案" isempty="" maxlength="450" 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.Shiyongfatiao</textarea> </div> |
| | | |
| | | </div> |
| | | </div> |
| | |
| | | <i class="glyphicon glyphicon-ok"></i> <span class="bold">提交并审核</span> |
| | | </a> |
| | | |
| | | <a class="btn btn-success" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;"> |
| | | <a class="btn btn-success Delete" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;display:none;"> |
| | | <i class="glyphicon glyphicon-remove"></i> <span class="bold">删除</span> |
| | | </a> |
| | | <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;"> |
| | | <a class="btn btn-success Update" href="javascript:void(0)" onclick="savePosition();" style="margin-left: 4px; border-radius: 4px; display: none;"> |
| | | <i class="glyphicon glyphicon-ok"></i> <span class="bold">提交</span> |
| | | </a> |
| | | |
| | |
| | | }; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | var delPosition = function () { |
| | | if (id == null || id=='') { |
| | |
| | | toastr.warning("答案不能为空"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | if ($("#ChushuStatusName").is(':checked')) { |
| | | $("#ChushuStatus").val("A"); |
| | | } else { |
| | | $("#ChushuStatus").val("D"); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | imgLoad = parent.layer.load(2, { shade: [0.2, '#fff'] }); |
| | | $.ajax({ |
| | |
| | | toastr.warning("答案不能为空"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | if ($("#ChushuStatusName").is(':checked')) { |
| | | $("#ChushuStatus").val("A"); |
| | | } else { |
| | | $("#ChushuStatus").val("D"); |
| | | } |
| | | |
| | | |
| | | |
| | | imgLoad = parent.layer.load(2, { shade: [0.2, '#fff'] }); |
| | | $.ajax({ |
| | |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | $("#ShouCangStatusName").change(function () { |
| | | |
| | | if ($("#ShouCangStatusName").is(':checked')) { |
| | |
| | | $("#ShouCangStatus").val("D"); |
| | | } |
| | | |
| | | |
| | | |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/Liaotian/ShouCang", |
| | |
| | | if (data.Result) { |
| | | // parent._afterSave(true); |
| | | parent.layer.msg('操作成功', { icon: 6 }); |
| | | |
| | | |
| | | } |
| | | else { |
| | | |
| | | |
| | | parent.layer.msg(data.Message, { icon: 5 }); |
| | | } |
| | | }, |
| | |
| | | global: false, |
| | | data: "", |
| | | success: function (data) { |
| | | |
| | | |
| | | var quxian = $("#Problemtype"); |
| | | quxian.find('option').remove(); |
| | | var aaa = '<option value="" hassubinfo="true">请选择</option>'; |
| | |
| | | if (i == 0) { |
| | | o = '<option value="' + data[i].CodeSn + '" hassubinfo="true" selected="selected" >' + data[i].Comments + '</option>'; |
| | | } |
| | | |
| | | |
| | | quxian.append(o); |
| | | } |
| | | } |
| | |
| | | |
| | | |
| | | if (id == null || id == '') { |
| | | $('#Questiontype option:eq(1)').attr('selected', 'selected'); |
| | | $('#Questiontype').trigger('change'); |
| | | $('#Questiontype option:eq(1)').attr('selected', 'selected'); |
| | | $('#Questiontype').trigger('change'); |
| | | } |
| | | |
| | | function _pageAutoClose() { |
| | |
| | | parent.layer.closeAll('loading'); |
| | | parent.layer.close(index); |
| | | return false; |
| | | } |
| | | } |
| | | var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))'; |
| | | |
| | | |
| | | |
| | | $(function () { |
| | | var data = JSON.parse(ActionInfo22); |
| | | for (var o in data) { |
| | | $("." + data[o].PageShortcut).show(); |
| | | |
| | | } |
| | | }); |
| | | </script> |
| | | </body> |
| | | </html> |