SMANC00200_영양교육관리.xrw 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759
  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>영양교육/관리접수</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <item>
  11. <data>
  12. <check/>
  13. <mngtstat/>
  14. <bizflag/>
  15. <h_prcpstatcd/>
  16. <reqdd/>
  17. <reqddhm/>
  18. <execprcpuniqno/>
  19. <pid/>
  20. <patflag/>
  21. <hngnm/>
  22. <h_brthdd/>
  23. <h_sex/>
  24. <sexage/>
  25. <diagnm/>
  26. <orddept/>
  27. <atdoct/>
  28. <educreqcnts/>
  29. <reccnts/>
  30. <rsrvdd/>
  31. <eductm/>
  32. <rsrvtodd/>
  33. <eductotm/>
  34. <educplce/>
  35. <dieter/>
  36. <rcptyn/>
  37. <h_rcptdd/>
  38. <h_cretno/>
  39. <h_orddeptcd/>
  40. <h_prcpgenrflag/>
  41. <h_orddd/>
  42. <h_prcpcd/>
  43. <h_nurse/>
  44. <h_formrecseq/>
  45. <execdd/>
  46. <formcd/>
  47. <rgstseqno/>
  48. <repldd/>
  49. <nutrmngtkind/>
  50. <sickcd/>
  51. <cnstseqno/>
  52. <sau/>
  53. <cnstcnts9/>
  54. </data>
  55. </item>
  56. <patinfo>
  57. <patinfolist/>
  58. </patinfo>
  59. </main>
  60. <send>
  61. <searchitem>
  62. <reqfromdd/>
  63. <reqtodd/>
  64. <rsrvfromdd/>
  65. <rsrvtodd/>
  66. <orddept/>
  67. <patflag/>
  68. <bizflag/>
  69. <pid/>
  70. <hngnm/>
  71. <ward/>
  72. <dieter/>
  73. <educplce/>
  74. <srchflag/>
  75. <cnststat/>
  76. <educreqcnts/>
  77. </searchitem>
  78. <req>
  79. <list/>
  80. </req>
  81. <popup>
  82. <flag/>
  83. <pid/>
  84. <hngnm/>
  85. <reqdd/>
  86. <reqpsn/>
  87. <orddrid/>
  88. <educreqcnts/>
  89. <reccnts/>
  90. <h_cretno/>
  91. <h_orddeptcd/>
  92. <h_prcpgenrflag/>
  93. <h_orddd/>
  94. <h_formrecseq/>
  95. <execprcpuniqno/>
  96. <nutrmngtkind/>
  97. <execdd/>
  98. </popup>
  99. <openpopup/>
  100. <cnclresninpt>
  101. <reqcnts/>
  102. <dieter/>
  103. <cnclresn/>
  104. </cnclresninpt>
  105. </send>
  106. <temp>
  107. <popupmenu>
  108. <menu>
  109. <label>환자별영양관리</label>
  110. <func>fOpenPopup</func>
  111. </menu>
  112. </popupmenu>
  113. <cnstinfo>
  114. <formrecseq/>
  115. <pid/>
  116. <rgstseqno/>
  117. <cnstdd/>
  118. <prcpgenrflag/>
  119. <orddd/>
  120. <cretno/>
  121. <cnsttype/>
  122. <formcd/>
  123. <cnstseqno/>
  124. <sau/>
  125. <cnstcnts9/>
  126. </cnstinfo>
  127. </temp>
  128. <init>
  129. <basecode>
  130. <orddept>
  131. <dept>
  132. <deptcd/>
  133. <depthngnm/>
  134. </dept>
  135. </orddept>
  136. <ward>
  137. <dept>
  138. <deptcd/>
  139. <depthngnm/>
  140. </dept>
  141. </ward>
  142. <dieter>
  143. <dieter>
  144. <cdid/>
  145. <cdnm/>
  146. </dieter>
  147. </dieter>
  148. <nutrmngtkind>
  149. <A0060>
  150. <cdid/>
  151. <cdnm/>
  152. </A0060>
  153. </nutrmngtkind>
  154. <sickcd>
  155. <A0059>
  156. <cdid/>
  157. <cdnm/>
  158. </A0059>
  159. </sickcd>
  160. <canclecmt>
  161. <A161>
  162. <cdid/>
  163. <cdnm/>
  164. </A161>
  165. </canclecmt>
  166. </basecode>
  167. <userinfo>
  168. <info/>
  169. </userinfo>
  170. <baseinfo>
  171. <initplace/>
  172. <canclecmt/>
  173. </baseinfo>
  174. </init>
  175. <hidden/>
  176. </root>
  177. </instance>
  178. <submission id="TRZBC00101"/>
  179. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  180. <submission id="TRANC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main/item"/>
  181. <submission id="TRANC00202" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/basecode/dieter"/>
  182. <submission id="TXANC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req"/>
  183. <submission id="TRAAA00001"/>
  184. </model>
  185. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  186. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  187. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  188. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  189. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  190. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  191. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  192. <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
  193. <script type="javascript" ev:event="xforms-ready">
  194. <![CDATA[
  195. finit();
  196. // grd_data.hint = " "; //의뢰기록내용을 말풍선으로 보여주기위함.
  197. // grd_data.attribute("tooltip") = "false"; //의뢰기록내용을 말풍선으로 보여주기위함.
  198. // grd_data.attribute("onshowhint") = "showhint()"; //의뢰기록내용을 말풍선으로 보여주기위함.
  199. //model.setValue("/root/send/searchitem/posdeptcd", getUserInfo("posdeptcd")); //소속부서코드
  200. btn_search.disabled = !checkAuth("R");
  201. btn_save.disabled = !checkAuth("X");
  202. btn_excel.disabled = !checkAuth("P");
  203. astGetComboList( new Array("A160", "A161"), new Array("/root/init/baseinfo/initplace", "/root/init/baseinfo/canclecmt") );
  204. submit("TRAAA00001", false);
  205. submit("TRANC00202"); //영양사 조회
  206. //화면open시 영양관리유형, 질환명에 코드를 setting해준다.
  207. zbcfGetCodeList( new Array( "A0060", "A0059", "A161" ), new Array("/root/init/basecode/nutrmngtkind", "/root/init/basecode/sickcd","/root/init/basecode/canclecmt") );
  208. ]]>
  209. </script>
  210. <script type="javascript">
  211. <![CDATA[
  212. function finit() {
  213. // 화면open시 공통코드 setting
  214. //zbcfGetCodeList( new Array( "A0058", "P0149", "P0160" ), new Array( "/root/init/basecode/dngr", "/root/init/basecode/orddept", "/root/init/basecode/ward" ) );
  215. zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), 'orduseyn', 'D', '/root/init/basecode/orddept');
  216. astfAddCombo("/root/init/basecode/orddept","dept","deptcd,depthngnm",",");
  217. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), 'orduseyn', 'W', '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), "", 'after');
  218. zsdfGetWardDeptList(getUserInfo("dutplceinstcd"), '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), 'after');
  219. model.removeNodeset("/root/main/item/data");
  220. model.resetInstanceNode("/root/send");
  221. model.setValue("/root/send/searchitem/reqfromdd", getCurrentDate());
  222. model.setValue("/root/send/searchitem/reqtodd", getCurrentDate());
  223. model.setValue("/root/send/searchitem/patflag", "-");
  224. model.setValue("/root/send/searchitem/bizflag", "0");
  225. model.setValue("/root/send/searchitem/cnststat", "N");
  226. //model.setValue("/root/send/searchitem/dieter", getUserInfo("userid"));
  227. //model.setValue("/root/send/searchitem/rsrvfromdd",getCurrentDate());
  228. //model.setValue("/root/send/searchitem/rsrvtodd",getCurrentDate());
  229. model.refresh();
  230. }
  231. //의뢰기록내용을 말풍선으로 보여주기위함.
  232. // function showhint() {
  233. // var hint = window.hint;
  234. //
  235. // // 말풍선이 생기는 그리드 추출
  236. // grid = document.all( event.target );
  237. //
  238. // // 이벤트가 데이터영역 이외의 부분에서 일어나는 경우
  239. // if ( grid.mouseRow < grid.fixedRows) {
  240. // hint.text="";
  241. // hint.attribute("width")="0px";
  242. // }
  243. // // 데이터 영역에서 이벤트가 일어나는 경우
  244. // else {
  245. // // 말풍선에 display할 텍스트 추출
  246. // text = grid.valueMatrix( grid.mouseRow , grid.colRef("reccnts"));
  247. // if(text == "") {
  248. // hint.attribute("width")="0px";
  249. // }else {
  250. // // hidden으로 있는 캡션을 사용해서 말풍선의 width 계산
  251. // hintcaption.value = text;
  252. // // 말풍선의 텍스트 지정
  253. // hint.text = text;
  254. //
  255. // // 말풍선 폭 계산
  256. // var hintWidth = removePx( hintcaption.attribute("width") ) + 10;
  257. // var hintHeight = removePx( hintcaption.attribute("height") ) + 10;
  258. // // 마우스 포인터 위치 계산
  259. // var mouseX = removePx( event.screenX );
  260. // // 화면 해상도 계산
  261. // var screenWidth = removePx( htmlwindow.screen.width );
  262. // // 말풍선의 width 지정
  263. // hint.attribute("width") = hintWidth;
  264. // hint.attribute("height") = hintHeight;
  265. // hint.attribute("text-align") = "left";
  266. // // 말풍선이 화면의 오른쪽 끝을 넘어가는 경우 시작점 변경
  267. // if ( hintWidth + mouseX > screenWidth - 10 ) {
  268. // hint.attribute("left") = mouseX - hintWidth;
  269. // }
  270. // }
  271. // }
  272. // }
  273. // 숫자 뒤에 붙는 문자를 제거 하여 숫자만 반환
  274. function removePx(srcNum, replacStr) {
  275. if( replacStr ){
  276. if( !isNumber(srcNum) ) srcNum = srcNum.replace(replacStr, "");
  277. }else{
  278. if( !isNumber(srcNum) ) srcNum = srcNum.replace("px", "");
  279. }
  280. return parseInt(srcNum);
  281. }
  282. // TODO :: 숫자인지 체크
  283. function isNumber(str){
  284. return (/^[0-9]*$/gi).test(str);
  285. }
  286. function fOpenPopup() {
  287. var rowNode;
  288. var destNode = instance1.selectSingleNode("/root/send/openpopup");
  289. for( var i = 0; i < grd_data.selectedRows; i++ ) {
  290. rowNode = instance1.selectSingleNode("/root/main/item/data[" + (grd_data.selectedRow(i) - grd_data.fixedRows + 1) + "]");
  291. model.duplicate(destNode, rowNode);
  292. }
  293. model.copyNode("/root/send/openpopup", "/root/main/item/data[" + grd_data.row + "]");
  294. modal("SMANC00300", "", "", "", "popup", "/root/send/openpopup", "/root/main/receivedata");
  295. }
  296. ]]>
  297. </script>
  298. </xhtml:head>
  299. <xhtml:body guideline="1,1194;2,758;2,783;2,14;2,752;" style="border-left-style:none; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  300. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:15px; ">
  301. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:146px; height:14px; ">영양교육/관리접수</caption>
  302. </group>
  303. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  304. <group id="grp_sea" overflow="hidden" style="left:0px; top:10px; width:1194px; height:89px; vertical-align:top; ">
  305. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:88px; background-color:#fffbf2; "/>
  306. <button id="btn_search" class="btn1_letter2" style="left:1120px; top:15px; width:56px; height:22px; ">
  307. <caption>조회</caption>
  308. <script type="javascript" ev:event="DOMActivate">
  309. <![CDATA[
  310. // if (model.getValue("/root/send/searchitem/patflag") == "") {
  311. // model.setValue("/root/send/searchitem/patflag", "-")
  312. // }
  313. var reqfromdd = model.getValue("/root/send/searchitem/reqfromdd");
  314. var reqtodd = model.getValue("/root/send/searchitem/reqtodd");
  315. var rsrvfromdd = model.getValue("/root/send/searchitem/rsrvfromdd");
  316. var rsrvtodd = model.getValue("/root/send/searchitem/rsrvtodd");
  317. if ((getDateInterval(reqfromdd, reqtodd) < 0) || (getDateInterval(rsrvfromdd, rsrvtodd) < 0)) {
  318. messageBox("조회 시작일은 종료일보다 클 수", "I004");
  319. return;
  320. }
  321. if ( (reqfromdd == "" || reqtodd == "") && (rsrvfromdd == "" || rsrvtodd == "") ) {
  322. messageBox("의뢰일자 또는 예약일자를", "C002");
  323. return;
  324. }
  325. if ( reqfromdd == "" || reqtodd == "" ) {
  326. model.setValue("/root/send/searchitem/srchflag", "2"); //의뢰일자 없이 예약일자로 조회
  327. } else {
  328. model.setValue("/root/send/searchitem/srchflag", "1"); //의뢰일자로 조회
  329. }
  330. submit("TRANC00201");
  331. //조회 후 처리
  332. //row status가 null이기 때문에 무조건 'insert'로 초기화한다. - 저장버튼 클릭시 무조건 조회된 전체 리스트를 저장하기 위함.
  333. // for ( i=1; i<grd_data.rows; i++) {
  334. // grd_data.addStatus(i, "insert");
  335. // }
  336. // model.refresh();
  337. ]]>
  338. </script>
  339. </button>
  340. <line id="line1" style="x1:1105px; y1:10px; x2:1105px; y2:75px; "/>
  341. <input id="ipt_reqtodd" ref="/root/send/searchitem/reqtodd" class="input_s_essential" inputtype="date" style="left:211px; top:10px; width:95px; height:19px; "/>
  342. <select1 id="cmb_orddept" ref="/root/send/searchitem/orddept" class="combo_s_essential" appearance="minimal" style="left:737px; top:10px; width:115px; height:19px; ">
  343. <choices>
  344. <itemset nodeset="/root/init/basecode/orddept/dept">
  345. <label ref="depthngnm"/>
  346. <value ref="deptcd"/>
  347. </itemset>
  348. </choices>
  349. </select1>
  350. <caption id="caption3" style="left:196px; top:12px; width:15px; height:15px; font-weight:bold; vertical-align:middle; ">~</caption>
  351. <caption id="caption6" class="search_name" style="left:325px; top:35px; width:132px; height:17px; ">등록번호/환자명 :</caption>
  352. <button id="btn_pid" class="icon_search" style="left:625px; top:35px; width:16px; height:16px; ">
  353. <caption/>
  354. <script type="javascript" ev:event="DOMActivate">
  355. <![CDATA[
  356. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
  357. model.setValue("/root/send/searchitem/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  358. model.setValue("/root/send/searchitem/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  359. model.refresh();
  360. ]]>
  361. </script>
  362. </button>
  363. <select1 id="cmb_ward" ref="/root/send/searchitem/ward" class="combo_s_essential" appearance="minimal" style="left:935px; top:10px; width:140px; height:19px; ">
  364. <choices>
  365. <itemset nodeset="/root/init/basecode/ward/dept">
  366. <label ref="depthngnm"/>
  367. <value ref="deptcd"/>
  368. </itemset>
  369. </choices>
  370. <script type="javascript" ev:event="xforms-select">
  371. <![CDATA[
  372. //병동 선택시 환자구분을 입원으로 셋팅
  373. if ( cmb_ward.value != "" ) {
  374. rdo_patflag.value = 'I';
  375. rdo_patflag.refresh();
  376. }
  377. ]]>
  378. </script>
  379. </select1>
  380. <caption id="caption5" class="search_name" style="left:325px; top:60px; width:91px; height:17px; ">업무구분 :</caption>
  381. <select1 id="cmb_bizflag" ref="/root/send/searchitem/bizflag" class="combo_s_essential" appearance="minimal" style="left:415px; top:60px; width:90px; height:19px; ">
  382. <choices>
  383. <item>
  384. <label/>
  385. <value>0</value>
  386. </item>
  387. <item>
  388. <label>교육</label>
  389. <value>1</value>
  390. </item>
  391. <item>
  392. <label>교육예약</label>
  393. <value>2</value>
  394. </item>
  395. <item>
  396. <label>면담중</label>
  397. <value>3</value>
  398. </item>
  399. <item>
  400. <label>관리</label>
  401. <value>4</value>
  402. </item>
  403. <item>
  404. <label>관리예약</label>
  405. <value>5</value>
  406. </item>
  407. <item>
  408. <label>관리중</label>
  409. <value>6</value>
  410. </item>
  411. </choices>
  412. </select1>
  413. <caption id="caption8" class="search_name" style="left:663px; top:60px; width:90px; height:17px; ">교육장소 :</caption>
  414. <select1 id="cmb_educplce" ref="/root/send/searchitem/educplce" class="combo_s_essential" appearance="minimal" style="left:750px; top:60px; width:132px; height:19px; ">
  415. <choices>
  416. <itemset nodeset="/root/init/baseinfo/initplace/A160">
  417. <label ref="cdnm"/>
  418. <value ref="cdid"/>
  419. </itemset>
  420. </choices>
  421. </select1>
  422. <caption id="caption1" class="search_name" style="left:10px; top:60px; width:90px; height:17px; ">회신상태 :</caption>
  423. <select1 id="cmb_cnststat" ref="/root/send/searchitem/cnststat" class="combo_s_essential" appearance="minimal" style="left:98px; top:60px; width:90px; height:19px; ">
  424. <choices>
  425. <item>
  426. <label/>
  427. <value/>
  428. </item>
  429. <item>
  430. <label>미회신</label>
  431. <value>N</value>
  432. </item>
  433. <item>
  434. <label>회신</label>
  435. <value>Y</value>
  436. </item>
  437. </choices>
  438. </select1>
  439. <caption id="hintcaption" visibility="hidden" autoresize="true" style="left:515px; top:0px; width:100px; height:20px; text-align:left; vertical-align:middle; "/>
  440. <caption id="caption2" class="search_name" style="left:10px; top:10px; width:90px; height:17px; ">의뢰일자 :</caption>
  441. <input id="ipt_reqfromdd" ref="/root/send/searchitem/reqfromdd" class="input_s_essential" inputtype="date" style="left:98px; top:10px; width:95px; height:19px; "/>
  442. <caption id="caption9" style="left:512px; top:12px; width:15px; height:15px; font-weight:bold; vertical-align:middle; ">~</caption>
  443. <caption id="caption10" class="search_name" style="left:325px; top:10px; width:90px; height:17px; ">예약일자 :</caption>
  444. <input id="ipt_rsrvfromdd" ref="/root/send/searchitem/rsrvfromdd" class="input_s_essential" inputtype="date" style="left:415px; top:10px; width:95px; height:19px; "/>
  445. <input id="ipt_rsrvtodd" ref="/root/send/searchitem/rsrvtodd" class="input_s_essential" inputtype="date" style="left:528px; top:10px; width:95px; height:19px; "/>
  446. <caption id="caption11" class="search_name" style="left:663px; top:10px; width:75px; height:17px; ">진료과 :</caption>
  447. <caption id="caption12" class="search_name" style="left:875px; top:10px; width:75px; height:17px; ">병동 :</caption>
  448. <select1 id="rdo_patflag" ref="/root/send/searchitem/patflag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:98px; top:36px; width:135px; height:20px; ">
  449. <choices>
  450. <item>
  451. <label>전체</label>
  452. <value>-</value>
  453. </item>
  454. <item>
  455. <label>외래</label>
  456. <value>O</value>
  457. </item>
  458. <item>
  459. <label>입원</label>
  460. <value>I</value>
  461. </item>
  462. </choices>
  463. <script type="javascript" ev:event="xforms-select">
  464. <![CDATA[
  465. //외래 선택시 병동 콤보 clear
  466. if ( rdo_patflag.value == 'O') {
  467. cmb_ward.value = "";
  468. cmb_ward.refresh();
  469. }
  470. ]]>
  471. </script>
  472. </select1>
  473. <caption id="caption4" class="search_name" style="left:10px; top:35px; width:91px; height:17px; ">환자구분 :</caption>
  474. <caption id="caption7" class="search_name" style="left:663px; top:35px; width:75px; height:17px; ">영양사 :</caption>
  475. <select1 id="cmb_dieter" ref="/root/send/searchitem/dieter" class="combo_search" appearance="minimal" style="left:737px; top:35px; width:113px; height:19px; ">
  476. <choices>
  477. <itemset nodeset="/root/init/basecode/dieter/dieter">
  478. <label ref="cdnm"/>
  479. <value ref="cdid"/>
  480. </itemset>
  481. </choices>
  482. </select1>
  483. <input id="ipt_pid" ref="/root/send/searchitem/pid" class="input_search" autonext="false" maxlength="10" format="9999999999" style="left:458px; top:35px; width:80px; height:19px; ">
  484. <script type="javascript" ev:event="onkeydown">
  485. <![CDATA[
  486. inputEnterKey("btn_search", "DOMActivate");
  487. ]]>
  488. </script>
  489. </input>
  490. <input id="ipt_hngnm" ref="/root/send/searchitem/hngnm" class="input_search" style="left:540px; top:35px; width:80px; height:19px; ">
  491. <script type="javascript" ev:event="onkeydown">
  492. <![CDATA[
  493. inputEnterKey("btn_search", "DOMActivate");
  494. ]]>
  495. </script>
  496. </input>
  497. <caption id="caption15" class="search_name" style="left:874px; top:36px; width:101px; height:17px; ">의뢰항목 :</caption>
  498. <input id="ipt_educreqcnts" ref="/root/send/searchitem/educreqcnts" class="input_search" autonext="false" maxlength="10" style="left:961px; top:36px; width:120px; height:19px; "/>
  499. </group>
  500. <button id="btn_excel" class="btn2_letter2" style="left:1151px; top:104px; width:42px; height:19px; ">
  501. <caption>엑셀</caption>
  502. <script type="javascript" ev:event="DOMActivate">
  503. <![CDATA[
  504. var filename = window.fileDialog("save", ",", false, "영양교육관리", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  505. if (filename != "") {
  506. grd_data.saveExcel(filename, "grd_data", true, false, "", "", "");
  507. }
  508. ]]>
  509. </script>
  510. </button>
  511. <datagrid id="grd_data" nodeset="/root/main/item/data" caption="선택^회신상태^업무구분^사유^h_처방상태^의뢰일자^의뢰일시^h_실시처방번호^등록번호^환자구분^환자명^h_생년월일^h_성별^성별/나이^진단명^진료과^전문의^의뢰항목^의뢰내용^예약일자^예약시간^예약 종료일^종료시간^교육장소^영양사^수납여부^실제회신일^영양관리유형^질환구분^h_수납일자^h_생성번호^h_진료과^h_입원외래^h_진료일자^h_처방코드^h_간호사^h_서식기록번호" colsep="^" colwidth="36, 60, 60, 80, 10, 10, 100, 10, 65, 60, 70, 10, 10, 60, 180, 95, 61, 130, 200, 85, 60, 85, 60, 95, 60, 57, 110, 115, 100, 10, 10, 10, 10, 10, 10, 10, 10" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:130px; width:1194px; height:610px; ">
  512. <col ref="check" type="checkbox" visibility="hidden"/>
  513. <col ref="mngtstat" style="text-align:center; "/>
  514. <col ref="bizflag" style="text-align:center; "/>
  515. <col ref="cancelcmt" type="combo" style="text-align:center; ">
  516. <choices>
  517. <itemset nodeset="/root/init/baseinfo/canclecmt/A161">
  518. <label ref="cdnm"/>
  519. <value ref="cdnm"/>
  520. </itemset>
  521. </choices>
  522. </col>
  523. <col ref="h_prcpstatcd" visibility="hidden"/>
  524. <col ref="reqdd" visibility="hidden" format="yyyy-mm-dd"/>
  525. <col ref="reqddhm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  526. <col ref="execprcpuniqno" visibility="hidden" style="text-align:center; "/>
  527. <col ref="pid" style="text-align:center; "/>
  528. <col ref="patflag" style="text-align:center; "/>
  529. <col ref="hngnm" style="text-align:center; "/>
  530. <col ref="h_brthdd" visibility="hidden"/>
  531. <col ref="h_sex" visibility="hidden"/>
  532. <col ref="sexage" style="text-align:center; "/>
  533. <col ref="diagnm" style="text-align:center; "/>
  534. <col disabled="true" ref="orddept" type="combo">
  535. <choices>
  536. <itemset nodeset="/root/init/basecode/orddept/dept">
  537. <label ref="depthngnm"/>
  538. <value ref="deptcd"/>
  539. </itemset>
  540. </choices>
  541. </col>
  542. <col ref="atdoct"/>
  543. <col ref="educreqcnts"/>
  544. <col ref="reccnts" type="inputbutton"/>
  545. <col ref="rsrvdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  546. <col ref="eductm" type="input" format="hh:nn" style="text-align:center; "/>
  547. <col ref="rsrvtodd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  548. <col ref="eductotm" type="input" visibility="hidden" format="hh:nn" style="text-align:center; "/>
  549. <col ref="educplce" type="combo">
  550. <choices>
  551. <itemset nodeset="/root/init/baseinfo/initplace/A160">
  552. <label ref="cdnm"/>
  553. <value ref="cdid"/>
  554. </itemset>
  555. </choices>
  556. </col>
  557. <col ref="dieter" type="combo">
  558. <choices>
  559. <itemset nodeset="/root/init/basecode/dieter/dieter">
  560. <label ref="cdnm"/>
  561. <value ref="cdid"/>
  562. </itemset>
  563. </choices>
  564. </col>
  565. <col ref="rcptyn" visibility="hidden" style="text-align:center; "/>
  566. <col ref="repldd" type="output" format="yyyy-mm-dd hh:dd" style="text-align:center; "/>
  567. <col disabled="true" ref="nutrmngtkind" type="combo">
  568. <choices>
  569. <itemset nodeset="/root/init/basecode/nutrmngtkind/A0060">
  570. <label ref="cdnm"/>
  571. <value ref="cdid"/>
  572. </itemset>
  573. </choices>
  574. </col>
  575. <col disabled="true" ref="sickcd" type="combo">
  576. <choices>
  577. <itemset nodeset="/root/init/basecode/sickcd/A0059">
  578. <label ref="cdnm"/>
  579. <value ref="cdid"/>
  580. </itemset>
  581. </choices>
  582. </col>
  583. <col ref="h_rcptdd" visibility="hidden"/>
  584. <col ref="h_cretno" visibility="hidden"/>
  585. <col ref="h_orddeptcd" visibility="hidden"/>
  586. <col ref="h_prcpgenrflag" visibility="hidden"/>
  587. <col ref="h_orddd" visibility="hidden"/>
  588. <col ref="h_prcpcd" visibility="hidden"/>
  589. <col ref="h_nurse" visibility="hidden" style="left:2109px; top:23px; width:10px; height:23px; "/>
  590. <col ref="h_formrecseq" visibility="hidden"/>
  591. <col ref="h_cnstseqno" visibility="hidden"/>
  592. <col ref="h_sau" visibility="hidden"/>
  593. <col ref="h_cnstcnts9" visibility="hidden"/>
  594. <script type="javascript" ev:event="ondblclick">
  595. <![CDATA[
  596. // 소속 기관이 서울성모인 경우만 JCI용 환자별영양관리 화면(SMANC00350) 호출
  597. var instcd = getUserInfo("dutplceinstcd");
  598. if ( grd_data.isCell(event.target) && grd_data.row >= grd_data.fixedRows ) {
  599. //경장영양지원의뢰(EN)일 경우 약제팀의 'NST환자관리' 화면 링크
  600. if ( model.getValue("/root/main/item/data["+grd_data.row+"]/formcd") == '0000003019' ) {
  601. model.setValue("/root/temp/cnstinfo/pid", model.getValue("/root/main/item/data["+grd_data.row+"]/pid"));
  602. model.setValue("/root/temp/cnstinfo/cnstdd", model.getValue("/root/main/item/data["+grd_data.row+"]/reqdd"));
  603. model.setValue("/root/temp/cnstinfo/cretno", model.getValue("/root/main/item/data["+grd_data.row+"]/h_cretno"));
  604. model.setValue("/root/temp/cnstinfo/prcpgenrflag", model.getValue("/root/main/item/data["+grd_data.row+"]/h_prcpgenrflag"));
  605. model.setValue("/root/temp/cnstinfo/orddd", model.getValue("/root/main/item/data["+grd_data.row+"]/h_orddd"));
  606. model.setValue("/root/temp/cnstinfo/formrecseq", model.getValue("/root/main/item/data["+grd_data.row+"]/h_formrecseq"));
  607. model.setValue("/root/temp/cnstinfo/formcd", model.getValue("/root/main/item/data["+grd_data.row+"]/formcd"));
  608. model.setValue("/root/temp/cnstinfo/rgstseqno", model.getValue("/root/main/item/data["+grd_data.row+"]/rgstseqno"));
  609. //model.setValue("/root/temp/cnstinfo/cnsttype", "ast"); //약품식별회신을 위한 변수 설정
  610. model.setValue("/root/temp/cnstinfo/cnstseqno", model.getValue("/root/main/item/data["+grd_data.row+"]/h_cnstseqno"));
  611. model.setValue("/root/temp/cnstinfo/sau", model.getValue("/root/main/item/data["+grd_data.row+"]/h_sau"));
  612. model.setValue("/root/temp/cnstinfo/cnstcnts9", model.getValue("/root/main/item/data["+grd_data.row+"]/h_cnstcnts9"));
  613. // 환자 상단정보 START
  614. var prcpgenrflag = model.getValue("/root/main/item/data["+grd_data.row+"]/h_prcpgenrflag");
  615. var pid = model.getValue("/root/main/item/data["+grd_data.row+"]/pid");
  616. var orddd = model.getValue("/root/main/item/data["+grd_data.row+"]/h_orddd");
  617. var cretno = model.getValue("/root/main/item/data["+grd_data.row+"]/h_cretno");
  618. var instcd = getUserInfo("dutplceinstcd");
  619. if(prcpgenrflag!="E"){
  620. prcpgenrflag = "I";
  621. }
  622. var param = prcpgenrflag + "▦" +
  623. pid + "▦" +
  624. orddd + "▦" +
  625. cretno + "▦" +
  626. instcd ;
  627. setParameter("condparam", param);
  628. modal("SPMMO08900", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  629. // 환자 상단정보 EDN
  630. open("SMADC02600", "","","", "SMADC02600", "/root/temp/cnstinfo", "/root/temp/cnstinfo");
  631. }
  632. else {
  633. // 'E'는 영양교육관리 화면임을 뜻하는 구분자임.
  634. model.setValue("/root/send/popup/flag", "E");
  635. model.setValue("/root/send/popup/pid", model.getValue("/root/main/item/data["+grd_data.row+"]/pid"));
  636. model.setValue("/root/send/popup/hngnm", model.getValue("/root/main/item/data["+grd_data.row+"]/hngnm"));
  637. model.setValue("/root/send/popup/reqdd", model.getValue("/root/main/item/data["+grd_data.row+"]/reqdd"));
  638. model.setValue("/root/send/popup/reqpsn", model.getValue("/root/main/item/data["+grd_data.row+"]/atdoct"));
  639. model.setValue("/root/send/popup/educreqcnts", model.getValue("/root/main/item/data["+grd_data.row+"]/educreqcnts"));
  640. model.setValue("/root/send/popup/reccnts", model.getValue("/root/main/item/data["+grd_data.row+"]/reccnts"));
  641. model.setValue("/root/send/popup/h_cretno", model.getValue("/root/main/item/data["+grd_data.row+"]/h_cretno"));
  642. model.setValue("/root/send/popup/h_orddeptcd", model.getValue("/root/main/item/data["+grd_data.row+"]/orddept"));
  643. model.setValue("/root/send/popup/h_prcpgenrflag", model.getValue("/root/main/item/data["+grd_data.row+"]/h_prcpgenrflag"));
  644. model.setValue("/root/send/popup/h_orddd", model.getValue("/root/main/item/data["+grd_data.row+"]/h_orddd"));
  645. model.setValue("/root/send/popup/h_formrecseq", model.getValue("/root/main/item/data["+grd_data.row+"]/h_formrecseq"));
  646. model.setValue("/root/send/popup/nutrmngtkind", model.getValue("/root/main/item/data["+grd_data.row+"]/nutrmngtkind"));
  647. model.setValue("/root/send/popup/execdd", model.getValue("/root/main/item/data["+grd_data.row+"]/execdd"));
  648. // 환자 상단정보 START
  649. var prcpgenrflag = model.getValue("/root/main/item/data["+grd_data.row+"]/h_prcpgenrflag");
  650. var pid = model.getValue("/root/main/item/data["+grd_data.row+"]/pid");
  651. var orddd = model.getValue("/root/main/item/data["+grd_data.row+"]/h_orddd");
  652. var cretno = model.getValue("/root/main/item/data["+grd_data.row+"]/h_cretno");
  653. var instcd = getUserInfo("dutplceinstcd");
  654. if(prcpgenrflag!="E"){
  655. prcpgenrflag = "I";
  656. }
  657. var param = prcpgenrflag + "▦" +
  658. pid + "▦" +
  659. orddd + "▦" +
  660. cretno + "▦" +
  661. instcd ;
  662. setParameter("condparam", param);
  663. modal("SPMMO08900", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  664. // 환자 상단정보 EDN
  665. // 서울성모일 경우만 JCI용 화면으로 호출. 20100118
  666. if (instcd =="012"){
  667. open("SMANC00350", "","","", "SMANC00350", "/root/send/popup", "/root/main/receivedata");
  668. }else{
  669. open("SMANC00300", "","","", "SMANC00300", "/root/send/popup", "/root/main/receivedata");
  670. }
  671. }
  672. }
  673. ]]>
  674. </script>
  675. <script type="javascript" ev:event="onbuttonclick">
  676. <![CDATA[
  677. var colidx = grd_data.col;
  678. if(grd_data.colAttribute(colidx, "ref") == "reccnts"){
  679. model.setValue("/root/send/popup/reccnts", "");
  680. grp_reccnts.visible = true;
  681. var rownum = grd_data.row ;
  682. var reccnts = model.getValue("/root/main/item/data["+rownum+"]/reccnts");
  683. model.setValue("/root/send/popup/reccnts",reccnts);
  684. model.refresh();
  685. }
  686. ]]>
  687. </script>
  688. </datagrid>
  689. <line id="line12" class="line_1" style="x1:0px; y1:125px; x2:1194px; y2:125px; "/>
  690. <group id="grp_reccnts" visibility="hidden" style="left:435px; top:265px; width:445px; height:245px; ">
  691. <textarea id="textarea2" ref="/root/send/popup/reccnts" style="left:5px; top:30px; width:435px; height:180px; "/>
  692. <button id="button4" class="btn4_letter2" style="left:380px; top:215px; width:56px; height:22px; ">
  693. <caption>닫기</caption>
  694. <script type="javascript" ev:event="DOMActivate">
  695. <![CDATA[
  696. grp_reccnts.visible = false;
  697. ]]>
  698. </script>
  699. </button>
  700. <caption id="caption13" class="tit_2" style="left:10px; top:13px; width:173px; height:14px; ">의뢰상세내용</caption>
  701. <shape id="rectangle2" appearance="rectangle" style="left:0px; top:0px; width:445px; height:245px; "/>
  702. </group>
  703. <caption id="caption14" style="left:715px; top:103px; width:428px; height:20px; background-color:#fefecc; ">* 취소사유 수정 시 : 기준정보관리/공통코드관리에 그룹코드 A161로 조회 수정</caption>
  704. </group>
  705. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:26px; ">
  706. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:4px; width:56px; height:22px; ">
  707. <caption>저장</caption>
  708. <script type="javascript" ev:event="DOMActivate">
  709. <![CDATA[
  710. if ( messageBox("", "Q002") == 6 ) {
  711. var temp = getGridUpdateData(grd_data);
  712. if ( temp != "" ) {
  713. //필수입력항목 체크
  714. // for ( i=1; i<grd_telnutrcnst.rows; i++) {
  715. // if ( (model.getValue("/root/main/item/data/telnutrcnst/grdlist[" + i + "]/execdd") == "") ) {
  716. // messageBox("수행일자 항목은", "I003");
  717. // return;
  718. // }
  719. // }
  720. model.setValue("/root/send/req/list", grd_data.getUpdateData());
  721. if (submit("TXANC00201")) {
  722. submit("TRANC00201");
  723. }
  724. }
  725. } else { return; }
  726. ]]>
  727. </script>
  728. </button>
  729. </group>
  730. </xhtml:body>
  731. </xhtml:html>