SMPMC01500_선택진료신청관리.xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  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. <patinfo>
  11. <patinfolist>
  12. <pid/>
  13. <hngnm/>
  14. <engnm/>
  15. <chinm/>
  16. <rrgstno1/>
  17. <rrgstno2/>
  18. <brthdd/>
  19. <sex/>
  20. <age/>
  21. <bindpid/>
  22. <hometel/>
  23. <mpphontel/>
  24. <etctel1/>
  25. <etctel2/>
  26. <smsaprvyn/>
  27. <email/>
  28. <zipcd1/>
  29. <zipcd2/>
  30. <zipcdseq/>
  31. <addr/>
  32. <detladdr/>
  33. <btype/>
  34. <rh/>
  35. <forgeryn/>
  36. <nati/>
  37. <psptno/>
  38. <recmyn/>
  39. <recmerid/>
  40. <recmerrela/>
  41. <vipyn/>
  42. <viprem/>
  43. <religncd/>
  44. <baptnm/>
  45. <chchnm/>
  46. <dethyn/>
  47. <dethdt/>
  48. <chosresn/>
  49. <animyn/>
  50. <exptresncd/>
  51. <inhospyn/>
  52. <remfact/>
  53. <outuncoamt/>
  54. <dschuncoamt/>
  55. <fstrgstrid/>
  56. <fstrgstdt/>
  57. <lastupdtrid/>
  58. <lastupdtdt/>
  59. </patinfolist>
  60. </patinfo>
  61. <popupendflag/>
  62. <spec>
  63. <choiordapplist/>
  64. </spec>
  65. <choiordapp>
  66. <orddeptcd/>
  67. <orddrid/>
  68. <fromdd/>
  69. <todd/>
  70. <apppsnnm/>
  71. <rela/>
  72. <remfact/>
  73. <pid/>
  74. <seqno/>
  75. </choiordapp>
  76. <result>
  77. <patinfo/>
  78. </result>
  79. </main>
  80. <send>
  81. <pid/>
  82. <updatedata>
  83. <datalist/>
  84. </updatedata>
  85. </send>
  86. <init>
  87. <P0016list>
  88. <P0016>
  89. <cdnm/>
  90. <cdid/>
  91. </P0016>
  92. </P0016list>
  93. <orddeptcd>
  94. <orddeptcdlist>
  95. <cd/>
  96. <nm/>
  97. </orddeptcdlist>
  98. </orddeptcd>
  99. <orddrid>
  100. <orddridlist>
  101. <cd/>
  102. <nm/>
  103. <dp/>
  104. <sp/>
  105. </orddridlist>
  106. </orddrid>
  107. </init>
  108. <hidden>
  109. <uid>
  110. <childre>
  111. <wid/>
  112. </childre>
  113. </uid>
  114. <tmp/>
  115. </hidden>
  116. <source>
  117. <srchcond/>
  118. <pid/>
  119. <hngnm/>
  120. <rrgstno1/>
  121. <rrgstno2/>
  122. </source>
  123. </root>
  124. </instance>
  125. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  126. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  127. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  128. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  129. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  130. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  131. <script type="javascript" ev:event="xforms-ready">
  132. <![CDATA[
  133. zbcfGetCodeList(new Array("P0016"), new Array("/root/init/P0016list"));
  134. pamGetDeptCDDrIDList();
  135. fInitialize();
  136. //model.refresh();
  137. ]]>
  138. </script>
  139. <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/source" resultref="/root/main/result/patinfo"/>
  140. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  141. <submission id="TRPMC01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/spec"/>
  142. <submission id="TXPMC01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/hidden/tmp"/>
  143. </model>
  144. <script type="javascript">
  145. <![CDATA[
  146. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  147. function fInitialize() {
  148. //model.removeNodeset("/root/main/insukindcdspec/insukindcdspeclist");
  149. model.resetInstanceNode("/root/send");
  150. model.resetInstanceNode("/root/main/choiordapp");
  151. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  152. model.removeNodeset("/root/main/spec/choiordapplist");
  153. model.setFocus("ipt_pid");
  154. model.refresh();
  155. }
  156. /*
  157. //환자 정보 조회 후 환자의 나이를 계산하고, 메인화면의 fSearch() 함수를 호출한다.
  158. function fGetAge(){
  159. var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  160. if(pid != "" || pid != null){
  161. var birthdd = model.getValue("/root/main/patinfo/patinfolist/brthdd");
  162. if (isValidDateTime(birthdd,"YYYYMMDD") == true) {
  163. var age = getFullAge(birthdd);
  164. model.makeNode("/root/main/patinfo/patinfolist/age");
  165. model.setValue("/root/main/patinfo/patinfolist/age", age);
  166. model.refresh();
  167. }
  168. //fSearch는 인적사항 화면을 임포트 해간 화면에서 구현해 주어야 하는 함수이다.
  169. model.setValue("/root/main/popupendflag", "ok");
  170. fSearch();
  171. }
  172. }
  173. */
  174. //선택진료신청내역 조회
  175. function fSearch(){
  176. if( model.getValue("/root/main/popupendflag") == "ok" ){
  177. var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  178. if( pid.length <= 0 ){
  179. messageBox("환자번호가 정확이 입력되지", "E007");
  180. return false;
  181. }
  182. model.setValue("/root/send/pid", pid);
  183. model.resetInstanceNode("/root/main/choiordapp");
  184. model.removeNodeset("/root/main/spec/choiordapplist");
  185. submit("TRPMC01501");
  186. //var rowCnt = grd_choiordapp.rows - grd_choiordapp.fixedRows + 1;
  187. //if(rowCnt < 2){
  188. //fAddRow();
  189. //}
  190. }
  191. }
  192. //선택진료신청내역 리스트 한행 추가
  193. function fAddRow(){
  194. grd_choiordapp.addItem(); // 입력할 행 추가.
  195. var cur_row = grd_choiordapp.bottomRow; // 추가된 행 번호 가져오기
  196. // 그리드에 추가
  197. model.setValue("/root/main/spec/choiordapplist["+cur_row+"]/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  198. model.refresh();
  199. }
  200. ]]>
  201. </script>
  202. </xhtml:head>
  203. <xhtml:body guideline="1,717;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  204. <group id="group4" scroll="auto" style="left:0px; top:616px; width:719px; height:27px; ">
  205. <button id="button10" class="btn4_letter3" style="left:651px; top:5px; width:68px; height:22px; ">
  206. <caption>초기화</caption>
  207. <script type="javascript" ev:event="DOMActivate">
  208. <![CDATA[
  209. fInitialize();
  210. ]]>
  211. </script>
  212. </button>
  213. <button id="button4" class="btn4_letter2" style="left:592px; top:5px; width:56px; height:22px; ">
  214. <caption>저장</caption>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. model.setValue("/root/send/updatedata/datalist",grd_choiordapp.getupdatedata());
  218. if ( submit("TXPMC01502") ) {
  219. model.copyNode("/root/main/spec", "/root/hidden/tmp");
  220. //grd_insukind.clearStatus(); // submit() 성공하면 그리드의 i,u 상태 제거
  221. //submit("TRPMB00201");
  222. model.refresh();
  223. grd_choiordapp.clearStatus();
  224. }
  225. ]]>
  226. </script>
  227. </button>
  228. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:719px; y2:0px; "/>
  229. </group>
  230. <group id="group2" scroll="auto" style="left:0px; top:13px; width:719px; height:603px; ">
  231. <group id="group5" style="left:0px; top:0px; width:719px; height:197px; ">
  232. <caption id="caption45" class="cell_1" style="left:0px; top:102px; width:100px; height:95px; vertical-align:middle; ">참고사항</caption>
  233. <line id="line22" class="line_3" style="x1:0px; y1:196px; x2:718px; y2:196px; "/>
  234. <output id="input20" ref="/root/main/patinfo/patinfolist/mpphontel" class="output_fix" appearance="output" style="left:618px; top:55px; width:100px; height:19px; "/>
  235. <output id="input22" ref="/root/main/patinfo/patinfolist/etctel1" class="output_fix" appearance="output" style="left:618px; top:79px; width:100px; height:19px; "/>
  236. <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:95px; height:13px; ">인적사항</caption>
  237. <line id="line14" class="line_2" style="x1:0px; y1:100px; x2:718px; y2:100px; "/>
  238. <line id="line15" class="line_2" style="x1:0px; y1:76px; x2:718px; y2:76px; "/>
  239. <line id="line16" class="line_2" style="x1:0px; y1:52px; x2:718px; y2:52px; "/>
  240. <line id="line17" class="line_1" style="x1:0px; y1:25px; x2:718px; y2:25px; "/>
  241. <textarea id="textarea2" ref="/root/main/patinfo/patinfolist/remfact" disabled="true" style="left:103px; top:103px; width:615px; height:91px; "/>
  242. <input id="ipt_hngnm" ref="/root/main/patinfo/patinfolist/hngnm" class="input_s_essential" navindex="2" imemode="hangul" style="left:103px; top:55px; width:203px; height:19px; ">
  243. <script type="javascript" ev:event="onkeypress">
  244. <![CDATA[
  245. model.setValue("/root/source/srchcond", "2");
  246. model.setValue("/root/source/hngnm", ipt_hngnm.currentText);
  247. inputEnterKey("btn_search", "DOMActivate");
  248. ]]>
  249. </script>
  250. </input>
  251. <output id="input21" ref="/root/main/patinfo/patinfolist/engnm" class="output_fix" appearance="output" style="left:309px; top:55px; width:203px; height:19px; "/>
  252. <output id="input23" ref="/root/main/patinfo/patinfolist/brthdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:412px; top:79px; width:100px; height:19px; "/>
  253. <output id="output1" ref="/root/main/patinfo/patinfolist/sex" class="output_fix" style="left:412px; top:31px; width:49px; height:19px; "/>
  254. <output id="output5" ref="/root/main/patinfo/patinfolist/age" class="output_fix" style="left:464px; top:31px; width:48px; height:19px; "/>
  255. <output id="input19" ref="/root/main/patinfo/patinfolist/hometel" class="output_fix" appearance="output" style="left:618px; top:31px; width:100px; height:19px; "/>
  256. <input id="ipt_rrgstno1" ref="/root/main/patinfo/patinfolist/rrgstno1" class="input_s_essential" navindex="3" maxlength="6" format="999999" style="left:103px; top:79px; width:100px; height:19px; ">
  257. <script type="javascript" ev:event="onkeypress">
  258. <![CDATA[
  259. model.setValue("/root/source/srchcond", "3");
  260. model.setValue("/root/source/rrgstno1", ipt_rrgstno1.currentText);
  261. model.setValue("/root/source/rrgstno2", ipt_rrgstno2.currentText);
  262. inputEnterKey("btn_search", "DOMActivate");
  263. ]]>
  264. </script>
  265. </input>
  266. <input id="ipt_rrgstno2" ref="/root/main/patinfo/patinfolist/rrgstno2" class="input_s_essential" navindex="4" maxlength="7" style="left:206px; top:79px; width:100px; height:19px; ">
  267. <script type="javascript" ev:event="onkeypress">
  268. <![CDATA[
  269. model.setValue("/root/source/srchcond", "3");
  270. model.setValue("/root/source/rrgstno1", ipt_rrgstno1.currentText);
  271. model.setValue("/root/source/rrgstno2", ipt_rrgstno2.currentText);
  272. inputEnterKey("btn_search", "DOMActivate");
  273. ]]>
  274. </script>
  275. </input>
  276. <button id="btn_search" class="icon_search" navindex="5" style="left:290px; top:31px; width:16px; height:16px; ">
  277. <caption/>
  278. <script type="javascript" ev:event="DOMActivate">
  279. <![CDATA[
  280. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  281. fSearch();
  282. //환자 나이 계산과 메인화면의 fSearch() 함수 콜!
  283. //fGetAge();
  284. ]]>
  285. </script>
  286. </button>
  287. <input id="ipt_pid" ref="/root/main/patinfo/patinfolist/pid" class="input_s_essential" navindex="1" maxlength="10" style="left:103px; top:31px; width:184px; height:19px; ">
  288. <script type="javascript" ev:event="onkeypress">
  289. <![CDATA[
  290. if(event.keyCode == "13") {
  291. model.setValue("/root/source/srchcond", "1");
  292. model.setValue("/root/source/pid", ipt_pid.currentText);
  293. //inputEnterKey("btn_search", "DOMActivate");
  294. //환자등록번호 체크
  295. if(ipt_pid.currentText.length >= 1 ){
  296. model.resetInstanceNode("/root/main/result");
  297. model.makeNode("/root/main/result/patinfo");
  298. if(submit("TRPMC02500")){
  299. //fSearch는 인적사항 화면을 임포트 해간 화면에서 구현해 주어야 하는 함수이다.
  300. if( getNodesetCount("/root/main/result/patinfo/patinfolist") > 0 ){
  301. model.copyNode("/root/main/patinfo", "/root/main/result/patinfo");
  302. model.setValue("/root/main/popupendflag", "ok");
  303. fSearch();
  304. }else{
  305. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  306. messageBox("없는 환자 번호 입니다.", "E999", "");
  307. }
  308. }
  309. model.refresh();
  310. }else{
  311. messageBox("환자등록번호를 정확히", "C001");
  312. }
  313. }
  314. ]]>
  315. </script>
  316. </input>
  317. <caption id="caption21" class="cell_1" style="left:0px; top:30px; width:100px; height:23px; vertical-align:middle; ">환자번호</caption>
  318. <caption id="caption22" class="cell_1" style="left:515px; top:30px; width:100px; height:23px; vertical-align:middle; ">전화[자택]</caption>
  319. <caption id="caption34" class="cell_1" style="left:515px; top:54px; width:100px; height:23px; vertical-align:middle; ">전화[휴대]</caption>
  320. <caption id="caption23" class="cell_1" style="left:0px; top:54px; width:100px; height:23px; vertical-align:middle; ">성명[한/영]</caption>
  321. <caption id="caption57" class="cell_1" style="left:309px; top:30px; width:100px; height:23px; vertical-align:middle; ">성별/나이</caption>
  322. <caption id="caption35" class="cell_1" style="left:0px; top:78px; width:100px; height:23px; vertical-align:middle; ">주민번호</caption>
  323. <caption id="caption36" class="cell_1" style="left:515px; top:78px; width:100px; height:23px; vertical-align:middle; ">전화[기타]</caption>
  324. <caption id="caption47" class="cell_1" style="left:309px; top:78px; width:100px; height:23px; vertical-align:middle; ">생년월일</caption>
  325. </group>
  326. <group id="group6" style="left:0px; top:272px; width:719px; height:331px; ">
  327. <datagrid id="grd_choiordapp" nodeset="/root/main/spec/choiordapplist" autoresize="true" caption="시작일자^종료일자^진료과^진료의사^신청자^환자와의 관계^참고사항^seqno^pid" colsep="^" colwidth="85, 85, 130, 80, 80, 90, 145, 100, 100" dataheight="23" defaultrows="2" extendlastcol="false" mergecellsfixedrows="byrowrec" rowheader="update" rowheight="25" rowsep="|" style="left:1px; top:30px; width:718px; height:300px; ">
  328. <col disabled="true" ref="fromdd" type="inputdate"/>
  329. <col disabled="true" ref="todd" type="inputdate"/>
  330. <col ref="orddeptcd"/>
  331. <col ref="orddrid"/>
  332. <col disabled="true" ref="apppsnnm"/>
  333. <col disabled="true" ref="rela" type="combo">
  334. <choices>
  335. <itemset nodeset="/root/init/P0016list/P0016">
  336. <label ref="cdnm"/>
  337. <value ref="cdid"/>
  338. </itemset>
  339. </choices>
  340. </col>
  341. <col disabled="true" ref="remfact"/>
  342. <col ref="seqno" visibility="hidden"/>
  343. <col ref="pid" visibility="hidden"/>
  344. <script type="javascript" ev:event="onrowchanged">
  345. <![CDATA[
  346. var cur_row = grd_choiordapp.row;
  347. if ( cur_row > 0 ) {
  348. model.copyNode("/root/main/choiordapp","/root/main/spec/choiordapplist["+cur_row+"]");
  349. model.refresh();
  350. cmb_orddeptcd.dispatch("xforms-value-changed");
  351. model.setValue("/root/main/choiordapp/orddrid", model.getValue("/root/main/spec/choiordapplist["+cur_row+"]/orddrid"));
  352. model.refresh();
  353. }
  354. ]]>
  355. </script>
  356. </datagrid>
  357. <caption id="caption46" class="tit_2" style="left:5px; top:10px; width:165px; height:14px; ">선택진료신청내역 리스트</caption>
  358. <line id="line18" class="line_1" style="x1:0px; y1:25px; x2:718px; y2:25px; "/>
  359. <button id="button14" class="btn5_letter5" style="left:643px; top:5px; width:75px; height:19px; ">
  360. <caption>선택행삭제</caption>
  361. <script type="javascript" ev:event="DOMActivate">
  362. <![CDATA[
  363. if(messageBox("선택된 행을", "Q001") != 6) return;
  364. var cur_row = grd_choiordapp.row; // 행 번호 가져오기
  365. if( cur_row > 0 ){
  366. //디비에 저장되지 않은 데이타는 그냥 삭제한다. 1: insert , 3 : insert and update
  367. if (grd_choiordapp.rowStatus(cur_row) == "1" || grd_choiordapp.rowStatus(cur_row) == "3"){
  368. grd_choiordapp.deleteItem(cur_row);
  369. //grd_choiordapp.rebuild();
  370. model.refresh();
  371. return;
  372. }
  373. //'delete' 상태값을 세팅한다.
  374. grd_choiordapp.addStatus(cur_row, "delete");
  375. //삭제할 행의 정보를 send에 넣는다.
  376. model.setValue("root/send/updatedata/datalist", grd_choiordapp.getUpdateData("delete"));
  377. if ( submit("TXPMC01502") ) {
  378. grd_choiordapp.deleteItem( cur_row);
  379. model.refresh();
  380. //grd_choiordapp.rebuild();
  381. }else grd_choiordapp.removeStatus(cur_row, "delete");
  382. }else{
  383. messageBox("삭제할 행을 다시", "C002");
  384. grd_insukind.removeStatus(cur_row, "delete");
  385. }
  386. ]]>
  387. </script>
  388. </button>
  389. </group>
  390. <group id="group7" style="left:0px; top:197px; width:719px; height:78px; ">
  391. <line id="line20" class="line_2" style="x1:0px; y1:52px; x2:718px; y2:52px; "/>
  392. <caption id="caption37" class="cell_1" style="left:409px; top:30px; width:65px; height:23px; vertical-align:middle; ">시작일자</caption>
  393. <caption id="caption1" class="cell_1" style="left:0px; top:54px; width:65px; height:23px; vertical-align:middle; ">신청자</caption>
  394. <caption id="caption40" class="cell_1" style="left:0px; top:30px; width:65px; height:23px; vertical-align:middle; ">진료과</caption>
  395. <input id="input27" ref="/root/main/choiordapp/remfact" class="input_default" style="left:477px; top:55px; width:241px; height:19px; "/>
  396. <caption id="caption38" class="tit_2" style="left:5px; top:10px; width:165px; height:14px; ">선택진료신청내역</caption>
  397. <input id="ipt_fromdd" ref="/root/main/choiordapp/fromdd" class="input_default" inputtype="date" style="left:477px; top:31px; width:85px; height:19px; "/>
  398. <line id="line21" class="line_1" style="x1:0px; y1:25px; x2:718px; y2:25px; "/>
  399. <input id="ipt_todd" ref="/root/main/choiordapp/todd" class="input_default" inputtype="date" style="left:633px; top:31px; width:85px; height:19px; "/>
  400. <select1 id="cmb_orddeptcd" ref="/root/main/choiordapp/orddeptcd" class="combo_default" appearance="minimal" style="left:68px; top:31px; width:150px; height:19px; ">
  401. <choices>
  402. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  403. <label ref="nm"/>
  404. <value ref="cd"/>
  405. </itemset>
  406. </choices>
  407. <script type="javascript" ev:event="xforms-value-changed">
  408. <![CDATA[
  409. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
  410. model.setValue("/root/main/choiordapp/orddrid", "");
  411. cmb_orddrid.refresh();
  412. ]]>
  413. </script>
  414. </select1>
  415. <select1 id="cmb_orddrid" ref="/root/main/choiordapp/orddrid" class="combo_default" appearance="minimal" style="left:289px; top:31px; width:117px; height:19px; ">
  416. <choices>
  417. <itemset nodeset="/root/init/orddrid/orddridlist">
  418. <label ref="nm"/>
  419. <value ref="cd"/>
  420. </itemset>
  421. </choices>
  422. </select1>
  423. <input id="input2" ref="/root/main/choiordapp/apppsnnm" class="input_default" style="left:68px; top:55px; width:150px; height:19px; "/>
  424. <select1 id="combo1" ref="/root/main/choiordapp/rela" class="combo_default" appearance="minimal" style="left:289px; top:55px; width:117px; height:19px; ">
  425. <choices>
  426. <itemset nodeset="/root/init/P0016list/P0016">
  427. <label ref="cdnm"/>
  428. <value ref="cdid"/>
  429. </itemset>
  430. </choices>
  431. <script type="javascript" ev:event="xforms-value-changed">
  432. <![CDATA[
  433. if( combo1.value == '1' ){
  434. model.setValue("/root/main/choiordapp/apppsnnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  435. model.refresh();
  436. }
  437. ]]>
  438. </script>
  439. </select1>
  440. <caption id="caption39" class="cell_1" style="left:409px; top:54px; width:65px; height:23px; vertical-align:middle; ">참고사항</caption>
  441. <caption id="caption4" class="cell_1" style="left:565px; top:30px; width:65px; height:23px; vertical-align:middle; ">종료일자</caption>
  442. <caption id="caption3" class="cell_1" style="left:221px; top:30px; width:65px; height:23px; vertical-align:middle; ">진료의사</caption>
  443. <caption id="caption5" class="cell_1" style="left:221px; top:54px; width:65px; height:23px; vertical-align:middle; ">관계</caption>
  444. <line id="line19" class="line_3" style="x1:0px; y1:76px; x2:718px; y2:76px; "/>
  445. <button id="button1" class="btn2_letter3" style="left:665px; top:5px; width:53px; height:19px; ">
  446. <caption>지우기</caption>
  447. <script type="javascript" ev:event="DOMActivate">
  448. <![CDATA[
  449. model.resetInstanceNode("/root/main/choiordapp");
  450. model.refresh();
  451. ]]>
  452. </script>
  453. </button>
  454. <button id="button2" class="btn2_letter2" style="left:575px; top:5px; width:42px; height:19px; ">
  455. <caption>추가</caption>
  456. <script type="javascript" ev:event="DOMActivate">
  457. <![CDATA[
  458. //입력값 체크
  459. if( model.getValue("/root/main/choiordapp/orddeptcd") == "" ){
  460. messageBox("진료과를 선택해 주세요.", "E999", "");
  461. }else if( model.getValue("/root/main/choiordapp/orddrid") == "" ){
  462. messageBox("진료의사를 선택해 주세요.", "E999", "");
  463. }
  464. grd_choiordapp.addItem(); // 입력할 행 추가.
  465. var cur_row = grd_choiordapp.bottomRow; // 추가된 행 번호 가져오기
  466. //시작일지 미 입력시 오늘 날자로 세팅
  467. if( model.getValue("/root/main/choiordapp/fromdd") == "" ){
  468. var curDate = getCurrentDate();
  469. model.setValue("/root/main/choiordapp/fromdd", curDate);
  470. }
  471. // 그리드에 추가
  472. model.copyNode("/root/main/spec/choiordapplist["+cur_row+"]","/root/main/choiordapp");
  473. //model.makeNode("/root/main/spec/choiordapplist["+cur_row+"]/pid");
  474. model.setValue("/root/main/spec/choiordapplist["+cur_row+"]/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  475. model.refresh();
  476. ]]>
  477. </script>
  478. </button>
  479. <button id="button3" class="btn2_letter2" style="left:620px; top:5px; width:53px; height:19px; ">
  480. <caption>수정</caption>
  481. <script type="javascript" ev:event="DOMActivate">
  482. <![CDATA[
  483. var cur_row = grd_choiordapp.row; // 행 번호 가져오기
  484. if( cur_row > 0 ){
  485. if( grd_choiordapp.valueMatrix( cur_row, 3 ) == cmb_orddeptcd.value &&
  486. grd_choiordapp.valueMatrix( cur_row, 4 ) == cmb_orddrid.value &&
  487. grd_choiordapp.valueMatrix( cur_row, 2 ) == ipt_todd.value){
  488. // 그리드에 추가
  489. model.copyNode("/root/main/spec/choiordapplist["+cur_row+"]","/root/main/choiordapp");
  490. grd_choiordapp.addStatus(cur_row,"update"); // 행을 업데이트 상태로 변경
  491. model.refresh();
  492. }else{
  493. cmb_orddeptcd.value = grd_choiordapp.valueMatrix( cur_row, 3 );
  494. cmb_orddeptcd.dispatch("xforms-value-changed");
  495. cmb_orddrid.value = grd_choiordapp.valueMatrix( cur_row, 4 );
  496. ipt_todd.value = grd_choiordapp.valueMatrix( cur_row, 2 );
  497. model.refresh();
  498. messageBox("진료과, 진료의사, 종료일자 컬럼은 변경", "E001");
  499. }
  500. }
  501. ]]>
  502. </script>
  503. </button>
  504. </group>
  505. </group>
  506. <group id="group1" style="left:0px; top:0px; width:719px; height:13px; ">
  507. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:13px; ">선택진료신청관리</caption>
  508. </group>
  509. </xhtml:body>
  510. </xhtml:html>