SMMNS00700_기준자료관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  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. <spclstand>
  11. <spcllist>
  12. <stat/>
  13. <reqflag/>
  14. <prcpcd/>
  15. <hngnm/>
  16. <poctyn/>
  17. <execmthdflag/>
  18. <hspclflag/>
  19. <hreqflag/>
  20. </spcllist>
  21. </spclstand>
  22. <temp/>
  23. <prcpinfo>
  24. <prcplist>
  25. <check/>
  26. <spclcareflag/>
  27. <reqflag/>
  28. <prcpcd/>
  29. <hngnm/>
  30. <poctyn/>
  31. <execmthdflag/>
  32. </prcplist>
  33. </prcpinfo>
  34. </main>
  35. <send>
  36. <spclcareflag/>
  37. <standsave/>
  38. <prcpflag>C</prcpflag>
  39. <prcpcode/>
  40. <standins/>
  41. </send>
  42. <hidden>
  43. <spclcarefildflaginfo>
  44. <spclcarefildflaginfolist/>
  45. </spclcarefildflaginfo>
  46. </hidden>
  47. <cond>
  48. <spclcareflag/>
  49. </cond>
  50. <cond2>
  51. <prcpcode/>
  52. <prcpflag/>
  53. </cond2>
  54. </root>
  55. </instance>
  56. <submission id="TRMNS00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/spclcarefildflaginfo/spclcarefildflaginfolist"/>
  57. <submission id="TRMNS00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/spclstand"/>
  58. <submission id="TXMNS00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/standsave" resultref="/root/main/temp"/>
  59. <submission id="TRMNS00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prcpinfo"/>
  60. <submission id="TXMNS00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/standins" resultref="/root/main/temp"/>
  61. <script type="javascript" ev:event="xforms-model-construct-done">
  62. <![CDATA[
  63. /**
  64. * 전문분야 코드및 명칭을 조회한다.
  65. */
  66. model.removenode('root/hidden/spclcarefildflaginfo');
  67. //20090205 dhkim
  68. //전문간호/BMT전문간호 로 나눠지게 되면서 사용부서에 해당하는 분야로 각각 등록됨.
  69. suppdeptcd = aezfSetSuppDeptcd();//메뉴그룹에 등록된 사용부서코드
  70. fSpclCareSearch(suppdeptcd); //전문분야를 조회한다.
  71. // 버튼 숨기기
  72. button2.visible = false;
  73. btn_select.dispatch("onclick");
  74. ]]>
  75. </script>
  76. </model>
  77. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  78. <script type="javascript" src="../../../emr/spclcareweb/js/SMMNS00700.js"/>
  79. <script type="javascript" src="../../../emr/spclcareweb/js/MNS001.js"/>
  80. <script type="javascript">
  81. <![CDATA[
  82. function onmousedown1()
  83. {
  84. if (event.button == 3){
  85. if(datagrid1.isCell(event.target) && datagrid1.row >= datagrid1.fixedrows){
  86. window.setPopupMenu(true, "/root/menu/item", "name", "func", false);
  87. }else{
  88. window.setPopupMenu(false);
  89. }
  90. }
  91. }
  92. function a()
  93. {
  94. alert("a 메뉴 선택");
  95. }
  96. function b()
  97. {
  98. alert("b 메뉴 선택");
  99. }
  100. function c(){
  101. alert("c 메뉴 선택");
  102. }
  103. function d(){
  104. alert("d 메뉴 선택");
  105. }
  106. ]]>
  107. </script>
  108. </xhtml:head>
  109. <xhtml:body style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  110. <group id="group1" scroll="auto" style="left:0px; top:15px; width:880px; height:744px; ">
  111. <line id="line6" class="line_1" style="x1:0px; y1:69px; x2:879px; y2:69px; "/>
  112. <caption id="caption22" class="tit_2" style="left:5px; top:54px; width:135px; height:13px; vertical-align:middle; ">처방 code관리</caption>
  113. <button id="button1" class="btn2_letter3" style="left:782px; top:49px; width:53px; height:19px; ">
  114. <caption>행삭제</caption>
  115. <script type="javascript" ev:event="DOMActivate">
  116. <![CDATA[
  117. // 행삭제
  118. fgriditem("D");
  119. ]]>
  120. </script>
  121. </button>
  122. <button id="button2" class="btn2_letter3" style="left:726px; top:49px; width:53px; height:19px; ">
  123. <caption>행추가</caption>
  124. <script type="javascript" ev:event="onclick">
  125. <![CDATA[
  126. // 행추가
  127. fgriditem("I");
  128. ]]>
  129. </script>
  130. </button>
  131. <button id="button3" class="btn5_letter2" style="left:838px; top:49px; width:42px; height:19px; ">
  132. <caption>저장</caption>
  133. <script type="javascript" ev:event="DOMActivate">
  134. <![CDATA[
  135. // 저장
  136. Savestand();
  137. btn_select.dispatch("onclick");
  138. ]]>
  139. </script>
  140. </button>
  141. <group id="group2" style="left:0px; top:10px; width:880px; height:35px; vertical-align:top; ">
  142. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:880px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  143. <caption id="caption1" class="search_name" style="left:16px; top:9px; width:109px; height:17px; ">전문분야 :</caption>
  144. <line id="line1" class="line_4" style="x1:797px; y1:7px; x2:797px; y2:29px; "/>
  145. <select1 id="cmb_spcl" ref="/root/cond/spclcareflag" class="combo_search" appearance="minimal" style="left:115px; top:8px; width:215px; height:19px; ">
  146. <choices>
  147. <itemset nodeset="/root/hidden/spclcarefildflaginfo/spclcarefildflaginfolist">
  148. <label ref="nm"/>
  149. <value ref="cd"/>
  150. </itemset>
  151. </choices>
  152. <script type="javascript" ev:event="xforms-value-changed">
  153. <![CDATA[
  154. model.removeNodeset("/root/main/spclstand/spcllist");
  155. model.removeNodeset("/root/main/prcpinfo/prcplist");
  156. ipt_prcp.value = "";
  157. model.refresh();
  158. select_spclstand();
  159. ]]>
  160. </script>
  161. </select1>
  162. <button id="btn_select" class="btn1_letter2" style="left:813px; top:7px; width:56px; height:22px; ">
  163. <caption>조회</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. // 기준자료관리 조회
  167. select_spclstand();
  168. ]]>
  169. </script>
  170. </button>
  171. </group>
  172. <datagrid id="grd_standlist" nodeset="/root/main/spclstand/spcllist" caption="상태^의뢰구분^처방코드^처방명/의뢰사유^현장검사^시행체크방법^전문분야^의뢰구문^검사명^^caption4^caption3^caption2^caption1^caption5^caption6^caption8^caption7^caption19^caption18^caption17^caption16^caption15^caption14^caption13^caption12^caption11^caption10^caption9" colsep="^" colwidth="42, 70, 140, 321, 90, 127, 29, 17" defaultrows="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:74px; width:880px; height:293px; ">
  173. <col ref="stat"/>
  174. <col ref="reqflag" type="combo">
  175. <choices>
  176. <item>
  177. <label>검사</label>
  178. <value>I</value>
  179. </item>
  180. <item>
  181. <label>교육</label>
  182. <value>E</value>
  183. </item>
  184. <item>
  185. <label>의뢰</label>
  186. <value>C</value>
  187. </item>
  188. </choices>
  189. </col>
  190. <col ref="prcpcd" style="left:132px; top:23px; width:140px; height:23px; "/>
  191. <col ref="hngnm"/>
  192. <col ref="poctyn" type="combo">
  193. <choices>
  194. <item>
  195. <label>Y</label>
  196. <value>Y</value>
  197. </item>
  198. <item>
  199. <label>N</label>
  200. <value>N</value>
  201. </item>
  202. </choices>
  203. </col>
  204. <col ref="execmthdflag" type="combo">
  205. <choices>
  206. <item>
  207. <label>회신(결과)입력</label>
  208. <value>1</value>
  209. </item>
  210. <item>
  211. <label>직접</label>
  212. <value>2</value>
  213. </item>
  214. </choices>
  215. </col>
  216. <col ref="hspclflag" visibility="hidden"/>
  217. <col ref="hreqflag" visibility="hidden"/>
  218. <script type="javascript" ev:event="xforms-value-changed">
  219. <![CDATA[
  220. // 항목변경시 상태값 변경
  221. fstandstat();
  222. ]]>
  223. </script>
  224. </datagrid>
  225. <caption id="caption3" class="tit_2" style="left:5px; top:394px; width:135px; height:14px; vertical-align:middle; ">처방정보조회</caption>
  226. <line id="line2" class="line_1" style="x1:0px; y1:409px; x2:879px; y2:409px; "/>
  227. <caption id="caption13" class="cell_1" style="left:3px; top:414px; width:55px; height:23px; vertical-align:middle; ">조회구분</caption>
  228. <line id="line3" class="line_2" style="x1:0px; y1:440px; x2:879px; y2:440px; vertical-align:bottom; "/>
  229. <select1 id="rdo_prcp" ref="/root/cond2/prcpflag" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:65px; top:416px; width:125px; height:20px; border-style:none; ">
  230. <choices>
  231. <item>
  232. <label>처방코드</label>
  233. <value>C</value>
  234. </item>
  235. <item>
  236. <label>처방명</label>
  237. <value>N</value>
  238. </item>
  239. </choices>
  240. <script type="javascript" ev:event="onclick">
  241. <![CDATA[
  242. // Clear
  243. ipt_prcp.value = "";
  244. model.removeNodeSet("/root/main/prcpinfo/prcplist");
  245. // 구분에 따른 입력창 모드변경
  246. // 처방코드
  247. if (rdo_prcp.value == "C") {
  248. ipt_prcp.attribute("imemode") = "alpha";
  249. }
  250. // 처방명
  251. else if (rdo_prcp.value == "N") {
  252. ipt_prcp.attribute("imemode") = "hangul";
  253. }
  254. model.setFocus("ipt_prcp");
  255. ]]>
  256. </script>
  257. </select1>
  258. <input id="ipt_prcp" ref="/root/cond2/prcpcode" class="input_s_essential" imemode="alpha" style="left:195px; top:416px; width:100px; height:19px; ">
  259. <script type="javascript" ev:event="onkeypress">
  260. <![CDATA[
  261. // 조회하기
  262. var keycode = event.keyCode;
  263. if(keycode == 13){
  264. model.setFocus("btn_ordselect");
  265. btn_ordselect.dispatch("DOMActivate");
  266. }
  267. ]]>
  268. </script>
  269. <script type="javascript" ev:event="DOMFocusOut">
  270. <![CDATA[
  271. ipt_prcp.value = ipt_prcp.value.toUpperCase();
  272. ]]>
  273. </script>
  274. </input>
  275. <button id="btn_prcpins" class="btn5_letter2" style="left:838px; top:414px; width:42px; height:19px; ">
  276. <caption>저장</caption>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. var cnt = 0;
  280. for(var i=1;i<=grd_prcplist.rows;i++){
  281. if (grd_prcplist.textmatrix(i,1) == "true") {
  282. // 저장시 전문분야, 의뢰구분 필수체크
  283. if ((grd_prcplist.textmatrix(i,2) == "") ||
  284. (grd_prcplist.textmatrix(i,3) == "")
  285. ) {
  286. cnt = cnt +1;
  287. }
  288. }
  289. } // for end
  290. // 입력사항 Check
  291. if (cnt > 0) {
  292. messageBox("전문분야, 의뢰구분은 ","I003");
  293. }
  294. // 저장
  295. Insstand();
  296. //
  297. btn_select.dispatch("onclick");
  298. btn_ordselect.dispatch("onclick");
  299. ]]>
  300. </script>
  301. </button>
  302. <datagrid id="grd_prcplist" nodeset="/root/main/prcpinfo/prcplist" caption="선택^전문분야^의뢰구분^처방코드^처방명/의뢰사유^현장검사^시행체크방법^검사명^^caption4^caption3^caption2^caption1^caption5^caption6^caption8^caption7^caption19^caption18^caption17^caption16^caption15^caption14^caption13^caption12^caption11^caption10^caption9" colsep="^" colwidth="42, 100, 70, 140, 271, 90, 127" defaultrows="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:444px; width:880px; height:293px; ">
  303. <col ref="check" type="checkbox"/>
  304. <col ref="spclcareflag" type="combo">
  305. <choices>
  306. <itemset nodeset="/root/hidden/spclcarefildflaginfo/spclcarefildflaginfolist">
  307. <label ref="nm"/>
  308. <value ref="cd"/>
  309. </itemset>
  310. </choices>
  311. </col>
  312. <col ref="reqflag" type="combo">
  313. <choices>
  314. <item>
  315. <label>검사</label>
  316. <value>I</value>
  317. </item>
  318. <item>
  319. <label>교육</label>
  320. <value>E</value>
  321. </item>
  322. <item>
  323. <label>의뢰</label>
  324. <value>C</value>
  325. </item>
  326. </choices>
  327. </col>
  328. <col ref="prcpcd" style="left:132px; top:23px; width:140px; height:23px; "/>
  329. <col ref="hngnm"/>
  330. <col ref="poctyn" type="combo">
  331. <choices>
  332. <item>
  333. <label>Y</label>
  334. <value>Y</value>
  335. </item>
  336. <item>
  337. <label>N</label>
  338. <value>N</value>
  339. </item>
  340. </choices>
  341. </col>
  342. <col ref="execmthdflag" type="combo">
  343. <choices>
  344. <item>
  345. <label>회신(결과)입력</label>
  346. <value>1</value>
  347. </item>
  348. <item>
  349. <label>직접</label>
  350. <value>2</value>
  351. </item>
  352. </choices>
  353. </col>
  354. <script type="javascript" ev:event="xforms-value-changed">
  355. <![CDATA[
  356. // 항목변경시 상태값 변경
  357. fstandstat();
  358. ]]>
  359. </script>
  360. </datagrid>
  361. <button id="btn_ordselect" class="btn2_letter4" style="left:773px; top:414px; width:64px; height:19px; ">
  362. <caption>처방검색</caption>
  363. <script type="javascript" ev:event="DOMActivate">
  364. <![CDATA[
  365. // 처방코드/처방명정보 조회하기
  366. if (model.getvalue("/root/cond2/prcpcode").length < 2) {
  367. messageBox("2자리 이상 ","C001");
  368. model.setFocus("/root/send/prcpcode");
  369. }
  370. else {
  371. select_spclprcp();
  372. }
  373. ]]>
  374. </script>
  375. </button>
  376. </group>
  377. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">기준자료관리</caption>
  378. </xhtml:body>
  379. </xhtml:html>