SMRPD01900_표준번표대상자등록.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>표준번표대상자</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <stndduttabletrgtmanlist/>
  11. <dutdeptlist>
  12. </dutdeptlist>
  13. </main>
  14. <send>
  15. <instcd/>
  16. <appdd/>
  17. <posdeptcd/>
  18. <posdeptnm/>
  19. <dutunitcd/>
  20. <dutunitnm/>
  21. <emplno/>
  22. <emplnm/>
  23. <stndduttabletrgtmanlist/>
  24. <dummy/>
  25. <flag/>
  26. <dutdeptcd/>
  27. <dutdeptnm/>
  28. </send>
  29. <init/>
  30. <hidden/>
  31. <temp/>
  32. </root>
  33. </instance>
  34. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  38. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  39. <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
  40. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. fInitialize();
  44. ]]>
  45. </script>
  46. <submission id="TRRPD01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dutdeptlist"/>
  47. <submission id="TRRPD01902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/stndduttabletrgtmanlist"/>
  48. <submission id="TXRPD01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  49. </model>
  50. <script type="javascript">
  51. <![CDATA[
  52. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  53. function fInitialize()
  54. {
  55. misfGridInit(grd_dutdeptlist);
  56. misfGridInit(grd_stndduttabletrgtmanlist);
  57. misfMsterDetailSet(grd_dutdeptlist,null,"TRRPD01901","N");
  58. misfMsterDetailSet(grd_stndduttabletrgtmanlist,null, "TRRPD01902", "Y");
  59. model.resetInstanceNode("/root/send");
  60. // misfComboComCdListMulti("Z0007","cmb_instcd");
  61. misfComboInstCdListMulti("cmb_instcd",ipt_appdd.value,"","N");
  62. misfComboComCdListMulti("R0426","grd_stndduttabletrgtmanlist.untitle");
  63. misfGetAndSetUserInfo();
  64. misfGetUserAuth();
  65. rpdfSetControlAuth();
  66. //model.removeNode("/root/main/dutdeptlist");
  67. rpdfComboCdList(cmb_dutplce); // 권한별 근무부서 세팅
  68. rpdfSetDutUnitCombo();
  69. fSetComBoBind();
  70. model.setValue("/root/send/dutunitcd", DUT_UNIT_CD);
  71. model.setValue("/root/send/dutunitnm", DUT_UNIT_NM);
  72. model.setValue("/root/send/dutdeptcd", DUT_UNIT_CD);
  73. model.setValue("/root/send/dutdeptnm", DUT_UNIT_NM);
  74. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  75. if(getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y")
  76. {
  77. cmb_instcd.disabled = false;
  78. ipt_dutdeptcd.disabled = false;
  79. ipt_dutdeptnm.disabled = false;
  80. btn_dutdept.disabled = false;
  81. }
  82. else if ( DUTY_PART_YN == "Y" ) {
  83. ipt_dutdeptcd.disabled = false;
  84. ipt_dutdeptnm.disabled = false;
  85. btn_dutdept.disabled = false;
  86. }
  87. else
  88. {
  89. cmb_instcd.disabled = true;
  90. ipt_dutdeptcd.disabled = true;
  91. ipt_dutdeptnm.disabled = true;
  92. btn_dutdept.disabled = true;
  93. }
  94. //화면 권한 설정
  95. btn_save.disabled = !(checkAuth("X"));
  96. btn_search.disabled = !(checkAuth("X"));
  97. if(cmb_dutplce.length == 1)
  98. {
  99. //rpdfSetControlByJobRespCd("ipt_appdd,ipt_dutdeptcd,btn_dutdept,ipt_dutdeptnm,ipt_emplno,btn_empl,ipt_emplnm,btn_grdadd,btn_grddel,btn_excsave,btn_excadd,btn_search,btn_save,btn_clear");
  100. }
  101. //ipt_appdd.value = getCurrentDate();
  102. ipt_appdd.value = "20000101";
  103. model.refresh();
  104. var iRowIdx = grd_dutdeptlist.findRow(DUT_UNIT_CD, 0, grd_dutdeptlist.colRef("dutdeptcd"));
  105. if(iRowIdx > 0)
  106. {
  107. grd_dutdeptlist.row = iRowIdx;
  108. grd_dutdeptlist.select(iRowIdx, grd_dutdeptlist.colRef("dutdeptnm")) = true;
  109. grd_dutdeptlist.dispatch("ondblclick");
  110. }
  111. }
  112. function fSetComBoBind()
  113. {
  114. rpdfComboCdList(cmb_dutplce);
  115. model.copyNode("/root/init/cmb_dutplce","/root/init/combocd");
  116. if(instance1.selectNodes("/root/init/cmb_dutplce/combocodelist").length == 0)
  117. {
  118. model.removenode("/root/main/dutdeptlist");
  119. model.makeValue("/root/main/dutdeptlist/instcd", getUserInfo("dutplceinstcd"));
  120. model.makeValue("/root/main/dutdeptlist/dutdeptcd", DUT_UNIT_CD);
  121. model.makeValue("/root/main/dutdeptlist/dutdeptnm", DUT_UNIT_NM);
  122. cmb_dutplce.value = DUT_UNIT_NM;
  123. }
  124. else
  125. {
  126. var bAdd = true;
  127. var iStartIdx = 0;
  128. for(var i=0; i<=instance1.selectNodes("/root/init/cmb_dutplce/combocodelist").length - 1; i++)
  129. {
  130. if(model.getValue("/root/init/cmb_dutplce/combocodelist[" + (i + 1) + "]/cdid") == DUT_UNIT_CD) bAdd = false;
  131. }
  132. if(bAdd)
  133. {
  134. iStartIdx++;
  135. model.makeValue("/root/main/dutdeptlist[" + iStartIdx + "]/instcd", getUserInfo("dutplceinstcd"));
  136. model.makeValue("/root/main/dutdeptlist[" + iStartIdx + "]/dutdeptcd", DUT_UNIT_CD);
  137. model.makeValue("/root/main/dutdeptlist[" + iStartIdx + "]/dutdeptnm", DUT_UNIT_NM);
  138. }
  139. var iIdx = 1;
  140. for(var i=0; i<instance1.selectNodes("/root/init/cmb_dutplce/combocodelist").length ; i++)
  141. {
  142. model.makeValue("/root/main/dutdeptlist[" + (i + 1 + iStartIdx) + "]/instcd", getUserInfo("dutplceinstcd"));
  143. model.makeValue("/root/main/dutdeptlist[" + (i + 1 + iStartIdx) + "]/dutdeptcd", model.getValue("/root/init/cmb_dutplce/combocodelist[" + (iIdx) + "]/cdid"));
  144. model.makeValue("/root/main/dutdeptlist[" + (i + 1 + iStartIdx) + "]/dutdeptnm", model.getValue("/root/init/cmb_dutplce/combocodelist[" + (iIdx) + "]/cdnm"));
  145. iIdx++;
  146. }
  147. }
  148. model.refresh();
  149. }
  150. function fRetrieve()
  151. {
  152. if(ipt_appdd.value == "")
  153. {
  154. messageBox("적용일자를","C002");
  155. return;
  156. }
  157. model.setValue("/root/send/flag", "1");
  158. misfMsterDetailRetrieve();
  159. grd_dutdeptlist.col = 2;
  160. model.refresh();
  161. }
  162. function fSave()
  163. {
  164. var updtdata = getGridUpdateData(grd_stndduttabletrgtmanlist);
  165. if (updtdata == "" )
  166. {
  167. messageBox("변경된 데이터가","I004");
  168. return;
  169. }
  170. var null_check1 = "";
  171. var null_chech2 = "";
  172. for(var i=1;i<=grd_stndduttabletrgtmanlist.rows-2;i++)
  173. {
  174. null_check1 = model.getValue(grd_stndduttabletrgtmanlist.attribute("nodeset")+"["+i+"]/emplno");
  175. null_check2 = model.getValue(grd_stndduttabletrgtmanlist.attribute("nodeset")+"["+i+"]/appdd");
  176. if(null_check1 =="")
  177. {
  178. messageBox("사원번호는","I003");
  179. return;
  180. }
  181. else if(null_check2 == "")
  182. {
  183. messageBox("적용일자는","I003");
  184. return;
  185. }
  186. }
  187. misfSave("TXRPD01901");
  188. grd_stndduttabletrgtmanlist.endEditCell();
  189. model.refresh();
  190. }
  191. function fReset()
  192. {
  193. var updtdata = getGridUpdateData(grd_stndduttabletrgtmanlist);
  194. if (updtdata != "")
  195. {
  196. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  197. if (ret != 6) // not OK
  198. {
  199. return;
  200. }
  201. }
  202. fInitialize();
  203. }
  204. function fAddRow()
  205. {
  206. var null_check1 = ipt_appdd.value;
  207. if(null_check1 == "")
  208. {
  209. messageBox("적용일자를","C002");
  210. return;
  211. }
  212. misfGridIUD(grd_stndduttabletrgtmanlist,"A");
  213. grd_stndduttabletrgtmanlist.editCell();
  214. grd_stndduttabletrgtmanlist.col = 2;
  215. model.refresh();
  216. }
  217. ]]>
  218. </script>
  219. </xhtml:head>
  220. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  221. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  222. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">표준번표대상자등록</caption>
  223. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  224. </group>
  225. <group id="group5" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  226. <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  227. <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
  228. <caption>저장</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. fSave();
  232. ]]>
  233. </script>
  234. </button>
  235. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  236. <caption>초기화</caption>
  237. <script type="javascript" ev:event="DOMActivate">
  238. <![CDATA[
  239. fReset();
  240. ]]>
  241. </script>
  242. </button>
  243. </group>
  244. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  245. <line id="line1" class="line_1" style="x1:264px; y1:68px; x2:1194px; y2:68px; "/>
  246. <group id="group4" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  247. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  248. <line id="line3" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
  249. <caption id="caption1" class="search_name" style="left:293px; top:9px; width:86px; height:17px; ">근무부서 :</caption>
  250. <caption id="caption2" class="search_name" style="left:617px; top:9px; width:86px; height:17px; ">사원번호 :</caption>
  251. <input id="ipt_emplno" ref="/root/send/emplno" class="input_search" navindex="6" style="left:703px; top:8px; width:70px; height:19px; ">
  252. <script type="javascript" ev:event="xforms-value-changed">
  253. <![CDATA[
  254. rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
  255. model.refresh();
  256. ]]>
  257. </script>
  258. <script type="javascript" ev:event="onkeypress">
  259. <![CDATA[
  260. if(event.keyCode == 13)
  261. {
  262. if(ipt_emplno.value == ipt_emplno.currentText) return;
  263. ipt_emplno.value = ipt_emplno.currentText;
  264. rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
  265. model.refresh();
  266. }
  267. ]]>
  268. </script>
  269. </input>
  270. <button id="btn_empl" class="icon_search" style="left:778px; top:10px; width:16px; height:16px; ">
  271. <caption/>
  272. <script type="javascript" ev:event="DOMActivate">
  273. <![CDATA[
  274. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm,dutunitcd,dutunitnm", "", "N");
  275. model.refresh();
  276. ]]>
  277. </script>
  278. </button>
  279. <input id="ipt_emplnm" ref="/root/send/emplnm" class="input_search" navindex="7" style="left:799px; top:8px; width:120px; height:19px; ">
  280. <script type="javascript" ev:event="xforms-value-changed">
  281. <![CDATA[
  282. misfValidationCheck("01-2", "", "emplno,emplnm");
  283. model.refresh();
  284. ]]>
  285. </script>
  286. <script type="javascript" ev:event="onkeypress">
  287. <![CDATA[
  288. if(event.keyCode == 13)
  289. {
  290. ipt_emplnm.value = ipt_emplnm.currentText;
  291. misfValidationCheck("01-2", "", "emplno,emplnm");
  292. model.setFocus("btn_search");
  293. model.refresh();
  294. }
  295. ]]>
  296. </script>
  297. </input>
  298. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1125px; top:7px; width:56px; height:22px; text-align:left; ">
  299. <caption>조회</caption>
  300. <script type="javascript" ev:event="DOMActivate">
  301. <![CDATA[
  302. fRetrieve();
  303. ]]>
  304. </script>
  305. </button>
  306. <caption id="caption7" class="search_name" visibility="hidden" style="left:135px; top:10px; width:86px; height:17px; ">적용일자 :</caption>
  307. <select1 id="cmb_dutplce" ref="/root/send/dutunitcd" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:380px; top:8px; width:79px; height:19px; ">
  308. <choices>
  309. <itemset>
  310. <label/>
  311. <value/>
  312. </itemset>
  313. </choices>
  314. </select1>
  315. <input id="ipt_appdd" ref="/root/send/appdd" class="input_s_essential" navindex="1" visibility="hidden" inputtype="date" appearance="input" style="left:221px; top:9px; width:90px; height:19px; text-align:center; ">
  316. <script type="javascript" ev:event="xforms-value-changed">
  317. <![CDATA[
  318. var instcd = cmb_instcd.value;
  319. if( getStringLength(ipt_appdd.value) == "8" ) {
  320. // model.removeNodeset(cmb_instcd.attribute("ref"));
  321. // model.makeNode("/root/send/instcd");
  322. misfComboInstCdListMulti("cmb_instcd",ipt_appdd.value,"","Y");
  323. cmb_instcd.value = instcd;
  324. model.refresh();
  325. }
  326. ]]>
  327. </script>
  328. </input>
  329. <input id="ipt_dutdeptcd" ref="/root/send/dutunitcd" class="input_search" navindex="4" maxlength="10" style="left:380px; top:8px; width:80px; height:19px; text-align:center; ">
  330. <script type="javascript" ev:event="xforms-value-changed">
  331. <![CDATA[
  332. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  333. model.refresh();
  334. ]]>
  335. </script>
  336. <script type="javascript" ev:event="onkeypress">
  337. <![CDATA[
  338. if(event.keyCode == 13)
  339. {
  340. ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
  341. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  342. model.refresh();
  343. }
  344. ]]>
  345. </script>
  346. </input>
  347. <input id="ipt_dutdeptnm" ref="/root/send/dutunitnm" class="input_search" navindex="5" style="left:483px; top:8px; width:120px; height:19px; ">
  348. <script type="javascript" ev:event="xforms-value-changed">
  349. <![CDATA[
  350. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  351. model.refresh();
  352. ]]>
  353. </script>
  354. <script type="javascript" ev:event="onkeypress">
  355. <![CDATA[
  356. if(event.keyCode == 13)
  357. {
  358. ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
  359. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  360. model.refresh();
  361. }
  362. ]]>
  363. </script>
  364. </input>
  365. <button id="btn_dutdept" class="icon_search" style="left:464px; top:10px; width:16px; height:16px; ">
  366. <caption/>
  367. <script type="javascript" ev:event="DOMActivate">
  368. <![CDATA[
  369. misfOpenPopUpList("02", ipt_dutdeptcd, "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  370. model.refresh();
  371. ]]>
  372. </script>
  373. </button>
  374. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:102px; top:8px; width:153px; height:19px; ">
  375. <choices>
  376. <itemset>
  377. <label/>
  378. <value/>
  379. </itemset>
  380. </choices>
  381. </select1>
  382. <caption id="caption8" class="search_name" style="left:14px; top:9px; width:86px; height:17px; ">소속기관 :</caption>
  383. </group>
  384. <caption id="caption9" class="tit_2" style="left:5px; top:54px; width:202px; height:14px; ">관리부서 목록</caption>
  385. <line id="line4" class="line_1" style="x1:0px; y1:68px; x2:260px; y2:68px; "/>
  386. <caption id="caption3" class="tit_2" style="left:265px; top:54px; width:139px; height:13px; ">표준번표 적용대상자</caption>
  387. <datagrid id="grd_stndduttabletrgtmanlist" nodeset="/root/main/stndduttabletrgtmanlist" class="text_center" allowuserresize="false" caption="기관코드^사원번호^성명^직종^소속부서^현소속부서^근무부서^근무지^분류^팀^유닛^직군^직열^적용일자^근무유형^통상근무^통상근무^야간근무^야간근무^야간근무^정렬순서^flag|기관코드^사원번호^성명^직종^소속부서^현소속부서^근무부서^근무지^분류^팀^유닛^직군^직열^적용일자^근무유형^근무코드^근무코드명^Grade^순번^여부^정렬순서^flag" colsep="^" colwidth="0, 70, 70, 80, 0, 0, 0, 147, 89, 0, 0, 0, 0, 95, 80, 60, 113, 50, 44, 44, 40, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:264px; top:73px; width:931px; height:670px; ">
  388. <col ref="instcd" visibility="hidden"/>
  389. <col class="input_essential" disabled="true" ref="emplno" type="inputbutton"/>
  390. <col disabled="true" ref="emplnm" type="input"/>
  391. <col ref="jobkindnm"/>
  392. <col ref="posdeptcd" visibility="hidden"/>
  393. <col ref="posdeptnm" visibility="hidden"/>
  394. <col ref="dutdeptcd" visibility="hidden"/>
  395. <col ref="dutdeptnm" style="text-align:left; "/>
  396. <col editmode="inputsearch" ref="untitle" type="combo" style="text-align:left; ">
  397. <choices>
  398. <itemset>
  399. <label/>
  400. <value/>
  401. </itemset>
  402. </choices>
  403. </col>
  404. <col ref="teamcd" visibility="hidden"/>
  405. <col ref="unitcd" visibility="hidden"/>
  406. <col ref="grupjoblncd" visibility="hidden"/>
  407. <col ref="joblncd" visibility="hidden"/>
  408. <col class="input_essential" disabled="true" ref="appdd" type="inputdate" visibility="hidden" format="yyyy-mm-dd"/>
  409. <col ref="dutkindcd" type="combo">
  410. <choices>
  411. <item>
  412. <label>통상근무</label>
  413. <value>A</value>
  414. </item>
  415. <item>
  416. <label>격일제 근무</label>
  417. <value>B</value>
  418. </item>
  419. <item>
  420. <label>3교대근무</label>
  421. <value>C</value>
  422. </item>
  423. </choices>
  424. </col>
  425. <col ref="dutcd" type="inputbutton"/>
  426. <col ref="dutnm" type="input"/>
  427. <col ref="dutgrde" type="input"/>
  428. <col ref="dutseq" type="input"/>
  429. <col checkvalue="Y,N" ref="nigtdutyn" type="checkbox"/>
  430. <col ref="prntseq" type="input" style="text-align:right; "/>
  431. <col ref="flag" visibility="hidden"/>
  432. <script type="javascript" ev:event="onbuttonclick">
  433. <![CDATA[
  434. if(grd_stndduttabletrgtmanlist.col == 2) //부서코드 버튼을 눌렀을 때
  435. {
  436. rpbfOpenPopUpList("SPRPB00101", grd_stndduttabletrgtmanlist, "emplno,emplnm", "", "N");
  437. }
  438. else if(grd_stndduttabletrgtmanlist.col == grd_stndduttabletrgtmanlist.colRef("dutcd")) //근무코드 버튼을 눌렀을 때
  439. {
  440. misfOpenPopUpList("09", grd_stndduttabletrgtmanlist, "", "dutcd,dutnm", cmb_instcd.value, "instcd");
  441. }
  442. ]]>
  443. </script>
  444. <script type="javascript" ev:event="xforms-value-changed">
  445. <![CDATA[
  446. if(grd_stndduttabletrgtmanlist.col == grd_stndduttabletrgtmanlist.colRef("nigtdutyn"))
  447. {
  448. var sYn = grd_stndduttabletrgtmanlist.valueMatrix(grd_stndduttabletrgtmanlist.row, grd_stndduttabletrgtmanlist.colRef("nigtdutyn"));
  449. if(sYn == "Y")
  450. {
  451. grd_stndduttabletrgtmanlist.valueMatrix(grd_stndduttabletrgtmanlist.row, grd_stndduttabletrgtmanlist.colRef("dutkindcd")) = "C";
  452. }
  453. else
  454. {
  455. grd_stndduttabletrgtmanlist.valueMatrix(grd_stndduttabletrgtmanlist.row, grd_stndduttabletrgtmanlist.colRef("dutkindcd")) = "A";
  456. }
  457. }
  458. else if(grd_stndduttabletrgtmanlist.col == grd_stndduttabletrgtmanlist.colRef("dutkindcd"))
  459. {
  460. var sDutKind = grd_stndduttabletrgtmanlist.valueMatrix(grd_stndduttabletrgtmanlist.row, grd_stndduttabletrgtmanlist.colRef("dutkindcd"));
  461. if(sDutKind == "C")
  462. {
  463. grd_stndduttabletrgtmanlist.valueMatrix(grd_stndduttabletrgtmanlist.row, grd_stndduttabletrgtmanlist.colRef("nigtdutyn")) = "Y";
  464. }
  465. else
  466. {
  467. grd_stndduttabletrgtmanlist.valueMatrix(grd_stndduttabletrgtmanlist.row, grd_stndduttabletrgtmanlist.colRef("nigtdutyn")) = "N";
  468. }
  469. }
  470. ]]>
  471. </script>
  472. </datagrid>
  473. <datagrid id="grd_dutdeptlist" nodeset="/root/main/dutdeptlist" allowuserresize="false" caption="기관코드^부서 코드^부서 명|기관코드^부서 코드^부서 명" colsep="^" colwidth="0, 77, 150" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="23" rowsep="|" style="left:0px; top:73px; width:260px; height:670px; ">
  474. <col ref="instcd" visibility="hidden"/>
  475. <col ref="dutdeptcd" style="text-align:center; "/>
  476. <col ref="dutdeptnm"/>
  477. <script type="javascript" ev:event="onrowchanged">
  478. <![CDATA[
  479. if(JOB_RESP_CD == "1901" || JOB_RESP_CD == "1070" || grd_dutdeptlist.rows > 2)
  480. {
  481. // model.setValue("/root/send/dutunitcd", grd_dutdeptlist.valueMatrix(grd_dutdeptlist.row, grd_dutdeptlist.colRef("dutdeptcd")));
  482. // model.setValue("/root/send/dutunitnm", grd_dutdeptlist.valueMatrix(grd_dutdeptlist.row, grd_dutdeptlist.colRef("dutdeptnm")));
  483. // model.setValue("/root/send/flag", "1");
  484. //
  485. // submit("TRRPD01902");
  486. // model.dispatch("onmouseup");
  487. grd_dutdeptlist.dispatch("ondblclick");
  488. }
  489. ]]>
  490. </script>
  491. <script type="javascript" ev:event="ondblclick">
  492. <![CDATA[
  493. if(JOB_RESP_CD == "1901" || JOB_RESP_CD == "1070" || grd_dutdeptlist.rows > 2)
  494. {
  495. model.setValue("/root/send/dutunitcd", grd_dutdeptlist.valueMatrix(grd_dutdeptlist.row, grd_dutdeptlist.colRef("dutdeptcd")));
  496. model.setValue("/root/send/dutunitnm", grd_dutdeptlist.valueMatrix(grd_dutdeptlist.row, grd_dutdeptlist.colRef("dutdeptnm")));
  497. model.setValue("/root/send/dutdeptcd", grd_dutdeptlist.valueMatrix(grd_dutdeptlist.row, grd_dutdeptlist.colRef("dutdeptcd")));
  498. model.setValue("/root/send/dutdeptnm", grd_dutdeptlist.valueMatrix(grd_dutdeptlist.row, grd_dutdeptlist.colRef("dutdeptnm")));
  499. model.setValue("/root/send/flag", "1");
  500. submit("TRRPD01902");
  501. for(var i=2; i<grd_stndduttabletrgtmanlist.rows; i++)
  502. {
  503. if(grd_stndduttabletrgtmanlist.valueMatrix(i, grd_stndduttabletrgtmanlist.colRef("flag")) == "0")
  504. {
  505. grd_stndduttabletrgtmanlist.addStatus(i, "insert");
  506. misfSetReadOnlyCol(grd_stndduttabletrgtmanlist, "appdd", false, i);
  507. grd_stndduttabletrgtmanlist.valueMatrix(i, grd_stndduttabletrgtmanlist.colRef("appdd")) = ipt_appdd.value;
  508. }
  509. }
  510. model.dispatch("onmouseup");
  511. }
  512. ]]>
  513. </script>
  514. </datagrid>
  515. <button id="btn_excadd" class="btn2_letter4" style="left:1130px; top:48px; width:64px; height:19px; text-align:left; ">
  516. <caption>엑셀입력</caption>
  517. <script type="javascript" ev:event="DOMActivate">
  518. <![CDATA[
  519. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  520. grd_stndduttabletrgtmanlist.loadExcel(fileName);
  521. model.removenode("/root/main/stndduttabletrgtmanlist[1]");
  522. model.removenode("/root/main/stndduttabletrgtmanlist[1]");
  523. grd_stndduttabletrgtmanlist.rebuild();
  524. for(var i = 2 ; i < grd_stndduttabletrgtmanlist.rows; i++)
  525. {
  526. grd_stndduttabletrgtmanlist.addStatus(i,"insert");
  527. }
  528. model.refresh();
  529. ]]>
  530. </script>
  531. </button>
  532. <button id="btn_grddel" class="btn2_letter3" style="left:1009px; top:48px; width:53px; height:19px; ">
  533. <caption>행삭제</caption>
  534. <script type="javascript" ev:event="DOMActivate">
  535. <![CDATA[
  536. misfGridIUD(grd_stndduttabletrgtmanlist,"D");
  537. model.refresh();
  538. ]]>
  539. </script>
  540. </button>
  541. <button id="btn_grdadd" class="btn2_letter3" style="left:954px; top:48px; width:53px; height:19px; ">
  542. <caption>행추가</caption>
  543. <script type="javascript" ev:event="DOMActivate">
  544. <![CDATA[
  545. fAddRow();
  546. ]]>
  547. </script>
  548. </button>
  549. <button id="btn_excsave" class="btn2_letter4" style="left:1064px; top:48px; width:64px; height:19px; ">
  550. <caption>엑셀저장</caption>
  551. <script type="javascript" ev:event="DOMActivate">
  552. <![CDATA[
  553. misfSaveExcel(grd_stndduttabletrgtmanlist);
  554. ]]>
  555. </script>
  556. </button>
  557. <output id="output1" ref="/root/send/dutdeptcd" style="left:480px; top:45px; width:25px; height:19px; "/>
  558. <output id="output2" ref="/root/send/dutdeptnm" style="left:515px; top:45px; width:25px; height:19px; "/>
  559. </group>
  560. </xhtml:body>
  561. </xhtml:html>