| | |
| | | |
| | | 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> |
| | |
| | | <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> <span class="bold">提交</span> |
| | | </a> |
| | | </div> |
| | |
| | | |
| | | //提交请求 |
| | | var SaveAttendanceRule = function () { |
| | | |
| | | |
| | | |
| | | $.ajax({ |
| | | type: "POST", |
| | |
| | | } ; |
| | | //本月节假日设置 |
| | | 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; |
| | |
| | | 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' + |
| | |
| | | |
| | | $(obj).parent('div').parent('div').append(html); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | }; |
| | | function addRestBtn(obj) { |
| | | var int = $('.rest_s').length - 1; |
| | |
| | | |
| | | $(obj).parent('div').parent('div').append(html); |
| | | |
| | | |
| | | |
| | | }; |
| | | |
| | | |
| | |
| | | |
| | | |
| | | }; |
| | | |
| | | |
| | | function delBtn(obj, id, tb) { |
| | | //if (id > 0) { |
| | | // var url = "/index.php/home/white/del.html" |
| | |
| | | //} |
| | | $(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> |