查假期交互调整
This commit is contained in:
1 parent
2736224ed7
commit
fec2fc096e
8 files changed
+1076
-28
No files matched your search
@@ -0,0 +1,253 @@
|
||||
</td>␍
|
||||
</tr>␍
|
||||
<tr height="42px">␍
|
||||
<td align="right" valign="middle" style="padding-right: 12px">␍
|
||||
<span class="STYLE6" id="result0"></span>␍
|
||||
</td>␍
|
||||
</tr>␍
|
||||
</table>␍
|
||||
</td>␍
|
||||
</tr>␍
|
||||
</table>␍
|
||||
</div>␍
|
||||
␍
|
||||
␍
|
||||
<div id="zDialog_div_bottom" class="zDialog_div_bottom">␍
|
||||
<input type="button" style="display:none;" class=zd_btn_submit accessKey=S id=btnsearch value="S-搜索"></input>␍
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- 鎵�鏈夋病鏈夊唴瀹圭殑鏍囩璇峰鍔犱竴涓┖鏍� -->
|
||||
<!-- 瀹氫箟琛ㄨ揪寮忔墍浣跨敤鐨勫彉閲� -->
|
||||
|
||||
<table class="LayoutTable" id="" style="display:;width:100%;">
|
||||
<colgroup>
|
||||
<col width="20%"/>
|
||||
<col width="80%"/>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<!-- 鍒嗙粍寰幆 -->
|
||||
|
||||
|
||||
<tr class="intervalTR">
|
||||
<td class="interval" colspan="2" style="text-align:center;">␍
|
||||
<input type="button" class=zd_btn_submit accessKey=2 id=btnclear value="清除" onclick='onClear();'></input>␍
|
||||
<span class="e8_sep_line">|</span>
|
||||
<input type="button" class=zd_btn_cancle accessKey=T id=btncancel value="取消" onclick='onClose();'></input>␍
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
␍
|
||||
<script type="text/javascript">␍
|
||||
jQuery(document).ready(function(){␍
|
||||
resizeDialog(document);␍
|
||||
});␍
|
||||
</script>␍
|
||||
</div>␍
|
||||
</div>␍
|
||||
</BODY></HTML>␍
|
||||
␍
|
||||
␍
|
||||
<script type="text/javascript">␍
|
||||
//<!--␍
|
||||
␍
|
||||
␍
|
||||
//-->␍
|
||||
</script>␍
|
||||
<!-- ␍
|
||||
<SCRIPT LANGUAGE=VBS>␍
|
||||
Sub btnclear_onclick()␍
|
||||
window.parent.returnvalue = Array(0,"")␍
|
||||
window.parent.close␍
|
||||
End Sub␍
|
||||
Sub BrowseTable_onclick()␍
|
||||
Set e = window.event.srcElement␍
|
||||
If e.TagName = "TD" Then ␍
|
||||
window.parent.returnvalue = Array(e.parentelement.cells(0).innerText,e.parentelement.cells(1).innerText,e.parentelement.cells(2).innerText)␍
|
||||
// window.parent.returnvalue = e.parentelement.cells(0).innerText␍
|
||||
window.parent.Close␍
|
||||
ElseIf e.TagName = "A" Then␍
|
||||
window.parent.returnvalue = Array(e.parentelement.parentelement.cells(0).innerText,e.parentelement.parentelement.cells(1).innerText,e.parentelement.parentelement.cells(2).innerText)␍
|
||||
// window.parent.returnvalue = e.parentelement.parentelement.cells(0).innerText␍
|
||||
window.parent.Close␍
|
||||
End If␍
|
||||
␍
|
||||
End Sub␍
|
||||
Sub BrowseTable_onmouseover()␍
|
||||
Set e = window.event.srcElement␍
|
||||
If e.TagName = "TD" Then␍
|
||||
e.parentelement.className = "Selected"␍
|
||||
ElseIf e.TagName = "A" Then␍
|
||||
e.parentelement.parentelement.className = "Selected"␍
|
||||
End If␍
|
||||
End Sub␍
|
||||
Sub BrowseTable_onmouseout()␍
|
||||
Set e = window.event.srcElement␍
|
||||
If e.TagName = "TD" Or e.TagName = "A" Then␍
|
||||
If e.TagName = "TD" Then␍
|
||||
Set p = e.parentelement␍
|
||||
Else␍
|
||||
Set p = e.parentelement.parentelement␍
|
||||
End If␍
|
||||
If p.RowIndex Mod 2 Then␍
|
||||
p.className = "DataLight"␍
|
||||
Else␍
|
||||
p.className = "DataDark"␍
|
||||
End If␍
|
||||
End If␍
|
||||
End Sub␍
|
||||
␍
|
||||
</SCRIPT>␍
|
||||
␍
|
||||
-->␍
|
||||
<SCRIPT LANGUAGE=VBS>␍
|
||||
Sub returnData(returnstr)␍
|
||||
window.parent.returnvalue = returnstr␍
|
||||
window.parent.Close␍
|
||||
End Sub␍
|
||||
</SCRIPT>␍
|
||||
<script language="javascript">␍
|
||||
$(function(){␍
|
||||
try{␍
|
||||
window.parent.setTabObjName("请假类型");␍
|
||||
}catch(e){␍
|
||||
//alert("ddddddddddddd");␍
|
||||
}␍
|
||||
});␍
|
||||
var parentWin = window.parent.parent.getParentWindow(parent);␍
|
||||
var dialog = window.parent.parent.getDialog(parent);␍
|
||||
function onClear()␍
|
||||
{␍
|
||||
var returnjson = {id:"",name:""};␍
|
||||
if(dialog){␍
|
||||
try{␍
|
||||
dialog.callback(returnjson);␍
|
||||
}catch(e){}␍
|
||||
␍
|
||||
try{␍
|
||||
dialog.close(returnjson);␍
|
||||
}catch(e){}␍
|
||||
␍
|
||||
}else{␍
|
||||
␍
|
||||
window.parent.returnValue=returnjson;␍
|
||||
window.parent.close();␍
|
||||
␍
|
||||
}␍
|
||||
}␍
|
||||
function onSubmit()␍
|
||||
{␍
|
||||
SearchForm.submit();␍
|
||||
}␍
|
||||
function onPage(index)␍
|
||||
{␍
|
||||
changeCurpage(index);//TD34490 lv 修改当前页␍
|
||||
SearchForm.submit();␍
|
||||
}␍
|
||||
function onClose()␍
|
||||
{␍
|
||||
if(dialog){␍
|
||||
dialog.close();␍
|
||||
}else{ ␍
|
||||
window.parent.close();␍
|
||||
}␍
|
||||
}␍
|
||||
//TD196207 回车即搜索␍
|
||||
function enterSearch(){␍
|
||||
var event = arguments.callee.caller.arguments[0] || window.event;␍
|
||||
if(event.keyCode == 13){␍
|
||||
SearchForm.submit();␍
|
||||
}␍
|
||||
}␍
|
||||
␍
|
||||
//TD34490 lv 修改当前页␍
|
||||
function changeCurpage(index){␍
|
||||
//document.SearchForm.curpage.value = index;␍
|
||||
}␍
|
||||
␍
|
||||
function BrowseTable_onclick(e){␍
|
||||
var e=e||event;␍
|
||||
var target=e.srcElement||e.target;␍
|
||||
␍
|
||||
if( target.nodeName =="TD"||target.nodeName =="A" ){␍
|
||||
var pNode = target.parentNode;␍
|
||||
if(pNode.nodeName!="TR"){␍
|
||||
pNode = pNode.parentNode;␍
|
||||
}␍
|
||||
var returnjson = {␍
|
||||
id:jQuery(jQuery(target).parents("tr")[0].cells[0]).text(),␍
|
||||
name:jQuery(jQuery(target).parents("tr")[0].cells[1]).text(),␍
|
||||
desc:jQuery(jQuery(target).parents("tr")[0].cells[2]).text()␍
|
||||
};␍
|
||||
if(dialog){␍
|
||||
try{␍
|
||||
dialog.callback(returnjson);␍
|
||||
}catch(e){}␍
|
||||
␍
|
||||
try{␍
|
||||
dialog.close(returnjson);␍
|
||||
}catch(e){}␍
|
||||
␍
|
||||
}else{ ␍
|
||||
window.parent.returnValue=returnjson;␍
|
||||
window.parent.close();␍
|
||||
}␍
|
||||
}␍
|
||||
}␍
|
||||
function afterDoWhenLoaded(){␍
|
||||
␍
|
||||
$("#_xTable").find("table.ListStyle tbody").children("tr[class!='Spacing']").each(function(){␍
|
||||
var tr = jQuery(this);␍
|
||||
tr.bind("click",function(){␍
|
||||
var id = tr.children("td:first").next().attr("spacevalue");␍
|
||||
var name = tr.children("td:first").next().next().text();␍
|
||||
␍
|
||||
var desc = "";␍
|
||||
try␍
|
||||
{␍
|
||||
desc = tr.children("td:first").next().next().next().text();␍
|
||||
}␍
|
||||
catch(e)␍
|
||||
{␍
|
||||
}␍
|
||||
␍
|
||||
␍
|
||||
var returnjson = {'id':id,'name':name,'desc':desc,'href':''};␍
|
||||
if(dialog){␍
|
||||
try{␍
|
||||
dialog.callback(returnjson);␍
|
||||
}catch(e){}␍
|
||||
␍
|
||||
try{␍
|
||||
dialog.close(returnjson);␍
|
||||
}catch(e){}␍
|
||||
}else{␍
|
||||
␍
|
||||
window.parent.returnValue = returnjson;␍
|
||||
window.parent.close();␍
|
||||
␍
|
||||
}␍
|
||||
});␍
|
||||
});␍
|
||||
}␍
|
||||
␍
|
||||
jQuery(function(){␍
|
||||
if(dialog){␍
|
||||
jQuery("#BrowseTable").bind("click",BrowseTable_onclick);␍
|
||||
}else{␍
|
||||
jQuery("#BrowseTable").find("tr[class^='Data'][class!='DataHeader']").bind("click",function(){␍
|
||||
window.parent.returnValue = {id:$(this).find("td:first").text(),name:$(this).find("td:first").next().text(),desc:$(this).find("td:first").next().next().text(),href:''};␍
|
||||
window.parent.close();␍
|
||||
});␍
|
||||
jQuery("#BrowseTable").find("tr[class^='Data'][class!='DataHeader']").bind("mouseover",function(){␍
|
||||
$(this).addClass("Selected");␍
|
||||
});␍
|
||||
jQuery("#BrowseTable").find("tr[class^='Data'][class!='DataHeader']").bind("mouseout",function(){␍
|
||||
$(this).removeClass("Selected");␍
|
||||
});␍
|
||||
}␍
|
||||
});␍
|
||||
␍
|
||||
</script>␍
|
||||
Reference in new issue
Block a user