SMADC02500_NST관리대상자검색.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  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>NST관리대상검색</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <nstcntrllist>
  11. <mainlist>
  12. <cnststat/>
  13. <epgubun/>
  14. <nrsscore/>
  15. <roomcd/>
  16. <orddeptnm/>
  17. <pid/>
  18. <hngnm/>
  19. <sna/>
  20. <reqdd/>
  21. <sga/>
  22. <cfmsave/>
  23. <repldd/>
  24. <firstinfo/>
  25. <orddrnm/>
  26. <sau/>
  27. <prcpnm/>
  28. <cnstcnts20/>
  29. <prcpcd/>
  30. <jae/>
  31. <orddd/>
  32. <diagnm/>
  33. <formrecseq/>
  34. <rgstseqno/>
  35. <prcpgenrflag/>
  36. <cretno/>
  37. <formcd/>
  38. <cnstseqno/>
  39. <prcpno/>
  40. <dschyn/>
  41. <dschdd/>
  42. <cnstcnts9/>
  43. <pdano/>
  44. </mainlist>
  45. </nstcntrllist>
  46. </main>
  47. <send>
  48. <srchdd1/>
  49. <srchdd2/>
  50. <reqdrugcd/>
  51. <pid/>
  52. <orddeptcd/>
  53. <wardcd/>
  54. <statflag/>
  55. <nutrflag>A</nutrflag>
  56. <ioflag>I</ioflag>
  57. <reqflag>Y</reqflag>
  58. <repflag>A</repflag>
  59. <flag1/>
  60. <flag2/>
  61. <flag3/>
  62. <reqflagval/>
  63. <deptinfo>
  64. <deptflag/>
  65. </deptinfo>
  66. <cnstinfolist>
  67. <data1/>
  68. </cnstinfolist>
  69. <finishdd>Y</finishdd>
  70. </send>
  71. <init>
  72. <cmb_baseinfo>
  73. <initexecorddept>
  74. <execorddeptcdnm/>
  75. <execorddeptcdid/>
  76. </initexecorddept>
  77. <initward>
  78. <wardcd/>
  79. <wardnm/>
  80. </initward>
  81. </cmb_baseinfo>
  82. </init>
  83. <hidden>
  84. <deptlist>
  85. <dept>
  86. <deptcd/>
  87. <deptnm/>
  88. </dept>
  89. <ward>
  90. <wardcd/>
  91. <wardnm/>
  92. </ward>
  93. </deptlist>
  94. <cnststatinfo>
  95. <cnststat/>
  96. </cnststatinfo>
  97. <cnstinfolist/>
  98. </hidden>
  99. <temp>
  100. <cnstinfo>
  101. <formrecseq/>
  102. <pid/>
  103. <rgstseqno/>
  104. <cnstdd/>
  105. <prcpgenrflag/>
  106. <orddd/>
  107. <cretno/>
  108. <cnsttype/>
  109. <formcd/>
  110. <prcpcd/>
  111. <prcpno/>
  112. <cnstseqno/>
  113. <plusyn/>
  114. <sau/>
  115. <roomcd/>
  116. <cnstcnts9/>
  117. <cnststat/>
  118. <pdano/>
  119. <orddrnm/>
  120. <firstinfo/>
  121. </cnstinfo>
  122. </temp>
  123. </root>
  124. </instance>
  125. <script type="javascript" ev:event="xforms-ready">
  126. <![CDATA[
  127. model.setValue("/root/send/srchdd1", getCurrentDate());
  128. model.setValue("/root/send/srchdd2", getCurrentDate());
  129. var reqflag = model.getValue("/root/send/reqflag");
  130. if ( reqflag == "A" || reqflag =="N" ) { // 의뢰구분 :전체 일경우
  131. rdo_repflag.disabled = true; // 회신구분 - 선택불가능하도록
  132. model.setValue("/root/send/repflag", "A");
  133. }else if ( reqflag =="Y" ) { // 의뢰구분 :의뢰일경우 // EN/PN 구분일경우는 의뢰구분만 Check가능하도록 처리
  134. rdo_nutrflag.disabled = false; // 의뢰영역 - 선택가능하도록
  135. rdo_repflag.disabled = false; // 회신구분 - 선택가능하도록
  136. }
  137. submit("TRADC00101");
  138. astfAddCombo("/root/hidden/deptlist", "dept", "deptcd,deptnm", ",");
  139. astfAddCombo("/root/hidden/deptlist", "ward", "wardcd,wardnm", ",");
  140. btn_sea.dispatch("DOMActivate");
  141. ]]>
  142. </script>
  143. <submission id="TRADC02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/nstcntrllist"/>
  144. <submission id="TRADC02502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_baseinfo"/>
  145. <submission id="TRADC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
  146. <submission id="TXADC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/cnstinfo" replace="instance" resultref="/root/hidden/cnststatinfo"/>
  147. <submission id="TXADC02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cnstinfolist/data1" replace="instance" resultref="/root/hidden/cnstinfolist"/>
  148. </model>
  149. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  150. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  151. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  152. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  153. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  154. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  155. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  156. </xhtml:head>
  157. <xhtml:body guideline="1,1195;2,767;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  158. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  159. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">NST관리 대상자 검색화면</caption>
  160. </group>
  161. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:760px; ">
  162. <group id="group2" style="left:0px; top:20px; width:1190px; height:60px; vertical-align:top; ">
  163. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1189px; height:59px; "/>
  164. <line id="line1" class="line_4" style="x1:1111px; y1:9px; x2:1111px; y2:26px; "/>
  165. <select1 id="combo10" ref="/root/hidden/deptlist/ward" class="combo_search" appearance="minimal" cols="2" style="left:880px; top:10px; width:130px; height:19px; ">
  166. <choices>
  167. <itemset nodeset="/root/hidden/deptlist/ward">
  168. <label ref="wardnm"/>
  169. <value ref="wardcd"/>
  170. </itemset>
  171. </choices>
  172. </select1>
  173. <caption id="caption3" class="search_name" style="left:5px; top:9px; width:91px; height:17px; ">의뢰일시 :</caption>
  174. <caption id="caption5" class="search_name" style="left:790px; top:10px; width:86px; height:17px; ">병 동 :</caption>
  175. <select1 id="radio2" ref="/root/send/ioflag" class="radio_search" appearance="full" cellspacing="3" cols="3" rows="1" overflow="visible" style="left:380px; top:10px; width:153px; height:20px; border-style:none; ">
  176. <choices>
  177. <item>
  178. <label>전체</label>
  179. <value/>
  180. </item>
  181. <item>
  182. <label>입원</label>
  183. <value>I</value>
  184. </item>
  185. <item>
  186. <label>퇴원</label>
  187. <value>O</value>
  188. </item>
  189. </choices>
  190. </select1>
  191. <caption id="caption7" class="search_name" style="left:290px; top:10px; width:85px; height:17px; ">구 분 :</caption>
  192. <caption id="caption1" class="search_name" style="left:240px; top:35px; width:90px; height:17px; ">의뢰구분 :</caption>
  193. <caption id="caption2" class="search_name" style="left:5px; top:35px; width:90px; height:17px; ">의뢰영역 :</caption>
  194. <select1 id="rdo_nutrflag" ref="/root/send/nutrflag" class="radio_search" appearance="full" cellspacing="3" cols="4" rows="1" overflow="visible" style="left:95px; top:35px; width:125px; height:21px; border-style:none; ">
  195. <choices>
  196. <item>
  197. <label>전체</label>
  198. <value>A</value>
  199. </item>
  200. <item>
  201. <label>EN</label>
  202. <value>E</value>
  203. </item>
  204. <item>
  205. <label>PN</label>
  206. <value>P</value>
  207. </item>
  208. </choices>
  209. <script type="javascript" ev:event="onclick">
  210. <![CDATA[
  211. if (model.getValue("/root/send/nutrflag") =='' ) { // EN/PN 구분일경우는 의뢰구분만 Check가능하도록 처리
  212. rdo_reqflag.disabled = true;
  213. rdo_reqflag.value='Y' ; //의뢰구분(의뢰)
  214. rdo_repflag.value='' ; //외뢰구분(전체)
  215. }else{ // EN/PN 구분일경우는 의뢰구분만 Check가능하도록 처리
  216. }
  217. inputEnterKey("rdo_reqflag","onclick");
  218. ]]>
  219. </script>
  220. </select1>
  221. <select1 id="combo1" ref="/root/hidden/deptlist/dept" class="combo_search" appearance="minimal" style="left:631px; top:9px; width:127px; height:19px; ">
  222. <choices>
  223. <itemset nodeset="/root/hidden/deptlist/dept">
  224. <label ref="deptnm"/>
  225. <value ref="deptcd"/>
  226. </itemset>
  227. </choices>
  228. </select1>
  229. <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:8px; width:56px; height:22px; ">
  230. <caption>조회</caption>
  231. <script type="javascript" ev:event="DOMActivate">
  232. <![CDATA[
  233. model.setValue( "/root/send/reqdrugcd" , model.getValue("/root/send/reqdrugcd").toUpperCase() ); //2008-11-01 의뢰약품 대문자 처리
  234. model.setValue("/root/send/orddeptcd",model.getValue("/root/hidden/deptlist/dept")); // 의뢰과 선택
  235. model.setValue("/root/send/wardcd",model.getValue("/root/hidden/deptlist/ward")); // 병동 선택
  236. submit("TRADC02501");
  237. grd_nstmngt.rebuildStyle();
  238. setRowStyle("grd_nstmngt" , "1", "Y" , "dschyn", "equal" ); //그리드 특정 컬럼값을 비교하여 로우 백컬러 변경
  239. model.refresh();
  240. ]]>
  241. </script>
  242. </button>
  243. <caption id="caption4" class="search_name" style="left:1015px; top:10px; width:91px; height:17px; ">의뢰약품:</caption>
  244. <caption id="caption9" class="search_name" style="left:855px; top:35px; width:91px; height:17px; ">등록번호 :</caption>
  245. <input id="input5" ref="/root/send/reqdrugcd" class="input_search" style="left:1035px; top:35px; width:97px; height:19px; ">
  246. <script type="javascript" ev:event="onkeydown">
  247. <![CDATA[
  248. inputEnterKey("btn_sea","DOMActivate");
  249. ]]>
  250. </script>
  251. </input>
  252. <input id="input1" ref="/root/send/pid" class="input_search" style="left:940px; top:34px; width:89px; height:19px; ">
  253. <script type="javascript" ev:event="onkeydown">
  254. <![CDATA[
  255. inputEnterKey("btn_sea","DOMActivate");
  256. ]]>
  257. </script>
  258. </input>
  259. <caption id="caption10" class="search_name" style="left:540px; top:10px; width:90px; height:17px; ">의 뢰 과 :</caption>
  260. <select id="checkbox2" ref="/root/send/flag2" visibility="hidden" appearance="full" cols="2" style="left:1075px; top:35px; width:95px; height:15px; border-style:none; ">
  261. <choices>
  262. <item>
  263. <label>신규</label>
  264. <value>Y</value>
  265. </item>
  266. <item>
  267. <label>변경</label>
  268. <value/>
  269. </item>
  270. </choices>
  271. </select>
  272. <select id="checkbox3" ref="/root/send/flag3" visibility="hidden" appearance="full" cols="2" style="left:1040px; top:35px; width:140px; height:15px; border-style:none; ">
  273. <choices>
  274. <item>
  275. <label>Central</label>
  276. <value>Y</value>
  277. </item>
  278. <item>
  279. <label>Peripheral</label>
  280. <value/>
  281. </item>
  282. </choices>
  283. </select>
  284. <caption id="caption8" style="left:181px; top:10px; width:15px; height:20px; ">~</caption>
  285. <input id="ipt_srchdd1" ref="/root/send/srchdd1" class="input_search" inputtype="date" style="left:94px; top:8px; width:87px; height:19px; "/>
  286. <input id="ipt_srchdd2" ref="/root/send/srchdd2" class="input_search" inputtype="date" style="left:193px; top:8px; width:87px; height:19px; "/>
  287. <select id="checkbox4" ref="/root/send/flag1" visibility="hidden" appearance="full" cols="2" style="left:1055px; top:35px; width:125px; height:15px; border-style:none; ">
  288. <choices>
  289. <item>
  290. <label>처방</label>
  291. <value>Y</value>
  292. </item>
  293. <item>
  294. <label>Screening</label>
  295. <value/>
  296. </item>
  297. </choices>
  298. </select>
  299. <caption id="caption11" class="search_name" style="left:600px; top:35px; width:90px; height:17px; ">회신구분:</caption>
  300. <select1 id="rdo_reqflag" ref="/root/send/reqflag" class="radio_search" appearance="full" cellspacing="3" cols="4" rows="1" overflow="visible" style="left:325px; top:35px; width:155px; height:21px; border-style:none; ">
  301. <choices>
  302. <item>
  303. <label>전체</label>
  304. <value>A</value>
  305. </item>
  306. <item>
  307. <label>의뢰</label>
  308. <value>Y</value>
  309. </item>
  310. <item>
  311. <label>미의뢰</label>
  312. <value>N</value>
  313. </item>
  314. </choices>
  315. <script type="javascript" ev:event="onclick">
  316. <![CDATA[
  317. if ((model.getValue("/root/send/reqflag") == "A" ) || (model.getValue("/root/send/reqflag") =="N" )) { // 의뢰구분 :전체 일경우
  318. rdo_repflag.disabled = true; // 회신구분 - 선택불가능하도록
  319. rdo_repflag.value="A";
  320. }else if (model.getValue("/root/send/reqflag") =="Y" ) { // 의뢰구분 :의뢰일경우 // EN/PN 구분일경우는 의뢰구분만 Check가능하도록 처리
  321. rdo_nutrflag.disabled = false; // 의뢰영역 - 선택가능하도록
  322. rdo_repflag.disabled = false; // 회신구분 - 선택가능하도록
  323. }
  324. model.refresh();
  325. ]]>
  326. </script>
  327. </select1>
  328. <select1 id="rdo_repflag" ref="/root/send/repflag" class="radio_search" appearance="full" cellspacing="3" cols="4" rows="1" overflow="visible" style="left:680px; top:35px; width:155px; height:21px; border-style:none; ">
  329. <choices>
  330. <item>
  331. <label>전체</label>
  332. <value>A</value>
  333. </item>
  334. <item>
  335. <label>회신</label>
  336. <value>Y</value>
  337. </item>
  338. <item>
  339. <label>미회신</label>
  340. <value>N</value>
  341. </item>
  342. </choices>
  343. <script type="javascript" ev:event="onclick">
  344. <![CDATA[
  345. if ((model.getValue("/root/send/reqflag") =="A" ) || (model.getValue("/root/send/reqflag") =="Y" )) { // 의뢰구분 - A
  346. rdo_nutrflag.disabled = false;
  347. }else{ // EN/PN 구분일경우는 의뢰구분만 Check가능하도록 처리
  348. rdo_nutrflag.disabled = true;
  349. rdo_nutrflag.value="A";
  350. }
  351. model.refresh();
  352. //inputEnterKey("rdo_reqflag","onclick");
  353. ]]>
  354. </script>
  355. </select1>
  356. <select id="checkbox1" ref="/root/send/finishdd" overflow="visible" appearance="full" style="left:485px; top:35px; width:100px; height:20px; border-style:none; ">
  357. <choices>
  358. <item>
  359. <label>종결자 제외</label>
  360. <value>Y</value>
  361. </item>
  362. </choices>
  363. </select>
  364. </group>
  365. <line id="line2" class="line_1" style="x1:2px; y1:107px; x2:1191px; y2:107px; "/>
  366. <button id="button51" class="btn2_letter4" style="left:1127px; top:87px; width:64px; height:19px; ">
  367. <caption>엑셀저장</caption>
  368. <script type="javascript" ev:event="DOMActivate">
  369. <![CDATA[
  370. var file_name = window.fileDialog("save","","true","","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  371. grd_nstmngt.saveExcel(file_name);
  372. ]]>
  373. </script>
  374. </button>
  375. <datagrid id="grd_nstmngt" nodeset="/root/main/nstcntrllist/mainlist" caption="상 태^투여경로^병실/외래^진료과^등록번호^환자명^S/A^의뢰일^회신일^종결일자^주치의/의뢰인^진료/입원일^상병^의뢰사유^비 고^퇴원일자^추천제형^formrecseq^rgstseqno^prcpgenrflag^cretno^formcd^cnstseqno^prcpno^퇴원예고/퇴원^퇴원일자^cnstcnts9^N-Zone|상 태^투여경로^병실/외래^진료과^등록번호^환자명^S/A^의뢰일^회신일^종결일자^주치의/의뢰인^진료/입원일^상병^의뢰사유^비 고^퇴원일자^추천제형^formrecseq^rgstseqno^prcpgenrflag^cretno^formcd^cnstseqno^prcpno^퇴원예고/퇴원^퇴원일자^cnstcnts9^N-Zone" colsep="^" colwidth="66, 114, 64, 102, 77, 71, 41, 80, 73, 74, 102, 78, 146, 294, 141, 100, 110, 99, 99, 100, 100, 100, 99, 100, 100, 100, 17, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:2px; top:110px; width:1189px; height:625px; text-align:center; ">
  376. <col ref="cnststat" style="text-align:center; "/>
  377. <col ref="prcpnm" style="text-align:left; "/>
  378. <col disabled="true" ref="roomcd"/>
  379. <col ref="orddeptnm" style="text-align:left; "/>
  380. <col ref="pid"/>
  381. <col ref="hngnm"/>
  382. <col ref="sna"/>
  383. <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  384. <col ref="repldd" format="yyyy-mm-dd" style="text-align:center; "/>
  385. <col ref="firstinfo" type="input" format="yyyy-mm-dd" style="text-align:center; "/>
  386. <col ref="orddrnm" style="left:515px; top:23px; width:53px; height:23px; "/>
  387. <col ref="orddd" format="yyyy-mm-dd"/>
  388. <col ref="diagnm" style="text-align:left; "/>
  389. <col ref="sau" style="text-align:left; "/>
  390. <col ref="cnstcnts20" type="input" style="text-align:left; "/>
  391. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  392. <col ref="prcpcd" visibility="hidden"/>
  393. <col ref="jae" visibility="hidden"/>
  394. <col ref="epgubun" visibility="hidden" style="text-align:center; "/>
  395. <col ref="formrecseq" visibility="hidden"/>
  396. <col ref="rgstseqno" visibility="hidden"/>
  397. <col ref="prcpgenrflag" visibility="hidden"/>
  398. <col ref="cretno" visibility="hidden"/>
  399. <col ref="formcd" visibility="hidden"/>
  400. <col ref="cnstseqno" visibility="hidden"/>
  401. <col ref="prcpno" visibility="hidden" style="left:2314px; top:43px; width:100px; height:23px; "/>
  402. <col ref="dschyn" visibility="hidden"/>
  403. <col ref="cnstcnts9" visibility="hidden"/>
  404. <col ref="pdano" visibility="hidden"/>
  405. <script type="javascript" ev:event="ondblclick">
  406. <![CDATA[
  407. //2010-01-06 비고란 저장 가능하도록 처리 (미회신사유등록..)
  408. //if ( grd_nstmngt.isCell(event.target) && grd_nstmngt.row >= grd_nstmngt.fixedRows ) {
  409. var grdrow = grd_nstmngt.row - 1;
  410. if ( grd_nstmngt.isCell(event.target) && grd_nstmngt.row >= grd_nstmngt.fixedRows && grd_nstmngt.colRef("cnstcnts20") != grd_nstmngt.col) {
  411. //기록된 서식
  412. var cnstseqno = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/cnstseqno" );
  413. var formrecseq = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/formrecseq" );
  414. var formcd = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/formcd" );
  415. var pid = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/pid" );
  416. var cretno = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/cretno" );
  417. var prcpgenrflag = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/prcpgenrflag" );
  418. var rgstseqno = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/rgstseqno" );
  419. var reqdd = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/reqdd" );
  420. var orddd = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/orddd" );
  421. var prcpcd = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/prcpcd" );
  422. var prcpno = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/prcpno" );
  423. var plusyn = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/plusyn" );
  424. var sau = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/sau" ); //2009-12-03 회신서출력시 [의뢰사유] 출력요청
  425. var roomcd = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/roomcd" ); //2009-12-03 회신서출력시 [병실] 출력요청
  426. var cnstcnts9 = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/cnstcnts9" ); //2009-12-23 의뢰유형 추가 (1:영양평가 2:영양교육)
  427. var cnststat = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/cnststat" ) // 회신상태
  428. var pdano = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/pdano" ) // 의뢰인엔존
  429. var orddrnm = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/orddrnm" ) // 주치의/의뢰인
  430. var firstinfo = model.getValue("/root/main/nstcntrllist/mainlist["+grdrow+"]/firstinfo" ) // 종결일자
  431. if(prcpgenrflag!="E"){
  432. prcpgenrflag = "I";
  433. }
  434. var instcd = getUserInfo("dutplceinstcd");
  435. var param = prcpgenrflag + "▦" +
  436. pid + "▦" +
  437. orddd + "▦" +
  438. cretno + "▦" +
  439. instcd ;
  440. setParameter("condparam", param);
  441. modal("SPMMO08900", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  442. setParameter("openmode", "reccnstform");
  443. setParameter("formrecseq", formrecseq); //서식기록테이블의 formrecseq(기록순번)
  444. setParameter("pid", pid);
  445. setParameter("rgstseqno", rgstseqno);
  446. model.setValue("/root/temp/cnstinfo/cnstseqno" , cnstseqno);
  447. model.setValue("/root/temp/cnstinfo/formrecseq" , formrecseq);
  448. model.setValue("/root/temp/cnstinfo/pid" , pid);
  449. model.setValue("/root/temp/cnstinfo/cretno" , cretno);
  450. model.setValue("/root/temp/cnstinfo/prcpgenrflag" , prcpgenrflag);
  451. model.setValue("/root/temp/cnstinfo/rgstseqno" , rgstseqno);
  452. model.setValue("/root/temp/cnstinfo/cnstdd" , reqdd);
  453. model.setValue("/root/temp/cnstinfo/orddd" , orddd);
  454. model.setValue("/root/temp/cnstinfo/cnsttype" ,"ast"); // 약품식별회신을 위한 변수 설정
  455. model.setValue("/root/temp/cnstinfo/plusyn" , plusyn); //추구관리가능여부
  456. model.setValue("/root/temp/cnstinfo/sau" , sau); //2009-12-03 회신서출력시 [의뢰사유] 출력요청
  457. model.setValue("/root/temp/cnstinfo/roomcd" , roomcd); //2009-12-03 회신서출력시 [병실] 출력요청
  458. model.setValue("/root/temp/cnstinfo/cnstcnts9" , cnstcnts9); //2009-12-23 의뢰유형 추가 (1:영양평가 2:영양교육)
  459. model.setValue("/root/temp/cnstinfo/cnststat" , cnststat); //회신상태
  460. model.setValue("/root/temp/cnstinfo/pdano" , pdano); //의뢰인엔존
  461. model.setValue("/root/temp/cnstinfo/orddrnm" , orddrnm); //주치의/의뢰인
  462. model.setValue("/root/temp/cnstinfo/firstinfo" , firstinfo); //종결일자
  463. //setParameter("userdeptcd", "3242100000");
  464. //setParameter("replcnts" , "");
  465. //setParameter("overwrite" , "false");
  466. //********************************* 해당 의뢰건을 의뢰확정 상태로 변경 *********************************
  467. if(formrecseq != ""){
  468. var success = submit("TXADC00101");
  469. if(success){
  470. if(model.getValue("/root/hidden/cnststatinfo/cnststat") == "04")
  471. messageBox("취소된 의뢰건","I009");
  472. }
  473. }
  474. if ( formcd =="0000000770" || formcd == "0000003019"){ //NST
  475. model.setValue("/root/temp/cnstinfo/formcd",formcd); // EN, PN구분을 위한 formcd 설정
  476. if(formrecseq == ""){
  477. model.setValue("/root/temp/cnstinfo/prcpcd",prcpcd);
  478. model.setValue("/root/temp/cnstinfo/prcpno",prcpno);
  479. }
  480. modal("SMADC02600", 1, 0, 0 ,"SMADC02600","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  481. btn_sea.dispatch("DOMActivate");
  482. /*
  483. if(formrecseq != ""){
  484. modal("SMADC02600", 1, 0, 0 ,"SMADC02600","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  485. btn_sea.dispatch("DOMActivate");
  486. }
  487. */
  488. }
  489. }
  490. //
  491. if (grd_nstmngt.colRef("cnstcnts20") == grd_nstmngt.col) {
  492. if ( model.getValue("/root/main/nstcntrllist/mainlist[" + grd_nstmngt.row + "]/cnststat") == "미의뢰" ) {
  493. messageBox("[미의뢰]건에 대해서 비고란을 입력할수 없습니다.", "I");
  494. model.setValue("/root/main/nstcntrllist/mainlist[" + grd_nstmngt.row + "]/cnstcnts20","");
  495. return;
  496. }
  497. }
  498. ]]>
  499. </script>
  500. <script type="javascript" ev:event="onaftersort">
  501. <![CDATA[
  502. // 소트 후 인스턴스 정리
  503. grd_nstmngt.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  504. ]]>
  505. </script>
  506. <script type="javascript" ev:event="onbuttonclick">
  507. <![CDATA[
  508. // open("SPADC02500", "","","", "SPADC02500", "/root/send/popup", "/root/main/receivedata");
  509. clearParameter("SPADC02500_PARAM1");
  510. clearParameter("SPADC02500_PARAM2");
  511. clearParameter("SPADC02500_PARAM3");
  512. clearParameter("SPADC02500_PARAM4");
  513. clearParameter("SPADC02500_PARAM5");
  514. clearParameter("SPADC02500_PARAM6");
  515. clearParameter("SPADC02500_PARAM7");
  516. clearParameter("SPADC02500_PARAM8");
  517. setParameter("SPADC02500_PARAM1", model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/pid"));
  518. setParameter("SPADC02500_PARAM2", model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/hngnm"));
  519. setParameter("SPADC02500_PARAM3", model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/epgubun"));
  520. setParameter("SPADC02500_PARAM4", model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/orddeptnm"));
  521. setParameter("SPADC02500_PARAM5", model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/reqdd"));
  522. setParameter("SPADC02500_PARAM6", model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/roomcd"));
  523. setParameter("SPADC02500_PARAM7", model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/orddd"));
  524. setParameter("SPADC02500_PARAM8", model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/dschdd"));
  525. // open("SPADC02500");
  526. open("SPADC02500", "", "", "", "", "", "","width:660px; height:500px;resize:true; ");
  527. ]]>
  528. </script>
  529. </datagrid>
  530. <caption id="caption12" class="tit_1" style="left:0px; top:0px; width:132px; height:14px; ">NST관리대상자검색</caption>
  531. <caption id="caption13" class="tit_2" style="left:0px; top:93px; width:189px; height:14px; font-family:굴림체; ">NST관리대상자 리스트</caption>
  532. </group>
  533. <group id="grp_btn" scroll="auto" style="left:0px; top:740px; width:1195px; height:27px; ">
  534. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:4px; width:56px; height:22px; ">
  535. <caption>출력</caption>
  536. </button>
  537. <button id="button1" class="btn3_letter9" style="left:0px; top:4px; width:80px; height:22px; ">
  538. <caption>NST추구관리대상자</caption>
  539. <script type="javascript" ev:event="DOMActivate">
  540. <![CDATA[
  541. open ("SMADC03100");
  542. ]]>
  543. </script>
  544. </button>
  545. <button id="button2" class="btn3_letter7" style="left:145px; top:4px; width:116px; height:22px; ">
  546. <caption>NST 코드관리</caption>
  547. <script type="javascript" ev:event="DOMActivate">
  548. <![CDATA[
  549. open ("SMADC03200");
  550. ]]>
  551. </script>
  552. </button>
  553. <button id="btn_save" class="btn4_letter2" navindex="308" style="left:1130px; top:3px; width:56px; height:22px; ">
  554. <caption>저장</caption>
  555. <script type="javascript" ev:event="DOMActivate">
  556. <![CDATA[
  557. var update = getGridUpdateData(grd_nstmngt);
  558. // var update = model.getValue("/root/send/req/data");
  559. if(update == ""){
  560. messageBox("저장할 정보가 없습니다. 확인하여 주시기바랍니다", "I");
  561. return 0;
  562. } else {
  563. model.setValue( "/root/send/cnstinfolist/data1", grd_nstmngt.getUpdateData());
  564. submit("TXADC02501");
  565. }
  566. ]]>
  567. </script>
  568. </button>
  569. <button id="button3" class="btn3_letter8" style="left:265px; top:4px; width:117px; height:22px; ">
  570. <caption>EN 세부엑셀저장</caption>
  571. <script type="javascript" ev:event="DOMActivate">
  572. <![CDATA[
  573. open ("SPADC62700");
  574. ]]>
  575. </script>
  576. </button>
  577. </group>
  578. </xhtml:body>
  579. </xhtml:html>