From d14b82fec13361486c49165371b5dee1b7089c09 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 09 十二月 2021 13:35:23 +0800
Subject: [PATCH] 提交
---
zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml | 72 ++++++++++++++++++++++++++++++++----
1 files changed, 64 insertions(+), 8 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml b/zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml
index a287ee4..88b471b 100644
--- a/zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml
@@ -3,10 +3,10 @@
@using zhengcaioa.Models;
@{
+ List<SysCodeDtl> falv = ViewData["falv"] as List<SysCodeDtl>; //娉曞緥
-
-
+ List<SysCodeDtl> question = ViewData["question"] as List<SysCodeDtl>; //娉曞緥
@@ -124,11 +124,30 @@
</div>
<div class="clearfix layer-area" style="padding-bottom:15px;">
- <label class="text-right col-sm-1 col-md-1 control-label">鍚嶇О</label>
+ <label class="text-right col-sm-1 col-md-1 control-label">娉曞緥鍚嶇О</label>
<div class="col-sm-10 col-md-10">
- <input class="form-control" label="鍚嶇О" id="Comments" name="Comments" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="100" ismust="true" type="text" value="@Model.Comments">
+ @*<input class="form-control" label="娉曞緥鍚嶇О" id="Comments" name="Comments" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="100" ismust="true" type="text" value="@Model.Comments">*@
+ <select id="Comments" class="form-control" name="Comments" data-placeholder="閫夋嫨 搴忓垪 ...">
+ <option value="" hassubinfo="true">璇烽�夋嫨</option>
+ @foreach (var item in falv)
+ {
+ @if (!item.CodeSn.Equals(Model.Comments))
+ {
+ <option value="@item.CodeSn" hassubinfo="true">
+ @item.Comments
+ </option>
+ }
+ else
+ {
+ <option value="@item.CodeSn" hassubinfo="true" selected="selected">
+ @item.Comments
+ </option>
+ }
+ }
+ }
+ </select>
</div>
</div>
<div class="clearfix layer-area" style="padding-bottom:15px;display:none;">
@@ -140,13 +159,43 @@
</div>
<div class="clearfix layer-area" style="padding-bottom:15px;">
- <label class="text-right col-sm-1 col-md-1 control-label">澶囨敞</label>
+ <label class="text-right col-sm-1 col-md-1 control-label">鍐呭</label>
<div class="col-sm-10 col-md-10">
- <input class="form-control" label="澶囨敞" id="Contents" name="Contents" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="300" ismust="true" type="text" value="@Model.Contents">
+ @*<input class="form-control" label="鍐呭" id="Contents" name="Contents" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="300" ismust="true" type="text" value="@Model.Contents">*@
+ <textarea class="form-control bt" id="Contents" name="Contents" 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.Contents</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-10 col-md-10">
+ @*<input class="form-control" label="娉曞緥鍚嶇О" id="Comments" name="Comments" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="100" ismust="true" type="text" value="@Model.Comments">*@
+
+ <select id="Classify1" class="form-control" name="Classify1" data-placeholder="閫夋嫨 搴忓垪 ...">
+ <option value="" hassubinfo="true">璇烽�夋嫨</option>
+ @foreach (var item in question)
+ {
+ @if (!item.CodeSn.Equals(Model.Classify1))
+ {
+ <option value="@item.CodeSn" hassubinfo="true">
+ @item.Comments
+ </option>
+ }
+ else
+ {
+ <option value="@item.CodeSn" hassubinfo="true" selected="selected">
+ @item.Comments
+ </option>
+ }
+
+ }
+ }
+ </select>
</div>
</div>
+ </div>
@@ -198,6 +247,10 @@
var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2;
$("#div_content").height(hh);
+
+ var Contents = document.getElementById("Contents");
+
+ Contents.style.height = Contents.scrollHeight + 'px';
toastr.options = {
"closeButton": true,
@@ -280,11 +333,14 @@
if ($.trim($("#Comments").val()) == '') {
- toastr.warning("鍚嶇О涓嶈兘涓虹┖");
+ toastr.warning("娉曞緥鍚嶇О涓嶈兘涓虹┖");
return;
}
-
+ if ($.trim($("#Classify1").val()) == '') {
+ toastr.warning("璐ㄧ枒浜嬮」涓嶈兘涓虹┖");
+ return;
+ }
--
Gitblit v1.9.1