username@email.com
2022-08-27 6e2b929cf381e2320ba6e7dec56c0371124d2b51
zhengcaioa/zhengcaioa/Views/Signin/AttendanceRule.cshtml
@@ -11,6 +11,9 @@
    var jiabanri = admAttendanceRulesDtlDTOs.Where(x => x.Name == "jiabanri").ToList();
    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
    string Creater = ViewData["Creater"] as string;
}
<!DOCTYPE html>
@@ -429,7 +432,7 @@
        <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px ">
            <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="功能按钮:“保存”,“删除”">
                <a class="btn btn-success" href="javascript:void(0)" onclick="SaveAttendanceRule();" style="margin-left:4px; border-radius:4px;">
                <a class="btn btn-success Update"  href="javascript:void(0)" onclick="SaveAttendanceRule();" style="margin-left:4px; border-radius:4px;display:none;">
                    <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">提交</span>
                </a>
            </div>
@@ -539,7 +542,7 @@
        //提交请求
        var SaveAttendanceRule =    function () {
            $.ajax({
                type: "POST",
@@ -580,7 +583,7 @@
        } ;
        //本月节假日设置
        function addBtn(obj) {
            var int = $('.holiday_s').length - 1;
            var id = $('.holiday_s').eq(int).attr('id');
            var holiday_ss = parseInt(id.replace("holiday_s", "")) + 1;
@@ -588,7 +591,7 @@
            var int1 = $('.holiday_e').length - 1
            var id1 = $('.holiday_e').eq(int1).attr('id');
            var holiday_es = parseInt(id1.replace("holiday_e", "")) + 1;
            var html = ' <div class="setSelect">\n' +
                '                <span></span>\n' +
                '                <input type="text" value="" class="layui-input  layer-date  ldate form-control   holiday_s" id="holiday_s' + holiday_ss + '" name="holiday_s"  style="width:150px;"   onfocus=\'laydate({elem:"#holiday_s' + holiday_ss + '",format:"YYYY-MM-DD",theme:"#fdd5004"})\'  /> -\n' +
@@ -598,13 +601,13 @@
            $(obj).parent('div').parent('div').append(html);
        };
        function addRestBtn(obj) {
            var int = $('.rest_s').length - 1;
@@ -624,7 +627,7 @@
            $(obj).parent('div').parent('div').append(html);
        };
@@ -648,7 +651,7 @@
        };
        function delBtn(obj, id, tb) {
            //if (id > 0) {
            //    var url = "/index.php/home/white/del.html"
@@ -662,8 +665,17 @@
            //}
            $(obj).parent().remove();
        }
         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>