SPMMO08500_병기분류조회.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  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. </patinfo>
  13. <tempanad>
  14. <row>
  15. <genrdd/>
  16. <genrno/>
  17. <histno/>
  18. <instcd/>
  19. <pid/>
  20. <orddd/>
  21. <cretno/>
  22. <genrflagcd/>
  23. <histcd/>
  24. <prcpdd/>
  25. <drugthrpcd/>
  26. <drugtims/>
  27. <drugpridstartno/>
  28. <drugpridstartdayno/>
  29. <drugpridendno/>
  30. <drugpridenddayno/>
  31. <rgstdeptcd/>
  32. <rgstdd/>
  33. <rgsttm/>
  34. <rgstrid/>
  35. <updtdeptcd/>
  36. <updtdd/>
  37. <updttm/>
  38. <updtrid/>
  39. <fstrgstrid/>
  40. <fstrgstdt/>
  41. <lastupdtrid/>
  42. <lastupdtdt/>
  43. <tempcol1/>
  44. <tempcol2/>
  45. <tempcol3/>
  46. <status/>
  47. <rgstrnm/>
  48. <updtrnm/>
  49. </row>
  50. </tempanad>
  51. <tempstnm>
  52. <row>
  53. <genrdd/>
  54. <genrno/>
  55. <histno/>
  56. <instcd/>
  57. <histcd/>
  58. <pid/>
  59. <orddd/>
  60. <cretno/>
  61. <orddeptcd/>
  62. <genrflagcd/>
  63. <icd10cd/>
  64. <diagcd/>
  65. <stagecd/>
  66. <tnmcd1/>
  67. <tnmcd2/>
  68. <tnmcd3/>
  69. <stageflag/>
  70. <cncrflag1/>
  71. <cncrflagkind1/>
  72. <cncrflag2/>
  73. <cncrflagkind2/>
  74. <inptimpsiflag/>
  75. <inptimpsiresncd/>
  76. <rgstdeptcd/>
  77. <rgstdd/>
  78. <rgsttm/>
  79. <rgstrid/>
  80. <updtdeptcd/>
  81. <updtdd/>
  82. <updttm/>
  83. <updtrid/>
  84. <fstrgstrid/>
  85. <fstrgstdt/>
  86. <lastupdtrid/>
  87. <lastupdtdt/>
  88. <inptimpsietcresnnm/>
  89. <mataflag/>
  90. <cncrflag/>
  91. <diagnm/>
  92. <attackflag/>
  93. <tempcol1/>
  94. <tempcol2/>
  95. <tempcol3/>
  96. <status/>
  97. <displaystage/>
  98. <rgstrnm/>
  99. <updtrnm/>
  100. </row>
  101. </tempstnm>
  102. </main>
  103. <send>
  104. <param>
  105. <srchcond/>
  106. <hngnm/>
  107. </param>
  108. </send>
  109. <hidden/>
  110. <init>
  111. <srchcond>
  112. <pid/>
  113. <fromdd/>
  114. <todd/>
  115. <dcsrch>false</dcsrch>
  116. <hngnm/>
  117. <sa/>
  118. <serdiagno/>
  119. <serdiagfromdd/>
  120. <serdiagtodd/>
  121. </srchcond>
  122. <genrflagcd/>
  123. <inptimpsiresncd/>
  124. <cncrflagkind2/>
  125. <cncrflagkind1/>
  126. <stageflag/>
  127. <drugthrpcd/>
  128. </init>
  129. <result>
  130. <savetnmlist/>
  131. <savecncrlist/>
  132. </result>
  133. </root>
  134. </instance>
  135. <script type="javascript" ev:event="xforms-ready">
  136. <![CDATA[
  137. var dd = getCurrentDate();
  138. model.setValue("/root/init/srchcond/fromdd", (dd.toDate().getAddDate(-6, "M")).getDateFormat() );
  139. model.setValue("/root/init/srchcond/todd", dd);
  140. if ( getPatientInfo("pid") != '' ) {
  141. model.setValue("/root/init/srchcond/pid", getPatientInfo("pid") );
  142. model.setValue("/root/init/srchcond/hngnm", getPatientInfo("hngnm") );
  143. model.setValue("/root/init/srchcond/sa", getPatientInfo("sex") + '/' + getPatientInfo("age") );
  144. submit("TRMMO08502", false);
  145. submit("TRMMO08501", false)
  146. }
  147. model.refresh();
  148. ]]>
  149. </script>
  150. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  151. <submission id="TRMMO08501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/srchcond" resultref="/root/main"/>
  152. <script type="javascript" ev:event="xforms-model-construct-done">
  153. <![CDATA[
  154. zbcfGetCodeList(new Array( "M0010","M0326","M0327","M0328","M0329", "M0331" ),
  155. new Array("/root/init/genrflagcd", "/root/init/inptimpsiresncd", "/root/init/cncrflagkind2", "/root/init/cncrflagkind1","/root/init/stageflag", "/root/init/drugthrpcd"));
  156. ]]>
  157. </script>
  158. <submission id="TRMMO08502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/srchcond" resultref="/root/init/srchcond"/>
  159. </model>
  160. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  161. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  162. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  163. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  164. </xhtml:head>
  165. <xhtml:body pagewidth="1080" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  166. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1050px; height:64px; background-color:#fffbf2; border-color:#ffd799; "/>
  167. <caption id="caption5" class="search_name" style="left:12px; top:12px; width:86px; height:17px; ">등록번호 :</caption>
  168. <caption id="caption2" class="search_name" style="left:528px; top:12px; width:86px; height:17px; ">내원일 :</caption>
  169. <caption id="caption3" class="tit_2" style="left:0px; top:79px; width:113px; height:13px; vertical-align:middle; ">Stage 분류</caption>
  170. <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1050px; y2:95px; "/>
  171. <input id="ipt_pid" ref="/root/init/srchcond/pid" class="input_search" style="left:104px; top:10px; width:66px; height:19px; ">
  172. <script type="javascript" ev:event="onkeydown">
  173. <![CDATA[
  174. inputEnterKey("button1", "DOMActivate");
  175. ]]>
  176. </script>
  177. </input>
  178. <caption id="caption4" style="left:702px; top:5px; width:15px; height:30px; ">~</caption>
  179. <caption id="caption6" class="tit_2" style="left:0px; top:445px; width:118px; height:13px; vertical-align:middle; ">투여단계 및 주기</caption>
  180. <line id="line2" class="line_1" style="x1:0px; y1:460px; x2:1050px; y2:460px; "/>
  181. <input id="ipt_fromprcpdd" ref="/root/init/srchcond/fromdd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:608px; top:10px; width:90px; height:19px; "/>
  182. <input id="ipt_toprcpdd" ref="/root/init/srchcond/todd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:720px; top:10px; width:90px; height:19px; "/>
  183. <button id="btn_srch" class="btn1_letter4" style="left:939px; top:22px; width:80px; height:22px; ">
  184. <caption>이력조회</caption>
  185. <script type="javascript" ev:event="DOMActivate">
  186. <![CDATA[
  187. submit ( "TRMMO08501" , true);
  188. ]]>
  189. </script>
  190. </button>
  191. <output id="opt_sa" ref="/root/init/srchcond/sa" class="output_search" style="left:423px; top:10px; width:51px; height:19px; "/>
  192. <caption id="caption1" class="search_name" style="left:11px; top:39px; width:117px; height:17px; ">중증등록번호 :</caption>
  193. <bool id="bool1" ref="/root/init/srchcond/dcsrch" style="left:609px; top:37px; width:25px; height:20px; "/>
  194. <caption id="caption7" style="left:630px; top:37px; width:55px; height:20px; ">
  195. <![CDATA[삭제포함]]>
  196. <script type="javascript" ev:event="onclick">
  197. <![CDATA[
  198. if ( model.getValue("/root/init/srchcond/dcsrch") == "true" )
  199. model.setValue("/root/init/srchcond/dcsrch", "false");
  200. else
  201. model.setValue("/root/init/srchcond/dcsrch", "true");
  202. model.refresh();
  203. ]]>
  204. </script>
  205. </caption>
  206. <output id="output1" ref="/root/init/srchcond/serdiagno" class="output_search" style="left:128px; top:37px; width:132px; height:19px; "/>
  207. <input id="ipt_hngnm" ref="/root/init/srchcond/hngnm" class="input_search" style="left:312px; top:10px; width:80px; height:19px; ">
  208. <script type="javascript" ev:event="onkeydown">
  209. <![CDATA[
  210. inputEnterKey("btn_patsrch", "DOMActivate");
  211. ]]>
  212. </script>
  213. </input>
  214. <caption id="caption8" class="search_name" style="left:231px; top:12px; width:86px; height:17px; ">환자명 :</caption>
  215. <button id="btn_patsrch" class="icon_search" navindex="3" style="left:396px; top:13px; width:16px; height:16px; ">
  216. <caption/>
  217. <script type="javascript" ev:event="DOMActivate">
  218. <![CDATA[
  219. model.makeNode("/root/main/patinfo/patinfolist");
  220. model.setValue("/root/send/param/srchcond", "2");
  221. model.setValue("/root/send/param/hngnm", model.getValue("/root/init/srchcond/hngnm") );
  222. modal("SPPMC02500", "", "", "", "", "/root/send/param", "/root/send");
  223. model.setValue("/root/init/srchcond/pid", model.getValue("/root/main/patinfo/patinfolist/pid") );
  224. submit("TRMMO08502", true);
  225. ]]>
  226. </script>
  227. </button>
  228. <caption id="caption9" class="search_name" style="left:283px; top:39px; width:92px; height:17px; ">중증기간 :</caption>
  229. <output id="output2" ref="/root/init/srchcond/serdiagfromdd" class="output_search" format="yyyy-mm-dd" style="left:377px; top:37px; width:85px; height:19px; "/>
  230. <output id="output3" ref="/root/init/srchcond/serdiagtodd" class="output_search" format="yyyy-mm-dd" style="left:487px; top:37px; width:85px; height:19px; "/>
  231. <caption id="caption10" style="left:470px; top:38px; width:15px; height:20px; ">~</caption>
  232. <datagrid id="grd_stnm" nodeset="/root/main/tempstnm/row" caption="I/O^진단코드^진단명^구분^T^N^M^Stage^입력불가^입력불가사유^소세포암^난소암^입력부서^입력자^입력일시^수정부서^수정자^수정일시^삭제여부" colsep="^" colwidth="35, 55, 190, 55, 30, 30, 30, 43, 100, 80, 55, 49, 80, 60, 100, 80, 60, 100, 70" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="byrow" style="left:0px; top:99px; width:1050px; height:333px; ">
  233. <col disabled="true" ref="genrflagcd" type="combo">
  234. <choices>
  235. <itemset nodeset="/root/init/genrflagcd/M0010">
  236. <label ref="cdnm"/>
  237. <value ref="cdid"/>
  238. </itemset>
  239. </choices>
  240. </col>
  241. <col ref="icd10cd"/>
  242. <col ref="diagnm"/>
  243. <col disabled="true" ref="stageflag" type="combo">
  244. <choices>
  245. <itemset nodeset="/root/init/stageflag/M0329">
  246. <label ref="cdnm"/>
  247. <value ref="cdid"/>
  248. </itemset>
  249. </choices>
  250. </col>
  251. <col ref="tnmcd1"/>
  252. <col ref="tnmcd2"/>
  253. <col ref="tnmcd3"/>
  254. <col ref="stagecd"/>
  255. <col disabled="true" ref="inptimpsiresncd" type="combo">
  256. <choices>
  257. <itemset nodeset="/root/init/inptimpsiresncd/M0326">
  258. <label ref="cdnm"/>
  259. <value ref="cdid"/>
  260. </itemset>
  261. </choices>
  262. </col>
  263. <col ref="inptimpsietcresnnm"/>
  264. <col disabled="true" ref="cncrflagkind1" type="combo">
  265. <choices>
  266. <itemset nodeset="/root/init/cncrflagkind1/M0328">
  267. <label ref="cdnm"/>
  268. <value ref="cdid"/>
  269. </itemset>
  270. </choices>
  271. </col>
  272. <col disabled="true" ref="cncrflagkind2" type="combo">
  273. <choices>
  274. <itemset nodeset="/root/init/cncrflagkind2/M0327">
  275. <label ref="cdnm"/>
  276. <value ref="cdid"/>
  277. </itemset>
  278. </choices>
  279. </col>
  280. <col ref="rgstdeptnm"/>
  281. <col ref="rgstrnm"/>
  282. <col ref="rgstdt" format="yyyy-mm-dd hh:nn"/>
  283. <col ref="updtdeptnm"/>
  284. <col ref="updtrnm"/>
  285. <col ref="updtdt" format="yyyy-mm-dd hh:nn"/>
  286. <col ref="histnm"/>
  287. <script type="javascript" ev:event="ondblclick">
  288. <![CDATA[
  289. var currow = grd_stnm.row;
  290. var curcol = grd_stnm.col;
  291. if( grd_stnm.isCell(event.target) && grd_stnm.row >= grd_stnm.fixedRows ) {
  292. btn_savestnm.dispatch ( "DOMActivate" );
  293. }
  294. ]]>
  295. </script>
  296. </datagrid>
  297. <datagrid id="grd_anad" nodeset="/root/main/tempanad/row" caption="구분^프로토콜명^처방코드^처방명^처방일^시행일^투여요법^투여단계^투여주기1^투여주기2^입력자^수정자" colsep="^" colwidth="37, 125, 93, 182, 77, 71, 97, 68, 70, 73, 66, 61" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:464px; width:1050px; height:308px; ">
  298. <col disabled="true" ref="genrflagcd" type="combo">
  299. <choices>
  300. <itemset nodeset="/root/init/genrflagcd/M0010">
  301. <label ref="cdnm"/>
  302. <value ref="cdid"/>
  303. </itemset>
  304. </choices>
  305. </col>
  306. <col ref="tempcol1"/>
  307. <col ref="tempcol2"/>
  308. <col ref="tempcol3"/>
  309. <col ref="prcpdd" format="yyyy-mm-dd"/>
  310. <col ref="orddd" format="yyyy-mm-dd"/>
  311. <col disabled="true" ref="drugthrpcd" type="combo">
  312. <choices>
  313. <itemset nodeset="/root/init/drugthrpcd/M0331">
  314. <label ref="cdnm"/>
  315. <value ref="cdid"/>
  316. </itemset>
  317. </choices>
  318. </col>
  319. <col disabled="true" ref="drugtims" type="combo">
  320. <choices>
  321. <item>
  322. <label>1st-Line</label>
  323. <value>1</value>
  324. </item>
  325. <item>
  326. <label>2st-Line</label>
  327. <value>2</value>
  328. </item>
  329. <item>
  330. <label>3st-Line</label>
  331. <value>3</value>
  332. </item>
  333. <item>
  334. <label>4st-Line</label>
  335. <value>4</value>
  336. </item>
  337. <item>
  338. <label>5st-Line</label>
  339. <value>5</value>
  340. </item>
  341. <item>
  342. <label>6st-Line</label>
  343. <value>6</value>
  344. </item>
  345. </choices>
  346. </col>
  347. <col disabled="true" ref="drugpridstartno" type="combo">
  348. <choices>
  349. <item>
  350. <label>1st-cycle</label>
  351. <value>1</value>
  352. </item>
  353. <item>
  354. <label>2st-cycle</label>
  355. <value>2</value>
  356. </item>
  357. <item>
  358. <label>3st-cycle</label>
  359. <value>3</value>
  360. </item>
  361. <item>
  362. <label>4st-cycle</label>
  363. <value>4</value>
  364. </item>
  365. <item>
  366. <label>5st-cycle</label>
  367. <value>5</value>
  368. </item>
  369. <item>
  370. <label>6st-cycle</label>
  371. <value>6</value>
  372. </item>
  373. <item>
  374. <label>7st-cycle</label>
  375. <value>7</value>
  376. </item>
  377. <item>
  378. <label>8st-cycle</label>
  379. <value>8</value>
  380. </item>
  381. <item>
  382. <label>9st-cycle</label>
  383. <value>9</value>
  384. </item>
  385. <item>
  386. <label>10st-cycle</label>
  387. <value>10</value>
  388. </item>
  389. <item>
  390. <label>11st-cycle</label>
  391. <value>11</value>
  392. </item>
  393. <item>
  394. <label>12st-cycle</label>
  395. <value>12</value>
  396. </item>
  397. </choices>
  398. </col>
  399. <col disabled="true" type="combo">
  400. <choices>
  401. <item>
  402. <label>1st-cycle</label>
  403. <value>1</value>
  404. </item>
  405. <item>
  406. <label>2st-cycle</label>
  407. <value>2</value>
  408. </item>
  409. <item>
  410. <label>3st-cycle</label>
  411. <value>3</value>
  412. </item>
  413. <item>
  414. <label>4st-cycle</label>
  415. <value>4</value>
  416. </item>
  417. <item>
  418. <label>5st-cycle</label>
  419. <value>5</value>
  420. </item>
  421. <item>
  422. <label>6st-cycle</label>
  423. <value>6</value>
  424. </item>
  425. <item>
  426. <label>7st-cycle</label>
  427. <value>7</value>
  428. </item>
  429. <item>
  430. <label>8st-cycle</label>
  431. <value>8</value>
  432. </item>
  433. <item>
  434. <label>9st-cycle</label>
  435. <value>9</value>
  436. </item>
  437. <item>
  438. <label>10st-cycle</label>
  439. <value>10</value>
  440. </item>
  441. <item>
  442. <label>11st-cycle</label>
  443. <value>11</value>
  444. </item>
  445. <item>
  446. <label>12st-cycle</label>
  447. <value>12</value>
  448. </item>
  449. </choices>
  450. </col>
  451. <col ref="rgstrnm"/>
  452. <col ref="updtrnm"/>
  453. <script type="javascript" ev:event="ondblclick">
  454. <![CDATA[
  455. var currow = grd_anad.row;
  456. var curcol = grd_anad.col;
  457. if( grd_anad.isCell(event.target) && grd_anad.row >= grd_anad.fixedRows ) {
  458. inputEnterKey("btn_saveanad", "DOMActivate");
  459. }
  460. ]]>
  461. </script>
  462. </datagrid>
  463. <button id="btn_savestnm" class="btn2_letter2" style="left:1005px; top:72px; width:42px; height:19px; ">
  464. <caption>수정</caption>
  465. <script type="javascript" ev:event="DOMActivate">
  466. <![CDATA[
  467. if ( grd_stnm.row >= grd_stnm.fixedRows ) {
  468. if(model.getValue("/root/main/tempstnm/row[" + grd_stnm.row + "]/histnm") != "정상") {
  469. messageBox("삭제 상태입니다. 수정 할수 없습니다.", "I");
  470. return;
  471. }
  472. model.resetInstanceNode("/root/result/savetnmlist");
  473. model.resetInstanceNode("/root/result/savecncrlist");
  474. copyNodeType("/root/result/savetnmlist", "/root/main/tempstnm/row[" + grd_stnm.row + "]", "replace");
  475. model.setValue("/root/result/savetnmlist/status", "U");
  476. modal ( "SPMMO08400", "", "", "", "prcpdetl", "/root/result", "/root/tempresult", "", false );
  477. submit ( "TRMMO08501" , true);
  478. if ( getParameter ( "SPMMO08400_rtn1" ) != "Y" ){
  479. return false;
  480. }
  481. model.refresh();
  482. } else {
  483. messageBox("리스트에서 선택후 버튼을 눌러주시기 바랍니다.", "I")
  484. }
  485. ]]>
  486. </script>
  487. </button>
  488. <button id="btn_saveanad" class="btn2_letter2" style="left:1005px; top:438px; width:42px; height:19px; ">
  489. <caption>수정</caption>
  490. <script type="javascript" ev:event="DOMActivate">
  491. <![CDATA[
  492. if ( grd_anad.row >= grd_anad.fixedRows ) {
  493. model.resetInstanceNode("/root/result/savetnmlist");
  494. model.resetInstanceNode("/root/result/savecncrlist");
  495. // 프로토콜명, 처방코드, 처방명을 보여주기위해 임시로 사용. 수정화면으로 이동시 clear.
  496. model.setValue("/root/main/tempanad/row/tempcol1", ""); // 프로토콜명
  497. model.setValue("/root/main/tempanad/row/tempcol2", ""); // 처방코드
  498. model.setValue("/root/main/tempanad/row/tempcol3", ""); // 처방명
  499. copyNodeType("/root/result/savecncrlist", "/root/main/tempanad/row[" + grd_anad.row + "]", "replace");
  500. model.setValue("/root/result/savecncrlist/status", "U");
  501. modal ( "SPMMO08400", "", "", "", "prcpdetl", "/root/result", "/root/tempresult", "", false );
  502. submit ( "TRMMO08501" , true);
  503. if ( getParameter ( "SPMMO08400_rtn1" ) != "Y" ){
  504. return false;
  505. }
  506. model.refresh();
  507. } else {
  508. messageBox("리스트에서 선택후 버튼을 눌러주시기 바랍니다.", "I")
  509. }
  510. ]]>
  511. </script>
  512. </button>
  513. <button id="button1" visibility="hidden" style="left:725px; top:70px; width:55px; height:20px; ">
  514. <caption>button1</caption>
  515. <script type="javascript" ev:event="DOMActivate">
  516. <![CDATA[
  517. submit("TRMMO08502", true);
  518. submit ( "TRMMO08501" , true);
  519. ]]>
  520. </script>
  521. </button>
  522. <button id="button2" class="btn2_letter6" style="left:916px; top:73px; width:86px; height:19px; ">
  523. <caption>신규이력생성</caption>
  524. <script type="javascript" ev:event="DOMActivate">
  525. <![CDATA[
  526. if ( grd_stnm.row >= grd_stnm.fixedRows ) {
  527. model.resetInstanceNode("/root/result/savetnmlist");
  528. model.resetInstanceNode("/root/result/savecncrlist");
  529. copyNodeType("/root/result/savetnmlist", "/root/main/tempstnm/row[" + grd_stnm.row + "]", "replace");
  530. var diagcd = model.getValue("/root/result/savetnmlist/diagcd");
  531. if ( diagcd.substr(diagcd.indexOf(".")+1, 3) == "444" ) {
  532. messageBox("선택된 행은 (구)OCS의 데이터이므로 2008/10/03일 이후 데이터를 선택하여 신규이력생성 하시기바랍니다.", "I");
  533. return false;
  534. }
  535. model.setValue("/root/result/savetnmlist/status", "I");
  536. modal ( "SPMMO08400", "", "", "", "prcpdetl", "/root/result", "/root/tempresult", "", false );
  537. submit ( "TRMMO08501" , true);
  538. if ( getParameter ( "SPMMO08400_rtn1" ) != "Y" ){
  539. return false;
  540. }
  541. model.refresh();
  542. } else {
  543. messageBox("리스트에서 선택후 버튼을 눌러주시기 바랍니다.", "I")
  544. }
  545. ]]>
  546. </script>
  547. </button>
  548. </xhtml:body>
  549. </xhtml:html>