| | |
| | | @using zhengcaioa.Models; |
| | | @{ |
| | | Layout = null; |
| | | |
| | | //流程相关 |
| | | string shifoubiaoji = ViewBag.shifoubiaoji as string; |
| | | string sifoudangqian = ViewBag.sifoudangqian as string; |
| | | string dangqianbuzhou = ViewBag.dangqianbuzhou as string; |
| | | |
| | | List<WfHistoryDTO> lishiyijian = ViewData["lishiyijian"] as List<WfHistoryDTO>; //历史意见 |
| | | } |
| | | |
| | | <!DOCTYPE html> |
| | |
| | | <div id="div_content" class="ibox-content" style="background-color:white;"> |
| | | <div class="row"> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">申诉理由<i class="red">*</i></label> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">单据名称<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <textarea class="form-control bt" id="ssly" name="reason" maxlength="4000" length="long" style="resize:none;overflow-y:hidden; height:80px;">@Model.reason</textarea> |
| | | <input type="text" class="form-control" value="@Model.tittle" name="tittle" id="tittle" validate="RequiredField" autocomplete="off" readonly="readonly"> |
| | | |
| | | </div> |
| | | </div> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">申请人<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input type="text" class="form-control" value="@Model.createrName" name="createrName" id="createrName" validate="RequiredField" autocomplete="off" readonly="readonly"> |
| | | |
| | | </div> |
| | | </div> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">工资月份<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input class="form-control" id="YearMonth" name="YearMonth" type="text" value="@Model.Year-@Model.Month" readonly="readonly"> |
| | | <input type="hidden" name="Year" value="@Model.Year" /> |
| | | <input type="hidden" name="Month" value="@Model.Month" /> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">申诉理由<i class="red">*</i></label> |
| | | <div class="col-sm-6 col-md-6"> |
| | | <textarea class="form-control bt" id="ssly" name="reason" maxlength="4000" length="long" style="resize:none;overflow-y:hidden; height:80px;">@Model.reason</textarea> |
| | | </div> |
| | | </div> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | |
| | | </div> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">制度依据<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <div class="col-sm-6 col-md-6"> |
| | | <input type="hidden" name="salary_id" value="@Model.salary_id" /> |
| | | <input class="form-control" id="zdyj" name="basis" labtype="txt" addvisible="true" editvisible="true" type="text" value="@Model.basis"> |
| | | </div> |
| | | </div> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;" id="shenpiyijian" > |
| | | <label class="text-right col-sm-1 col-md-1 control-label">审批意见</label> |
| | | <div class="col-sm-6 col-md-6"> |
| | | <textarea class="form-control data" id="Content" name="Content" style="resize:none;overflow-y:hidden; height:80px;" maxlength="500"></textarea> |
| | | </div> |
| | | </div> |
| | | <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-6 col-md-6"> |
| | | <table> |
| | | @if (lishiyijian.Count > 0) |
| | | { |
| | | <tr> |
| | | <td style="border:1px solid #ccc;width:150px;">步骤 </td> |
| | | <td style="border:1px solid #ccc;width:150px;"> 批复状态</td> |
| | | <td style="border:1px solid #ccc;width:150px;">批复时间</td> |
| | | <td style="border:1px solid #ccc;width:300px;"> 审批意见</td> |
| | | <td style="border:1px solid #ccc;width:100px;"> 批复人</td> |
| | | </tr> |
| | | } |
| | | |
| | | @foreach (var wfHistory in lishiyijian) |
| | | { |
| | | <tr> |
| | | <td style="border:1px solid #ccc;width:150px;">@wfHistory.Step</td> |
| | | <td style="border:1px solid #ccc;width:150px;">@wfHistory.ChuliStatusName</td> |
| | | <td style="border:1px solid #ccc;width:150px;">@wfHistory.ModifytimeName</td> |
| | | <td style="border:1px solid #ccc;width:300px;">@wfHistory.Content</td> |
| | | <td style="border:1px solid #ccc;width:100px;">@wfHistory.DeelUserIdName</td> |
| | | </tr> |
| | | } |
| | | </table> |
| | | </div> |
| | | </div> |
| | | <div class="clearfix layer-area" style="padding-bottom:60px;"> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <a class="btn btn-success" href="javascript:void(0)" onclick="_pageAutoClose();" style="margin-left:4px; border-radius:4px;"> |
| | | <i class="glyphicon glyphicon-remove"></i> <span class="bold">取消</span> |
| | | </a> |
| | | <a class="btn btn-success" href="javascript:void(0)" onclick="saveSimCost();" style="margin-left:4px; border-radius:4px;"> |
| | | <a class="btn btn-success" id="tijiao" href="javascript:void(0)" onclick="saveSimCost('');" style="margin-left:4px; border-radius:4px;"> |
| | | <i class="glyphicon glyphicon-ok"></i> <span class="bold">提交</span> |
| | | </a> |
| | | |
| | | <a class="btn btn-success" id="tongyi" href="javascript:void(0)" onclick="saveSimCost('A');" style="margin-left:4px; border-radius:4px;"> |
| | | <span class="bold">同意</span> |
| | | </a> |
| | | |
| | | <a class="btn btn-success" id="jujue" href="javascript:void(0)" onclick="saveSimCost('D');" style="margin-left:4px; border-radius:4px;"> |
| | | <span class="bold">拒绝</span> |
| | | </a> |
| | | <input type="hidden" id="id" name="id" value="@Model.id" /> |
| | | <input type="hidden" id="Tongguojujue" name="Tongguojujue" value="" /> |
| | | <input type="hidden" id="Step" name="Step" value="@dangqianbuzhou" /> |
| | | </div> |
| | | </div> |
| | | |
| | | </form> |
| | | |
| | | <script type="text/javascript"> |
| | | |
| | | |
| | | var hh = document.body.clientHeight - $("#top").height() * 2 - 50; |
| | | $("#div_content").height(hh); |
| | | |
| | |
| | | "hideMethod": "fadeOut" |
| | | }; |
| | | |
| | | |
| | | $(function () { |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | if ("@shifoubiaoji" != "A") { |
| | | $("input").attr('readonly', true); |
| | | $("textarea").attr('readonly', true); |
| | | $(':radio').attr('disabled', true); |
| | | $(':checkbox').attr('disabled', true); |
| | | $(':button').attr('disabled', true); |
| | | //$('a').removeAttr('onclick'); |
| | | $('select').attr('disabled', true); |
| | | $("#fileUp").attr('disabled', true); |
| | | |
| | | $('.fujianshanchu').removeAttr('onclick'); |
| | | |
| | | |
| | | if ("@sifoudangqian" == "A") { |
| | | $("#Content").attr('readonly', false); |
| | | $('#tijiao').hide(); |
| | | } else { |
| | | $('#tongyi').hide(); |
| | | $('#jujue').hide(); |
| | | $('#tijiao').hide(); |
| | | $('#shenpiyijian').hide(); |
| | | } |
| | | |
| | | } else { |
| | | |
| | | |
| | | //审批相关 |
| | | $('#shenpiyijian').hide(); |
| | | if ("@sifoudangqian" == "A") { |
| | | $('#tongyi').hide(); |
| | | $('#jujue').hide(); |
| | | } else { |
| | | $('#tongyi').hide(); |
| | | $('#jujue').hide(); |
| | | $('#tijiao').hide(); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | }) |
| | | |
| | | |
| | | // 保存 |
| | | function saveSimCost() { |
| | | function saveSimCost(tongyi) { |
| | | if ($("#salary_id").val() == '') { |
| | | toastr.warning("必须和工资挂钩"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | if ($("#ssly").val() == '') { |
| | | toastr.warning("申诉理由不能为空"); |
| | |
| | | toastr.warning("制度依据不能为空"); |
| | | return; |
| | | } |
| | | |
| | | $("#Tongguojujue").val(tongyi); |
| | | |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/SalaryCheck/SaveAppeal", |
| | |
| | | _pageAutoClose();//自动关闭页面方法 |
| | | } |
| | | catch (err) { |
| | | parent._CloseTab1("/SalaryCheck/Appeal/"); |
| | | var pathname = window.location.pathname; |
| | | var search = window.location.search; |
| | | parent._CloseTab1(pathname + search); |
| | | } |
| | | } |
| | | else { |