|
|
|
|
/*
|
|
|
|
|
1. <20><>JS<4A>ļ<EFBFBD><C4BC><EFBFBD>Ƕ<EFBFBD>뵽<EFBFBD><EBB5BD>MyFlowGener.htm <20>Ĺ<EFBFBD><C4B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|
|
|
|
2. <20><><EFBFBD><EFBFBD><EFBFBD>߿<EFBFBD><DFBF><EFBFBD><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD>õ<EFBFBD>Ӧ<EFBFBD><D3A6>,<2C><><EFBFBD><EFBFBD>ͨ<EFBFBD>õĺ<C3B5><C4BA><EFBFBD>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
function GenerNextStepEmp() {
|
|
|
|
|
var qingjiaren = $("TB_QingJiaRen").val();
|
|
|
|
|
|
|
|
|
|
var url = "xxx.aspx?QingJiaRen=" + qingjiaren;
|
|
|
|
|
|
|
|
|
|
$("TB_DiYiJiShenPiRen").val("zhangsna");
|
|
|
|
|
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//ҳ<><D2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɸѡ<C9B8><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˷<F2A3A8B4><CBB7><EFBFBD><EFBFBD>ڱ<EFBFBD><DAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰִ<C7B0>еģ<D0B5>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD>ı<EFBFBD><C4B1><EFBFBD>Ԫ<EFBFBD>أ<EFBFBD><D8A3><EFBFBD><DEB7><EFBFBD><EFBFBD><EFBFBD>ɸѡ<C9B8><D1A1>
|
|
|
|
|
LoaclOperation();
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <20>˺<EFBFBD><CBBA><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0>JSЧ<53><D0A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>demo<6D><6F><EFBFBD><EFBFBD>.
|
|
|
|
|
* 1. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9>jquery<72>.
|
|
|
|
|
* 2. <20><><EFBFBD>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD>JS<4A><53>ť<EFBFBD><C5A5> if (CheckBlank()==false) return true; <20><><EFBFBD>ɱ<EFBFBD><C9B1><EFBFBD><EFBFBD><EFBFBD>.
|
|
|
|
|
* 3. <20>˷<EFBFBD><CBB7><EFBFBD>Ҳ<EFBFBD><D2B2><EFBFBD><EFBFBD>д<EFBFBD>뵽 xxxx_Self.js<6A><73><EFBFBD><EFBFBD>.
|
|
|
|
|
* 4. return trueִ<65>з<EFBFBD><D0B7>Ͷ<EFBFBD><CDB6><EFBFBD><EFBFBD><EFBFBD>return false <20><>ִֹ<D6B9><D6B4>.
|
|
|
|
|
**/
|
|
|
|
|
function CheckBlank() {
|
|
|
|
|
if ($("#TB_Email").val() == null) {
|
|
|
|
|
alert('<27>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>.');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if ($("#TB_Tel").val() == null) {
|
|
|
|
|
alert('<27>绰<EFBFBD><E7BBB0><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>.');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function DZ() {
|
|
|
|
|
|
|
|
|
|
alert('sss');
|
|
|
|
|
var url = 'pop.htm';
|
|
|
|
|
window.open(url);
|
|
|
|
|
}
|
|
|
|
|
function LoaclOperation() {
|
|
|
|
|
|
|
|
|
|
if (GetQueryString("NodeID") != "202")
|
|
|
|
|
return;
|
|
|
|
|
var val = $("#DDL_SFBJBL option:selected").val();
|
|
|
|
|
|
|
|
|
|
if (val == 0) {
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̵<EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD>ɼ<EFBFBD>
|
|
|
|
|
$("#DDL_ToNode option").eq(0).hide();
|
|
|
|
|
$("#DDL_ToNode option").eq(1).hide();
|
|
|
|
|
$("#DDL_ToNode option").eq(2).show();
|
|
|
|
|
|
|
|
|
|
//<2F><>Bar<61>ϵķ<CFB5><C4B7>ͽڵ<CDBD><DAB5><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>
|
|
|
|
|
$("#DDL_ToNode").val("203");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
|
|
//<2F><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̵<EFBFBD>ѡ<EFBFBD><D1A1>
|
|
|
|
|
$("#DDL_ToNode option").eq(0).show();
|
|
|
|
|
$("#DDL_ToNode option").eq(1).show();
|
|
|
|
|
$("#DDL_ToNode option").eq(2).hide();
|
|
|
|
|
|
|
|
|
|
//<2F><>Bar<61>ϵķ<CFB5><C4B7>ͽڵ<CDBD><DAB5><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>
|
|
|
|
|
$("#DDL_ToNode").val("302");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
1. beforeSave<76><65>beforeSend<6E><64> beforeReturn<72><6E> beforeDelete
|
|
|
|
|
2 .MyFlowGener<65><72>MyFlowTree<65>Ĺ̶<C4B9><CCB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֹɾ<D6B9><C9BE>
|
|
|
|
|
3.<2E><>Ҫд<D2AA><D0B4><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0><EFBFBD>˻<EFBFBD>ǰ<EFBFBD><C7B0>ɾ<EFBFBD><C9BE>ǰ<EFBFBD>¼<EFBFBD>
|
|
|
|
|
4.<2E><><EFBFBD><EFBFBD>ֵΪ true<75><65>false
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>ǰ<EFBFBD>¼<EFBFBD>
|
|
|
|
|
function beforeSave() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>ǰ<EFBFBD>¼<EFBFBD>
|
|
|
|
|
function beforeSend() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//<2F>˻<EFBFBD>ǰ<EFBFBD>¼<EFBFBD>
|
|
|
|
|
function beforeReturn() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//ɾ<><C9BE>ǰ<EFBFBD>¼<EFBFBD>
|
|
|
|
|
function beforeDelete() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֮<EFBFBD><EFBFBD><F3A3ACB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ.
|
|
|
|
|
* @param {html<6D><6C>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD>Ϣ} msg
|
|
|
|
|
*/
|
|
|
|
|
function WindowCloseReloadPage(msg) {
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
if ($('#returnWorkModal:hidden').length == 0 && $('#returnWorkModal').length > 0) {
|
|
|
|
|
$('#returnWorkModal').modal('hide');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>msg<73><67>ģ̬<C4A3><CCAC><EFBFBD><EFBFBD>
|
|
|
|
|
//<2F><>ʼ<EFBFBD><CABC><EFBFBD>˻ش<CBBB><D8B4>ڵ<EFBFBD>SRC.
|
|
|
|
|
var html = '<div class="modal fade" id="msgModal" data-backdrop="static">'
|
|
|
|
|
+ '<div class="modal-dialog">'
|
|
|
|
|
+ '<div class="modal-content" style="border-radius: 0px;">'
|
|
|
|
|
+ '<div class="modal-header" style="background:#f2f2f2;">'
|
|
|
|
|
+ '<button type="button" class="close" id="btnMsgModalOK1" aria-hidden="true" style="color: #0000007a;display: none;">×</button>'
|
|
|
|
|
+ '<h4 class="modal-title" style="color:#000;"><3E><>ʾ<EFBFBD><CABE>Ϣ</h4>'
|
|
|
|
|
+ '</div>'
|
|
|
|
|
+ '<div class="modal-body" style="text-align: left; word-wrap: break-word;">'
|
|
|
|
|
+ '<div style="width:100%; border: 0px; height: 200px;overflow-y:auto" id="msgModalContent" name="iframePopModalForm"></div>'
|
|
|
|
|
+ '<div style="text-align: right;">'
|
|
|
|
|
+ ' <button type="button" id="btnMsgModalOK" class="btn" data-dismiss="modal">ȷ<><C8B7>(30<33><30>)</button >'
|
|
|
|
|
+ '</div>'
|
|
|
|
|
+ '</div>'
|
|
|
|
|
+ '</div><!-- /.modal-content -->'
|
|
|
|
|
+ '</div><!-- /.modal-dialog -->'
|
|
|
|
|
+ '</div>';
|
|
|
|
|
|
|
|
|
|
$('body').append($(html));
|
|
|
|
|
if (msg == null || msg == undefined)
|
|
|
|
|
msg = "";
|
|
|
|
|
msg = msg.replace("@<40>鿴<img src='/WF/Img/Btn/PrintWorkRpt.gif' >", '')
|
|
|
|
|
|
|
|
|
|
$("#msgModalContent").html(msg.replace(/@/g, '<br/>').replace(/null/g, ''));
|
|
|
|
|
var trackA = $('#msgModalContent a:contains("<22><><EFBFBD><EFBFBD><EFBFBD>켣")');
|
|
|
|
|
var trackImg = $('#msgModalContent img[src*="PrintWorkRpt.gif"]');
|
|
|
|
|
trackA.remove();
|
|
|
|
|
trackImg.remove();
|
|
|
|
|
|
|
|
|
|
$('#btnMsgModalOK').bind('click', function () {
|
|
|
|
|
var id = window.parent.nthTabs.getActiveId();
|
|
|
|
|
var idlist = id.split("TLJ");
|
|
|
|
|
//console.log("==="+idlist);
|
|
|
|
|
if (idlist.length > 0) {
|
|
|
|
|
$('#' + idlist[1], parent.document).attr('src', $('#' + idlist[1], parent.document).attr('src'));
|
|
|
|
|
}
|
|
|
|
|
window.parent.nthTabs.delTab(id);
|
|
|
|
|
});
|
|
|
|
|
$('#btnMsgModalOK1').bind('click', function () {
|
|
|
|
|
//<2F><>ʾ<EFBFBD><CABE>Ϣ<EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD>ҳ<EFBFBD>治<EFBFBD><E6B2BB>ת
|
|
|
|
|
var msg = $("#msgModalContent").html();
|
|
|
|
|
if (msg.indexOf("err@") == -1) {
|
|
|
|
|
window.close();
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
setToobarEnable();
|
|
|
|
|
$("#msgModal").modal("hidden");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (window.parent != null && window.parent != undefined)
|
|
|
|
|
window.parent.close();
|
|
|
|
|
opener.window.focus();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#msgModal").modal().show();
|
|
|
|
|
interval = setInterval("clock()", 1000);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|