username@email.com
2023-02-28 67a0042c5f29e4bb0e0b82f6190f2bc51480b45c
zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml
@@ -11,7 +11,7 @@
    List<SysCodeDtlEntity> sysCodeDtlEntities = ViewData["sysCodeDtlEntities"] as List<SysCodeDtlEntity>; //法律
    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
}
@{
@@ -144,20 +144,14 @@
                                                <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="CodeSns" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@sysCodeDtlEntities[i].CodeSn">
                                                        <input class="form-control" label="编码" name="CodeSns" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@sysCodeDtlEntities[i].CodeSn">
                                                        <input type="hidden" name="Id" value="@Model.Id" />
                                                    </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>
@@ -167,7 +161,7 @@
                                                    <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  class="form-control" name="Commentss" data-placeholder="选择 序列 ...">
                                                        <select class="form-control" name="Commentss" data-placeholder="选择 序列 ...">
                                                            <option value="" hassubinfo="true">请选择</option>
                                                            @foreach (var item in falv)
                                                            {
@@ -201,23 +195,30 @@
                                                    <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">*@
                                                        <textarea class="form-control bt"   name="Contentss" title="内容" isempty="" maxlength="300" 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'">@sysCodeDtlEntities[i].Contents</textarea>
                                                        <textarea class="form-control bt" name="Contentss" title="内容" isempty="" maxlength="300" 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'">@sysCodeDtlEntities[i].Contents</textarea>
                                                    </div>
                                                </div>
                                                <div class="clearfix layer-area" style="padding-bottom:15px;display:none;">
                                                    <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="Sorts" labtype="txt" addvisible="true" editvisible="true" maxlength="100" reg="" ismust="flase" type="text" value="@sysCodeDtlEntities[i].Sort" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
                                                        <input class="form-control" label="排序" name="Sorts" labtype="txt" addvisible="true" editvisible="true" maxlength="100" reg="" ismust="flase" type="text" value="@sysCodeDtlEntities[i].Sort" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
                                                    </div>
                                                </div>
                                            </div>
                                        }
                                    </div>
                                    <div class="clearfix layer-area" style="padding-bottom:15px;">
                                        <div class="col-sm-1 col-md-1">
                                            <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>
@@ -258,11 +259,11 @@
                    <i class="glyphicon glyphicon-remove"></i>&nbsp;&nbsp;<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 Delete" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;display:none;">
                    <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">提交</span>
                </a>
                <a class="btn btn-success" href="javascript:void(0)" onclick="closepage();" style="margin-left:4px; border-radius:4px;">
                <a class="btn btn-success Update" href="javascript:void(0)" onclick="closepage();" style="margin-left: 4px; border-radius: 4px; display: none;">
                    <i class="glyphicon glyphicon-remove"></i>&nbsp;&nbsp;<span class="bold">关闭</span>
                </a>
            </div>
@@ -276,7 +277,7 @@
        var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2;
        $("#div_content").height(hh);
        var Contentss = document.getElementsByName("Contentss");
        for (var a = 0; a < Contentss.length; a++) {
@@ -447,7 +448,7 @@
                                                </div>
                                            </div>
@@ -455,19 +456,19 @@
                                            <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">
                                                    <select  class="form-control" name="Commentss" data-placeholder="选择 序列 ...">
                                                        <option value="" hassubinfo="true">请选择</option>
                                                        @foreach (var item in falv)
                                                        {
                                                                <option value="@item.CodeSn" hassubinfo="true">
                                                                    @item.Comments
                                                                </option>
                                                        }
                                                    </select>
                                                </div>
                                            </div>
@@ -481,8 +482,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-10 col-md-10">
                                                    <textarea class="form-control bt"  name="Contentss" title="内容" isempty="" maxlength="300" 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>
                                                    <textarea class="form-control bt"  name="Contentss" title="内容" isempty="" maxlength="500" 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>
@@ -511,7 +512,17 @@
            }
        }
         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>