SPADB62300_TPN의뢰.xrw 50 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040
  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>NST 의뢰</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <patinfo>
  11. <pid/>
  12. <sna/>
  13. <hngnm/>
  14. <roomcd/>
  15. <reqdeptnm/>
  16. <requsernm/>
  17. <prcpflag/>
  18. <recvdeptnm/>
  19. <recvusernm/>
  20. </patinfo>
  21. <cnstinfo>
  22. <cnstkind>4</cnstkind>
  23. <cnstseqno/>
  24. <cretno/>
  25. <formrecseq/>
  26. <formcd>0000000770</formcd>
  27. <cnststat/>
  28. <reqdd/>
  29. <reqhm/>
  30. <chosflag/>
  31. <orddd/>
  32. <eryn>N</eryn>
  33. <reqdeptcd/>
  34. <requserid/>
  35. <cnstcnts1>1</cnstcnts1>
  36. <cnstcnts2/>
  37. <cnstcnts3/>
  38. <cnstcnts4/>
  39. <cnstcnts5/>
  40. <cnstcnts6/>
  41. <cnstcnts7/>
  42. <cnstcnts8/>
  43. <cnstcnts9/>
  44. <cnstcnts10/>
  45. <cnstcnts11/>
  46. <cnstcnts12/>
  47. <cnstcnts13/>
  48. <cnstflag>3</cnstflag>
  49. <recvdeptcd>3240000000</recvdeptcd>
  50. <prcpcd/>
  51. <prcpdd/>
  52. <prcpno/>
  53. <prcphistno/>
  54. </cnstinfo>
  55. </main>
  56. <send>
  57. <srchinfo/>
  58. <pidformcd>
  59. <pid/>
  60. <orddd/>
  61. <formcd/>
  62. </pidformcd>
  63. </send>
  64. <init>
  65. <init2d3d/>
  66. <initposition/>
  67. <initorientation/>
  68. <initpillow/>
  69. <initimmobiliz/>
  70. <initprotocol/>
  71. <initthickness/>
  72. </init>
  73. <hidden>
  74. <reqfrminfo>
  75. <pid/>
  76. <prcpcd/>
  77. <prcpnm/>
  78. <opnm/>
  79. <spccd/>
  80. <spcnm/>
  81. <reqno/>
  82. <reqhistno/>
  83. <prcpstatcd/>
  84. </reqfrminfo>
  85. <item>
  86. <cnstkind/>
  87. <cnstseqno/>
  88. </item>
  89. <cnststatinfo>
  90. <cnststat/>
  91. </cnststatinfo>
  92. </hidden>
  93. <temp>
  94. <SMMMR03600_modalif>
  95. <openmode>OneImge</openmode>
  96. <imgecd/>
  97. <base64/>
  98. <shape/>
  99. </SMMMR03600_modalif>
  100. <cnstinfo/>
  101. <cnstcnst4_sel/>
  102. <nst_title/>
  103. <endstatepid>
  104. <stateflag/>
  105. </endstatepid>
  106. <nstfinishyn>
  107. <finishyn/>
  108. </nstfinishyn>
  109. </temp>
  110. <paminfo>
  111. </paminfo>
  112. </root>
  113. </instance>
  114. <script type="javascript" ev:event="xforms-ready">
  115. <![CDATA[
  116. //zbcfGetCodeList( new Array("A0405","A0406", "A0407", "A0408", "A0409", "A0410", "A0412"), new Array("/root/init/init2d3d", "/root/init/initposition", "/root/init/initorientation", "/root/init/initpillow", "/root/init/initimmobiliz", "/root/init/initprotocol", "/root/init/initthickness") );
  117. //submit("TRZBC00101");
  118. finit();
  119. //fExeInitialize();
  120. ]]>
  121. </script>
  122. <submission id="TRZBC00101"/>
  123. <submission id="TXADC61701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cnstinfo" replace="instance" resultref="/root/hidden/item"/>
  124. <submission id="TRADC61701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main"/>
  125. <submission id="TXADC61702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/hidden"/>
  126. <submission id="TRADC62202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cnstinfo" replace="instance" resultref="/root/hidden/cnststatinfo"/>
  127. <submission id="TRADC62203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/pidformcd" resultref="/root/temp/endstatepid"/>
  128. <submission id="TRADC62204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/pidformcd" resultref="/root/temp/nstfinishyn"/>
  129. </model>
  130. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  131. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  132. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  133. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  134. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  135. <script type="javascript">
  136. <![CDATA[
  137. var temp1 = new Array(); // nst자문의뢰 이유 선택값 임시저장
  138. var temp2 = new Array(); // 열량요구량 선택값 임시저장
  139. function finit(){
  140. if(fCnstType()){
  141. model.toggle("case4");
  142. model.toggle("case6");
  143. fSetPatinfo();
  144. fSetCnstDiv("/root/temp/cnstinfo/formcd");
  145. }else{
  146. model.toggle("case3");
  147. var pamInfoCvs = getGlobalVariable("paminfo");
  148. if(!isNull(pamInfoCvs)){ //cvs가 null이 아닌 경우에만 처리함.
  149. model.removeNodeSet ( "/root/paminfo/list" ); //상단화면 정보 초기화
  150. setCSVToNode ( "/root/paminfo", pamInfoCvs );
  151. model.setValue("/root/main/patinfo/pid",model.getValue("/root/paminfo/list/pid"));
  152. var sna = model.getValue("/root/paminfo/list/sex") +"/"+ model.getValue("/root/paminfo/list/age");
  153. model.setValue("/root/main/patinfo/sna", sna);
  154. model.setValue("/root/main/patinfo/hngnm", model.getValue("/root/paminfo/list/hngnm"));
  155. model.setValue("/root/main/patinfo/roomcd", model.getValue("/root/paminfo/list/roomcd"));
  156. model.setValue("/root/main/patinfo/reqdeptnm", getUserInfo("dutplcenm"));
  157. model.setValue("/root/main/cnstinfo/reqdeptcd", getUserInfo("dutplcecd"));
  158. model.setValue("/root/main/patinfo/requsernm", getUserName());
  159. model.setValue("/root/main/cnstinfo/requserid", getUserId());
  160. var prcpflag ="";
  161. var ioflag = model.getValue("/root/paminfo/list/ioflag");
  162. if(ioflag == "O" || ioflag == "S"){
  163. prcpflag = "외래";
  164. model.setValue("/root/main/cnstinfo/orddd", model.getValue("/root/paminfo/list/orddd"));
  165. }else {
  166. prcpflag = "입원";
  167. model.setValue("/root/main/cnstinfo/orddd", model.getValue("/root/paminfo/list/indd"));
  168. }
  169. if(model.getValue("/root/paminfo/list/fsexamflag") == "F"){
  170. prcpflag += "/초진";
  171. }else if(model.getValue("/root/paminfo/list/fsexamflag") =="R"){
  172. prcpflag += "/재진";
  173. }
  174. model.setValue("/root/main/patinfo/prcpflag", prcpflag);
  175. model.setValue("/root/main/cnstinfo/chosflag", model.getValue("/root/paminfo/list/ioflag"));
  176. model.setValue("/root/main/cnstinfo/cretno", model.getValue("/root/paminfo/list/cretno"));
  177. //2008-11-01 진료와연동처리 추가 Start
  178. if (model.getValue("/root/temp/cnstinfo/prcpcd") != "" ) {
  179. model.setValue("/root/main/cnstinfo/prcpcd", model.getValue("/root/temp/cnstinfo/prcpcd")); //처방코드
  180. model.setValue("/root/temp/cnstinfo","0000000770" ); //처방창 연결시 의뢰창 기본셋팅 TPN으로 처리하기 위함.
  181. }
  182. if (model.getValue("/root/temp/cnstinfo/prcpdd") != "" ) {
  183. model.setValue("/root/main/cnstinfo/prcpdd", model.getValue("/root/temp/cnstinfo/prcpdd")); //처방일자
  184. }
  185. // if (model.getValue("/root/temp/cnstinfo/prcpno") != "" ) {
  186. // model.setValue("/root/main/cnstinfo/prcpno", model.getValue("/root/temp/cnstinfo/prcpno")); //처방번호
  187. // }
  188. // if (model.getValue("/root/temp/cnstinfo/prcphistno") != "" ) {
  189. // model.setValue("/root/main/cnstinfo/prcphistno", model.getValue("/root/temp/cnstinfo/prcphistno")); //처방이력번호
  190. // }
  191. //2008-11-01 진료와연동처리 추가 End
  192. fSetCnstDiv("/root/temp/cnstinfo");
  193. }else{
  194. var msg = messageBox("환자를 ", "C002");
  195. btn_cnst.disabled = true;
  196. return false;
  197. }
  198. }
  199. model.refresh();
  200. }
  201. function fCnstType(){
  202. if(model.getValue("/root/temp/cnstinfo/formrecseq") == ""){
  203. return false;
  204. }else return true;
  205. }
  206. function fSetPatinfo(){
  207. model.setValue("/root/main/patinfo/pid", model.getValue("/root/temp/cnstinfo/pid"));
  208. model.setValue("/root/main/patinfo/hngnm", model.getValue("/root/temp/cnstinfo/pidnm"));
  209. model.setValue("/root/main/patinfo/reqdeptnm", model.getValue("/root/temp/cnstinfo/reqdeptnm"));
  210. model.setValue("/root/main/patinfo/requsernm", model.getValue("/root/temp/cnstinfo/requsernm"));
  211. model.setValue("/root/main/patinfo/recvdeptnm", model.getValue("/root/temp/cnstinfo/recvdeptnm"));
  212. model.setValue("/root/main/patinfo/recvusernm", model.getValue("/root/temp/cnstinfo/recvusernm"));
  213. model.copyNode("/root/send/srchinfo", "/root/temp/cnstinfo");
  214. submit("TRADC61701");
  215. if(model.getValue("/root/main/cnstinfo/cnststat") >= 20) {
  216. btn_cnstcancel.visible = false;
  217. btn_cnstcancel.refresh();
  218. }
  219. }
  220. function fSetCnstDiv(path){
  221. // EN, PN 의뢰구분
  222. if(model.getValue(path) == "0000000770"){
  223. fSetEnPnCntl("PN");
  224. model.setValue("/root/main/cnstinfo/cnstcnts8","2");
  225. model.setValue("/root/main/cnstinfo/cnstcnts9",""); //2010-04-12 의뢰영역 EN선택시 의뢰유형 ‘영양평가’를 Default 지정
  226. rdo_cnstcnts2.visible = "false";
  227. radio2.visible = "true";
  228. model.setValue("/root/temp/nst_title","영양지원의뢰(영양평가)");
  229. }else{
  230. /////2016.8.3. 김치국
  231. messageBox("경장영앙지원의뢰(EN)은 입력불가합니다","I");
  232. event.preventDefault();
  233. window.close();
  234. return false;
  235. model.setValue("/root/main/cnstinfo/formcd","0000003019"); // 경장영양지원의뢰(EN) formcd
  236. model.setValue("/root/main/cnstinfo/recvdeptcd","3250100000"); // 수신부서 --> 영양팀(3250100000)
  237. model.setValue("/root/main/cnstinfo/cnstcnts8","1");
  238. model.setValue("/root/main/cnstinfo/cnstcnts9","1"); //2010-04-12 의뢰영역 EN선택시 의뢰유형 ‘영양평가’를 Default 지정
  239. rdo_cnstcnts2.visible = "true";
  240. radio2.visible = "false";
  241. model.setValue("/root/temp/nst_title","경장영양지원의뢰(Tube feeding)");
  242. }
  243. rdo_cnstcnts8.disabled = "true";
  244. }
  245. // 현재시간 구하기 : 시간 분
  246. function astgetCurrentTime()
  247. {
  248. var sDate = getNewDate();
  249. rtnTime = (( sDate.getHours() > 9 ) ? sDate.getHours() : "0" + sDate.getHours());
  250. rtnTime = rtnTime.toString() + (( sDate.getMinutes() > 9 ) ? sDate.getMinutes() : "0" + sDate.getMinutes());
  251. return rtnTime;
  252. }
  253. // TPN 자문의뢰 정보 저장
  254. function fSaveCnst(){
  255. if(model.getValue("/root/main/patinfo/pid") != ""){
  256. model.makeNode("/root/main/cnstinfo/pid");
  257. model.setValue("/root/main/cnstinfo/pid", model.getValue("/root/main/patinfo/pid"));
  258. submit("TXADC61701");
  259. model.refresh();
  260. }
  261. }
  262. function fInitCnstCnts(){
  263. model.setValue("/root/main/cnstinfo/cnstcnts8", "");
  264. model.setValue("/root/main/cnstinfo/cnstcnts9", "");
  265. model.setValue("/root/main/cnstinfo/cnstcnts10", "");
  266. model.setValue("/root/main/cnstinfo/cnstcnts11", "");
  267. model.setValue("/root/main/cnstinfo/cnstcnts12", "");
  268. model.setValue("/root/main/cnstinfo/cnstcnts13", "");
  269. }
  270. function fInitControl(){
  271. ipt_needcalr1.attribute("editable") = "false";
  272. ipt_needcalr4.attribute("editable") = "false";
  273. ipt_needcalr5.attribute("editable") = "false";
  274. ipt_needcalr7.attribute("editable") = "false";
  275. ipt_needcalr9.attribute("editable") = "false";
  276. ipt_needcalr10.attribute("editable") = "false";
  277. ipt_needcalr11.attribute("editable") = "false";
  278. ipt_needcalr15.attribute("editable") = "false";
  279. ipt_needcalr1.attribute("ref") = "";
  280. cmb_needcalr2.attribute("ref") = "";
  281. cmb_needcalr3.attribute("ref") = "";
  282. ipt_needcalr4.attribute("ref") = "";
  283. ipt_needcalr5.attribute("ref") = "";
  284. cmb_needcalr6.attribute("ref") = "";
  285. ipt_needcalr7.attribute("ref") = "";
  286. cmb_needcalr8.attribute("ref") = "";
  287. ipt_needcalr9.attribute("ref") = "";
  288. ipt_needcalr10.attribute("ref") = "";
  289. ipt_needcalr11.attribute("ref") = "";
  290. cmb_needcalr12.attribute("ref") = "";
  291. cmb_needcalr13.attribute("ref") = "";
  292. cmb_needcalr14.attribute("ref") = "";
  293. ipt_needcalr15.attribute("ref") = "";
  294. }
  295. // PN 의뢰시 버튼 비활성화
  296. function fSetEnPnCntl(control){
  297. if(control == "PN"){
  298. rdo_cnstcnts5.disabled = "true"; // EN Tube 종류
  299. rdo_cnstcnts9.disabled = "true"; // 의뢰유형
  300. }
  301. }
  302. ]]>
  303. </script>
  304. </xhtml:head>
  305. <xhtml:body pagewidth="800" pageheight="600" guideline="1,1195;2,757;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  306. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:770px; height:555px; ">
  307. <line id="line3" class="line_3" style="x1:0px; y1:554px; x2:770px; y2:554px; "/>
  308. <switch id="switch1" style="left:0px; top:79px; width:770px; height:476px; ">
  309. <case id="case1" selected="true" style="left:0px; top:0px; width:768px; height:470px; ">
  310. <caption id="caption1" class="tit_2" style="left:10px; top:10px; width:391px; height:14px; ">NST 자문의뢰 이유</caption>
  311. <line id="line1" class="line_1" style="x1:6px; y1:28px; x2:764px; y2:28px; "/>
  312. <caption id="caption97" class="cell_1" style="left:6px; top:140px; width:95px; height:20px; text-align:center; vertical-align:middle; border-style:none; ">투여경로</caption>
  313. <caption id="caption2" class="cell_1" style="left:6px; top:416px; width:95px; height:23px; text-align:center; vertical-align:middle; ">임상정보</caption>
  314. <textarea id="tar_cnstcnts7" ref="/root/main/cnstinfo/cnstcnts7" navindex="6" scroll="auto" maxlength="33" autonext="false" style="left:6px; top:442px; width:754px; height:23px; ">
  315. <script type="javascript" ev:event="onmaxlength">
  316. <![CDATA[
  317. messageBox("입력가능한 글자수를", "E003");
  318. ]]>
  319. </script>
  320. </textarea>
  321. <caption id="caption3" class="cell_1" style="left:6px; top:190px; width:95px; height:20px; text-align:center; vertical-align:middle; ">예상투여기간</caption>
  322. <caption id="caption4" class="cell_1" style="left:6px; top:242px; width:95px; height:23px; text-align:center; vertical-align:middle; ">의뢰사유</caption>
  323. <caption id="caption5" class="cell_1" style="left:6px; top:335px; width:95px; height:20px; text-align:center; vertical-align:middle; ">EN Tube 종류</caption>
  324. <caption id="caption6" class="cell_1" style="left:6px; top:390px; width:95px; height:23px; text-align:center; vertical-align:middle; ">C-LINE</caption>
  325. <textarea id="tar_cnstcnts4" ref="/root/main/cnstinfo/cnstcnts4" class="text_essential" navindex="3" scroll="auto" maxlength="166" autonext="false" style="left:6px; top:268px; width:754px; height:62px; ">
  326. <script type="javascript" ev:event="onmaxlength">
  327. <![CDATA[
  328. messageBox("입력가능한 글자수를", "E003");
  329. ]]>
  330. </script>
  331. </textarea>
  332. <shape id="rectangle2" appearance="rectangle" style="left:6px; top:358px; width:559px; height:25px; border-color:#c0c0c0; "/>
  333. <shape id="rectangle1" appearance="rectangle" style="left:6px; top:213px; width:474px; height:25px; border-color:#c0c0c0; "/>
  334. <shape id="rectangle3" appearance="rectangle" style="left:6px; top:162px; width:754px; height:25px; border-color:#c0c0c0; "/>
  335. <select1 id="rdo_cnstcnts6" ref="/root/main/cnstinfo/cnstcnts6" navindex="5" appearance="full" cellspacing="40" cols="5" rows="1" vcellspacing="5" overflow="visible" style="left:114px; top:392px; width:126px; height:20px; border-color:#c0c0c0; border-style:none; ">
  336. <choices>
  337. <item>
  338. <label>유</label>
  339. <value>1</value>
  340. </item>
  341. <item>
  342. <label>무</label>
  343. <value>2</value>
  344. </item>
  345. </choices>
  346. </select1>
  347. <shape id="rectangle4" appearance="rectangle" style="left:104px; top:391px; width:141px; height:23px; border-color:#c0c0c0; "/>
  348. <caption id="caption13" class="cell_1" style="left:5px; top:35px; width:95px; height:20; text-align:center; vertical-align:middle; border-style:none; ">의뢰영역</caption>
  349. <caption id="caption14" class="cell_1" style="left:5px; top:85px; width:95px; height:20; text-align:center; vertical-align:middle; border-style:none; ">의뢰유형</caption>
  350. <shape id="rectangle5" appearance="rectangle" style="left:6px; top:58px; width:759px; height:25px; border-color:#c0c0c0; "/>
  351. <shape id="rectangle6" appearance="rectangle" style="left:5px; top:108px; width:105px; height:25px; border-color:#c0c0c0; "/>
  352. <select1 id="rdo_cnstcnts9" ref="/root/main/cnstinfo/cnstcnts9" navindex="5" appearance="full" cellspacing="20" cols="5" rows="1" vcellspacing="5" overflow="visible" style="left:17px; top:110px; width:83px; height:20px; border-color:#c0c0c0; border-style:none; ">
  353. <choices>
  354. <item>
  355. <label>영양평가</label>
  356. <value>1</value>
  357. </item>
  358. </choices>
  359. </select1>
  360. <caption id="cap_title" ref="/root/temp/nst_title" style="left:105px; top:35px; width:525px; height:20px; font-size:12pt; font-weight:bold; color:#ff0000; ">caption23</caption>
  361. <select1 id="rdo_cnstcnts8" ref="/root/main/cnstinfo/cnstcnts8" navindex="5" appearance="full" cellspacing="330" cols="5" rows="1" vcellspacing="5" overflow="visible" style="left:17px; top:60px; width:503px; height:20px; border-color:#c0c0c0; border-style:none; ">
  362. <choices>
  363. <item>
  364. <label>EN</label>
  365. <value>1</value>
  366. </item>
  367. <item>
  368. <label>TPN</label>
  369. <value>2</value>
  370. </item>
  371. </choices>
  372. </select1>
  373. <select1 id="radio2" ref="/root/main/cnstinfo/cnstcnts2" navindex="1" appearance="full" cellspacing="42" cols="5" rows="2" vcellspacing="5" overflow="visible" style="left:19px; top:164px; width:731px; height:20px; border-color:#c0c0c0; border-style:none; ">
  374. <choices>
  375. <item>
  376. <label>EN(Tube Feeding)</label>
  377. <value>1</value>
  378. </item>
  379. <item>
  380. <label>TPN(Central)</label>
  381. <value>2</value>
  382. </item>
  383. <item>
  384. <label>PPN(Peripheral)</label>
  385. <value>3</value>
  386. </item>
  387. <item>
  388. <label>EN + TPN</label>
  389. <value>4</value>
  390. </item>
  391. <item>
  392. <label>EN + PPN</label>
  393. <value>5</value>
  394. </item>
  395. </choices>
  396. </select1>
  397. <select1 id="rdo_cnstcnts2" ref="/root/main/cnstinfo/cnstcnts2" navindex="1" appearance="full" cellspacing="50" cols="3" rows="2" vcellspacing="5" overflow="visible" style="left:20px; top:164px; width:523px; height:20px; border-color:#c0c0c0; border-style:none; ">
  398. <choices>
  399. <item>
  400. <label>EN(Tube Feeding)</label>
  401. <value>1</value>
  402. </item>
  403. <item>
  404. <label>EN + TPN</label>
  405. <value>4</value>
  406. </item>
  407. <item>
  408. <label>EN + PPN</label>
  409. <value>5</value>
  410. </item>
  411. </choices>
  412. </select1>
  413. <select1 id="rdo_cnstcnts3" ref="/root/main/cnstinfo/cnstcnts3" navindex="2" appearance="full" cellspacing="60" cols="4" rows="1" vcellspacing="5" overflow="visible" style="left:21px; top:216px; width:449px; height:20px; border-color:#c0c0c0; border-style:none; ">
  414. <choices>
  415. <item>
  416. <label>1주 이내</label>
  417. <value>1</value>
  418. </item>
  419. <item>
  420. <label>1~2주</label>
  421. <value>2</value>
  422. </item>
  423. <item>
  424. <label>2~4주</label>
  425. <value>3</value>
  426. </item>
  427. <item>
  428. <label>4주이상</label>
  429. <value>4</value>
  430. </item>
  431. </choices>
  432. </select1>
  433. <select1 id="combo1" ref="/root/temp/cnstcnst4_sel" appearance="minimal" style="left:188px; top:244px; width:445px; height:19px; ">
  434. <choices>
  435. <item>
  436. <label>적절한 영양평가 및 관리위해 의뢰합니다.</label>
  437. <value>적절한 영양평가 및 관리위해 의뢰합니다.</value>
  438. </item>
  439. <item>
  440. <label>NPO하면서 TPN중인환자로 영양평가 의뢰합니다.</label>
  441. <value>NPO하면서 TPN중인환자로 영양평가 의뢰합니다.</value>
  442. </item>
  443. <item>
  444. <label>Tube feeding중인 환자로 영양평가 의뢰합니다.</label>
  445. <value>Tube feeding중인 환자로 영양평가 의뢰합니다.</value>
  446. </item>
  447. <item>
  448. <label>TPN과 feeding병행 공급 중인 환자로 영양적절성 평가, 관리위해 의뢰합니다.</label>
  449. <value>TPN과 feeding병행 공급 중인 환자로 영양적절성 평가, 관리위해 의뢰합니다.</value>
  450. </item>
  451. </choices>
  452. <script type="javascript" ev:event="xforms-value-changed">
  453. <![CDATA[
  454. var cnst4_sel = model.getValue("/root/temp/cnstcnst4_sel");
  455. model.setValue("/root/main/cnstinfo/cnstcnts4", cnst4_sel);
  456. model.refresh();
  457. ]]>
  458. </script>
  459. </select1>
  460. <select1 id="rdo_cnstcnts5" ref="/root/main/cnstinfo/cnstcnts5" navindex="4" appearance="full" cellspacing="55" cols="5" rows="1" vcellspacing="5" overflow="visible" style="left:21px; top:361px; width:539px; height:20px; border-color:#c0c0c0; border-style:none; ">
  461. <choices>
  462. <item>
  463. <label>NG</label>
  464. <value>1</value>
  465. </item>
  466. <item>
  467. <label>NJ</label>
  468. <value>2</value>
  469. </item>
  470. <item>
  471. <label>PEG</label>
  472. <value>3</value>
  473. </item>
  474. <item>
  475. <label>Gastrotomy</label>
  476. <value>4</value>
  477. </item>
  478. <item>
  479. <label>Jejunostomy</label>
  480. <value>5</value>
  481. </item>
  482. </choices>
  483. </select1>
  484. <caption id="caption15" style="left:110px; top:245px; width:75px; height:20px; text-align:right; ">사유선택:</caption>
  485. </case>
  486. <case id="case2" style="left:0px; top:0px; width:768px; height:333px; ">
  487. <input id="ipt_mbasembolcm" class="input_default" navindex="8" autonext="false" maxlength="10" format="####.##" style="left:215px; top:35px; width:60px; height:19px; ">
  488. <script type="javascript" ev:event="onmaxlength">
  489. <![CDATA[
  490. messageBox("입력가능 범위를", "E003");
  491. ]]>
  492. </script>
  493. </input>
  494. <caption id="caption257" class="tit_2" style="left:9px; top:97px; width:391px; height:13px; ">필요열량(Total Caloric Need : TCN)</caption>
  495. <caption id="caption268" style="left:200px; top:147px; width:35px; height:20px; vertical-align:middle; ">(AF)x</caption>
  496. <caption id="caption323" style="left:391px; top:173px; width:20px; height:20px; vertical-align:middle; ">=</caption>
  497. <caption id="caption269" style="left:290px; top:147px; width:35px; height:20px; vertical-align:middle; ">(IF) =</caption>
  498. <caption id="caption324" style="left:38px; top:194px; width:59px; height:23px; vertical-align:middle; ">1784-11*(</caption>
  499. <caption id="caption149" style="left:4px; top:34px; width:112px; height:23px; vertical-align:middle; ">남자 : 66.5 + 13.7 x</caption>
  500. <input id="ipt_wbasembolcm" class="input_default" navindex="12" autonext="false" maxlength="10" format="######.####" style="left:215px; top:60px; width:60px; height:19px; ">
  501. <script type="javascript" ev:event="onmaxlength">
  502. <![CDATA[
  503. messageBox("입력가능 범위를", "E003");
  504. ]]>
  505. </script>
  506. </input>
  507. <caption id="caption226" style="left:155px; top:59px; width:65px; height:23px; text-align:center; vertical-align:middle; ">Kg + 1.9 x</caption>
  508. <caption id="caption259" style="left:383px; top:59px; width:23px; height:23px; text-align:center; vertical-align:middle; ">yr =</caption>
  509. <caption id="caption325" style="left:129px; top:194px; width:74px; height:23px; vertical-align:middle; ">
  510. <![CDATA[->나이)+5*(]]>
  511. </caption>
  512. <input id="ipt_needcalr7" class="input_default" navindex="23" autonext="false" editable="false" maxlength="10" format="######.####" style="left:235px; top:172px; width:60px; height:19px; ">
  513. <script type="javascript" ev:event="onmaxlength">
  514. <![CDATA[
  515. messageBox("입력가능 범위를", "E003");
  516. ]]>
  517. </script>
  518. </input>
  519. <caption id="caption326" style="left:240px; top:194px; width:74px; height:23px; vertical-align:middle; ">
  520. <![CDATA[->체중)+244(]]>
  521. </caption>
  522. <input id="ipt_mbasembolyy" class="input_default" navindex="9" autonext="false" maxlength="10" format="####.##" style="left:340px; top:35px; width:40px; height:19px; ">
  523. <script type="javascript" ev:event="onmaxlength">
  524. <![CDATA[
  525. messageBox("입력가능 범위를", "E003");
  526. ]]>
  527. </script>
  528. </input>
  529. <input id="ipt_mbasembolcalc" class="input_default" navindex="10" autonext="false" maxlength="10" format="######.####" style="left:408px; top:35px; width:55px; height:19px; ">
  530. <script type="javascript" ev:event="onmaxlength">
  531. <![CDATA[
  532. messageBox("입력가능 범위를", "E003");
  533. ]]>
  534. </script>
  535. </input>
  536. <input id="ipt_needcalr10" class="input_default" navindex="26" autonext="false" editable="false" maxlength="10" format="######.####" style="left:92px; top:195px; width:36px; height:19px; ">
  537. <script type="javascript" ev:event="onmaxlength">
  538. <![CDATA[
  539. messageBox("입력가능 범위를", "E003");
  540. ]]>
  541. </script>
  542. </input>
  543. <caption id="caption327" style="left:362px; top:194px; width:45px; height:23px; vertical-align:middle; ">)+239*</caption>
  544. <input id="ipt_mbasembolkg" class="input_default" navindex="7" autonext="false" maxlength="10" format="######.####" style="left:114px; top:35px; width:41px; height:19px; ">
  545. <script type="javascript" ev:event="onmaxlength">
  546. <![CDATA[
  547. messageBox("입력가능 범위를", "E003");
  548. ]]>
  549. </script>
  550. </input>
  551. <input id="ipt_needcalr4" class="input_default" navindex="20" autonext="false" editable="false" maxlength="10" format="######.####" style="left:325px; top:147px; width:70px; height:19px; ">
  552. <script type="javascript" ev:event="onmaxlength">
  553. <![CDATA[
  554. messageBox("입력가능 범위를", "E003");
  555. ]]>
  556. </script>
  557. </input>
  558. <caption id="caption306" style="left:630px; top:173px; width:90px; height:23px; vertical-align:middle; ">(+ W. F. : 20%)</caption>
  559. <input id="ipt_needcalr9" class="input_default" navindex="25" autonext="false" editable="false" maxlength="10" format="######.####" style="left:405px; top:172px; width:90px; height:19px; ">
  560. <script type="javascript" ev:event="onmaxlength">
  561. <![CDATA[
  562. messageBox("입력가능 범위를", "E003");
  563. ]]>
  564. </script>
  565. </input>
  566. <input id="ipt_needcalr15" class="input_default" navindex="31" autonext="false" editable="false" maxlength="10" format="######.####" style="left:558px; top:195px; width:50px; height:19px; ">
  567. <script type="javascript" ev:event="onmaxlength">
  568. <![CDATA[
  569. messageBox("입력가능 범위를", "E003");
  570. ]]>
  571. </script>
  572. </input>
  573. <caption id="caption328" style="left:454px; top:194px; width:47px; height:23px; vertical-align:middle; ">)+804*(</caption>
  574. <input id="input66" ref="/root/main/cnstinfo/cnstcnts6" class="input_default" navindex="15" autonext="false" maxlength="10" format="######.####" style="left:90px; top:122px; width:75px; height:19px; ">
  575. <script type="javascript" ev:event="onmaxlength">
  576. <![CDATA[
  577. messageBox("입력가능 범위를", "E003");
  578. ]]>
  579. </script>
  580. </input>
  581. <caption id="caption108" class="cell_2" style="left:5px; top:120px; width:83px; height:23px; vertical-align:middle; ">보정열량</caption>
  582. <caption id="caption180" style="left:155px; top:33px; width:50px; height:24px; text-align:center; vertical-align:middle; ">Kg + 5 x</caption>
  583. <input id="ipt_wbasembolkg" class="input_default" navindex="11" autonext="false" maxlength="10" format="######.####" style="left:114px; top:60px; width:40px; height:19px; ">
  584. <script type="javascript" ev:event="onmaxlength">
  585. <![CDATA[
  586. messageBox("입력가능 범위를", "E003");
  587. ]]>
  588. </script>
  589. </input>
  590. <input id="ipt_needcalr1" class="input_default" navindex="17" autonext="false" editable="false" maxlength="10" format="######.####" style="left:40px; top:147px; width:60px; height:19px; ">
  591. <script type="javascript" ev:event="onmaxlength">
  592. <![CDATA[
  593. messageBox("입력가능 범위를", "E003");
  594. ]]>
  595. </script>
  596. </input>
  597. <select1 id="cmb_needcalr6" class="combo_search" navindex="22" appearance="minimal" style="left:145px; top:172px; width:55px; height:19px; ">
  598. <choices>
  599. <item>
  600. <label>(1.2) confined to bed</label>
  601. <value>1.2</value>
  602. </item>
  603. <item>
  604. <label>(1.3) out of bed</label>
  605. <value>1.3</value>
  606. </item>
  607. </choices>
  608. </select1>
  609. <caption id="caption329" style="left:544px; top:194px; width:20px; height:23px; vertical-align:middle; ">)=</caption>
  610. <line id="line162" class="line_2" style="x1:5px; y1:192px; x2:763px; y2:192px; "/>
  611. <line id="line47" class="line_2" style="x1:5px; y1:142px; x2:763px; y2:142px; "/>
  612. <line id="line141" class="line_2" style="x1:5px; y1:57px; x2:763px; y2:57px; "/>
  613. <select1 id="cmb_needcalr2" class="combo_search" navindex="18" appearance="minimal" style="left:145px; top:147px; width:55px; height:19px; ">
  614. <choices>
  615. <item>
  616. <label>(1.2) confined to bed</label>
  617. <value>1.2</value>
  618. </item>
  619. <item>
  620. <label>(1.3) out of bed</label>
  621. <value>1.3</value>
  622. </item>
  623. </choices>
  624. </select1>
  625. <input id="ipt_needcalr11" class="input_default" navindex="27" autonext="false" editable="false" maxlength="10" format="######.####" style="left:196px; top:195px; width:44px; height:19px; ">
  626. <script type="javascript" ev:event="onmaxlength">
  627. <![CDATA[
  628. messageBox("입력가능 범위를", "E003");
  629. ]]>
  630. </script>
  631. </input>
  632. <line id="line163" class="line_3" style="x1:5px; y1:217px; x2:763px; y2:217px; "/>
  633. <caption id="caption182" style="left:275px; top:32px; width:63px; height:23px; text-align:center; vertical-align:middle; ">cm - 6.8 x</caption>
  634. <caption id="caption270" style="left:395px; top:147px; width:55px; height:20px; vertical-align:middle; ">kcal/day</caption>
  635. <select1 id="cmb_needcalr8" class="combo_search" navindex="24" appearance="minimal" style="left:335px; top:172px; width:55px; height:19px; ">
  636. <choices>
  637. <item>
  638. <label>(0.2) T.F. : 20~30%</label>
  639. <value>0.2</value>
  640. </item>
  641. <item>
  642. <label>(0.3) W.F. : 20%</label>
  643. <value>0.3</value>
  644. </item>
  645. </choices>
  646. </select1>
  647. <caption id="caption292" style="left:505px; top:173px; width:116px; height:23px; vertical-align:middle; ">( + T.F. : 20 ~ 30 %)</caption>
  648. <input id="ipt_wbasembolcalc" class="input_default" navindex="14" autonext="false" maxlength="10" format="######.####" style="left:408px; top:60px; width:55px; height:19px; ">
  649. <script type="javascript" ev:event="onmaxlength">
  650. <![CDATA[
  651. messageBox("입력가능 범위를", "E003");
  652. ]]>
  653. </script>
  654. </input>
  655. <line id="line143" class="line_3" style="x1:5px; y1:81px; x2:763px; y2:81px; "/>
  656. <select1 id="radio1" ref="/root/main/cnstinfo/cnstcnts7" navindex="16" appearance="full" cols="1" rows="3" vcellspacing="8" overflow="visible" style="left:5px; top:143px; width:35px; height:72px; border-style:none; ">
  657. <choices>
  658. <item>
  659. <label>=</label>
  660. <value>1</value>
  661. </item>
  662. <item>
  663. <label>=</label>
  664. <value>2</value>
  665. </item>
  666. <item>
  667. <label>=</label>
  668. <value>3</value>
  669. </item>
  670. </choices>
  671. <script type="javascript" ev:event="onclick">
  672. <![CDATA[
  673. fInitControl();
  674. fInitCnstCnts();
  675. model.refresh();
  676. if(model.getValue("/root/main/cnstinfo/cnstcnts7") == 1){
  677. ipt_needcalr1.attribute("ref") = "/root/main/cnstinfo/cnstcnts8";
  678. cmb_needcalr2.attribute("ref") = "/root/main/cnstinfo/cnstcnts9";
  679. cmb_needcalr3.attribute("ref") = "/root/main/cnstinfo/cnstcnts10";
  680. ipt_needcalr4.attribute("ref") = "/root/main/cnstinfo/cnstcnts11";
  681. ipt_needcalr1.attribute("editable") = "true";
  682. ipt_needcalr4.attribute("editable") = "true";
  683. }else if(model.getValue("/root/main/cnstinfo/cnstcnts7") == 2){
  684. ipt_needcalr5.attribute("ref") = "/root/main/cnstinfo/cnstcnts8";
  685. cmb_needcalr6.attribute("ref") = "/root/main/cnstinfo/cnstcnts9";
  686. ipt_needcalr7.attribute("ref") = "/root/main/cnstinfo/cnstcnts10";
  687. cmb_needcalr8.attribute("ref") = "/root/main/cnstinfo/cnstcnts11";
  688. ipt_needcalr9.attribute("ref") = "/root/main/cnstinfo/cnstcnts12";
  689. ipt_needcalr5.attribute("editable") = "true";
  690. ipt_needcalr7.attribute("editable") = "true";
  691. ipt_needcalr9.attribute("editable") = "true";
  692. }else if(model.getValue("/root/main/cnstinfo/cnstcnts7") == 3){
  693. ipt_needcalr10.attribute("ref") = "/root/main/cnstinfo/cnstcnts8";
  694. ipt_needcalr11.attribute("ref") = "/root/main/cnstinfo/cnstcnts9";
  695. cmb_needcalr12.attribute("ref") = "/root/main/cnstinfo/cnstcnts10";
  696. cmb_needcalr13.attribute("ref") = "/root/main/cnstinfo/cnstcnts11";
  697. cmb_needcalr14.attribute("ref") = "/root/main/cnstinfo/cnstcnts12";
  698. ipt_needcalr15.attribute("ref") = "/root/main/cnstinfo/cnstcnts13";
  699. ipt_needcalr10.attribute("editable") = "true";
  700. ipt_needcalr11.attribute("editable") = "true";
  701. ipt_needcalr15.attribute("editable") = "true";
  702. }
  703. model.refresh();
  704. ]]>
  705. </script>
  706. </select1>
  707. <select1 id="cmb_needcalr3" class="combo_search" navindex="19" appearance="minimal" style="left:235px; top:147px; width:55px; height:19px; ">
  708. <choices>
  709. <item>
  710. <label>(1.1) minor</label>
  711. <value>1.1</value>
  712. </item>
  713. <item>
  714. <label>(1.2) mild</label>
  715. <value>1.2</value>
  716. </item>
  717. <item>
  718. <label>(1.35) sleltal</label>
  719. <value>1.35</value>
  720. </item>
  721. <item>
  722. <label>(1.5) 40% BSA</label>
  723. <value>1.5</value>
  724. </item>
  725. <item>
  726. <label>(1.4) mod</label>
  727. <value>1.4</value>
  728. </item>
  729. <item>
  730. <label>(1.6) head with steroid Tx</label>
  731. <value>1.6</value>
  732. </item>
  733. <item>
  734. <label>(1.8) severe</label>
  735. <value>1.8</value>
  736. </item>
  737. <item>
  738. <label>(1.95) 100% BSA</label>
  739. <value>1.95</value>
  740. </item>
  741. </choices>
  742. </select1>
  743. <caption id="caption282" style="left:135px; top:173px; width:10px; height:20px; vertical-align:middle; ">x</caption>
  744. <caption id="caption195" style="left:383px; top:32px; width:23px; height:23px; text-align:center; vertical-align:middle; ">yr =</caption>
  745. <caption id="caption261" style="left:100px; top:148px; width:43px; height:20px; vertical-align:middle; ">(BEE)</caption>
  746. <line id="line145" class="line_1" style="x1:5px; y1:115px; x2:763px; y2:115px; "/>
  747. <select1 id="cmb_needcalr12" class="combo_search" navindex="28" appearance="minimal" style="left:312px; top:195px; width:50px; height:19px; ">
  748. <choices>
  749. <item>
  750. <label>male</label>
  751. <value>1</value>
  752. </item>
  753. <item>
  754. <label>female</label>
  755. <value>0</value>
  756. </item>
  757. </choices>
  758. </select1>
  759. <input id="ipt_wbasembolyy" class="input_default" navindex="13" autonext="false" maxlength="10" format="######.####" style="left:340px; top:60px; width:40px; height:19px; ">
  760. <script type="javascript" ev:event="onmaxlength">
  761. <![CDATA[
  762. messageBox("입력가능 범위를", "E003");
  763. ]]>
  764. </script>
  765. </input>
  766. <caption id="caption263" style="left:135px; top:148px; width:10px; height:20px; vertical-align:middle; ">x</caption>
  767. <input id="ipt_needcalr5" class="input_default" navindex="21" autonext="false" editable="false" maxlength="10" format="######.####" style="left:40px; top:172px; width:60px; height:19px; ">
  768. <script type="javascript" ev:event="onmaxlength">
  769. <![CDATA[
  770. messageBox("입력가능 범위를", "E003");
  771. ]]>
  772. </script>
  773. </input>
  774. <caption id="caption285" style="left:295px; top:173px; width:40px; height:19px; vertical-align:middle; ">(BEE)</caption>
  775. <select1 id="cmb_needcalr13" class="combo_search" navindex="29" appearance="minimal" style="left:405px; top:195px; width:50px; height:19px; ">
  776. <choices>
  777. <item>
  778. <label>present</label>
  779. <value>1</value>
  780. </item>
  781. <item>
  782. <label>absent</label>
  783. <value>0</value>
  784. </item>
  785. </choices>
  786. </select1>
  787. <caption id="caption275" style="left:200px; top:173px; width:35px; height:20px; vertical-align:middle; ">(AF)+</caption>
  788. <caption id="caption330" style="left:610px; top:194px; width:155px; height:23px; vertical-align:middle; ">kcal/day(Ventilator care시)</caption>
  789. <select1 id="cmb_needcalr14" class="combo_search" navindex="30" appearance="minimal" style="left:495px; top:195px; width:50px; height:19px; ">
  790. <choices>
  791. <item>
  792. <label>present</label>
  793. <value>1</value>
  794. </item>
  795. <item>
  796. <label>absent</label>
  797. <value>0</value>
  798. </item>
  799. </choices>
  800. </select1>
  801. <line id="line137" class="line_1" style="x1:5px; y1:30px; x2:763px; y2:30px; "/>
  802. <caption id="caption133" class="tit_2" style="left:9px; top:15px; width:391px; height:13px; ">기초대사량(BAsal Energy Expenditure : BEE)</caption>
  803. <caption id="caption210" style="left:275px; top:59px; width:65px; height:23px; text-align:center; vertical-align:middle; ">cm - 4.7 x</caption>
  804. <caption id="caption276" style="left:100px; top:173px; width:40px; height:19px; vertical-align:middle; ">(BEE)</caption>
  805. <caption id="caption331" style="left:399px; top:196px; width:15px; height:20px; vertical-align:middle; ">(</caption>
  806. <caption id="caption211" style="left:4px; top:59px; width:106px; height:23px; vertical-align:middle; ">여자 : 665 + 9.6 x</caption>
  807. <line id="line149" class="line_2" style="x1:5px; y1:168px; x2:763px; y2:168px; "/>
  808. </case>
  809. </switch>
  810. <button id="button6" class="btn_sw" group="tab" selected="true" style="left:0px; top:58px; width:65px; height:22px; ">
  811. <caption>NST의뢰</caption>
  812. <!--<toggle case="case1" ev:event="onclick"/>-->
  813. <script type="javascript" ev:event="onclick">
  814. <![CDATA[
  815. if(model.getValue("/root/main/cnstinfo/cnstcnts1") == 2){
  816. for(var i = 0; i < 12; i++){
  817. temp2[i] = model.getValue("/root/main/cnstinfo/cnstcnts"+ (i+2));
  818. }
  819. model.setValue("/root/main/cnstinfo/cnstcnts1", "1");
  820. model.setValue("/root/main/cnstinfo/cnstcnts2", temp1[0]);
  821. model.setValue("/root/main/cnstinfo/cnstcnts3", temp1[1]);
  822. model.setValue("/root/main/cnstinfo/cnstcnts4", temp1[2]);
  823. model.setValue("/root/main/cnstinfo/cnstcnts5", temp1[3]);
  824. model.setValue("/root/main/cnstinfo/cnstcnts6", temp1[4]);
  825. model.setValue("/root/main/cnstinfo/cnstcnts7", temp1[5]);
  826. model.setValue("/root/main/cnstinfo/cnstcnts8", temp1[6]);
  827. model.setValue("/root/main/cnstinfo/cnstcnts9", temp1[7]);
  828. model.setValue("/root/main/cnstinfo/cnstcnts10", "");
  829. model.setValue("/root/main/cnstinfo/cnstcnts11", "");
  830. model.setValue("/root/main/cnstinfo/cnstcnts12", "");
  831. model.setValue("/root/main/cnstinfo/cnstcnts13", "");
  832. model.toggle("case1");
  833. }
  834. model.refresh();
  835. ]]>
  836. </script>
  837. </button>
  838. <button id="button7" class="btn_sw" visibility="hidden" group="tab" style="left:64px; top:58px; width:96px; height:22px; ">
  839. <caption>열량요구량계산</caption>
  840. <!--<toggle case="case2" ev:event="onclick"/>-->
  841. <script type="javascript" ev:event="onclick">
  842. <![CDATA[
  843. if(model.getValue("/root/main/cnstinfo/cnstcnts1") == 1){
  844. for(var i = 0; i < 8; i++){
  845. temp1[i] = model.getValue("/root/main/cnstinfo/cnstcnts"+ (i+2));
  846. }
  847. model.setValue("/root/main/cnstinfo/cnstcnts1", "2");
  848. model.setValue("/root/main/cnstinfo/cnstcnts2", temp2[0]);
  849. model.setValue("/root/main/cnstinfo/cnstcnts3", temp2[1]);
  850. model.setValue("/root/main/cnstinfo/cnstcnts4", temp2[2]);
  851. model.setValue("/root/main/cnstinfo/cnstcnts5", temp2[3]);
  852. model.setValue("/root/main/cnstinfo/cnstcnts6", temp2[4]);
  853. model.setValue("/root/main/cnstinfo/cnstcnts7", temp2[5]);
  854. model.setValue("/root/main/cnstinfo/cnstcnts8", temp2[6]);
  855. model.setValue("/root/main/cnstinfo/cnstcnts9", temp2[7]);
  856. model.setValue("/root/main/cnstinfo/cnstcnts10", temp2[8]);
  857. model.setValue("/root/main/cnstinfo/cnstcnts11", temp2[9]);
  858. model.setValue("/root/main/cnstinfo/cnstcnts12", temp2[10]);
  859. model.setValue("/root/main/cnstinfo/cnstcnts13", temp2[11]);
  860. model.toggle("case2");
  861. }
  862. if(isSearchString(model.getValue("/root/main/patinfo/sna"), "M")){
  863. ipt_wbasembolkg.attribute("editable") = "false";
  864. ipt_wbasembolcm.attribute("editable") = "false";
  865. ipt_wbasembolyy.attribute("editable") = "false";
  866. ipt_wbasembolcalc.attribute("editable") = "false";
  867. ipt_mbasembolkg.attribute("ref") = "/root/main/cnstinfo/cnstcnts2";
  868. ipt_mbasembolcm.attribute("ref") = "/root/main/cnstinfo/cnstcnts3";
  869. ipt_mbasembolyy.attribute("ref") = "/root/main/cnstinfo/cnstcnts4";
  870. ipt_mbasembolcalc.attribute("ref") = "/root/main/cnstinfo/cnstcnts5";
  871. }else if(isSearchString(model.getValue("/root/main/patinfo/sna"), "F")){
  872. ipt_mbasembolkg.attribute("editable") = "false";
  873. ipt_mbasembolcm.attribute("editable") = "false";
  874. ipt_mbasembolyy.attribute("editable") = "false";
  875. ipt_mbasembolcalc.attribute("editable") = "false";
  876. ipt_wbasembolkg.attribute("ref") = "/root/main/cnstinfo/cnstcnts2";
  877. ipt_wbasembolcm.attribute("ref") = "/root/main/cnstinfo/cnstcnts3";
  878. ipt_wbasembolyy.attribute("ref") = "/root/main/cnstinfo/cnstcnts4";
  879. ipt_wbasembolcalc.attribute("ref") = "/root/main/cnstinfo/cnstcnts5";
  880. }
  881. model.refresh();
  882. ]]>
  883. </script>
  884. </button>
  885. <line id="line2" class="line_3" style="x1:5px; y1:216px; x2:765px; y2:216px; "/>
  886. <switch id="switch2" class="sw_no_border" style="left:0px; top:0px; width:770px; height:56px; ">
  887. <case id="case3" selected="true" style="border-color:ff0000; ">
  888. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:765px; height:55px; "/>
  889. <output id="output1" ref="/root/main/patinfo/sna" class="output_search" style="left:710px; top:30px; width:45px; height:19px; "/>
  890. <output id="output2" ref="/root/main/patinfo/requsernm" class="output_search" appearance="output" style="left:295px; top:30px; width:90px; height:19px; "/>
  891. <output id="output3" ref="/root/main/patinfo/hngnm" class="output_search" style="left:500px; top:30px; width:90px; height:19px; "/>
  892. <caption id="caption16" class="search_name" style="left:610px; top:30px; width:95px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">성별/나이 :</caption>
  893. <caption id="caption17" class="search_name" style="left:5px; top:5px; width:90px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">처방구분 :</caption>
  894. <caption id="caption18" class="search_name" style="left:200px; top:5px; width:90px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">진료과 :</caption>
  895. <output id="output4" ref="/root/main/patinfo/pid" class="output_search" appearance="output" maxlength="10" style="left:500px; top:5px; width:90px; height:19px; "/>
  896. <caption id="caption19" class="search_name" style="left:400px; top:30px; width:65px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">이름 :</caption>
  897. <caption id="caption20" class="search_name" style="left:5px; top:30px; width:90px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">병실 :</caption>
  898. <caption id="caption21" class="search_name" style="left:400px; top:5px; width:90px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
  899. <caption id="caption22" class="search_name" style="left:200px; top:30px; width:90px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">처방의사 :</caption>
  900. <output id="output5" ref="/root/main/patinfo/reqdeptnm" class="output_search" appearance="output" style="left:295px; top:5px; width:90px; height:19px; "/>
  901. <output id="output7" ref="/root/main/patinfo/prcpflag" class="output_search" style="left:100px; top:5px; width:90px; height:19px; "/>
  902. <output id="output8" ref="/root/main/patinfo/roomcd" class="output_search" style="left:100px; top:30px; width:90px; height:19px; "/>
  903. </case>
  904. <case id="case4">
  905. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:765px; height:55px; "/>
  906. <caption id="caption7" class="search_name" style="left:280px; top:5px; width:90px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">의뢰부서 :</caption>
  907. <caption id="caption8" class="search_name" style="left:280px; top:30px; width:90px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">의뢰자 :</caption>
  908. <caption id="caption9" class="search_name" style="left:520px; top:5px; width:90px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">수신부서 :</caption>
  909. <caption id="caption10" class="search_name" style="left:520px; top:30px; width:90px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">수신자:</caption>
  910. <caption id="caption11" class="search_name" style="left:15px; top:5px; width:90px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
  911. <caption id="caption12" class="search_name" style="left:15px; top:30px; width:90px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">성명 :</caption>
  912. <output id="input1" ref="/root/temp/cnstinfo/pid" class="output_search" appearance="output" style="left:110px; top:4px; width:105px; height:19px; "/>
  913. <output id="output6" ref="/root/temp/cnstinfo/pidnm" class="output_search" appearance="output" style="left:110px; top:28px; width:105px; height:19px; "/>
  914. <output id="output9" ref="/root/temp/cnstinfo/requsernm" class="output_search" appearance="output" style="left:370px; top:30px; width:105px; height:19px; "/>
  915. <output id="output10" ref="/root/temp/cnstinfo/reqdeptnm" class="output_search" appearance="output" style="left:370px; top:6px; width:105px; height:19px; "/>
  916. <output id="output11" ref="/root/temp/cnstinfo/recvdeptnm" class="output_search" appearance="output" style="left:610px; top:6px; width:105px; height:19px; "/>
  917. <output id="output12" ref="/root/temp/cnstinfo/recvusernm" class="output_search" appearance="output" style="left:610px; top:30px; width:105px; height:19px; "/>
  918. </case>
  919. </switch>
  920. </group>
  921. <switch id="switch3" class="sw_no_border" style="left:0px; top:555px; width:770px; height:30px; ">
  922. <case id="case5" selected="true">
  923. <button id="btn_cnst" class="btn4_letter2" style="left:650px; top:5px; width:56px; height:22px; ">
  924. <caption>의뢰</caption>
  925. <script type="javascript" ev:event="DOMActivate">
  926. <![CDATA[
  927. if(model.getValue("/root/main/cnstinfo/cnstcnts4") == ""){
  928. messageBox("의뢰사유는","I003");
  929. model.setFocus("tar_cnstcnts4");
  930. }else{
  931. if ( messageBox("의뢰내용을","Q002")==6 ){
  932. model.setValue("/root/main/cnstinfo/cnststat", "12");
  933. model.setValue("/root/main/cnstinfo/reqdd", getCurrentDate());
  934. model.setValue("/root/main/cnstinfo/reqhm", astgetCurrentTime());
  935. //////////// 2016년 5월2일 김치국 신청시 기존 등록된 의뢰현황 종료유무 체크
  936. model.setValue("/root/send/pidformcd/pid",model.getValue("/root/main/patinfo/pid"));
  937. model.setValue("/root/send/pidformcd/orddd", model.getValue("/root/main/cnstinfo/orddd"));
  938. model.setValue("/root/send/pidformcd/formcd", model.getValue("root/main/cnstinfo/formcd"));
  939. submit("TRADC62204");
  940. //alert(model.getValue("/root/temp/nstfinishyn/finishyn"));
  941. if(model.getValue("/root/temp/nstfinishyn/finishyn") == "N"){
  942. messageBox("등록된 NST 의뢰가 종료되지 않아, 의뢰은 할수없습니다.","");
  943. return ;
  944. }
  945. ////////////
  946. fSaveCnst();
  947. /*
  948. //2008-11-01 의뢰후 진료처방으로 Return Start -- 진료오류발생되어 임시 막기.
  949. var tdm_tpn_key = model.getValue("/root/hidden/item/cnstkind") + model.getValue("/root/hidden/item/cnstseqno");
  950. opener.model.removeNodeset("/root/hidden/reqfrminfo/reqno");
  951. opener.model.makeValue ( "/root/hidden/reqfrminfo/reqno" , tdm_tpn_key );
  952. //2008-11-01 의뢰후 진료처방으로 Return End
  953. */
  954. model.close();
  955. }
  956. }
  957. ]]>
  958. </script>
  959. </button>
  960. <button id="btn_cancel" class="btn4_letter2" style="left:710px; top:5px; width:56px; height:22px; ">
  961. <caption>취소</caption>
  962. <script type="javascript" ev:event="DOMActivate">
  963. <![CDATA[
  964. model.close();
  965. ]]>
  966. </script>
  967. </button>
  968. <button id="button1" class="btn4_letter2" visibility="hidden" style="left:410px; top:5px; width:56px; height:22px; ">
  969. <caption>저장</caption>
  970. <script type="javascript" ev:event="DOMActivate">
  971. <![CDATA[
  972. model.setValue("/root/main/cnstinfo/cnststat", "11");
  973. fSaveCnst();
  974. ]]>
  975. </script>
  976. </button>
  977. </case>
  978. <case id="case6">
  979. <button id="btn_cnstcancel" class="btn4_letter4" style="left:627px; top:5px; width:80px; height:22px; ">
  980. <caption>의뢰취소</caption>
  981. <script type="javascript" ev:event="DOMActivate">
  982. <![CDATA[
  983. if(submit("TRADC62202")){
  984. var cnststat = model.getValue("/root/hidden/cnststatinfo/cnststat");
  985. if(cnststat == "22"){
  986. messageBox("[회신] 의뢰를 취소할 수","I004");
  987. }else if(cnststat == "21"){
  988. messageBox("[임시회신] 의뢰를 취소할 수","I004");
  989. }else if(cnststat == "20"){
  990. messageBox("[의뢰확정] 의뢰를 취소할 수","I004");
  991. }else if(messageBox("의뢰를","Q007") == 6){
  992. model.setValue("/root/send/srchinfo/cnststat", "04");
  993. if(submit("TXADC61702")){
  994. messageBox("요청하신 작업이","I001");
  995. window.close();
  996. }
  997. }
  998. }
  999. ]]>
  1000. </script>
  1001. </button>
  1002. <button id="btn_cancel1" class="btn4_letter2" style="left:710px; top:5px; width:56px; height:22px; ">
  1003. <caption>취소</caption>
  1004. <script type="javascript" ev:event="DOMActivate">
  1005. <![CDATA[
  1006. model.close();
  1007. ]]>
  1008. </script>
  1009. </button>
  1010. </case>
  1011. </switch>
  1012. </xhtml:body>
  1013. </xhtml:html>