username@email.com
2021-12-02 91bad66d03c07b6cb2a3eb09bdd98faab4b8caa3
zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml
@@ -3,7 +3,7 @@
@using zhengcaioa.Models;
@{
    List<SysCodeDtl> falv = ViewData["falv"] 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,12 +159,14 @@
                                    </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>
@@ -198,6 +219,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,7 +305,7 @@
            if ($.trim($("#Comments").val()) == '') {
                toastr.warning("名称不能为空");
                toastr.warning("法律名称不能为空");
                return;
            }