SMMNO02400_todo처방기준자료관리.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMMNO02400_TODO 처방기준자료관리.xrw
  4. * 설 명 : TODO 처방기준자료관리
  5. * 수정이력 :
  6. * 기 타 :
  7. -->
  8. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  9. <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">
  10. <xhtml:head>
  11. <xhtml:title>TODO 처방기준자료관리</xhtml:title>
  12. <model id="model1">
  13. <instance id="instance1">
  14. <root xmlns="">
  15. <main>
  16. <actprcpinfo>
  17. <actprcplist>
  18. <check/>
  19. <deptcd/>
  20. <deptnm/>
  21. <prcpcd/>
  22. <prcpnm/>
  23. <applstage/>
  24. <fstrgstdt/>
  25. <baseflag/>
  26. <instcd/>
  27. <ordtype/>
  28. </actprcplist>
  29. </actprcpinfo>
  30. <cond>
  31. <deptcd/>
  32. <ordtype>I</ordtype>
  33. <prcpcd/>
  34. <prcpnm/>
  35. <baseflag/>
  36. </cond>
  37. </main>
  38. <send>
  39. <req/>
  40. <prcpinfo/>
  41. </send>
  42. <hidden/>
  43. <init>
  44. <deptlist/>
  45. </init>
  46. <temp>
  47. <prcpinfo/>
  48. </temp>
  49. </root>
  50. </instance>
  51. <script type="javascript">
  52. <![CDATA[
  53. var sACTPRCPLIST_PATH = "/root/main/actprcpinfo/actprcplist";
  54. function fInitialize()
  55. {
  56. zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "W", "/root/init/deptlist", "depthngnm", "asc"); //부서코드 콤보조회
  57. addComboInstance("/root/init/deptlist", "deptcd^depthngnm", "ALL^전체", "dept"); //부서콤보 전체추가
  58. //model.setValue("/root/main/cond/deptcd", getUserInfo("dutplcecd")); // 근무지부서코드
  59. model.setValue("/root/main/cond/deptcd", "ALL"); // 부서코드
  60. model.setValue("/root/main/cond/baseflag", "C"); // 외래선처치
  61. model.setValue("/root/main/cond/ordtype", "I"); // 외래
  62. model.removeNodeset(sACTPRCPLIST_PATH);
  63. model.refresh();
  64. fSrchPrcpInfo();
  65. }
  66. //처방검색 조회
  67. function fPrcpListSrch() {
  68. if ((model.getValue("/root/main/cond/prcpcd").length >= 2) ||
  69. (model.getValue("/root/main/cond/prcpnm").length >= 2)){
  70. var xpos = event.screenX-200;
  71. var ypos = event.screenY+60;
  72. var sParam_Data = "";
  73. sParam_Data = model.getValue("/root/main/cond/prcpcd")+"▦"
  74. + model.getValue("/root/main/cond/prcpnm")+"▦"
  75. + combo1.value+"▦"
  76. + combo1.label+"▦"
  77. + model.getValue("/root/main/cond/ordtype")+"▦"
  78. + model.getValue("/root/main/cond/baseflag")+"▩";
  79. setParameter("SPMNO02200_Param",sParam_Data);
  80. modal("SPMNO02200", 1, xpos, ypos); // 처방검색 조회
  81. var sRtnMsg = getParameter("SPMNO02200_ReturnFlag");
  82. if(sRtnMsg == "") return;
  83. fSrchPrcpInfo();
  84. } else {
  85. messageBox("검색어는 2자 이상","C001");
  86. model.setFocus("ipt_prcpcd");
  87. return;
  88. }
  89. }
  90. function fSrchPrcpInfo(){
  91. model.copyNode("/root/send/req","/root/main/cond");
  92. submit("TRMNO02401");
  93. grd_comprcplist.isReadOnly(1,2, grd_comprcplist.rows-1, grd_comprcplist.cols-1) = true;
  94. }
  95. function fDelPrcpInfo(){
  96. var iIdx = 0;
  97. if(!checkGridUpdate(grd_comprcplist)) {
  98. messageBox("선택 대상이 ", "I004")
  99. return;
  100. }
  101. var updatedata = grd_comprcplist.getUpdateData("update");
  102. var sRtnMsg = messageBox("TODO 기준자료를 ", "Q001");
  103. if(sRtnMsg != 6) return;
  104. model.makeValue("/root/send/prcpinfo",updatedata);
  105. if(submit("TXMNO02402")){
  106. if(model.getValue("/root/temp/prcpinfo/prcplist/inscnt") == "0"){
  107. messageBox("기준자료 저장중 ", "E009")
  108. } else {
  109. fSrchPrcpInfo();
  110. }
  111. }
  112. }
  113. function checkGridUpdate(grid)
  114. {
  115. var uData = grid.getUpdateDataXml("update");
  116. if (uData=="") return false;
  117. else return true;
  118. }
  119. function fClickedGridRow() {
  120. var iRow = 0;
  121. var iCol = 0;
  122. iRow = grd_comprcplist.row;
  123. iCol = grd_comprcplist.col;
  124. if(iRow < 1) return;
  125. if(model.getValue(sACTPRCPLIST_PATH+"["+iRow+"]/check") == "true"){
  126. grd_comprcplist.rowStatus(iRow) = 2;
  127. }else{
  128. grd_comprcplist.removeStatus(iRow, "update");
  129. }
  130. }
  131. ]]>
  132. </script>
  133. <script type="javascript" ev:event="xforms-ready">
  134. <![CDATA[
  135. fInitialize();
  136. ]]>
  137. </script>
  138. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="urlencoded-post"/>
  139. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post"/>
  140. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post"/>
  141. <submission id="TRMNO02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/actprcpinfo"/>
  142. <submission id="TXMNO02402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/prcpinfo"/>
  143. </model>
  144. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  145. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  146. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  147. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  148. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  149. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  150. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  151. </xhtml:head>
  152. <xhtml:body pagewidth="670" pageheight="780" guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  153. <group id="group1" style="left:0px; top:0px; width:650px; height:13px; ">
  154. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:244px; height:14px; ">TODO 처방기준자료관리</caption>
  155. </group>
  156. <group id="group5" scroll="auto" style="left:0px; top:13px; width:650px; height:742px; ">
  157. <caption id="caption42" class="tit_2" style="left:5px; top:100px; width:105px; height:14px; ">TODO</caption>
  158. <line id="line18" class="line_1" style="x1:0px; y1:115px; x2:650px; y2:115px; "/>
  159. <datagrid id="grd_comprcplist" nodeset="/root/main/actprcpinfo/actprcplist" class="datagrid2" caption="선택^병동^처방코드^처방명^적용^등록일^caption2^caption3^caption4^caption1" colsep="^" colwidth="31, 95, 95, 241, 59, 124, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" navindex="10" style="left:0px; top:120px; width:650px; height:620px; ">
  160. <col ref="check" type="checkbox">
  161. <script type="javascript" ev:event="xforms-value-changed">
  162. <![CDATA[
  163. fClickedGridRow();
  164. ]]>
  165. </script>
  166. </col>
  167. <col ref="deptnm" style="text-align:left; "/>
  168. <col ref="prcpcd"/>
  169. <col ref="prcpnm"/>
  170. <col ref="applstage" type="combo" style="text-align:center; ">
  171. <choices>
  172. <item>
  173. <label>전체</label>
  174. <value>A</value>
  175. </item>
  176. <item>
  177. <label>재원</label>
  178. <value>I</value>
  179. </item>
  180. <item>
  181. <label>퇴원</label>
  182. <value>T</value>
  183. </item>
  184. </choices>
  185. </col>
  186. <col ref="fstrgstdt" format="yyyy-mm-dd hh:mm"/>
  187. <col ref="baseflag"/>
  188. <col ref="instcd"/>
  189. <col ref="ordtype"/>
  190. <col ref="deptcd"/>
  191. </datagrid>
  192. <button id="button2" class="btn5_letter2" navindex="8" style="left:603px; top:95px; width:42px; height:19px; ">
  193. <caption>삭제</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. fDelPrcpInfo();
  197. ]]>
  198. </script>
  199. </button>
  200. <group id="grp_sea" style="left:0px; top:10px; width:650px; height:80px; vertical-align:top; ">
  201. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:650px; height:80px; "/>
  202. <line id="line13" class="line_4" style="x1:515px; y1:4px; x2:515px; y2:77px; "/>
  203. <caption id="caption5" class="search_name" style="left:16px; top:9px; width:117px; height:17px; ">병동 :</caption>
  204. <select1 id="combo1" ref="/root/main/cond/deptcd" class="combo_search" navindex="4" appearance="minimal" style="left:105px; top:9px; width:350px; height:19px; ">
  205. <choices>
  206. <itemset nodeset="/root/init/deptlist/dept">
  207. <label ref="depthngnm"/>
  208. <value ref="deptcd"/>
  209. </itemset>
  210. </choices>
  211. <script type="javascript" ev:event="xforms-value-changed">
  212. <![CDATA[
  213. fSrchPrcpInfo();
  214. ]]>
  215. </script>
  216. </select1>
  217. <button id="button4" class="btn1_letter2" navindex="7" style="left:587px; top:5px; width:56px; height:22px; ">
  218. <caption>닫기</caption>
  219. <script type="javascript" ev:event="DOMActivate">
  220. <![CDATA[
  221. window.close();
  222. ]]>
  223. </script>
  224. </button>
  225. <caption id="caption1" class="search_name" style="left:16px; top:38px; width:90px; height:17px; ">처방코드 :</caption>
  226. <caption id="caption2" class="search_name" style="left:16px; top:58px; width:90px; height:17px; ">처 방 명 :</caption>
  227. <input id="ipt_prcpcd" ref="/root/main/cond/prcpcd" class="input_default" navindex="1" imemode="alpha" maxlength="12" style="left:105px; top:37px; width:350px; height:19px; ">
  228. <script type="javascript" ev:event="onkeydown">
  229. <![CDATA[
  230. if(event.keycode == "13"){
  231. model.setFocus("btn_srch");
  232. fPrcpListSrch();
  233. }
  234. ]]>
  235. </script>
  236. </input>
  237. <input id="ipt_prcpnm" ref="/root/main/cond/prcpnm" class="input_default" navindex="2" imemode="alpha" maxlength="66" style="left:105px; top:57px; width:350px; height:19px; ">
  238. <script type="javascript" ev:event="onkeydown">
  239. <![CDATA[
  240. if(event.keycode == "13"){
  241. model.setFocus("btn_srch");
  242. fPrcpListSrch();
  243. }
  244. ]]>
  245. </script>
  246. </input>
  247. <button id="btn_srch" class="btn2_letter2" navindex="3" style="left:465px; top:57px; width:42px; height:19px; ">
  248. <caption>검색</caption>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. fPrcpListSrch();
  252. ]]>
  253. </script>
  254. </button>
  255. <button id="btn_ref" class="btn1_letter2" navindex="6" style="left:527px; top:5px; width:56px; height:22px; ">
  256. <caption>조회</caption>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. fSrchPrcpInfo();
  260. ]]>
  261. </script>
  262. </button>
  263. </group>
  264. </group>
  265. </xhtml:body>
  266. </xhtml:html>