SMPMI05400_병동보고서유형변경대장.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <send>
  10. <fromdd/>
  11. <todd/>
  12. <sess_posinstcd/>
  13. <ioflag/>
  14. <pid/>
  15. <sendflag/>
  16. </send>
  17. <main>
  18. </main>
  19. <hidden>
  20. </hidden>
  21. <init>
  22. </init>
  23. <temp>
  24. </temp>
  25. <list>
  26. <chandatetype>
  27. <indd/>
  28. <pid/>
  29. <hngnm/>
  30. <asinsukind/>
  31. <asinsukindnm/>
  32. <assupkindnm/>
  33. <asfromdd/>
  34. <astodd/>
  35. <toinsukind/>
  36. <toinsukindnm/>
  37. <tosupkindnm/>
  38. <tofromdd/>
  39. <totodd/>
  40. <chantype/>
  41. <workernm/>
  42. </chandatetype>
  43. <chanpattype>
  44. <chandd/>
  45. <pid/>
  46. <hngnm/>
  47. <asinsukind/>
  48. <asinsukindnm/>
  49. <assuppkind/>
  50. <assupkindnm/>
  51. <asfromdd/>
  52. <astodd/>
  53. <toinsukind/>
  54. <toinsukindnm/>
  55. <tosuppkind/>
  56. <tosupkindnm/>
  57. <tofromdd/>
  58. <totodd/>
  59. <chantype/>
  60. <manage/>
  61. </chanpattype>
  62. <schanpattype>
  63. <indd/>
  64. <pid/>
  65. <hngnm/>
  66. <asinsukind/>
  67. <asfromdd/>
  68. <astodd/>
  69. <toinsukind/>
  70. <tofromdd/>
  71. <totodd/>
  72. <chantype/>
  73. <workernm/>
  74. </schanpattype>
  75. </list>
  76. </root>
  77. </instance>
  78. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  79. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
  80. <submission id="TRPMI05400" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/list"/>
  81. </model>
  82. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  87. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  88. <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
  89. <script type="javascript" ev:event="xforms-ready">
  90. <![CDATA[
  91. fShowComBox();
  92. fGetUserInfosSampling();//세션정보
  93. model.setValue("/root/send/sess_posinstcd",model.getValue("/root/hidden/session/sess_dutplceinstcd"));
  94. model.setValue("/root/send/ioflag","I");
  95. model.refresh();
  96. submit("TRPMI00106");
  97. zbcfGetCodeList(new Array("P0101","P0028","P0038"),new Array("/root/init1/P0101list","/root/init1/P0028list","/root/init1/P0038list"));
  98. model.refresh();
  99. ]]>
  100. </script>
  101. <script type="javascript">
  102. <![CDATA[
  103. function fShowComBox() {
  104. if(btn_chandate.selected == true) {
  105. caption39.visible = true;
  106. fromdd.visible = true;
  107. caption8.visible = true;
  108. todd.visible = true;
  109. caption1.visible = false;
  110. input_pid.visible = false;
  111. output_hngnm.visible = false;
  112. }else if(btn_chanpat.selected == true){
  113. caption39.visible = false;
  114. fromdd.visible = false;
  115. caption8.visible = false;
  116. todd.visible = false;
  117. caption1.visible = true;
  118. input_pid.visible = true;
  119. output_hngnm.visible = true;
  120. caption1.attribute("left") = "5px";
  121. input_pid.attribute("left") = "95px";
  122. output_hngnm.attribute("left") = "195px";
  123. }
  124. }
  125. ]]>
  126. </script>
  127. </xhtml:head>
  128. <xhtml:body guideline="1,1192;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  129. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  130. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:120px; height:14px; ">병동 보고서</caption>
  131. </group>
  132. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1193px; height:670px; ">
  133. <switch id="swt_aipmmngt" style="left:0px; top:65px; width:1170px; height:600px; ">
  134. <case id="case_chandatetype" class="sw_box" selected="true" style="left:0px; top:0px; width:1194px; height:600px; ">
  135. <line id="line20" class="line_1" style="x1:0px; y1:25px; x2:1175px; y2:25px; "/>
  136. <caption id="caption3" class="tit_2" style="left:3px; top:6px; width:144px; height:14px; ">일자별 유형변경 대장</caption>
  137. <button id="button1" class="btn2_letter4" style="left:1098px; top:3px; width:64px; height:19px; ">
  138. <caption>엑셀저장</caption>
  139. <script type="javascript" ev:event="DOMActivate">
  140. <![CDATA[
  141. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  142. if (fileName != "")
  143. {
  144. grd_chandatetype.saveExcel(fileName, "SheetName", true, true, "", "", true);
  145. }
  146. ]]>
  147. </script>
  148. </button>
  149. <button id="button2" class="btn2_letter2" style="left:1050px; top:3px; width:42px; height:19px; ">
  150. <caption>출력</caption>
  151. <script type="javascript" ev:event="DOMActivate">
  152. <![CDATA[
  153. exeReportPreview("RPPMI05400", "XMLSTR" , "" , "" , "false" , "", "", "", "", "", "", "");
  154. ]]>
  155. </script>
  156. </button>
  157. <datagrid id="grd_chandatetype" caption="작업일^등록번호^성명^변 경 전^변 경 전^변 경 전^변 경 전^변 경 후^변 경 후^변 경 후^변 경 후^구분^작업자|작업일^등록번호^성명^유형^보조유형^시작일^종료일^유형^보조유형^시작일^종료일^구분^작업자" colsep="^" colwidth="100, 100, 80, 100, 100, 100, 100, 100, 100, 100, 100, 120, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:1170px; height:570px; text-align:center; ">
  158. <col ref="indd" format="yyyy-mm-dd"/>
  159. <col ref="pid"/>
  160. <col ref="hngnm"/>
  161. <col ref="asinsukindnm"/>
  162. <col ref="assupkindnm"/>
  163. <col ref="asfromdd" format="yyyy-mm-dd"/>
  164. <col ref="astodd" format="yyyy-mm-dd"/>
  165. <col ref="toinsukindnm"/>
  166. <col ref="tosupkindnm"/>
  167. <col ref="tofromdd" format="yyyy-mm-dd"/>
  168. <col ref="totodd" format="yyyy-mm-dd"/>
  169. <col ref="chantype"/>
  170. <col ref="workernm"/>
  171. <script type="javascript" ev:event="ondblclick">
  172. <![CDATA[
  173. var row = grd_chandatetype.row;
  174. var sPid = model.getValue("/root/list/chandatetype[" + row + "]/pid");
  175. //var vPid = grd_chandatetype.valueMatrix(grd_chandatetype.row , 1);
  176. btn_chanpat.dispatch("onclick");
  177. model.setValue("/root/send/pid" , sPid);
  178. btn_search2.dispatch("onclick");
  179. model.refresh();
  180. ]]>
  181. </script>
  182. </datagrid>
  183. </case>
  184. <case id="case_chanpattype" class="sw_box" style="left:0px; top:0px; width:1194px; height:600px; ">
  185. <line id="line21" class="line_1" style="x1:0px; y1:25px; x2:1175px; y2:25px; "/>
  186. <caption id="caption4" class="tit_2" style="left:3px; top:6px; width:157px; height:14px; ">환자별 유형변경 대장</caption>
  187. <datagrid id="grd_chanpat" caption="작업일^등록번호^성명^변 경 전^변 경 전^변 경 전^변 경 전^변 경 후^변 경 후^변 경 후^변 경 후^구분^작업자|작업일^등록번호^성명^유형^보조유형^시작일^종료일^유형^보조유형^시작일^종료일^구분^작업자" colsep="^" colwidth="100, 100, 80, 100, 100, 100, 100, 100, 100, 100, 100, 120, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:1170px; height:570px; text-align:center; ">
  188. <col ref="indd" format="yyyy-mm-dd"/>
  189. <col ref="pid"/>
  190. <col ref="hngnm"/>
  191. <col ref="asinsukindnm"/>
  192. <col ref="assupkindnm"/>
  193. <col ref="asfromdd" format="yyyy-mm-dd"/>
  194. <col ref="astodd" format="yyyy-mm-dd"/>
  195. <col ref="toinsukindnm"/>
  196. <col ref="tosupkindnm"/>
  197. <col ref="tofromdd" format="yyyy-mm-dd"/>
  198. <col ref="totodd" format="yyyy-mm-dd"/>
  199. <col ref="chantype"/>
  200. <col ref="workernm"/>
  201. </datagrid>
  202. </case>
  203. </switch>
  204. <button id="btn_chandate" class="btn_sw" group="tab" selected="true" style="left:0px; top:45px; width:120px; height:22px; ">
  205. <caption>일자별유형변경대장</caption>
  206. <toggle case="case_chandatetype" ev:event="xforms-activate"/>
  207. <script type="javascript" ev:event="DOMActivate">
  208. <![CDATA[
  209. fShowComBox();
  210. ]]>
  211. </script>
  212. </button>
  213. <button id="btn_chanpat" class="btn_sw" group="tab" selected="false" style="left:120px; top:45px; width:96px; height:22px; ">
  214. <caption>환자별유형대장</caption>
  215. <toggle case="case_chanpattype" ev:event="xforms-activate"/>
  216. <script type="javascript" ev:event="DOMActivate">
  217. <![CDATA[
  218. fShowComBox();
  219. ]]>
  220. </script>
  221. </button>
  222. <group id="group5" style="left:0px; top:5px; width:1172px; height:35px; vertical-align:top; ">
  223. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1172px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  224. <caption id="caption8" style="left:247px; top:8px; width:15px; height:20px; ">~</caption>
  225. <line id="line13" class="line_4" style="x1:1100px; y1:7px; x2:1100px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  226. <caption id="caption39" class="search_name" style="left:5px; top:9px; width:143px; height:17px; ">유형변경 기간조회 :</caption>
  227. <input id="todd" ref="/root/send/todd" class="input_search" inputtype="date" style="left:262px; top:8px; width:90px; height:19px; "/>
  228. <button id="btn_search" class="btn1_letter2" style="left:1111px; top:7px; width:56px; height:22px; text-align:left; ">
  229. <caption>조회</caption>
  230. <script type="javascript" ev:event="DOMActivate">
  231. <![CDATA[
  232. if(btn_chandate.selected == true){
  233. grd_chandatetype.nodeset = "/root/list/chandatetype";
  234. model.setValue("/root/send/sendflag" , "chandatetype");
  235. submit("TRPMI05400");
  236. }else if(btn_chanpat.selected == true){
  237. grd_chanpat.nodeset = "/root/list/chanpattype";
  238. model.setValue("/root/send/sendflag" , "chanpattype");
  239. submit("TRPMI05400");
  240. model.copyNode("/root/list/schanpattype","/root/list/chanpattype");
  241. }
  242. ]]>
  243. </script>
  244. </button>
  245. <input id="fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" style="left:152px; top:8px; width:90px; height:19px; ">
  246. <script type="javascript">
  247. <![CDATA[
  248. model.setValue("/root/send/fromdd" , getCurrentDate());
  249. model.setValue("/root/send/todd" , getCurrentDate());
  250. ]]>
  251. </script>
  252. </input>
  253. <caption id="caption1" class="search_name" style="left:355px; top:9px; width:95px; height:17px; ">등록번호 :</caption>
  254. <input id="input_pid" ref="/root/send/pid" class="input_search" style="left:450px; top:8px; width:95px; height:19px; ">
  255. <script type="javascript" ev:event="onkeypress">
  256. <![CDATA[
  257. if(event.keyCode == "13") {
  258. inputEnterKey("btn_search2", "DOMActivate");
  259. }
  260. ]]>
  261. </script>
  262. </input>
  263. <output id="output_hngnm" ref="/root/list/chanpattype/hngnm" style="left:550px; top:8px; width:85px; height:19px; font-weight:bold; "/>
  264. <button id="btn_search2" style="left:970px; top:10px; width:35px; height:20px; ">
  265. <caption>.</caption>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. grd_chanpat.nodeset = "/root/list/schanpattype";
  269. submit("TRPMI05400");
  270. ]]>
  271. </script>
  272. </button>
  273. </group>
  274. </group>
  275. </xhtml:body>
  276. </xhtml:html>