EntertainUserManagerSetting.aspx
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:14k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="EntertainUserManagerSetting.aspx.cs" Inherits="Entertain_EntertainUserManagerSetting" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  3. <html>
  4. <head>
  5.     <link href="../css/main.css" type="text/css" rel="stylesheet">
  6. </head>
  7. <script>function DoSelectionList(parrLeftListBox,pstrLeftItems)
  8. {
  9. to_select = document.getElementById(parrLeftListBox);
  10. option_count_to = to_select.length;
  11. to_values = "";
  12. // pass on the number of selections
  13. //修改,支持IE & Firefox
  14. if(window.navigator.appName.toLowerCase().indexOf('netscape') > -1)
  15. lobjAantal = document.getElementsByName(pstrLeftItems)[0];
  16. else
  17. lobjAantal = document.getElementById(pstrLeftItems);
  18. //alert(document.getElementsByName(pstrLeftItems)[0]);
  19. //alert(document.getElementsByName(pstrLeftItems));
  20. lobjAantal.value = option_count_to;
  21. // Walk through the 'to'-selectionlist for making a 'comma-seperatedlist' of all the options in 'to'-selectionlist.
  22. for(i=0; i < option_count_to; i++)
  23. {
  24. // When there is more then n option in the 'to'-selectionlist, put a tab behind it.
  25. if(i > 0)
  26. to_values += 'f'
  27. // String now looks like Text1,Value1fText2,Value2
  28. to_values += to_select.options[i].text;
  29. to_values += ',';
  30. to_values += to_select.options[i].value;
  31. }
  32. lobjAantal.value = to_values;
  33. }
  34. //http://www.codeproject.com/jscript/iliasorter.asp
  35. function up(obj) {
  36. obj = (typeof obj == 'string') ? document.getElementById(obj) : obj;
  37. if (obj.tagName.toLowerCase() != 'select' && obj.length < 2)
  38. return false;
  39. var sel = new Array();
  40. for (var i=0; i<obj.length; i++) {
  41. if (obj[i].selected == true) {
  42. sel[sel.length] = i;
  43. }
  44. }
  45. for (i in sel) {
  46. if (sel[i] != 0 && !obj[sel[i]-1].selected) {
  47. var tmp = new Array(obj[sel[i]-1].text, obj[sel[i]-1].value, obj[sel[i]-1].style.color, obj[sel[i]-1].style.backgroundColor, obj[sel[i]-1].className, obj[sel[i]-1].id);
  48. obj[sel[i]-1].text = obj[sel[i]].text;
  49. obj[sel[i]-1].value = obj[sel[i]].value;
  50. obj[sel[i]-1].style.color = obj[sel[i]].style.color;
  51. obj[sel[i]-1].style.backgroundColor = obj[sel[i]].style.backgroundColor;
  52. obj[sel[i]-1].className = obj[sel[i]].className;
  53. obj[sel[i]-1].id = obj[sel[i]].id;
  54. obj[sel[i]].text = tmp[0];
  55. obj[sel[i]].value = tmp[1];
  56. obj[sel[i]].style.color = tmp[2];
  57. obj[sel[i]].style.backgroundColor = tmp[3];
  58. obj[sel[i]].className = tmp[4];
  59. obj[sel[i]].id = tmp[5];
  60. obj[sel[i]-1].selected = true;
  61. obj[sel[i]].selected = false;
  62. }
  63. }
  64. }
  65. //http://www.codeproject.com/jscript/iliasorter.asp
  66. function down(obj) {
  67. obj = (typeof obj == 'string') ? document.getElementById(obj) : obj;
  68. if (obj.tagName.toLowerCase() != 'select' && obj.length < 2)
  69. return false;
  70. var sel = new Array();
  71. for (var i=obj.length-1; i>-1; i--) {
  72. if (obj[i].selected == true) {
  73. sel[sel.length] = i;
  74. }
  75. }
  76. for (i in sel) {
  77. if (sel[i] != obj.length-1 && !obj[sel[i]+1].selected) {
  78. var tmp = new Array(obj[sel[i]+1].text, obj[sel[i]+1].value, obj[sel[i]+1].style.color, obj[sel[i]+1].style.backgroundColor, obj[sel[i]+1].className, obj[sel[i]+1].id);
  79. obj[sel[i]+1].text = obj[sel[i]].text;
  80. obj[sel[i]+1].value = obj[sel[i]].value;
  81. obj[sel[i]+1].style.color = obj[sel[i]].style.color;
  82. obj[sel[i]+1].style.backgroundColor = obj[sel[i]].style.backgroundColor;
  83. obj[sel[i]+1].className = obj[sel[i]].className;
  84. obj[sel[i]+1].id = obj[sel[i]].id;
  85. obj[sel[i]].text = tmp[0];
  86. obj[sel[i]].value = tmp[1];
  87. obj[sel[i]].style.color = tmp[2];
  88. obj[sel[i]].style.backgroundColor = tmp[3];
  89. obj[sel[i]].className = tmp[4];
  90. obj[sel[i]].id = tmp[5];
  91. obj[sel[i]+1].selected = true;
  92. obj[sel[i]].selected = false;
  93. }
  94. }
  95. }
  96. // ------------------------------------------------------------------
  97. function getSelectedValues(parrLeftListBox,pstrLeftItems,parrRightListBox,pstrRightItems)
  98. {
  99. form = document.Form1;
  100. DoSelectionList(parrLeftListBox, pstrLeftItems);
  101. // Now the other listbox
  102. DoSelectionList(parrRightListBox, pstrRightItems);
  103. }
  104. // ------------------------------------------------------------------
  105. function moveSelected(pstrSelListBoxName,pstrNotSelListBoxName, bCopyLeft, bCopyRight)
  106. {
  107. form = document.forms[0]//.Form1;
  108. to_element = form.elements[pstrSelListBoxName];
  109. from_select = document.getElementById(pstrNotSelListBoxName);
  110. to_select =  document.getElementById(pstrSelListBoxName);
  111. option_count_from = from_select.length;
  112. // Has something been selected?
  113. if(from_select.selectedIndex > -1)
  114. {
  115. index = 0;
  116. selected_from_options = new Array();
  117. // Which options are selected within the 'from'-selectionlist.
  118. for(i = option_count_from-1; i > -1; i--)
  119. {
  120. // Option selected?
  121. if(from_select.options[i].selected && from_select.options[i].title != "disabled")
  122. {
  123. if((pstrSelListBoxName == 'pklMyTable_Right') && (from_select.options[i].text.indexOf('必选') > -1))
  124. return;
  125. // Calculate the number of (to do) selectable options within the 'to'-selectionlist.
  126. option_count_to = to_select.length;
  127. // Make a new 'OPTION'-object
  128. if (!bCopyRight)
  129. {
  130. new_option = document.createElement("OPTION");
  131. // Add this 'OPTION'-object to the 'to'-selectionlist.
  132. to_element.options.add(new_option, option_count_to);
  133. // Add the selected option from the 'from'-selectionlist to the 'to'-selectionlist.
  134. to_select.options[option_count_to].text = from_select.options[i].text;
  135. to_select.options[option_count_to].value = from_select.options[i].value;
  136. // Add it to the list of selected options.
  137. }
  138. selected_from_options[index++] = i;
  139. }
  140. }
  141. // Solution for Internet Explorer, When the number of selected options is bigger than what can be shown on screen!
  142. if(index > from_select.size)
  143. from_select.click();
  144. if (!bCopyLeft || bCopyRight)
  145. {
  146. // Delete the selected option(s) from the 'from'-selectionlist.
  147. for(i = 0; i < index; i++)
  148. {
  149. from_select.remove(selected_from_options[i]);
  150. }
  151. }sortMover(to_select);}
  152. }
  153. function moveAll(pstrSelListBoxName,pstrNotSelListBoxName, bCopyLeft, bCopyRight)
  154. {
  155. form = document.Form1;
  156. to_element = form.elements[pstrSelListBoxName];
  157. from_select = document.getElementById(pstrNotSelListBoxName);
  158. to_select = document.getElementById(pstrSelListBoxName);
  159. option_count_from = from_select.length;
  160. // Calculate the number of (to do) to be selected options within the 'from'-selectionlist.
  161. var inx=0;
  162. for(i=0; i < option_count_from; i++)
  163. {
  164. if(from_select.options[0].title != "disabled")
  165. {
  166. if (!bCopyRight)
  167. {
  168. // Make a new 'OPTION'-object
  169. new_option = document.createElement("OPTION");
  170. // Bepaal waarin de 'to'-selectielijst de opties van de 'from'-selectielijst moeten worden toegevoegd.
  171. option_count_to = to_select.length;
  172. // Add this 'OPTION'-object to the 'to'-selectionlist.
  173. to_element.options.add(new_option, option_count_to);
  174. // Add the first option from the 'from'-selectionlist to the 'to'-selectionlist.
  175. to_select.options[option_count_to].text = from_select.options[inx].text;
  176. to_select.options[option_count_to].value = from_select.options[inx].value;
  177. }
  178. if (!bCopyLeft)
  179. {
  180. // delete the option from the 'from'-selectionlist.
  181. from_select.remove(0);
  182. }
  183. else
  184. {
  185. inx++;
  186. }
  187. }
  188. }sortMover(to_select);}
  189. // sort function for the multiselect boxes
  190. function sortMover(mover)
  191. {
  192. // Temporary array for the sorting of the mover.
  193. temp = new Array();
  194. // When there is nothing in the mover, do nothing.
  195. if(mover.options != null)
  196. {
  197. // Copy the options from the mover to the temporary array.
  198. for(i = 0; i < mover.options.length; i++)
  199. temp[temp.length] =  new Option(mover.options[i].text, mover.options[i].value, mover.options[i].defaultSelected, mover.options[i].selected);
  200. // Sort temporary array.
  201. if(temp.length != 0)
  202. temp.sort(function(a,b)
  203. {
  204. if((a.text+"").toUpperCase() < (b.text+"").toUpperCase())
  205. return -1;
  206. if((a.text+"").toUpperCase() > (b.text+"").toUpperCase())
  207. return 1;
  208. return 0;
  209. })
  210. // Copy temporary array to the mover.
  211. for(i = 0; i < temp.length; i++)
  212. mover.options[i] = new Option(temp[i].text, temp[i].value, temp[i].defaultSeleted, temp[i].selected);
  213. }
  214. function moveOptionUp(obj) {
  215. if (!hasOptions(obj)) { return; }
  216. for (i=0; i<obj.options.length; i++) {
  217. if (obj.options[i].selected) {
  218. if (i != 0 && !obj.options[i-1].selected) {
  219. swapOptions(obj,i,i-1);
  220. obj.options[i-1].selected = true;
  221. }
  222. }
  223. }
  224. }
  225. function moveOptionDown(obj) {
  226. if (!hasOptions(obj)) { return; }
  227. for (i=obj.options.length-1; i>=0; i--) {
  228. if (obj.options[i].selected) {
  229. if (i != (obj.options.length-1) && ! obj.options[i+1].selected) {
  230. swapOptions(obj,i,i+1);
  231. obj.options[i+1].selected = true;
  232. }
  233. }
  234. }
  235. }
  236. }</script>
  237.   <SCRIPT language="JavaScript" src="../js/calendar.js"></SCRIPT>
  238. <body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
  239. <form runat="server" id="fm1">
  240.     <br>
  241.     <table class="usertableborder" cellspacing="1" cellpadding="3" width="96%" align="center"
  242.         border="0">
  243.         <tr>
  244.             <th colspan="3" style="height: 25px">
  245.                 接待员设置</th>
  246.         </tr>
  247.                <tr>
  248.             <td class="usertablerow2" align="left" style="height: 32px;" colspan="2">
  249.           <div id="pnlMain">
  250. <TABLE class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
  251. <TR>
  252. <TD class="Small1"><IMG src="../images/manage_arrow_down.gif"  align="absmiddle"><SPAN class="big3">&nbsp;指定车辆调度人员</SPAN>
  253. </TD>
  254. </TR>
  255. </TABLE>
  256. <BR>
  257. <TABLE class="small" cellSpacing="0" borderColorDark="#ffffff" cellPadding="2" width="600"
  258. align="center" borderColorLight="#000000" border="1">
  259. <TR class="TableHeader">
  260. <TD align="center" width="50%"><B>接待人员</B></TD>
  261. <TD align="center" width="50%"><B>备选人员</B></TD>
  262. </TR>
  263. <TR>
  264. <TD vAlign="top" align="center" bgColor="#cccccc" colSpan="2">
  265. <span id="pklOperator" style="display:inline-block;height:250px;width:600px;"><table border="0" style="DISPLAY:inline;VERTICAL-ALIGN:middle;">
  266. <tr>
  267. <td valign="middle"></td>
  268. <td rowspan="2"><div style="overflow:auto;width:280px"><select size="4" name="pklOperator$Left" multiple="multiple" id="pklOperator_Left" onDblClick="moveSelected('pklOperator_Right','pklOperator_Left',false,false);getSelectedValues('pklOperator_Right','__pklOperator_HiddenTextRight','pklOperator_Left','__pklOperator_HiddenTextLeft')" style="height:250px;width:800px;">
  269. <option value="admin">[张风个头] 系统管理员</option>
  270. </select></div></td>
  271. <td rowspan="2" align="center" width="100px"><input name="pklOperator$ctl05" type="button" value="  ←  " onclick="moveSelected('pklOperator_Left','pklOperator_Right',false,false);getSelectedValues('pklOperator_Left','__pklOperator_HiddenTextLeft','pklOperator_Right','__pklOperator_HiddenTextRight')" class="SmallButton" /><br><br><input name="pklOperator$ctl06" type="button" value="  →  " onclick="moveSelected('pklOperator_Right','pklOperator_Left',false,false);getSelectedValues('pklOperator_Right','__pklOperator_HiddenTextRight','pklOperator_Left','__pklOperator_HiddenTextLeft')" class="SmallButton" /><br><br><input name="pklOperator$ctl07" type="button" value="←全部" onclick="moveAll('pklOperator_Left','pklOperator_Right',false,false);getSelectedValues('pklOperator_Left','__pklOperator_HiddenTextLeft','pklOperator_Right','__pklOperator_HiddenTextRight')" class="SmallButton" /><br><br><input name="pklOperator$ctl08" type="button" value="全部→" onclick="moveAll('pklOperator_Right','pklOperator_Left',false,false);getSelectedValues('pklOperator_Right','__pklOperator_HiddenTextRight','pklOperator_Left','__pklOperator_HiddenTextLeft')" class="SmallButton" /></td>
  272. <td rowspan="2"><div style="overflow:auto;width:280px"><select size="4" name="pklOperator$Right" multiple="multiple" id="pklOperator_Right" onDblClick="moveSelected('pklOperator_Left','pklOperator_Right',false,false);getSelectedValues('pklOperator_Left','__pklOperator_HiddenTextLeft','pklOperator_Right','__pklOperator_HiddenTextRight')" style="height:250px;width:800px;">
  273. </select></div></td>
  274. <td valign="middle"></td>
  275. </tr>
  276. </table>
  277. </span></TD>
  278. </TR>
  279. <TR bgColor="#cccccc">
  280. <TD vAlign="top" align="center" colSpan="2">点击条目时,可以组合CTRL或SHIFT键进行多选<BR>
  281. </TD>
  282. </TR>
  283. </TABLE>
  284. </div>
  285. <div>
  286.     &nbsp;</div>
  287.          
  288.        
  289.                
  290.        
  291.          
  292.             </td>
  293.         </tr>
  294.         <tr>
  295.             <td align="center" class="usertablerow1" colspan="2">
  296.                 &nbsp;
  297.                 <input type="Button" id="Button2"  Class="ptsbutton" value="保存"  />
  298.                         &nbsp;&nbsp;
  299.                         <input type="Button"  Class="ptsbutton" value="返回" OnClick="window.location='CardManager.aspx'" /><div id="Div2">
  300.                                 </div>   </td>
  301.          
  302.         </tr>
  303.      
  304.     </table>
  305.     <br>
  306.     <table class="usertableborder" cellspacing="1" cellpadding="3" width="96%" align="center"
  307.         border="0">
  308.         <tr>
  309.             <th colspan="2">
  310.                 使用方法</th>
  311.         </tr>
  312.         <tr>
  313.             <td class="usertablerow1" align="right" width="11%">
  314.                 <strong>特殊说明</strong></td>
  315.             <td class="usertablerow1" width="89%">
  316.                 <a href="http://www.woying.net/" target="_blank">挨个填写即可</a></td>
  317.         </tr>
  318.     </table>
  319.     </form>
  320.     
  321. </body>
  322. </html>