SPCMS00800_교직원조회및추가.xrw 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SPCMS00800_교직원조회및추가
  4. * Summary : 교직원 조회 및 추가
  5. * Programmer : 차재훈
  6. * Date Written : 2008.07.28
  7. * History : 2008.07.28
  8. * Remark :
  9. -->
  10. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  11. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  12. <xhtml:head>
  13. <xhtml:title>교직원 조회 및 추가</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <innrgrupinfo>
  19. <innrgruplist>
  20. <innrgrupnm/>
  21. <innrgrupid/>
  22. </innrgruplist>
  23. </innrgrupinfo>
  24. <list>
  25. <userlist>
  26. <chk/>
  27. <instnm/>
  28. <deptnm/>
  29. <usernm/>
  30. <userid/>
  31. <jobposcd/>
  32. <jobrespcd/>
  33. <jobkindcd/>
  34. <prfshipflagcd/>
  35. <grupjoblncd/>
  36. <userkindcd/>
  37. <dutinstnm/>
  38. <dutdeptnm/>
  39. <dutdeptcd/>
  40. <psnworksupdeptnm/>
  41. <posinstnm/>
  42. <posdeptnm/>
  43. <mpphonno/>
  44. <email/>
  45. </userlist>
  46. </list>
  47. </main>
  48. <send>
  49. <innrgrupid/>
  50. <publyn/>
  51. <innrgruplist/>
  52. <usernm/>
  53. <userid/>
  54. <deptnm/>
  55. <insttype/>
  56. <searchjobrespcd/>
  57. <searchjobkindcd/>
  58. <searchprfshipflagcd/>
  59. <searchdryn/>
  60. </send>
  61. <temp>
  62. <searchtype/>
  63. <searchstring/>
  64. <totalcount>0</totalcount>
  65. <chckcount>0</chckcount>
  66. <userlist>
  67. <innrclntnm/>
  68. <userid/>
  69. <email/>
  70. <mpphontel/>
  71. <innrgrupid/>
  72. <innrclntflag/>
  73. </userlist>
  74. <publkey>
  75. <fwdpublyn/>
  76. <fwdinnrgrupid/>
  77. </publkey>
  78. <insttype/>
  79. <searchjobrespcd/>
  80. <searchjobkindcd/>
  81. <searchprfshipflagcd/>
  82. </temp>
  83. <init>
  84. <R0058list>
  85. <cdid/>
  86. <cdnm/>
  87. </R0058list>
  88. <R0059list>
  89. <cdid/>
  90. <cdnm/>
  91. </R0059list>
  92. <R0061list>
  93. <cdid/>
  94. <cdnm/>
  95. </R0061list>
  96. <R0062list>
  97. <cdid/>
  98. <cdnm/>
  99. </R0062list>
  100. <R0063list>
  101. <cdid/>
  102. <cdnm/>
  103. </R0063list>
  104. <Z0016list>
  105. <cdid/>
  106. <cdnm/>
  107. </Z0016list>
  108. </init>
  109. </root>
  110. </instance>
  111. <submission id="TRCMS00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  112. <submission id="TRCCN00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/innrgrupinfo/innrgruplist"/>
  113. <submission id="TXCMS00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  114. </model>
  115. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  116. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  118. <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
  119. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  120. <script type="javascript" ev:event="xforms-ready">
  121. <![CDATA[
  122. var rePublyn = model.getValue("/root/temp/publkey/fwdpublyn")
  123. var reInnrgrupid = model.getValue("/root/temp/publkey/fwdinnrgrupid")
  124. zbcfGetCodeList( new Array("R0058", "R0059", "R0061", "R0062", "R0063", "Z0016"), new Array("/root/init/R0058list", "/root/init/R0059list", "/root/init/R0061list", "/root/init/R0062list", "/root/init/R0063list", "/root/init/Z0016list"), true );
  125. //검색조건 직원명 선택
  126. cmb_searchtype.select(0);
  127. cmb_insttype.select(0);
  128. // 직원 조회 그리드의 col을 초기화 시켜준다.
  129. model.removenodeset("/root/main/list/userlist");
  130. model.removenodeset("/root/main/innrgrupinfo/innrgruplist");
  131. if ( rePublyn == "" || rePublyn == null ) {
  132. // 초기화면 개인주소록으로 설정
  133. rdo_publyn.value = "N";
  134. } else {
  135. model.setValue("/root/send/publyn" , rePublyn);
  136. model.setValue("/root/send/innrgrupid" , reInnrgrupid);
  137. }
  138. submit("TRCCN00501");
  139. model.refresh();
  140. ]]>
  141. </script>
  142. <script type="javascript">
  143. <![CDATA[
  144. //----------------------------------------//
  145. // 그리드 전체 행 선택 함수 //
  146. //----------------------------------------//
  147. function fGridAllRow(grid) {
  148. var rows = grid.rows;
  149. var fRow = grid.fixedRows;
  150. var chk = grid.valueMatrix(1,grid.colRef("chk"));
  151. if(chk == "N"){
  152. for(var i=fRow; i<rows; i++){
  153. grid.valueMatrix(i,grid.colRef("chk"))="Y";
  154. }
  155. }else{
  156. for(var i=fRow; i<rows; i++){
  157. grid.valueMatrix(i,grid.colRef("chk"))="N";
  158. }
  159. }
  160. model.refresh();
  161. }
  162. //===================//
  163. // 체크된 행을 저장 //
  164. //===================//
  165. function fGridRowAddRow(sndGrid, rcvGrid){
  166. var sRows = sndGrid.rows;
  167. var sfRow = sndGrid.fixedRows;
  168. var cntRows = sndGrid.rows-1;
  169. var rRows = rcvGrid.rows;
  170. var innrgrupid = model.getValue("/root/send/innrgrupid");
  171. var innrclntflag = "2"; //교직원
  172. var gridupdate = "";
  173. for(var i=sfRow; i<sRows; i++){
  174. if(sndGrid.valueMatrix(i,sndGrid.colRef("chk")) == "Y" ){
  175. rcvGrid.addRow();
  176. rcvGrid.valueMatrix(rRows, rcvGrid.colRef("innrgrupid")) = innrgrupid;
  177. rcvGrid.valueMatrix(rRows, rcvGrid.colRef("innrclntflag")) = innrclntflag;
  178. rcvGrid.valueMatrix(rRows, rcvGrid.colRef("innrclntnm")) = sndGrid.valueMatrix(i,sndGrid.colRef("usernm"));
  179. rcvGrid.valueMatrix(rRows, rcvGrid.colRef("userid")) = sndGrid.valueMatrix(i,sndGrid.colRef("userid"));
  180. rcvGrid.valueMatrix(rRows, rcvGrid.colRef("email")) = sndGrid.valueMatrix(i,sndGrid.colRef("email"));
  181. rcvGrid.valueMatrix(rRows, rcvGrid.colRef("mpphontel")) = sndGrid.valueMatrix(i,sndGrid.colRef("mpphonno"));
  182. rRows++;
  183. }//if
  184. }//for
  185. model.refresh();
  186. if(rRows < 2){
  187. messageBox("선택된 목록이","I004");
  188. model.setFocus("grd_emplist");
  189. return;
  190. }else{
  191. gridupdate = rcvGrid.getUpdateData();
  192. model.setValue("/root/send/innrgruplist", gridupdate);
  193. submit("TXCMS00502");//목록 추가
  194. //부모창 새로고침
  195. opener.javaScript.fGetRefreshTree(innrgrupid);
  196. //초기화
  197. model.removenodeset("/root/main/list/userlist");
  198. model.resetInstanceNode("/root/temp/userlist");
  199. model.setValue("/root/temp/searchstring", "");
  200. model.refresh();
  201. //window.close();
  202. }
  203. }
  204. ]]>
  205. </script>
  206. </xhtml:head>
  207. <xhtml:body pagewidth="770" pageheight="460" guideline="2,440;1,750;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  208. <caption id="caption9" class="tit_2" style="left:0px; top:97px; width:95px; height:13px; ">직원 조회</caption>
  209. <group id="grp_johe" style="left:0px; top:16px; width:750px; height:65px; vertical-align:top; ">
  210. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:750px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  211. <caption id="caption2" class="search_name" style="left:21px; top:9px; width:89px; height:17px; ">검색조건 :</caption>
  212. <select1 id="cmb_searchtype" ref="/root/temp/searchtype" navindex="1" appearance="full" cellspacing="5" cols="3" style="left:110px; top:9px; width:175px; height:19px; ">
  213. <choices>
  214. <item>
  215. <label>직원명</label>
  216. <value>1</value>
  217. </item>
  218. <item>
  219. <label>직원ID</label>
  220. <value>3</value>
  221. </item>
  222. <item>
  223. <label>부서명</label>
  224. <value>2</value>
  225. </item>
  226. </choices>
  227. </select1>
  228. <input id="ipt_searchitem" ref="/root/temp/searchstring" class="input_s_essential" navindex="2" style="left:290px; top:8px; width:130px; height:19px; ">
  229. <script type="javascript" ev:event="onkeyup">
  230. <![CDATA[
  231. inputEnterKey("btn_search", "DOMActivate");
  232. ]]>
  233. </script>
  234. </input>
  235. <caption id="caption4" class="search_name" style="left:446px; top:9px; width:87px; height:17px; ">검색범위 :</caption>
  236. <select1 id="cmb_insttype" ref="/root/temp/insttype" class="combo_search" navindex="3" appearance="minimal" style="left:533px; top:8px; width:110px; height:19px; ">
  237. <choices>
  238. <item>
  239. <label>근무지 기관 내</label>
  240. <value>dutplceinstcd</value>
  241. </item>
  242. <item>
  243. <label>전체 기관</label>
  244. <value>totalinstcd</value>
  245. </item>
  246. </choices>
  247. </select1>
  248. <caption id="caption7" style="left:65px; top:35px; width:45px; height:20px; font-weight:bold; ">직 책 :</caption>
  249. <select1 id="combo1" ref="/root/temp/searchjobrespcd" class="combo_search" navindex="4" appearance="minimal" style="left:113px; top:36px; width:125px; height:19px; ">
  250. <choices>
  251. <item>
  252. <label/>
  253. <value/>
  254. </item>
  255. <item>
  256. <label>팀장</label>
  257. <value>1070</value>
  258. </item>
  259. <item>
  260. <label>UM</label>
  261. <value>1901</value>
  262. </item>
  263. <item>
  264. <label>JM</label>
  265. <value>1907</value>
  266. </item>
  267. <item>
  268. <label>임상과장</label>
  269. <value>0360</value>
  270. </item>
  271. <item>
  272. <label>임상분과장</label>
  273. <value>1897</value>
  274. </item>
  275. </choices>
  276. </select1>
  277. <caption id="caption8" style="left:285px; top:35px; width:45px; height:20px; font-weight:bold; ">의 사 :</caption>
  278. <select1 id="combo2" ref="/root/temp/searchjobkindcd" class="combo_search" navindex="5" appearance="minimal" style="left:333px; top:36px; width:110px; height:19px; ">
  279. <choices>
  280. <item>
  281. <label>의사</label>
  282. <value>0330</value>
  283. </item>
  284. <item>
  285. <label>치과의사</label>
  286. <value>0332</value>
  287. </item>
  288. <item>
  289. <label>의사 전체</label>
  290. <value>all</value>
  291. </item>
  292. <item>
  293. <label/>
  294. <value/>
  295. </item>
  296. </choices>
  297. </select1>
  298. <caption id="caption1" style="left:485px; top:35px; width:45px; height:20px; font-weight:bold; ">교 직 :</caption>
  299. <select1 id="combo3" ref="/root/temp/searchprfshipflagcd" class="combo_search" navindex="6" appearance="minimal" style="left:533px; top:36px; width:110px; height:19px; ">
  300. <choices>
  301. <item>
  302. <label>전임교원</label>
  303. <value>11</value>
  304. </item>
  305. <item>
  306. <label>비전임교원</label>
  307. <value>21</value>
  308. </item>
  309. <item>
  310. <label>직원</label>
  311. <value>41</value>
  312. </item>
  313. <item>
  314. <label>전공의</label>
  315. <value>31</value>
  316. </item>
  317. <item>
  318. <label>파견직</label>
  319. <value>71</value>
  320. </item>
  321. <item>
  322. <label/>
  323. <value/>
  324. </item>
  325. </choices>
  326. </select1>
  327. <line id="line13" style="x1:660px; y1:13px; x2:660px; y2:50px; border-color:#ffe4bb; border-left-style:solid; "/>
  328. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:675px; top:20px; width:56px; height:22px; ">
  329. <caption>조회</caption>
  330. <script type="javascript" ev:event="DOMActivate">
  331. <![CDATA[
  332. var s_string = model.getValue("/root/temp/searchstring");
  333. var s_insttype = model.getValue("/root/temp/insttype");
  334. var s_jobrespcd = model.getValue("/root/temp/searchjobrespcd");
  335. var s_jobkindcd = model.getValue("/root/temp/searchjobkindcd");
  336. var s_prfshipflagcd = model.getValue("/root/temp/searchprfshipflagcd");
  337. if ((s_string == "" ) && (s_jobrespcd == "" ) && (s_jobkindcd == "" ) && (s_prfshipflagcd == "" )){
  338. messageBox("검색조건을 적어도 1개 이상 선택하거나", "C001");
  339. model.setFocus("ipt_searchitem");
  340. return false;
  341. }
  342. if ((s_string == "" ) && (s_insttype == "totalinstcd")){
  343. if ((s_jobrespcd != "") && (s_jobkindcd == "" ) && (s_prfshipflagcd == "" )){
  344. messageBox("직책만을 검색하시려면 검색범위를 근무지 기관 내로 한정하세요.", "C099");
  345. model.setFocus("cmb_insttype");
  346. return false;
  347. } else if ((s_jobkindcd != "") && (s_jobrespcd == "" ) && (s_prfshipflagcd == "" )){
  348. messageBox("의사인 교직원만 검색하시려면 검색범위를 근무지 기관 내로 한정하세요.", "C099");
  349. model.setFocus("cmb_insttype");
  350. return false;
  351. } else if ((s_prfshipflagcd != "") && (s_jobrespcd == "" ) && (s_jobkindcd == "" )){
  352. messageBox("교직 구분만으로 검색하시려면 검색범위를 근무지 기관 내로 한정하세요.", "C099");
  353. model.setFocus("cmb_insttype");
  354. return false;
  355. }
  356. }
  357. if (model.getValue("/root/temp/searchtype")=="1"){//직원명조회
  358. model.setValue("/root/send/usernm", s_string);
  359. model.setValue("/root/send/userid", "");
  360. model.setValue("/root/send/deptnm", "");
  361. } else if (model.getValue("/root/temp/searchtype")=="3"){//직원ID 조회
  362. model.setValue("/root/send/userid", s_string);
  363. model.setValue("/root/send/usernm", "");
  364. model.setValue("/root/send/deptnm", "");
  365. } else if (model.getValue("/root/temp/searchtype")=="2"){//부서명 조회
  366. model.setValue("/root/send/deptnm", s_string);
  367. model.setValue("/root/send/userid", "");
  368. model.setValue("/root/send/usernm", "");
  369. } else {
  370. model.setValue("/root/send/usernm", "");
  371. model.setValue("/root/send/userid", "");
  372. model.setValue("/root/send/deptnm", "");
  373. }
  374. model.setValue("/root/send/insttype", s_insttype);
  375. model.setValue("/root/send/searchjobrespcd", s_jobrespcd);
  376. model.setValue("/root/send/searchjobkindcd", s_jobkindcd);
  377. model.setValue("/root/send/searchprfshipflagcd", s_prfshipflagcd);
  378. if (s_jobkindcd == "all") {
  379. model.setValue("root/send/searchdryn","Y")
  380. model.setValue("/root/send/searchjobkindcd", "");
  381. }
  382. submit("TRCMS00801");
  383. model.setValue("/root/send/insttype", "");
  384. model.setValue("/root/send/searchjobrespcd", "");
  385. model.setValue("/root/send/searchjobkindcd", "");
  386. model.setValue("/root/send/searchprfshipflagcd", "");
  387. model.setValue("/root/send/usernm", "");
  388. model.setValue("/root/send/userid", "");
  389. model.setValue("/root/send/deptnm", "");
  390. model.setValue("/root/send/searchdryn", "");
  391. var rows = grd_emplist.rows-1;
  392. model.setValue("/root/temp/totalcount", rows);
  393. if(rows >=1){
  394. grd_emplist.valueMatrix(1,grd_emplist.colRef("chk"))="N";
  395. }
  396. model.refresh();
  397. ]]>
  398. </script>
  399. </button>
  400. </group>
  401. <group id="grp_body" style="left:0px; top:115px; width:750px; height:280px; ">
  402. <line id="line2" class="line_1" style="x1:0px; y1:0px; x2:750px; y2:0px; "/>
  403. <datagrid id="grd_emplist" nodeset="/root/main/list/userlist" caption="^근무지기관명^근무지부서명^직원명^직위^직책^직종^교직구분^직군^사용자유형^근무기관명^근무부서명^근무부서코드^인사상위부서^소속기관명^소속부서명^직원ID^휴대폰^이메일" colwidth="30, 120, 130, 100, 95, 95, 95, 95, 95, 100, 120, 130, 0, 130, 120, 130, 80, 110, 150" dataheight="23" ellipsis="true" explorerbar="sortshowmove" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="23" tooltip="true" style="left:0px; top:5px; width:750px; height:250px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  404. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  405. <col ref="instnm" style="text-align:center; "/>
  406. <col ref="deptnm" style="text-align:center; "/>
  407. <col ref="usernm" style="text-align:center; "/>
  408. <col disabled="true" ref="jobposcd" type="combo" style="text-align:center; ">
  409. <choices>
  410. <itemset nodeset="/root/init/R0062list/R0062">
  411. <label ref="cdnm"/>
  412. <value ref="cdid"/>
  413. </itemset>
  414. </choices>
  415. </col>
  416. <col disabled="true" ref="jobrespcd" type="combo" style="text-align:center; ">
  417. <choices>
  418. <itemset nodeset="/root/init/R0063list/R0063">
  419. <label ref="cdnm"/>
  420. <value ref="cdid"/>
  421. </itemset>
  422. </choices>
  423. </col>
  424. <col disabled="true" ref="jobkindcd" type="combo" style="text-align:center; ">
  425. <choices>
  426. <itemset nodeset="/root/init/R0061list/R0061">
  427. <label ref="cdnm"/>
  428. <value ref="cdid"/>
  429. </itemset>
  430. </choices>
  431. </col>
  432. <col disabled="true" ref="prfshipflagcd" type="combo" style="text-align:center; ">
  433. <choices>
  434. <itemset nodeset="/root/init/R0058list/R0058">
  435. <label ref="cdnm"/>
  436. <value ref="cdid"/>
  437. </itemset>
  438. </choices>
  439. </col>
  440. <col disabled="true" ref="grupjoblncd" type="combo" style="text-align:center; ">
  441. <choices>
  442. <itemset nodeset="/root/init/R0059list/R0059">
  443. <label ref="cdnm"/>
  444. <value ref="cdid"/>
  445. </itemset>
  446. </choices>
  447. </col>
  448. <col disabled="true" ref="userkindcd" type="combo" style="text-align:center; ">
  449. <choices>
  450. <itemset nodeset="/root/init/Z0016list/Z0016">
  451. <label ref="cdnm"/>
  452. <value ref="cdid"/>
  453. </itemset>
  454. </choices>
  455. </col>
  456. <col ref="dutinstnm" style="text-align:center; "/>
  457. <col ref="dutdeptnm" style="text-align:center; "/>
  458. <col ref="dutdeptcd" visibility="hidden" style="text-align:center; "/>
  459. <col ref="psnworksupdeptnm" style="text-align:center; "/>
  460. <col ref="posinstnm" style="text-align:center; "/>
  461. <col ref="posdeptnm" style="text-align:center; "/>
  462. <col ref="userid" style="text-align:center; "/>
  463. <col ref="mpphonno" style="text-align:center; "/>
  464. <col ref="email" style="text-align:center; "/>
  465. <script type="javascript" ev:event="xforms-value-changed">
  466. <![CDATA[
  467. var grid = grd_emplist;
  468. var rows = grd_emplist.rows -1;
  469. var count = 0;
  470. for(i=1; i<=rows; i++){
  471. if(grid.valueMatrix(i,grid.colRef("chk"))=="Y"){
  472. count = count + 1;
  473. }
  474. }
  475. model.setValue("/root/temp/chckcount", count);
  476. model.refresh();
  477. ]]>
  478. </script>
  479. <script type="javascript" ev:event="ondblclick">
  480. <![CDATA[
  481. if ((grd_emplist.row > 0) && grd_emplist.isCell(event.target) && (grd_emplist.col != 1) ){
  482. if(model.getValue("/root/send/innrgrupid")==""){
  483. messageBox("선택된 그룹이","I004");
  484. model.setFocus("cmb_innrgroup");
  485. return;
  486. }
  487. model.removeNodeset("/root/temp/userlist");
  488. model.refresh();
  489. grd_emplist.valueMatrix(grd_emplist.row, grd_emplist.colRef("chk")) = "Y";
  490. fGridRowAddRow(grd_emplist, grd_emplistsave);
  491. //window.close();
  492. model.setFocus("cmb_searchtype");
  493. } else {
  494. }
  495. ]]>
  496. </script>
  497. <script type="javascript" ev:event="onclick">
  498. <![CDATA[
  499. if ((grd_emplist.row > 0) && grd_emplist.isCell(event.target) && (grd_emplist.col != 1) ){
  500. var chk = grd_emplist.valueMatrix(grd_emplist.row, grd_emplist.colRef("chk"));
  501. if(chk == "Y"){
  502. grd_emplist.valueMatrix(grd_emplist.row, grd_emplist.colRef("chk"))="N";
  503. }else{
  504. grd_emplist.valueMatrix(grd_emplist.row, grd_emplist.colRef("chk"))="Y";
  505. }
  506. model.refresh();
  507. } else {
  508. }
  509. ]]>
  510. </script>
  511. </datagrid>
  512. <caption id="caption3" style="left:505px; top:257px; width:230px; height:20px; text-align:right; ">
  513. <![CDATA[< 명 / 총 명 >]]>
  514. </caption>
  515. <caption id="caption5" ref="/root/temp/totalcount" style="left:674px; top:257px; width:35px; height:19px; text-align:right; "/>
  516. <caption id="caption6" ref="/root/temp/chckcount" style="left:591px; top:257px; width:35px; height:19px; text-align:right; "/>
  517. <button id="btn_allchk" class="btn2_letter2" navindex="8" style="left:2px; top:8px; width:42px; height:19px; text-align:center; ">
  518. <caption>All</caption>
  519. <script type="javascript" ev:event="DOMActivate">
  520. <![CDATA[
  521. fGridAllRow(grd_emplist);
  522. ]]>
  523. </script>
  524. </button>
  525. <datagrid id="grd_emplistsave" nodeset="/root/temp/userlist" visibility="hidden" caption="직원명^직원ID^e-mail^phone^innrgrupid^innrclntflag" colwidth="123, 123, 100, 100, 84, 85" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" style="left:0px; top:135px; width:695px; height:110px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  526. <col ref="innrclntnm"/>
  527. <col ref="userid"/>
  528. <col ref="email"/>
  529. <col ref="mpphontel"/>
  530. <col ref="innrgrupid"/>
  531. <col ref="innrclntflag"/>
  532. </datagrid>
  533. </group>
  534. <group id="grp_btn" style="left:0px; top:401px; width:750px; height:35px; vertical-align:top; ">
  535. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:750px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  536. <caption id="caption10" class="search_name" style="left:25px; top:9px; width:104px; height:17px; ">주소록 위치 :</caption>
  537. <select1 id="rdo_publyn" ref="/root/send/publyn" class="s" navindex="9" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:136px; top:9px; width:119px; height:16px; background-color:transparent; border-style:none; ">
  538. <choices>
  539. <item>
  540. <label>개인</label>
  541. <value>N</value>
  542. </item>
  543. <item>
  544. <label>부서</label>
  545. <value>Y</value>
  546. </item>
  547. </choices>
  548. <script type="javascript" ev:event="xforms-select">
  549. <![CDATA[
  550. submit("TRCCN00501");
  551. ]]>
  552. </script>
  553. </select1>
  554. <select1 id="cmb_innrgroup" ref="/root/send/innrgrupid" navindex="10" appearance="minimal" style="left:280px; top:8px; width:130px; height:19px; ">
  555. <choices>
  556. <itemset nodeset="/root/main/innrgrupinfo/innrgruplist">
  557. <label ref="innrgrupnm"/>
  558. <value ref="innrgrupid"/>
  559. </itemset>
  560. </choices>
  561. </select1>
  562. <button id="btn_save" class="btn4_letter2" navindex="11" style="left:618px; top:7px; width:56px; height:22px; ">
  563. <caption>등록</caption>
  564. <script type="javascript" ev:event="DOMActivate">
  565. <![CDATA[
  566. if ((grd_emplist.row > 0) && (grd_emplist.col > 0)){
  567. if(model.getValue("/root/send/innrgrupid")==""){
  568. messageBox("선택된 그룹이","I004");
  569. model.setFocus("cmb_innrgroup");
  570. return;
  571. }
  572. model.removeNodeset("/root/temp/userlist");
  573. model.refresh();
  574. fGridRowAddRow(grd_emplist, grd_emplistsave);
  575. //window.close();
  576. } else if (grd_emplist.col == 0) {
  577. messageBox("열 앞부분을 선택하지 말고 내용이나 체크 표시를 ","C002");
  578. } else {
  579. messageBox("등록할 직원을 선택하지 않았거나 선택할 직원이 없습니다. 조회하신 후 목록을 ","C002");
  580. model.SetFocus("grd_emplist");
  581. }
  582. ]]>
  583. </script>
  584. </button>
  585. <button id="btn_close" class="btn4_letter2" navindex="12" style="left:676px; top:7px; width:56px; height:22px; ">
  586. <caption>닫기</caption>
  587. <script type="javascript" ev:event="DOMActivate">
  588. <![CDATA[
  589. window.close();
  590. ]]>
  591. </script>
  592. </button>
  593. </group>
  594. </xhtml:body>
  595. </xhtml:html>