| | |
| | | |
| | | @{ |
| | | Layout = null; |
| | | |
| | | ResultDataEntity<SysAttachmentDTO> attachment = ViewBag.attachment as ResultDataEntity<SysAttachmentDTO>; //问题类型 |
| | | List<SysAttachmentDTO> attachmentsssss = attachment.DataList; |
| | | |
| | | ResultDataEntity<SysAttachmentDTO> attachment = ViewBag.attachment as ResultDataEntity<SysAttachmentDTO>; //问题类型 |
| | | List<SysAttachmentDTO> attachmentsssss = attachment.DataList; |
| | | |
| | | if (attachmentsssss == null) |
| | | { |
| | | attachmentsssss = new List<SysAttachmentDTO>(); |
| | | } |
| | | |
| | | List<SysCodeDtl> Lavetype = ViewData["Lavetype"] as List<SysCodeDtl>; //拜访方式 |
| | | } |
| | | |
| | | <!DOCTYPE html> |
| | |
| | | <table style="width: 100%;text-align: left; background-color:white"> |
| | | <tbody> |
| | | <tr> |
| | | <td class="title">单据名称</td> |
| | | <td> |
| | | <input type="text" class="form-control" value="@Model.Tittle" name="Tittle" id="Tittle" style="width:150px;margin-right: 4px;" validate="RequiredField" autocomplete="off" readonly="readonly"> |
| | | </td> |
| | | |
| | | </tr> |
| | | <tr> |
| | | <td class="title">申请人</td> |
| | | <td> |
| | | <input type="text" class="form-control" value="@Model.CreaterName" name="CreaterName" id="CreaterName" style="width:150px;margin-right: 4px;" validate="RequiredField" autocomplete="off" readonly="readonly"> |
| | | </td> |
| | | |
| | | </tr> |
| | | <tr> |
| | | <td class="title">销假时间</td> |
| | | <td> |
| | | <input type="text" class="layui-input layer-date ldate form-control" value="@Model.StratTime.ToString("yyyy-MM-dd HH:mm:ss")" name="StratTime" id="StratTime" style="width:150px;margin-right: 4px;" autocomplete="off" readonly="readonly">- |
| | | <input type="text" class="layui-input layer-date ldate form-control" value="@Model.EndTime.ToString("yyyy-MM-dd HH:mm:ss")" name="EndTime" id="EndTime" style="width:150px;margin-right: 4px;" autocomplete="off" readonly="readonly"> |
| | | <input type="text" class="layui-input layer-date ldate form-control" value="@Model.StratTimeName" name="StratTime" id="StratTime" style="width:150px;margin-right: 4px;" autocomplete="off" readonly="readonly">- |
| | | <input type="text" class="layui-input layer-date ldate form-control" value="@Model.EndTimeName" name="EndTime" id="EndTime" style="width:150px;margin-right: 4px;" autocomplete="off" readonly="readonly"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="title">销假类型</td> |
| | | <td> |
| | | <select class="leaveType form-control" name="Lavetype" id="Lavetype" style="width:150px;margin-right: 4px;"> |
| | | <option value="">请选择</option> |
| | | <option value="1">出差</option> |
| | | <option value="2">病假</option> |
| | | <option value="3">忘打卡</option> |
| | | <option value="" hassubinfo="true">请选择</option> |
| | | @foreach (var item in Lavetype) |
| | | { |
| | | @if (!item.CodeSn.Equals(Model.Lavetype)) |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | else |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true" selected="selected"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | |
| | | } |
| | | @*<option value="">请选择</option> |
| | | <option value="1">出差</option> |
| | | <option value="2">病假</option> |
| | | <option value="3">忘打卡</option>*@ |
| | | </select> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="title">申请理由</td> |
| | | <td> |
| | | <textarea name="Remark" style="width:374px; vertical-align: top;height:100px">@Model.Remark</textarea> |
| | | <textarea name="Remark" style="width:374px; vertical-align: top;height:100px" maxlength="500">@Model.Remark</textarea> |
| | | </td> |
| | | </tr> |
| | | |
| | |
| | | $(".ldate").each(function (el) { |
| | | laydate({ |
| | | elem: "#" + $(this).attr('id'), //对应id |
| | | format: 'YYYY-MM-DD hh:mm:ss', //日期格式 // 分隔符可以任意定义,该例子表示只显示年月 |
| | | format: 'YYYY-MM-DD hh:mm', //日期格式 // 分隔符可以任意定义,该例子表示只显示年月 |
| | | min: '2021-01-01', //设定最小日期为当前日期 |
| | | max: '2099-06-16', //最大日期 |
| | | type: 'datetime', |
| | |
| | | |
| | | function Save() { |
| | | if ($("#StratTime").val() == '') { |
| | | toastr.warning("开始时间不能为空"); |
| | | toastr.warning("开始日期不能为空"); |
| | | return; |
| | | } |
| | | |
| | | if ($("#EndTime").val() == '') { |
| | | toastr.warning("结束时间不能为空"); |
| | | toastr.warning("结束日期不能为空"); |
| | | return; |
| | | } |
| | | |
| | | if ($("#EndTime").val() <= $("#StratTime").val()) { |
| | | toastr.warning("结束日期不能小于开始日期"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | |
| | | if ($("#Lavetype").val() == '') { |
| | | toastr.warning("销假类型不能为空"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //var data = { id: $("#Id").val(), StartTime:$("#StartTime").val(), Sheng: $("#Sheng").val(), job_level: $("#Job_level").val().toString(), ExistsAttachment: fileId != "" } |