|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
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 "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//function AfterWindowLoad() {
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
////toolbar <20><><EFBFBD>غ<EFBFBD>ִ<EFBFBD>е<EFBFBD><D0B5>¼<EFBFBD>.
|
|
|
|
|
//function AfterToolbarLoad() {
|
|
|
|
|
//}
|
|
|
|
|
/*
|
|
|
|
|
* <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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (1 == 2) {
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|
|
|
|
var xb = $("#DDL_XB").val();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// var xb = this.r $("#DDL_XB").val();
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function LoaclOperation() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
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, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>false <20>Ͳ<EFBFBD>ִ<EFBFBD>и<EFBFBD><D0B8>¼<EFBFBD>.
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>ǰ<EFBFBD>¼<EFBFBD>
|
|
|
|
|
function beforeSave() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>ǰ<EFBFBD>¼<EFBFBD>
|
|
|
|
|
function beforeSend() {
|
|
|
|
|
var nodeID = GetQueryString("NodeID"); //<2F><><EFBFBD>õ<EFBFBD>ǰ<EFBFBD>ڵ<EFBFBD>.
|
|
|
|
|
if (nodeID == 101) {
|
|
|
|
|
var name = $("#TB_Name").val(); //<2F><><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9>jquery.
|
|
|
|
|
}
|
|
|
|
|
if (nodeID === 702)
|
|
|
|
|
{
|
|
|
|
|
return CheckBlank();
|
|
|
|
|
}
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <20><><EFBFBD>ø<EFBFBD><C3B8><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>Ե<EFBFBD><D4B5><EFBFBD>ǩ<EFBFBD>ִ<EFBFBD><D6B4><EFBFBD>
|
|
|
|
|
*/
|
|
|
|
|
function Siganture() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* <20><><EFBFBD>ø<EFBFBD><C3B8><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>Ը<EFBFBD><D4B8>´<EFBFBD><C2B4><EFBFBD>
|
|
|
|
|
*/
|
|
|
|
|
function Stamp() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|