<html>
<head>
<title>选择姓名</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../../../skin/skin1/style.css" rel=stylesheet>
<script language="JavaScript" src="../../../script/oa_popup.js"></SCRIPT>
<script language="JavaScript">
<!--
function setReturnValue(){
myform = document.referForm;
var NameStr ="";
var EMailStr = "";
var IDStr = "";
for(i=0; i < myform.selectedIDStr.options.length; i++){
NameStr = myform.selectedIDStr.item(i).text;
IDStr = myform.selectedIDStr.item(i).value;
EMailStr = NameStr.substring(NameStr.indexOf(" <")+2,NameStr.indexOf(">"));
NameStr = NameStr.substring(0,NameStr.indexOf(" <"));
if(NameStr != ""){
myform.returnName.value += NameStr+",";
}
myform.returnEMail.value += EMailStr+",";
myform.returnID.value += IDStr+",";
}
}
function setback(){
myform = document.referForm;
setReturnValue();
//alert("returnName: "+myform.returnName.value
// +"\n returnID: "+myform.returnID.value
// +"\n returnEMail: "+myform.returnEMail.value);
if(myform.returnObjName.value == "assignEmpName"){//分配他人
window.opener.document.todoDetailForm.assignEmpName.value = myform.returnName.value;
window.opener.document.todoDetailForm.assignEmpID.value = myform.returnID.value;
}else
if(myform.returnObjName.value == "engageEmpName"){//预约他人
window.opener.document.schDetailForm.engageEmpName.value = myform.returnName.value;
window.opener.document.schDetailForm.engageEmpID.value = myform.returnID.value;
}else
if(myform.returnObjName.value == "messageEmpName"){//留言他人
window.opener.document.schDetailForm.messageEmpName.value = myform.returnName.value;
window.opener.document.schDetailForm.messageEmpID.value = myform.returnID.value;
}else
if(myform.returnObjName.value == "mailto"){//邮件给他人
window.opener.document.schDetailForm.mailto.value = myform.returnEMail.value;
}else
if(myform.returnObjName.value == "mail_cc"){//邮件抄送他人
window.opener.document.schDetailForm.mail_cc.value = myform.returnEMail.value;
}else
if(myform.returnObjName.value == "mail_bcc"){//密件抄送他人
window.opener.document.schDetailForm.mail_bcc.value = myform.returnEMail.value;
}
window.close();
}
function addReceiver() {
myform = document.referForm;
for(i=0; i < myform.selectableIDStr.options.length; i++) {
if (myform.selectableIDStr.options(i).selected == true) {
j = myform.selectedIDStr.options.length - 1;
for (; j >= 0; j--) {
if (myform.selectableIDStr.item(i).value == myform.selectedIDStr.item(j).value) {
break;
}
}
if (j < 0) {
newOpt = new Option(myform.selectableIDStr.item(i).text, myform.selectableIDStr.item(i).value);
myform.selectedIDStr.add(newOpt);
}
}
}
}
function removeReceiver() {
myform = document.referForm;
for (i = myform.selectedIDStr.options.length - 1; i >= 0; i--) {
if (myform.selectedIDStr.options(i).selected == true) {
myform.selectedIDStr.remove(i);
}
}
}
function submitForm(act){
if(act == "Search"){
for (i = document.referForm.selectedIDStr.options.length - 1; i >= 0; i--) {
document.referForm.selectedIDStr.options(i).selected = true;
}
for (i = document.referForm.selectableIDStr.options.length - 1; i >= 0; i--) {
document.referForm.selectableIDStr.options(i).selected = false;
}
}
document.referForm.action.value = act;
document.referForm.submit();
}
//-->
</script>
</head>
<body class="popbg" topmargin="0" leftmargin="0">
<form name="referForm" method="POST">
<div align="center">
<table width="100%" border="0" cellpadding="2" cellspacing="2" class="popbt">
<tr>
<td>&&<B>请从列表中选择姓名</B></td>
</tr>
</table>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="center">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" >
<TABLE width="100%" border="0" cellspacing="1">
<TR>
<TD width="100%" colspan="4">
<b>
&部门科室:</b><select name="deptID" size="1" onChange="submitForm('getemplist')" style="width:150" class="top_tr">
<option value="0"></option>
<option value="29">+办公室</option>
<option value="30">+技术支持中心</option>
<option value="31">+人力资源部</option>
<option value="35">+行业部</option>
<option value="36">+竞标部</option>
<option value="37">+销售公司</option>
<option value="38">+工程公司</option>
<option value="39">+总经理室</option>
<option value="34">++发展部</option>
<option value="33">++市场部</option>
<option value="32">++财务部</option>
<option value="24">++软件研发中心</option>
</select> <b>自定义群组:</b><select name="deptID" size="1" onChange="submitForm('getemplist')" style="width:150" class="top_tr">
<option value="0"></option>
<option>电子商务组</option>
<option>OA组</option>
<option>纳税申报组</option>
</select>(信息送给指定的传阅对象)
</TD>
</TR>
<TR>
<TD width="44%">
<p align="center"><strong>职员一览</strong></TD>
<TD width="8%" rowspan="3" >
<p align="center">
<input type="button" value="→ 添加" name="B3" onClick="addReceiver(); return false;"><br>
<br>
<input type="button" value="← 删除" name="B3" onClick="removeReceiver(); return false;"><br>
<br>
<input type="button" value="○ 全选" name="B3"></p></TD>
<TD width="50%" colspan="2">
<p align="center"><strong>传阅对象一览</strong></TD>
</TR>
<TR>
<TD width="44%" valign="middle" >
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr >
<td width="12%" align="center" height="11">姓名</td>
<td width="18%" align="center" height="11">部门科室</td>
<td width="18%" align="center" height="11">职务</td>
</tr>
</table></TD>
<TD width="46%" > <table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr >
<td width="12%" align="center" height="11">姓名</td>
<td width="18%" align="center" height="11">部门科室</td>
<td width="18%" align="center" height="11">职务</td>
</tr>
</table></TD>
<TD width="2%" rowspan="2">
<p align="center"><input type="button" value="↑" name="B3"><br>
<br>
<input type="button" value="↓" name="B3"><br>
<br>
</TD>
</TR>
<tr>
<TD width="44%" ><select name="selectableIDStr" multiple size="15" style="width:100%; font-family:Courier New; font-size:9pt">
<option value="219">AA&&&&&&&&软件研发中心&&&&&&&&软件工程师&&</option>
<option value="80">BB&&&&&&&&软件研发中心&&&&&&&&软件工程师&&</option>
<option value="153">CC&&&&&&软件研发中心&&&&&&&&软件工程师&&</option>
<option value="234">DD&&&&&&&&软件研发中心&&&&&&&&测试员&&&&&&</option>
</select> </TD>
<TD width="46%" > <select name="selectedIDStr" multiple size="15" style="width:100%; font-family:Courier New; font-size:9pt">
</select></TD>
</tr>
</TABLE>
</td>
</tr>
</table>
</div>
</TD>
</TR>
</TABLE>
<HR>
<table width="90%" border="0" cellpadding="2" cellspacing="2">
<tr>
<td align="right"><input type="button" value="&&确定&&" name="B39" onClick="window.close();" class="button" onMouseOver="this.className='button_over';" onMouseOut="this.className='button';"> <input type="button" value="&&取消&&" name="B40" onClick="window.close();" class="button" onMouseOver="this.className='button_over';" onMouseOut="this.className='button';">&</td>
</tr>
</table>
</form>
</div>
</body>
<head>
<title>选择姓名</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../../../skin/skin1/style.css" rel=stylesheet>
<script language="JavaScript" src="../../../script/oa_popup.js"></SCRIPT>
<script language="JavaScript">
<!--
function setReturnValue(){
myform = document.referForm;
var NameStr ="";
var EMailStr = "";
var IDStr = "";
for(i=0; i < myform.selectedIDStr.options.length; i++){
NameStr = myform.selectedIDStr.item(i).text;
IDStr = myform.selectedIDStr.item(i).value;
EMailStr = NameStr.substring(NameStr.indexOf(" <")+2,NameStr.indexOf(">"));
NameStr = NameStr.substring(0,NameStr.indexOf(" <"));
if(NameStr != ""){
myform.returnName.value += NameStr+",";
}
myform.returnEMail.value += EMailStr+",";
myform.returnID.value += IDStr+",";
}
}
function setback(){
myform = document.referForm;
setReturnValue();
//alert("returnName: "+myform.returnName.value
// +"\n returnID: "+myform.returnID.value
// +"\n returnEMail: "+myform.returnEMail.value);
if(myform.returnObjName.value == "assignEmpName"){//分配他人
window.opener.document.todoDetailForm.assignEmpName.value = myform.returnName.value;
window.opener.document.todoDetailForm.assignEmpID.value = myform.returnID.value;
}else
if(myform.returnObjName.value == "engageEmpName"){//预约他人
window.opener.document.schDetailForm.engageEmpName.value = myform.returnName.value;
window.opener.document.schDetailForm.engageEmpID.value = myform.returnID.value;
}else
if(myform.returnObjName.value == "messageEmpName"){//留言他人
window.opener.document.schDetailForm.messageEmpName.value = myform.returnName.value;
window.opener.document.schDetailForm.messageEmpID.value = myform.returnID.value;
}else
if(myform.returnObjName.value == "mailto"){//邮件给他人
window.opener.document.schDetailForm.mailto.value = myform.returnEMail.value;
}else
if(myform.returnObjName.value == "mail_cc"){//邮件抄送他人
window.opener.document.schDetailForm.mail_cc.value = myform.returnEMail.value;
}else
if(myform.returnObjName.value == "mail_bcc"){//密件抄送他人
window.opener.document.schDetailForm.mail_bcc.value = myform.returnEMail.value;
}
window.close();
}
function addReceiver() {
myform = document.referForm;
for(i=0; i < myform.selectableIDStr.options.length; i++) {
if (myform.selectableIDStr.options(i).selected == true) {
j = myform.selectedIDStr.options.length - 1;
for (; j >= 0; j--) {
if (myform.selectableIDStr.item(i).value == myform.selectedIDStr.item(j).value) {
break;
}
}
if (j < 0) {
newOpt = new Option(myform.selectableIDStr.item(i).text, myform.selectableIDStr.item(i).value);
myform.selectedIDStr.add(newOpt);
}
}
}
}
function removeReceiver() {
myform = document.referForm;
for (i = myform.selectedIDStr.options.length - 1; i >= 0; i--) {
if (myform.selectedIDStr.options(i).selected == true) {
myform.selectedIDStr.remove(i);
}
}
}
function submitForm(act){
if(act == "Search"){
for (i = document.referForm.selectedIDStr.options.length - 1; i >= 0; i--) {
document.referForm.selectedIDStr.options(i).selected = true;
}
for (i = document.referForm.selectableIDStr.options.length - 1; i >= 0; i--) {
document.referForm.selectableIDStr.options(i).selected = false;
}
}
document.referForm.action.value = act;
document.referForm.submit();
}
//-->
</script>
</head>
<body class="popbg" topmargin="0" leftmargin="0">
<form name="referForm" method="POST">
<div align="center">
<table width="100%" border="0" cellpadding="2" cellspacing="2" class="popbt">
<tr>
<td>&&<B>请从列表中选择姓名</B></td>
</tr>
</table>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="center">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" >
<TABLE width="100%" border="0" cellspacing="1">
<TR>
<TD width="100%" colspan="4">
<b>
&部门科室:</b><select name="deptID" size="1" onChange="submitForm('getemplist')" style="width:150" class="top_tr">
<option value="0"></option>
<option value="29">+办公室</option>
<option value="30">+技术支持中心</option>
<option value="31">+人力资源部</option>
<option value="35">+行业部</option>
<option value="36">+竞标部</option>
<option value="37">+销售公司</option>
<option value="38">+工程公司</option>
<option value="39">+总经理室</option>
<option value="34">++发展部</option>
<option value="33">++市场部</option>
<option value="32">++财务部</option>
<option value="24">++软件研发中心</option>
</select> <b>自定义群组:</b><select name="deptID" size="1" onChange="submitForm('getemplist')" style="width:150" class="top_tr">
<option value="0"></option>
<option>电子商务组</option>
<option>OA组</option>
<option>纳税申报组</option>
</select>(信息送给指定的传阅对象)
</TD>
</TR>
<TR>
<TD width="44%">
<p align="center"><strong>职员一览</strong></TD>
<TD width="8%" rowspan="3" >
<p align="center">
<input type="button" value="→ 添加" name="B3" onClick="addReceiver(); return false;"><br>
<br>
<input type="button" value="← 删除" name="B3" onClick="removeReceiver(); return false;"><br>
<br>
<input type="button" value="○ 全选" name="B3"></p></TD>
<TD width="50%" colspan="2">
<p align="center"><strong>传阅对象一览</strong></TD>
</TR>
<TR>
<TD width="44%" valign="middle" >
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr >
<td width="12%" align="center" height="11">姓名</td>
<td width="18%" align="center" height="11">部门科室</td>
<td width="18%" align="center" height="11">职务</td>
</tr>
</table></TD>
<TD width="46%" > <table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr >
<td width="12%" align="center" height="11">姓名</td>
<td width="18%" align="center" height="11">部门科室</td>
<td width="18%" align="center" height="11">职务</td>
</tr>
</table></TD>
<TD width="2%" rowspan="2">
<p align="center"><input type="button" value="↑" name="B3"><br>
<br>
<input type="button" value="↓" name="B3"><br>
<br>
</TD>
</TR>
<tr>
<TD width="44%" ><select name="selectableIDStr" multiple size="15" style="width:100%; font-family:Courier New; font-size:9pt">
<option value="219">AA&&&&&&&&软件研发中心&&&&&&&&软件工程师&&</option>
<option value="80">BB&&&&&&&&软件研发中心&&&&&&&&软件工程师&&</option>
<option value="153">CC&&&&&&软件研发中心&&&&&&&&软件工程师&&</option>
<option value="234">DD&&&&&&&&软件研发中心&&&&&&&&测试员&&&&&&</option>
</select> </TD>
<TD width="46%" > <select name="selectedIDStr" multiple size="15" style="width:100%; font-family:Courier New; font-size:9pt">
</select></TD>
</tr>
</TABLE>
</td>
</tr>
</table>
</div>
</TD>
</TR>
</TABLE>
<HR>
<table width="90%" border="0" cellpadding="2" cellspacing="2">
<tr>
<td align="right"><input type="button" value="&&确定&&" name="B39" onClick="window.close();" class="button" onMouseOver="this.className='button_over';" onMouseOut="this.className='button';"> <input type="button" value="&&取消&&" name="B40" onClick="window.close();" class="button" onMouseOver="this.className='button_over';" onMouseOut="this.className='button';">&</td>
</tr>
</table>
</form>
</div>
</body>