|
|
<#import "../master.ftl" as master><@master.layout>
<style> #fm label { width: 150px; }</style><#if errorMsg??> <div class="page-header"> <h3>${errorMsg}</h3> </div><#else><div class="page-header"> <h3>Job [${jobId!}]</h3></div><p> 第一个序列号: [<span id="snSpan">${firstReworkSn!}</span>]</p><!-- 左边栏 --><div style="width:30%;float: left;"><table id="roll_dg" class="easyui-datagrid" style="width:100%;height:460px;display: none;" data-options="pagination: false, showFooter: true, singleSelect:true, fitColumns:true , url:'/scanning/scanpool/getRollNoList',method:'get',pageSize:20,toolbar:'#tb'"> <thead> <tr> <th data-options="field:'finalRollNo',width:100">Roll No</th> </tr> </thead></table><div id="tb" style="padding:10px 5px;display: none;"> <div> <a href="javascript:void(0)" id="tbScanRoll" class="easyui-linkbutton" iconCls="icon-add" onclick="scanRoll()">Scan roll number</a> </div></div></div><!-- 右边栏 --><div style="width:70%;float: right;"><table id="sn_dg" class="easyui-datagrid" style="width:100%;height:424px;display: none;" data-options="pagination: false, showFooter: true, singleSelect:true, fitColumns:true , url:'/scanning/scanpool/${jobId}/all',method:'get',pageSize:20,toolbar:'#sn_tb'"> <thead> <tr> <th data-options="field:'serialNo',width:100">Serials Number</th> </tr> </thead></table><div id="sn_tb" style="padding:10px 5px;display: none;"> <div> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" onclick="createFristSn()">Scan the first serial number</a> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" onclick="badInput()">Type defective serial number</a> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" onclick="createFinalRoll()">Create FG roll</a> <#if currentUser.isAdmin> <a href="javascript:void(0)" id="tbClear" class="easyui-linkbutton" iconCls="icon-remove" onclick="clearPool()">Clear scanning list</a> </#if><#-- <a href="javascript:void(0)" id="knotOrder" class="easyui-linkbutton" iconCls="icon-add" onclick="doKnot()">结单报工</a>--> </div></div></div>
<!-- 扫描卷号 --><div id="dlgRoll" class="easyui-dialog for-scan" style="width:500px;display: none;" closed="true" buttons="#dlg-buttons-roll"> <form id="fmRoll" method="post" novalidate style="margin:0;padding:20px 20px"> <div style="margin-bottom:10px"> <label name="reworkRollNo" class="easyui-textbox" data-options="labelWidth:100" required="true" label="Roll No:" style="width:100%"> </div> </form></div><div id="dlg-buttons-roll" style="display: none;"> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="doScanRollOK()" style="width:90px">OK</a> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlgRoll').dialog('close')" style="width:90px">Cancel</a></div>
<!-- 扫描首个序列号 --><div id="dlgFirstSn" class="easyui-dialog for-scan" style="width:500px;display: none;" closed="true" buttons="#dlg-buttons-fristSn"> <form id="fmFristSn" method="post" novalidate style="margin:0;padding:20px 20px"> <div style="margin-bottom:10px"> <label name="firstSn" class="easyui-textbox" data-options="labelWidth:100" required="true" label="The first serial number:" style="width:100%"> </div> </form></div><div id="dlg-buttons-fristSn" style="display: none;"> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="doScanFristSnOK()" style="width:90px">OK</a> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlgFirstSn').dialog('close')" style="width:90px">Cancel</a></div>
<!-- 创建最终卷 --><div id="dlgFinalRoll" class="easyui-dialog for-scan" style="width:500px;display: none;" closed="true" buttons="#dlg-buttons-finalroll"> <form id="fm" method="post" novalidate style="margin:0;padding:20px 20px"> <div style="margin-bottom:10px"> <input id="endSerialNo" name="endSerialNo" class="easyui-textbox" required="true" data-options="labelWidth:100" label="本卷结束序列号:" style="width:100%"> </div> <div style="margin-bottom:10px"> <input id="nextSerialNo" name="nextSerialNo" class="easyui-textbox" data-options="labelWidth:100" label="The end serial number of current roll" style="width:100%"> </div> </form></div><div id="dlg-buttons-finalroll" style="display: none;"> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" id="doFinalRoll" onclick="doFinalRollOK()" style="width:90px">OK</a> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlgFinalRoll').dialog('close')" style="width:90px">Cancel</a></div>
<!-- 不良录入页面 --><div id="dlgBadSnDtls" class="easyui-dialog" style="width:600px;display: none;" closed="true" data-options="modal:true" > <table id="dgBadSnDtls" class="easyui-datagrid" style="width:100%;height:300px;display: none;" data-options="pagination: false, showFooter: true, singleSelect:true, fitColumns:true , method:'get', pageSize:20,toolbar:'#tbBadSnDtls'"> <thead> <tr> <th data-options="field:'serialNo',width:100">Defective serial number</th> </tr> </thead> </table>
<div id="tbBadSnDtls" style="padding:10px 5px;display: none;"> <div> 录入不良序列号: <input class="easyui-textbox" id="inptBadSn" style="width:250px"> <a href="#nowhere" id="lnkOK" class="easyui-linkbutton" iconCls="icon-add" onclick="addNewBadSn()">Ok</a> <a id="btnBadRange" onclick="doBadRange()" class="easyui-linkbutton" iconCls="icon-add">Batch defective serial number</a> </div> </div></div>
<!-- 结束报工页面 --><div class="modal fade" id="report_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="font-size:10px;"> <div class="modal-dialog" style="width:430px;height:300px;"> <div class="modal-content" > <div class="modal-body"> <form id="report_form" class="form-horizontal" action="" method="post"> <fieldset> <div id="legend" class=""> <input type="hidden" value="0" name="currentScheduleId" id="current_schedule_id"> <legend class="">报告产量</legend> </div> <div class="form-group"> <label class="col-sm-2 control-label" style = "width: 20%;">机台</label> <div class="col-sm-4" style = "width: 30%;"> <select id="report_resource_id" class="form-control" name="resourceId" style="width:100px;font-size:12px;"> </select> </div> <label class="col-sm-2 control-label" style = "width: 20%;">人员</label> <div class="col-sm-4" style = "width: 20%;"> <input id="report_person" type="text" class="form-control" name="person" readonly style="width:100px;font-size:12px;"> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" style = "width: 20%;"><span>Production Date</span></label> <div class="col-sm-4" style = "width: 30%;"> <input id="produce_date" type="text" class="form-control Selection_time" name="produceDate" style="width:100px;font-size:12px;"> </div> <label class="col-sm-2 control-label" style = "width: 20%;">班次</label> <div class="col-sm-4" style = "width: 20%;"> <select id="report_shift_no" class="form-control" name="shiftNo" style="width:100px;font-size:12px;"> </select> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" style = "width: 20%;">派工数量</label> <div class="col-sm-4" style = "width: 30%;"> <input id="qty_required" class="form-control" name="qtyRequired" readonly style="width:100px;font-size:12px;"> </div> <label class="col-sm-2 control-label" style = "width: 20%;">已报告数量</label> <div class="col-sm-4" style = "width: 20%;"> <input id="qty_reported" type="number" class="form-control" name="qtyReported" readonly style="width:100px;font-size:12px;"> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" style = "width: 20%;">良品数量</label> <div class="col-sm-4" style = "width: 30%;"> <input id="qty_approved" type="number" class="form-control count_nums" name="qtyApproved" readonly style="width:100px;font-size:12px;"> </div> <label class="col-sm-2 control-label" style = "width: 20%;">不良品数量</label> <div class="col-sm-4" style = "width: 20%;"> <input id="qty_scrapped" type="number" class="form-control count_nums" name="qtyScrapped" readonly style="width:100px;font-size:12px;"> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" style = "width: 20%;">报告总数量</label> <div class="col-sm-4" style = "width: 30%;"> <input id="current_report_qty" type="number" class="form-control" name="currentReportTotalQty" readonly style="width:100px;font-size:12px;"> </div> <label class="col-sm-2 control-label" style = "width: 20%;">生产时间</label> <div class="col-sm-4" style = "width: 20%;"> <input id="produce_time" type="number" class="form-control count_nums" name="produceTime" style="width:100px;font-size:12px;"> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">关闭派工单</label> <div class="col-sm-9" id="close_schedule_flag"> <div class="checkbox checkbox-info checkbox-circle" style="margin-left: 20px;"> <input name="closed" value="0" type="checkbox" checked="" style="margin-top: -0.5px;"> <label for="checkbox1">是</label> </div> <div class="checkbox checkbox-info checkbox-circle" style="margin-top: -27px; margin-left: 100px;"> <input name="closed" value="1" type="checkbox" style="margin-top: -0.5px;"> <label for="checkbox2">否</label> </div> </div> </div> </fieldset> </form> </div> <div class="modal-footer" style="TEXT-ALIGN: center;margin-top:-20px;"> <div class="control-group"> <!-- Button --> <div class="controls"> <button onclick="reportSchedule()" class="btn btn-success" style="font-size:12px;">Confirm</button> <button id="report_cancel" data-dismiss="modal" class="btn btn-success" style="font-size:12px;">取消</button> </div> </div> </div> </div> </div> </div>
<!-- 批量录入不良 --> <div id="dlg" class="easyui-dialog for-scan" style="width:500px;display: none;" closed="true" buttons="#dlg-buttons"> <form id="fm" method="post" novalidate style="margin:0;padding:20px 20px"> <div id="serial_input_1st" style="margin-bottom:10px"> <input id="badFirstSN" name="firstSerialNo" class="easyui-textbox" required="true" data-options="labelWidth:100" label="The first serial number:" style="width:100%"> </div>
<div id="serial_input_2nd" style="margin-bottom:10px"> <input id="badEndSN" name="endSerialNo" class="easyui-textbox" required="true" data-options="labelWidth:100" label="The second serial number:" style="width:100%"> </div> </form> </div>
<div id="dlg-buttons" style="display: none;"> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" id="doOK" onclick="doOK()" style="width:90px">OK</a> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')" style="width:90px">Cancel</a> </div><script src="/laydate/laydate.js"></script><script type="text/javascript" src="/js/layer/layer.js"></script><script>var reworkOrderNo = "${currentUser.workingOrder!}";console.log(reworkOrderNo);//结单报工function doKnot(){ var subscriber = $("#subscriber").val(); console.log(subscriber); formatterDate = function(date) { var day = date.getDate() > 9 ? date.getDate() : "0" + date.getDate(); var month = (date.getMonth() + 1) > 9 ? (date.getMonth() + 1) : "0" + (date.getMonth() + 1); return date.getFullYear() + '-' + month + '-' + day; };
$('#report_person').val(subscriber); $.ajax({ url: "/rollop/findPNo", type:"POST", data:{ 'processNumber':'40', 'orderNo':reworkOrderNo }, dataType:"JSON", success: function (ret) { console.log(ret); if(ret.success==false){ $.messager.alert('error',ret.data, 'error'); }else if(ret.success==true){ console.log(ret.data); temp_row = ret.data; initWorkCenter(ret.data.workCenterNo,ret.data.resourceId); initShiftNo(); getday(); $('#report_person').val(subscriber); $('#qty_required').val(ret.data.qtyRequired); $('#qty_reported').val(ret.data.qtyReported); $('#qty_approved').val(ret.QtyOutput); $('#qty_scrapped').val(ret.bad); $('#current_report_qty').val(ret.all); $('#produce_time').val(ret.workTime); $("#report_modal").modal(); } } })}//加载加工中心function initWorkCenter(workCenterNo,resourceId){ $.ajax({ url: "/rollop/workCenterData", type:"POST", data:{ "workCenterNo": workCenterNo },// 你的formid dataType:"JSON", success: function (data) { var resourceIds = data.obj[workCenterNo]; var resource_id_tag = ''; if(resourceIds.length>0){ for(var i = 0; i< resourceIds.length; i++){ if((resourceId) == resourceIds[i]){ resource_id_tag += '<option value="'+resourceIds[i]+'" selected>'+resourceIds[i]+'</option>'; }else{ resource_id_tag += '<option value="'+resourceIds[i]+'">'+resourceIds[i]+'</option>'; } } } $("#report_resource_id").html(resource_id_tag); } })}//加载班次function initShiftNo(){ $.ajax({ url: "/rollop/shiftInfo", type:"POST", data:{},// 你的formid dataType:"JSON", success: function (data) { shift_no_data = data.rows; //初始化时间段 var shift_tags = ''; for(var i = 0; i< shift_no_data.length; i++){ shift_tags += '<option value="'+shift_no_data[i].shiftid+'">'+shift_no_data[i].shiftdesc+'</option>'; } $("#report_shift_no").html(shift_tags); } })}//保存派工单function reportSchedule(){ var report_person =$.trim( $("#report_person").val()); var qty = $.trim($("#current_report_qty").val()); var colsedFlag = $("#close_schedule_flag").find('input[name="closed"]:checked').val(); var produceTime = $("#produce_time").val(); //判断空值 if("" == report_person){ layer.msg("操作员不能为空!"); return false; } if("" == qty){ layer.msg("报工数量不能为空!"); return false; } if(""==produceTime){ layer.msg("生产时间不能为空!"); return false; } //判断事件有效性 if(qty<=0){ layer.msg("报工总数量不能小于零!"); return false; } if(produceTime<=0){ layer.msg("生产时间必须大于零!"); return false; } if("0" == colsedFlag){ layer.confirm('确定要关闭当前派工单!', { btn: [ 'Ok', '取消'] //按钮 },function(index){ createSfdcOps(colsedFlag); //findOperator($("#report_person").val(),colsedFlag); }, function(){ }); }else{ createSfdcOps(colsedFlag); //findOperator($("#report_person").val(),colsedFlag); }}
//创建当前的报工数据function createSfdcOps(colsedFlag){ var qty_approved = $("#qty_approved").val(); //判断是是否转换int if(""!=qty_approved){ qty_approved = parseInt(qty_approved); }else{ qty_approved = 0 } var qty_scrapped = $("#qty_scrapped").val(); //判断是是否转换int if(""!=qty_scrapped){ qty_scrapped = parseInt(qty_scrapped); }else{ qty_scrapped = 0; } var totalNums = qty_scrapped+qty_approved; var in_data = {"scheduleId": temp_row.id, "site": temp_row.site, "orderNo": temp_row.orderNo, "orderRef1": temp_row.orderRef1, "orderRef2": temp_row.orderRef2, "orderRef3": temp_row.orderRef3, "itemNo": temp_row.itemNo, "workCenterNo": temp_row.workCenterNo, "shiftNo": $("#report_shift_no").val(), "operatorId": "", "operatorName": $("#report_person").val(), "enteredDate": "", "enteredBy": $("#report_person").val(), "qtyApproved": qty_approved, "closedFlag": colsedFlag, "operatorId": $("#report_person").val(), "resourceId": $("#report_resource_id").val(), "qtyReported": totalNums, "qtyScrapped": qty_scrapped, "manufTime": $("#produce_time").val()}; //提交数据 $.ajax({ url: "/rollop/createSfdcOps", type:"POST", data: JSON.stringify(in_data),// 你的formid dataType:"JSON", contentType : 'application/json;charset=utf-8', success: function (data) { parent.layer.closeAll(); console.log(data); if (data.success) { $.messager.alert('info',data.msg,'info'); $("#report_cancel").click(); }else{ $.messager.alert('Error',data.msg, 'error'); } } })}
$(window).resize(function () { $("#roll_dg").datagrid({"height": $(window).height() - $(".datagrid").offset().top - 20}); $("#sn_dg").datagrid({"height": $(window).height() - $(".datagrid").offset().top - 20}); });
$(function () { $(window).resize(); });
//给单选事件加事件监听 $("#close_schedule_flag input[name='closed']").bind('change', function(){ $("#close_schedule_flag").find('input[name="closed"]').removeAttr('checked'); $(this).prop('checked', true); });
function getday(){ lay('.Selection_time').each(function(){ laydate.render({ elem: this }); }); $('.Selection_time').val(getToday()); }
/* * 新加功能 */
//扫描卷号页面 function scanRoll(){ if (reworkOrderNo == ""){ $.messager.alert("Error", "Please scan the order no of rework first", "error"); return; } $('#roll_dg').datagrid('reload'); $('#dlgRoll').dialog('open').dialog('center').dialog('setTitle', "Scan roll number"); $('#dlgRoll form').form('clear'); }
//确认是否扫描卷号 function doScanRollOK(){ $('#dlgRoll form').form('submit',{ url: "/scanning/scanpool/${jobId}/scanReworkRoll", onSubmit: function(){ return $(this).form('validate'); }, success: function(result){ console.log(result); try{ var result = JSON.parse(result); if (result.errorMsg){ $.messager.alert('Error',result.errorMsg, 'error'); } else { window.location.reload(); } }catch(e){ } } }); }
//扫描首个序列号 function createFristSn(){ $('#dlgFirstSn').dialog('open').dialog('center').dialog('setTitle', "扫描第一个序列号"); $('#dlgFirstSn form').form('clear'); } //确认是否提交首个序列号 function doScanFristSnOK(){ $('#dlgFirstSn form').form('submit',{ url: "/scanning/scanpool/${jobId}/scanfirstRSn", onSubmit: function(){ return $(this).form('validate'); }, success: function(result){ console.log(result); try{ var result = JSON.parse(result); if (result.errorMsg){ $.messager.alert('Error',result.errorMsg, 'error'); } else { window.location.reload(); } }catch(e){ } } }); }
//不良录入 function badInput(){ $("#dgBadSnDtls").datagrid({url: "/scanning/reworkbadsn/"+reworkOrderNo+"/"}); $('#dlgBadSnDtls').dialog('open').dialog('center').dialog('setTitle','Defective serial number'); $("#_easyui_textbox_input4").focus(); }
//2020-09-30 sunny要求加入扫描自动录入功能$("#inptBadSn").textbox({ inputEvents: $.extend({}, $.fn.textbox.defaults.inputEvents,{ keyup:function(event){ if(event.keyCode == 13){ addNewBadSn(); } } }) })
//确认不良录入 function addNewBadSn(){ $.post("/scanning/${jobId}/reworkbadsn/add", {reworkOrderNo: reworkOrderNo, serialNo: $("#inptBadSn").val()}, function (ret) { if (ret.success){ $("#dgBadSnDtls").datagrid("reload"); $('#sn_dg').datagrid('reload'); $("#inptBadSn").textbox("clear"); $("#_easyui_textbox_input4").focus(); }else{ $.messager.alert("Error", ret.errorMsg, "error"); } }) }
//创建最终卷 function createFinalRoll(){ $("#doFinalRoll").linkbutton({"disabled": false}); $('#dlgFinalRoll').dialog('open').dialog('center').dialog('setTitle', "Create FG roll"); $('#dlgFinalRoll form').form('clear'); } //扫描最终卷 function doFinalRollOK(){ $("#doFinalRoll").linkbutton({"disabled": true}); $('#dlgFinalRoll form').form('submit',{ url: "/scanning/scanpool/${jobId}/"+reworkOrderNo+"/createReworkFinalRollNew", onSubmit: function(){ return $(this).form('validate'); }, success: function(result){ $("#doFinalRoll").linkbutton({"disabled": false}); console.log(result); try{ var result = JSON.parse(result); if (result.errorMsg){ if(result.falseFlag==1){ $.messager.confirm('Confirm','The roll qty is '+result.nowQty+',are you sure to create the new roll?',function(r) { if (r){ doFinalRollOKReal(); }else { } }); }else { $.messager.alert('Error',result.errorMsg, 'error'); } } else { $('#snSpan').html('<b>'+$("#nextSerialNo").val()+'</b>'); $.ajaxSettings.async = false;
if($("#nextSerialNo").val()!=''&&$("#nextSerialNo").val()!=null){ $.post("/scanning/scanpool/${jobId}/scanfirstRSn", {firstSn: $("#nextSerialNo").val()}, function(result){ try{ if (result.errorMsg){ $.messager.alert('Error',result.errorMsg, 'error'); } else {
$('#nextSerialNo').textbox('setValue',""); } }catch(e){
} }) } $.ajaxSettings.async = true; $('#dlgFinalRoll').dialog('close'); // close the dialog $('#roll_dg').datagrid('reload'); $('#sn_dg').datagrid('reload'); if (result.finalRoll){ $("#ifmforprint").attr('src', "/print/newlabel/" + result.finalRoll.finalRollNo + "/0/"); }
} }catch(e){ $.messager.alert('Error','序列号重复!', 'error'); } } }); }function doFinalRollOKReal(){ $("#doFinalRoll").linkbutton({"disabled": true}); $('#dlgFinalRoll form').form('submit',{ url: "/scanning/scanpool/${jobId}/"+reworkOrderNo+"/createReworkFinalRoll", onSubmit: function(){ return $(this).form('validate'); }, success: function(result){ $("#doFinalRoll").linkbutton({"disabled": false}); console.log(result); try{ var result = JSON.parse(result); if (result.errorMsg){ $.messager.alert('Error',result.errorMsg, 'error'); } else { $('#snSpan').html('<b>'+$("#nextSerialNo").val()+'</b>'); $.ajaxSettings.async = false;
if($("#nextSerialNo").val()!=''&&$("#nextSerialNo").val()!=null){ $.post("/scanning/scanpool/${jobId}/scanfirstRSn", {firstSn: $("#nextSerialNo").val()}, function(result){ try{ if (result.errorMsg){ $.messager.alert('Error',result.errorMsg, 'error'); } else {
$('#nextSerialNo').textbox('setValue',""); } }catch(e){
} }) } $.ajaxSettings.async = true; $('#dlgFinalRoll').dialog('close'); // close the dialog $('#roll_dg').datagrid('reload'); $('#sn_dg').datagrid('reload'); if (result.finalRoll){ $("#ifmforprint").attr('src', "/print/newlabel/" + result.finalRoll.finalRollNo + "/0/"); }
} }catch(e){ $.messager.alert('Error','序列号重复!', 'error'); } } });}
//清空扫描池 function clearPool(){ $.messager.confirm('Confirm','Are you sure to clear current scanning list?',function(r){ if (r){ $.post('/scanning/scanpool/${jobId}/clear',{},function(result){ if (result.success){ $('#roll_dg').datagrid('reload'); $('#sn_dg').datagrid('reload'); $.messager.alert('Success','清空成功', 'info'); } else { $.messager.alert('Error',result.errorMsg, 'error'); } },'json'); } }); }//批量不良录入function doBadRange(){ $("#doOK").linkbutton({"disabled": false}); showDialog("Batch defective serial number", 2, "/rework/badRange");}var doUrl;function showDialog(title, serialNum, postUrl){ show2ndBox(serialNum > 1); $('#dlg').dialog('open').dialog('center').dialog('setTitle',title); $('#dlg form').form('clear'); doUrl = "/scanning/${jobId}"+postUrl;}
function show2ndBox(b){ showEl("#dlg #serial_input_1st", true); showEl("#dlg #serial_input_2nd", true); showEl("#dlg #serial_input_2nd", b); $('#dlg #endSerialNo').textbox({disabled:!b});}
function doOK(){ var badFirstSN = $("#badFirstSN").val(); var badEndSN = $("#badEndSN").val(); console.log(badFirstSN); console.log(badEndSN); $("#doOK").linkbutton({"disabled": true}); $.post(doUrl, {reworkOrderNo: reworkOrderNo,firstSerialNo:badFirstSN,endSerialNo:badEndSN}, function(result){ // refreshRollInfo(slittingRollNo); console.log(result); $("#doOK").linkbutton({"disabled": false}); if (result.success){ $("#dgBadSnDtls").datagrid("reload"); $('#sn_dg').datagrid('reload'); $('#dlg form').form('clear'); $('#dlg').dialog('close') }else{ $.messager.alert('Error',result.errorMsg, 'error'); $('#dlg').dialog('close'); // close the dialog } });}
</script></#if>
</@master.layout>
|