SMMNO02100_간호Acting기준자료등록.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMMNO02100_간호Acting기준자료등록.xrw
  4. * 설 명 : 간호Acting기준자료등록
  5. * 수정이력 :
  6. * 기 타 :
  7. -->
  8. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>간호Acting 기준자료등록</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>O</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. var dt = getCurrentDate();
  57. var instcd = getUserInfo("dutplceinstcd");
  58. var rslt_ref = "/root/init/deptlist";
  59. var sort_field = "depthngnm";
  60. var sort_method = "asc";
  61. // 외래/입원선택에 따른 함수호출작업필요(외래만 일단 작업)
  62. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/init/deptlist", "depthngnm", "asc"); //부서코드 콤보조회
  63. zsdfGetOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, dt );
  64. //addComboInstance("/root/init/deptlist", "deptcd^depthngnm", "ALL^전체", "dept"); //부서콤보 전체추가
  65. model.setValue("/root/main/cond/deptcd", getUserInfo("dutplcecd")); // 근무지부서코드
  66. //model.setValue("/root/main/cond/deptcd", "ALL"); // 부서코드
  67. model.setValue("/root/main/cond/baseflag", "A"); // 간호Acting
  68. model.removeNodeset(sACTPRCPLIST_PATH);
  69. model.refresh();
  70. fSrchPrcpInfo();
  71. }
  72. //처방검색 조회
  73. function fPrcpListSrch() {
  74. if ((model.getValue("/root/main/cond/prcpcd").length >= 2) ||
  75. (model.getValue("/root/main/cond/prcpnm").length >= 2)){
  76. var xpos = event.screenX-200;
  77. var ypos = event.screenY+60;
  78. var sParam_Data = "";
  79. sParam_Data = model.getValue("/root/main/cond/prcpcd")+"▦"
  80. + model.getValue("/root/main/cond/prcpnm")+"▦"
  81. + combo1.value+"▦"
  82. + combo1.label+"▦"
  83. + model.getValue("/root/main/cond/ordtype")+"▦"
  84. + model.getValue("/root/main/cond/baseflag")+"▩";
  85. setParameter("SPMNO02200_Param",sParam_Data);
  86. modal("SPMNO02200", 1, xpos, ypos); // 처방검색 조회
  87. var sRtnMsg = getParameter("SPMNO02200_ReturnFlag");
  88. if(sRtnMsg == "") return;
  89. fSrchPrcpInfo();
  90. } else {
  91. messageBox("검색어는 2자 이상","C001");
  92. model.setFocus("ipt_prcpcd");
  93. return;
  94. }
  95. }
  96. function fSrchPrcpInfo(){
  97. model.copyNode("/root/send/req","/root/main/cond");
  98. submit("TRMNO02101");
  99. grd_comprcplist.isReadOnly(1,2, grd_comprcplist.rows-1, grd_comprcplist.cols-1) = true;
  100. }
  101. function fDelPrcpInfo(){
  102. var iIdx = 0;
  103. if(!checkGridUpdate(grd_comprcplist)) {
  104. messageBox("선택 대상이 ", "I004")
  105. return;
  106. }
  107. var updatedata = grd_comprcplist.getUpdateData("update");
  108. var sRtnMsg = messageBox("간호 기준자료를 ", "Q001");
  109. if(sRtnMsg != 6) return;
  110. model.makeValue("/root/send/prcpinfo",updatedata);
  111. if(submit("TXMNO02101")){
  112. if(model.getValue("/root/temp/prcpinfo/prcplist/inscnt") == "0"){
  113. messageBox("기준자료 저장중 ", "E009")
  114. } else {
  115. fSrchPrcpInfo();
  116. }
  117. }
  118. }
  119. function checkGridUpdate(grid)
  120. {
  121. var uData = grid.getUpdateDataXml("update");
  122. if (uData=="") return false;
  123. else return true;
  124. }
  125. function fClickedGridRow() {
  126. var iRow = 0;
  127. var iCol = 0;
  128. iRow = grd_comprcplist.row;
  129. iCol = grd_comprcplist.col;
  130. if(iRow < 1) return;
  131. if(model.getValue(sACTPRCPLIST_PATH+"["+iRow+"]/check") == "true"){
  132. grd_comprcplist.rowStatus(iRow) = 2;
  133. }else{
  134. grd_comprcplist.removeStatus(iRow, "update");
  135. }
  136. }
  137. ]]>
  138. </script>
  139. <script type="javascript" ev:event="xforms-ready">
  140. <![CDATA[
  141. fInitialize();
  142. ]]>
  143. </script>
  144. <submission id="TRMNO02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/actprcpinfo"/>
  145. <submission id="TXMNO02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/prcpinfo"/>
  146. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="urlencoded-post"/>
  147. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post"/>
  148. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post"/>
  149. </model>
  150. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  151. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  152. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  153. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  154. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  155. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  156. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  157. </xhtml:head>
  158. <xhtml:body pagewidth="670" pageheight="780" guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  159. <group id="group1" style="left:0px; top:0px; width:650px; height:13px; ">
  160. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:174px; height:14px; ">간호Acting 기준자료등록</caption>
  161. </group>
  162. <group id="group5" scroll="auto" style="left:0px; top:13px; width:650px; height:742px; ">
  163. <caption id="caption42" class="tit_2" style="left:5px; top:100px; width:105px; height:13px; ">간호Acting</caption>
  164. <line id="line18" class="line_1" style="x1:0px; y1:115px; x2:650px; y2:115px; "/>
  165. <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; ">
  166. <col ref="check" type="checkbox">
  167. <script type="javascript" ev:event="xforms-value-changed">
  168. <![CDATA[
  169. fClickedGridRow();
  170. ]]>
  171. </script>
  172. </col>
  173. <col ref="deptnm" style="text-align:left; "/>
  174. <col ref="prcpcd"/>
  175. <col ref="prcpnm"/>
  176. <col ref="applstage" type="combo" style="text-align:center; ">
  177. <choices>
  178. <item>
  179. <label>전체</label>
  180. <value>A</value>
  181. </item>
  182. <item>
  183. <label>재원</label>
  184. <value>I</value>
  185. </item>
  186. <item>
  187. <label>퇴원</label>
  188. <value>T</value>
  189. </item>
  190. </choices>
  191. </col>
  192. <col ref="fstrgstdt" format="yyyy-mm-dd hh:mm"/>
  193. <col ref="baseflag"/>
  194. <col ref="instcd"/>
  195. <col ref="ordtype"/>
  196. <col ref="deptcd"/>
  197. </datagrid>
  198. <button id="button2" class="btn5_letter2" navindex="8" style="left:603px; top:95px; width:42px; height:19px; ">
  199. <caption>삭제</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. fDelPrcpInfo();
  203. ]]>
  204. </script>
  205. </button>
  206. <group id="grp_sea" style="left:0px; top:10px; width:650px; height:80px; vertical-align:top; ">
  207. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:650px; height:80px; "/>
  208. <line id="line13" class="line_4" style="x1:515px; y1:4px; x2:515px; y2:77px; "/>
  209. <caption id="caption5" class="search_name" style="left:16px; top:9px; width:90px; height:17px; ">구 분 :</caption>
  210. <select1 id="combo1" ref="/root/main/cond/deptcd" class="combo_search" navindex="4" appearance="minimal" style="left:215px; top:9px; width:240px; height:19px; ">
  211. <choices>
  212. <itemset nodeset="/root/init/deptlist/dept">
  213. <label ref="depthngnm"/>
  214. <value ref="deptcd"/>
  215. </itemset>
  216. </choices>
  217. <script type="javascript" ev:event="xforms-value-changed">
  218. <![CDATA[
  219. fSrchPrcpInfo();
  220. ]]>
  221. </script>
  222. </select1>
  223. <select1 id="rdo_opstatcd" ref="/root/main/cond/ordtype" navindex="5" appearance="full" cellspacing="5" cols="7" rows="1" overflow="visible" style="left:105px; top:9px; width:100px; height:20px; border-style:none; ">
  224. <choices>
  225. <item>
  226. <label>외래</label>
  227. <value>O</value>
  228. </item>
  229. <item>
  230. <label>입원</label>
  231. <value>I</value>
  232. </item>
  233. </choices>
  234. <script type="javascript" ev:event="xforms-value-changed">
  235. <![CDATA[
  236. if (model.getValue("/root/main/cond/ordtype") == "O") {
  237. model.removeNode("/root/init/deptlist");
  238. model.makeNode("/root/init/deptlist");
  239. zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/init/deptlist", "depthngnm", "asc"); //부서코드 콤보조회
  240. addComboInstance("/root/init/deptlist", "deptcd^depthngnm", "ALL^전체", "dept"); //부서콤보 전체추가
  241. } else {
  242. model.removeNode("/root/init/deptlist");
  243. model.makeNode("/root/init/deptlist");
  244. zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"),"orduseyn","W","/root/init/deptlist", "depthngnm", "asc"); // 병동정보
  245. addComboInstance("/root/init/deptlist", "deptcd^depthngnm", "ALL^전체", "dept"); // 병동콤보 전체추가
  246. }
  247. model.setValue("/root/main/cond/deptcd", "ALL"); // 부서코드
  248. model.refresh();
  249. fSrchPrcpInfo();
  250. ]]>
  251. </script>
  252. </select1>
  253. <button id="button4" class="btn1_letter2" navindex="7" style="left:587px; top:5px; width:56px; height:22px; ">
  254. <caption>닫기</caption>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. window.close();
  258. ]]>
  259. </script>
  260. </button>
  261. <caption id="caption1" class="search_name" style="left:16px; top:38px; width:90px; height:17px; ">처방코드 :</caption>
  262. <caption id="caption2" class="search_name" style="left:16px; top:58px; width:90px; height:17px; ">처 방 명 :</caption>
  263. <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; ">
  264. <script type="javascript" ev:event="onkeydown">
  265. <![CDATA[
  266. if(event.keycode == "13"){
  267. model.setFocus("btn_srch");
  268. fPrcpListSrch();
  269. }
  270. ]]>
  271. </script>
  272. </input>
  273. <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; ">
  274. <script type="javascript" ev:event="onkeydown">
  275. <![CDATA[
  276. if(event.keycode == "13"){
  277. model.setFocus("btn_srch");
  278. fPrcpListSrch();
  279. }
  280. ]]>
  281. </script>
  282. </input>
  283. <button id="btn_srch" class="btn2_letter2" navindex="3" style="left:465px; top:57px; width:42px; height:19px; ">
  284. <caption>검색</caption>
  285. <script type="javascript" ev:event="DOMActivate">
  286. <![CDATA[
  287. fPrcpListSrch();
  288. ]]>
  289. </script>
  290. </button>
  291. <button id="btn_ref" class="btn1_letter2" navindex="6" style="left:527px; top:5px; width:56px; height:22px; ">
  292. <caption>조회</caption>
  293. <script type="javascript" ev:event="DOMActivate">
  294. <![CDATA[
  295. fSrchPrcpInfo();
  296. ]]>
  297. </script>
  298. </button>
  299. </group>
  300. </group>
  301. </xhtml:body>
  302. </xhtml:html>