SPRTP00400_수련관련조건.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. </main>
  11. <send>
  12. <req>
  13. <systemflag>T</systemflag>
  14. <emplnm/>
  15. </req>
  16. </send>
  17. <init/>
  18. <hidden/>
  19. <temp/>
  20. </root>
  21. </instance>
  22. <submission id="TRRTP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/apprtcdrprescondlist"/>
  23. <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/tisorddeptcdlist"/>
  24. </model>
  25. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  26. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  27. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  28. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  29. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  30. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  31. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  32. <script type="javascript" ev:event="xforms-ready">
  33. <![CDATA[
  34. //사용자 권한
  35. fCheckAuth();
  36. if (isPopup())
  37. {
  38. cap_title.text = opener.window.javascript.getParameter("SPRTP00400_title");
  39. model.makeValue("/root/temp/reqlist", opener.window.javascript.getParameter("SPRTP00400_reqlist"));
  40. model.makeValue("/root/temp/essnlist", opener.window.javascript.getParameter("SPRTP00400_essnlist"));
  41. model.makeValue("/root/temp/valupath", opener.window.javascript.getParameter("SPRTP00400_valupath"));
  42. model.makeValue("/root/temp/ipflaglist", opener.window.javascript.getParameter("SPRTP00400_irflaglist"));
  43. }
  44. //cap_title.text = "aaa";
  45. //model.makeValue("/root/temp/reqlist", "yy,emplno,deptcd,instcd,supinfqurtyyflag,apprtcdrflag");
  46. //model.makeValue("/root/temp/reqlist", "yy,emplno,deptcd,instcd,supinfqurtyyflag,apprtcdrflag,dentyn,trngflag13");
  47. //model.makeValue("/root/temp/essnlist", "deptcd");
  48. if (model.getValue("/root/temp/reqlist") == "")
  49. {
  50. btn_prn.disabled = true;
  51. return;
  52. }
  53. var today = getCurrentDate();
  54. var cur_yy = parseInt(today.substring(0, 4));
  55. var cur_mm = today.substring(4,6);
  56. // 연도 default 값은 금년이 되도록 수정 (2008.08.19 정성욱 수정)
  57. /*if (opener.window.javascript.getParameter("SPRTP00400_yydiff") != "")
  58. {
  59. cur_yy += parseInt(opener.window.javascript.getParameter("SPRTP00400_yydiff"));
  60. }
  61. */
  62. var reqArr = fGetStrToArr(model.getValue("/root/temp/reqlist"));
  63. var ctrl;
  64. var pos_col1left = 10;
  65. var pos_col2left = 310;
  66. var pos_left = pos_col1left;
  67. var pos_top = 10;
  68. var irflag = model.getValue("/root/temp/ipflaglist")
  69. for (var i=0; i<reqArr.length; i++)
  70. {
  71. if (reqArr[i] == "fromdd" || reqArr[i] == "todd")
  72. {
  73. ctrl = document.controls("grup_fromto");
  74. }
  75. else
  76. {
  77. ctrl = document.controls("grup_" + reqArr[i]);
  78. }
  79. if (ctrl.attribute("visibility") == "hidden")
  80. {
  81. ctrl.attribute("left") = pos_left;
  82. ctrl.attribute("top") = pos_top;
  83. pos_top += parseInt(ctrl.attribute("height"));
  84. ctrl.attribute("visibility") = "visible";
  85. }
  86. if (reqArr[i] == "yy") {
  87. model.makeValue("/root/send/req/yy", cur_yy);
  88. } else if (reqArr[i] == "fromdd" || reqArr[i] == "todd") {
  89. model.makeValue("/root/send/req/" + reqArr[i], today);
  90. // } else if (reqArr[i] == "mm2") {
  91. // model.makeValue("/root/send/req/mm" , "");
  92. } else {
  93. model.makeValue("/root/send/req/" + reqArr[i], "");
  94. }
  95. if (reqArr[i] == "instcd") {
  96. rszfGetLabelControlComboList("R0314", "cmb_instcd", "detldesc");
  97. addComboItem( "cmb_instcd", "전체", "", "above");
  98. }
  99. else if (reqArr[i] == "deptcd") {
  100. submit("TRRTS00602");
  101. }
  102. else if (reqArr[i] == "supinfqurtyyflag") {
  103. fAddComCdList("R0237", "rdo_supinfqurtyyflag");
  104. }
  105. else if (reqArr[i] == "apprtcdrflag") {
  106. fAddComCdList("R0151", "rdo_apprtcdrflag");
  107. }
  108. else if (reqArr[i] == "dentyn") {
  109. fAddComCdList("R0239", "rdo_dentyn");
  110. }
  111. else if (reqArr[i] == "gvnoffcordflag") {
  112. fAddComCdList("R0091", "chk_gvnoffcordflag");
  113. // } else if (reqArr[i] == "mm2") {
  114. // fAddComCdList("R0376", "cmb_mm2");
  115. }
  116. else if (reqArr[i] == "mm") {
  117. if (irflag == "R") {
  118. fAddComCdList("R0376", "cmb_mm");
  119. }
  120. else {
  121. fAddComCdList("R0009", "cmb_mm");
  122. }
  123. }
  124. }
  125. pos_top += 5;
  126. roundrect1.attribute("height") = pos_top;
  127. pos_top += 5;
  128. btn_prn.attribute("top") = pos_top;
  129. /*pos_top += 15 + parseInt(btn_prn.attribute("height"));
  130. group2.attribute("height") = pos_top;
  131. pos_top += 5;
  132. window.height = pos_top;*/
  133. if (g_comcd_grupids != "")
  134. {
  135. misfComboComCdListMulti(g_comcd_grupids, g_comcd_ctrls);
  136. var sCtrls = g_comcd_ctrls.split(",")
  137. for(var i = 0 ; i < sCtrls.length ; i++)
  138. {
  139. if(sCtrls[i] == "rdo_supinfqurtyyflag"){
  140. addComboItem( "rdo_supinfqurtyyflag", "전체", "", "above");
  141. }
  142. else if(sCtrls[i] == "cmb_deptcd"){
  143. addComboItem( "cmb_deptcd", "전체", "", "above");
  144. }
  145. else if(sCtrls[i] == "cmb_mm" ){
  146. addComboItem( "cmb_mm", "전체", "", "above");
  147. }
  148. // else if(sCtrls[i] == "cmb_mm2"){
  149. // addComboItem( "cmb_mm2", "전체", "", "above");
  150. // }
  151. }
  152. }
  153. // alert(cmb_mm.choices.itemset.attribute("nodeset"));
  154. // alert(cmb_mm.choices.itemset.label.attribute("ref"));
  155. // alert(cmb_mm.choices.itemset.value.attribute("ref"));
  156. model.refresh();
  157. ]]>
  158. </script>
  159. <script type="javascript">
  160. <![CDATA[
  161. var g_comcd_grupids = "";
  162. var g_comcd_ctrls = "";
  163. function fAddComCdList(grupid, ctrlid)
  164. {
  165. if (g_comcd_grupids != "")
  166. g_comcd_grupids += ",";
  167. g_comcd_grupids += grupid;
  168. if (g_comcd_ctrls != "")
  169. g_comcd_ctrls += ",";
  170. g_comcd_ctrls += ctrlid;
  171. }
  172. //========================================================================================
  173. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  174. //========================================================================================
  175. function fCheckAuth() {
  176. btn_prn.disabled = !checkAuth("P") ;
  177. }
  178. function fGetStrToArr(str)
  179. {
  180. return str.split(",");
  181. }
  182. ]]>
  183. </script>
  184. </xhtml:head>
  185. <xhtml:body pagewidth="332" pageheight="525">
  186. <group id="group1" style="left:5px; top:0px; width:327px; height:13px; ">
  187. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:295px; height:13px; ">수련관련 출력 조회조건</caption>
  188. </group>
  189. <group id="group2" scroll="auto" style="left:5px; top:19px; width:322px; height:506px; ">
  190. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:320px; height:480px; background-color:#fffbf2; border-color:#ffd799; "/>
  191. <group id="grup_yy" visibility="hidden" style="left:10px; top:10px; width:300px; height:30px; ">
  192. <caption id="cap_yy" class="search_name" style="left:10px; top:5px; width:135px; height:17px; ">년(year)</caption>
  193. <input id="ipt_yy" ref="/root/send/req/yy" class="input_search" maxlength="4" appearance="input" style="left:130px; top:5px; width:120px; height:19px; "/>
  194. </group>
  195. <group id="grup_mm" visibility="hidden" style="left:10px; top:40px; width:300px; height:30px; ">
  196. <caption id="cap_mm" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">월(month)</caption>
  197. <select1 id="cmb_mm" ref="/root/send/req/mm" class="combo_search" appearance="minimal" style="left:130px; top:5px; width:120px; height:19px; ">
  198. <choices>
  199. <itemset>
  200. <label/>
  201. <value/>
  202. </itemset>
  203. </choices>
  204. </select1>
  205. </group>
  206. <group id="grup_mm2" visibility="hidden" style="left:10px; top:40px; width:300px; height:30px; ">
  207. <caption id="caption1" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">월(month)</caption>
  208. <select1 id="cmb_mm2" ref="/root/send/req/mm" class="combo_search" appearance="minimal" style="left:130px; top:5px; width:120px; height:19px; ">
  209. <choices>
  210. <itemset>
  211. <label/>
  212. <value/>
  213. </itemset>
  214. </choices>
  215. </select1>
  216. </group>
  217. <group id="grup_instcd" visibility="hidden" style="left:10px; top:70px; width:300px; height:30px; ">
  218. <caption id="cap_instcd" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">병원</caption>
  219. <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_search" appearance="minimal" style="left:130px; top:5px; width:120px; height:19px; ">
  220. <choices>
  221. <itemset>
  222. <label/>
  223. <value/>
  224. </itemset>
  225. </choices>
  226. </select1>
  227. </group>
  228. <group id="grup_deptcd" visibility="hidden" style="left:10px; top:100px; width:300px; height:30px; ">
  229. <caption id="cap_deptcd" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">임상과</caption>
  230. <select1 id="cmb_deptcd" ref="/root/send/req/deptcd" class="combo_search" appearance="minimal" style="left:130px; top:5px; width:120px; height:19px; ">
  231. <choices>
  232. <itemset nodeset="/root/main/tisorddeptcdlist">
  233. <label ref="deptnm"/>
  234. <value ref="deptcd"/>
  235. </itemset>
  236. </choices>
  237. </select1>
  238. </group>
  239. <group id="grup_supinfqurtyyflag" visibility="hidden" style="left:10px; top:160px; width:300px; height:30px; ">
  240. <caption id="cap_supinfqurtyyflag" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">상/하반기</caption>
  241. <select1 id="rdo_supinfqurtyyflag" ref="/root/send/req/supinfqurtyyflag" appearance="full" cellspacing="0" cols="3" overflow="visible" style="left:130px; top:5px; width:165px; height:20px; border-style:none; ">
  242. <choices>
  243. <itemset>
  244. <label/>
  245. <value/>
  246. </itemset>
  247. </choices>
  248. </select1>
  249. </group>
  250. <group id="grup_apprtcdrflag" visibility="hidden" style="left:10px; top:190px; width:300px; height:30px; ">
  251. <caption id="cap_apprtcdrflag" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">전공의구분</caption>
  252. <select1 id="rdo_apprtcdrflag" ref="/root/send/req/apprtcdrflag" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:130px; top:5px; width:165px; height:20px; border-style:none; ">
  253. <choices>
  254. <itemset>
  255. <label/>
  256. <value/>
  257. </itemset>
  258. </choices>
  259. </select1>
  260. </group>
  261. <group id="grup_dentyn" visibility="hidden" style="left:10px; top:220px; width:300px; height:30px; ">
  262. <caption id="cap_dentyn" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">의/치과</caption>
  263. <select1 id="rdo_dentyn" ref="/root/send/req/dentyn" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:130px; top:5px; width:165px; height:20px; border-style:none; ">
  264. <choices>
  265. <itemset>
  266. <label/>
  267. <value/>
  268. </itemset>
  269. </choices>
  270. </select1>
  271. </group>
  272. <group id="grup_trngflag13" visibility="hidden" style="left:10px; top:250px; width:300px; height:30px; ">
  273. <caption id="cap_trngflag13" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">수료구분</caption>
  274. <select1 id="rdo_trngflag13" ref="/root/send/req/trngflag13" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:130px; top:5px; width:165px; height:20px; border-style:none; ">
  275. <choices>
  276. <item>
  277. <label>인턴수료</label>
  278. <value>1</value>
  279. </item>
  280. <item>
  281. <label>레지던트수료</label>
  282. <value>3</value>
  283. </item>
  284. </choices>
  285. </select1>
  286. </group>
  287. <group id="grup_emplno" visibility="hidden" style="left:10px; top:130px; width:300px; height:30px; ">
  288. <caption id="cap_emplno" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">사원번호</caption>
  289. <input id="ipt_emplno" ref="/root/send/req/emplno" class="input_search" maxlength="10" appearance="input" style="left:130px; top:5px; width:69px; height:19px; "/>
  290. <button id="btn_helppsn" class="icon_search" style="left:255px; top:6px; width:16px; height:16px; ">
  291. <caption/>
  292. <script type="javascript" ev:event="DOMActivate">
  293. <![CDATA[
  294. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "ipt_systemflag","N");
  295. ipt_emplno.refresh();
  296. ipt_emplnm.refresh();
  297. ]]>
  298. </script>
  299. </button>
  300. <input id="ipt_emplnm" ref="/root/send/req/emplnm" class="output_search" maxlength="10" appearance="input" style="left:198px; top:5px; width:52px; height:19px; "/>
  301. </group>
  302. <group id="grup_anual" visibility="hidden" style="left:10px; top:280px; width:300px; height:30px; ">
  303. <caption id="cap_anual" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">레지던트년차</caption>
  304. <select1 id="rdo_anual" ref="/root/send/req/anual" appearance="full" cellspacing="2" cols="5" overflow="visible" style="left:130px; top:5px; width:165px; height:20px; border-style:none; ">
  305. <choices>
  306. <item>
  307. <label>전체</label>
  308. <value/>
  309. </item>
  310. <item>
  311. <label>1</label>
  312. <value>1</value>
  313. </item>
  314. <item>
  315. <label>2</label>
  316. <value>2</value>
  317. </item>
  318. <item>
  319. <label>3</label>
  320. <value>3</value>
  321. </item>
  322. <item>
  323. <label>4</label>
  324. <value>4</value>
  325. </item>
  326. </choices>
  327. </select1>
  328. </group>
  329. <group id="grup_gvnoffcordflag" visibility="hidden" style="left:10px; top:340px; width:300px; height:136px; ">
  330. <caption id="cap_gvnoffcordflag" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">발령구분</caption>
  331. <select id="chk_gvnoffcordflag" ref="/root/send/req/gvnoffcordflag" overflow="visible" appearance="full" cellspacing="10" cols="2" sep="^" style="left:95px; top:5px; width:198px; height:123px; border-style:none; ">
  332. <choices>
  333. <itemset>
  334. <label/>
  335. <value/>
  336. </itemset>
  337. </choices>
  338. </select>
  339. </group>
  340. <group id="grup_fromto" visibility="hidden" style="left:10px; top:310px; width:300px; height:30px; ">
  341. <caption id="cap_fromto" class="search_name" style="left:10px; top:5px; width:100px; height:17px; ">기간</caption>
  342. <input id="ipt_fromdd" ref="/root/send/req/fromdd" class="input_search" inputtype="date" style="left:115px; top:5px; width:90px; height:19px; "/>
  343. <input id="ipt_todd" ref="/root/send/req/todd" class="input_search" inputtype="date" style="left:204px; top:5px; width:90px; height:19px; "/>
  344. </group>
  345. <button id="btn_prn" class="btn6_letter2" style="left:265px; top:482px; width:56px; height:22px; ">
  346. <caption>출력</caption>
  347. <script type="javascript" ev:event="DOMActivate">
  348. <![CDATA[
  349. if (model.getValue("/root/temp/essnlist") != "")
  350. {
  351. var arr = fGetStrToArr(model.getValue("/root/temp/essnlist"));
  352. var ctrl;
  353. for (var i=0; i<arr.length; i++)
  354. {
  355. var valu = model.getValue("/root/send/req/" + arr[i]);
  356. var ctrl = document.controls("cap_" + arr[i]);
  357. if (valu == "")
  358. {
  359. messageBox(ctrl.text + " 필수입력입니다.", "I", "");
  360. return;
  361. }
  362. }
  363. }
  364. if (model.getValue("/root/send/req/mm") != "")
  365. {
  366. model.setValue("/root/send/req/mm", model.getValue("/root/send/req/mm").getLeftPad(2, "0"));
  367. model.refresh();
  368. }
  369. var path = model.getValue("/root/temp/valupath");
  370. if (path == "")
  371. {
  372. path = "/root/send/req";
  373. }
  374. path += "/";
  375. var arr = fGetStrToArr(model.getValue("/root/temp/reqlist"));
  376. for (var i=0; i<arr.length; i++)
  377. {
  378. opener.model.makeValue(path+arr[i], model.getValue("/root/send/req/"+arr[i]));
  379. }
  380. model.close();
  381. ]]>
  382. </script>
  383. </button>
  384. </group>
  385. <output id="ipt_systemflag" ref="/root/send/req/systemflag" visibility="hidden" style="left:280px; top:5px; width:35px; height:19px; "/>
  386. </xhtml:body>
  387. </xhtml:html>