SMAHS03600_월별건진내시경현황.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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. <main>
  10. <cnfmmanlst>
  11. <item>
  12. <cnfmmanid/>
  13. <prcpdd/>
  14. <endo/>
  15. <sendo/>
  16. <colon/>
  17. </item>
  18. </cnfmmanlst>
  19. <endodetllst>
  20. <item>
  21. <prcpdd/>
  22. <pid/>
  23. <hngnm/>
  24. <calcscorcd/>
  25. <excuexectodd/>
  26. <cnfmman/>
  27. </item>
  28. </endodetllst>
  29. <export/>
  30. </main>
  31. <send>
  32. <srchfromdd/>
  33. <srchtodd/>
  34. <srchdate/>
  35. </send>
  36. <hidden>
  37. </hidden>
  38. <init>
  39. <baseinfo>
  40. <yearlst/>
  41. <recmpkglst/>
  42. </baseinfo>
  43. <srch>
  44. <fromdd/>
  45. <srchdate>1</srchdate>
  46. </srch>
  47. </init>
  48. </root>
  49. </instance>
  50. <script type="javascript" ev:event="xforms-ready">
  51. <![CDATA[
  52. // 일자초기화
  53. fInit();
  54. // model.setValue("/root/init/srch/fromdd" , getCurrentDate());
  55. // model.setValue("/root/init/srch/todd" , getCurrentDate());
  56. //
  57. // model.setValue("/root/init/srch/year" , getCurrentDate().substr(0,4));
  58. // model.setValue("/root/init/srch/qurtyy" , "03");
  59. // 기관코드 초기화
  60. // model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd"));
  61. //
  62. // // 공통코드 조회
  63. // zbcfGetCodeList( new Array("P0167","R0009"), new Array("/root/init/baseinfo/yearlst") );
  64. //
  65. // // 건진 공통코드 조회
  66. // healGetCodeList( new Array("S210"), new Array("/root/init/baseinfo/recmpkglst") );
  67. //
  68. // rdo_ddflag.dispatch("xforms-select");
  69. //추천현황 그리드를 동적으로 그린다.
  70. // fMakeRecmGrd();
  71. model.refresh();
  72. ]]>
  73. </script>
  74. <script type="javascript">
  75. <![CDATA[
  76. function fInit(){
  77. var curDt = getCurrentDate().substr(0,6);
  78. model.setValue(ipt_srchfromdd.attribute("ref") , curDt);
  79. rdo_search.disabled = false;
  80. model.refresh();
  81. }
  82. /*
  83. * 화면merge와 소계 및 총계를 생성한다.
  84. */
  85. function fSetRcptSum(vFlag) {
  86. // 그리드 merge 및 합계 초기화
  87. if(vFlag == "A") {
  88. grd_cnfmmanlst.subtotalPosition = "below";
  89. grd_cnfmmanlst.multiTotals = true;
  90. grd_cnfmmanlst.subtotal("clear", 0, 0);
  91. grd_cnfmmanlst.subtotal("clear", grd_cnfmmanlst.colRef("cnfmmanid") , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold ", grd_cnfmmanlst.colRef("cnfmmanid") , "소 계" );
  92. // grd_cnfmmanlst.subtotal("clear", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_cnfmmanlst.colRef("cnfmmanid") , "총 계" );
  93. // 판독의별 현황
  94. for(var i = 0; i < grd_cnfmmanlst.cols ; i++) {
  95. // 소계
  96. if(i >= grd_cnfmmanlst.colRef("endo") ) {
  97. grd_cnfmmanlst.subtotal("sum", grd_cnfmmanlst.colRef("cnfmmanid") , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold ", grd_cnfmmanlst.colRef("cnfmmanid") , "소 계" );
  98. // grd_cnfmmanlst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_cnfmmanlst.colRef("cnfmmanid") , "총 계" );
  99. }
  100. }
  101. }else if(vFlag == "B"){
  102. grd_endodetllst.subtotalPosition = "below";
  103. grd_endodetllst.multiTotals = true;
  104. grd_endodetllst.subtotal("clear", 0, 0);
  105. // 추천내역
  106. for(var i =0; i < grd_endodetllst.cols ; i++) {
  107. // 건수
  108. if(i == grd_endodetllst.colRef("pkgcd") ) {
  109. grd_endodetllst.subtotal("count", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_endodetllst.colRef("pid") , "건수/계" );
  110. }
  111. // 소계
  112. if( i >= grd_endodetllst.colRef("recmpoint") && i <= grd_endodetllst.colRef("recmpoint") ) {
  113. grd_endodetllst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold ", grd_endodetllst.colRef("pid") , "건수/계" );
  114. }
  115. }
  116. }
  117. }
  118. /**
  119. * @desc : 직원정보가져오기
  120. */
  121. function fGetEmpInfo(vEmplNoNode, vEmpNmNode){
  122. model.makeNode("/root/temp/userpopupinfo/param");
  123. model.makeNode("/root/temp/userpopupinfo/flag");
  124. model.makeNode("/root/temp/userpopupinfo/searchitem");
  125. model.setValue("/root/temp/userpopupinfo/param" , "_OneS");
  126. model.setValue("/root/temp/userpopupinfo/flag" , "usernm");
  127. model.setValue("/root/temp/userpopupinfo/searchitem" , "사용자명");
  128. model.removeNodeset("/root/hidden/onerowselect/list");
  129. modal("SPZSU10103_사용자부서조회", "", "200", "200", "SPZSU10103","/root/temp/userpopupinfo","/root/main/temp");
  130. var iParam = getParameter("SPZSU10103_");
  131. model.makeNode("/root/hidden/onerowselect");
  132. model.makeNode("/root/main/ptbs/ptbs_recmernm");
  133. setCSVToNode("/root/hidden/onerowselect", iParam);
  134. model.setValue(vEmplNoNode , model.getValue("/root/hidden/onerowselect/list/userid") );
  135. model.setValue(vEmpNmNode , model.getValue("/root/hidden/onerowselect/list/usernm") );
  136. clearParameter("SPZSU10103_");
  137. model.removeNodeset("/root/temp/userpopupinfo");
  138. model.refresh();
  139. }
  140. /**
  141. * @desc : 추천현황 그리드를 동적으로 그린다.
  142. */
  143. function fMakeRecmGrd() {
  144. var cap = "";
  145. var addCol = 1;
  146. var front_cap = "기관^사원번호^성명^소속^";
  147. var back_cap = "점수";
  148. grd_cnfmmanlst.addColumn("ref:instnm; type:output;");
  149. grd_cnfmmanlst.addColumn("ref:recmempid; type:output;");
  150. grd_cnfmmanlst.addColumn("ref:usernm; type:output;");
  151. grd_cnfmmanlst.addColumn("ref:pos; type:output;");
  152. cap += front_cap;
  153. for(var i=1; i <= getNodesetCount("/root/init/baseinfo/recmpkglst/S210"); i++) {
  154. var cdid = model.getValue("/root/init/baseinfo/recmpkglst/S210[" + i + "]/cdid");
  155. var cdnm = model.getValue("/root/init/baseinfo/recmpkglst/S210[" + i + "]/cdnm");
  156. if(cdid != "") {
  157. cap += cdid + "^";
  158. grd_cnfmmanlst.addColumn("ref:pkg" + addCol + "; type:output;");
  159. addCol++;
  160. }
  161. }
  162. cap += back_cap;
  163. grd_cnfmmanlst.addColumn("ref:recmpoint; type:output;");
  164. grd_cnfmmanlst.caption = cap;
  165. grd_cnfmmanlst.resizeCells();
  166. grd_cnfmmanlst.rebuild();
  167. }
  168. ]]>
  169. </script>
  170. <submission id="TRZBC00101"/>
  171. <submission id="TRAHA00001"/>
  172. <submission id="TRAHS03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cnfmmanlst"/>
  173. <submission id="TRAHS03602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/endodetllst"/>
  174. </model>
  175. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  176. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  177. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  178. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  179. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  180. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  181. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  182. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  183. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  184. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  185. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  186. </xhtml:head>
  187. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1206;">
  188. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  189. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">월별 건진내시경 현황</caption>
  190. </group>
  191. <group id="group2" style="left:4px; top:23px; width:1203px; height:42px; ">
  192. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  193. <line id="line2" class="line_4" style="x1:1132px; y1:2px; x2:1132px; y2:34px; border-color:#ffe4bb; border-left-style:solid; "/>
  194. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  195. <caption>조회</caption>
  196. <script type="javascript" ev:event="DOMActivate">
  197. <![CDATA[
  198. var idx = swt_endo.selectedIndex;
  199. var ret = false;
  200. var initdd = model.getValue("/root/init/srch/fromdd");
  201. var fromdd = initdd + "01";
  202. var todd = initdd + "31";
  203. model.setValue("/root/send/srchfromdd", fromdd);
  204. model.setValue("/root/send/srchtodd", todd);
  205. model.setValue("/root/send/srchdate", model.getValue("/root/init/srch/srchdate"));
  206. if(idx == "0") {
  207. ret = submit("TRAHS03601");
  208. if(ret) {
  209. grd_cnfmmanlst.rebuild();
  210. fSetRcptSum("A");
  211. }
  212. }else {
  213. ret = submit("TRAHS03602");
  214. if(ret) {
  215. fSetRcptSum("B");
  216. }
  217. }
  218. model.refresh();
  219. ]]>
  220. </script>
  221. </button>
  222. <button id="btn_excelsave" class="btn6_letter4" visibility="visible" style="left:1046px; top:7px; width:80px; height:22px; ">
  223. <caption>액셀저장</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. var idx = swt_endo.selectedIndex;
  227. if(idx == "0") {
  228. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  229. grd_cnfmmanlst.saveExcel(fileName, "SheetName", true, true, "", "", false);
  230. }else if(idx == "1") {
  231. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  232. grd_endodetllst.saveExcel(fileName, "SheetName", true, true, "", "", false);
  233. }
  234. ]]>
  235. </script>
  236. </button>
  237. <button id="btn_prt" class="btn6_letter2" style="left:975px; top:7px; width:56px; height:22px; ">
  238. <caption>출력</caption>
  239. <script type="javascript" ev:event="DOMActivate">
  240. <![CDATA[
  241. // 매개변수
  242. copyNodesetType("/root/main/export","/root/init/srch","replace");
  243. var idx = swt_endo.selectedIndex;
  244. if(idx == "0") {
  245. exeReportPreview("RPAHS03601", "XMLSTR", "/root/main/export","", "false","","","","","false");
  246. }else if(idx == "1") {
  247. exeReportPreview("RPAHS03602", "XMLSTR", "/root/main/export","", "false","","","","","false");
  248. }
  249. ]]>
  250. </script>
  251. </button>
  252. <line id="line3" class="line_4" visibility="hidden" style="x1:1038px; y1:2px; x2:1038px; y2:34px; border-color:#ffe4bb; border-left-style:solid; "/>
  253. <caption id="caption3" class="search_name" style="left:10px; top:9px; width:73px; height:17px; ">기준월 :</caption>
  254. <input id="ipt_srchfromdd" ref="/root/init/srch/fromdd" class="input_search" inputtype="date" format="yyyy-mm" appearance="input" style="left:90px; top:10px; width:110px; height:19px; ">
  255. <script type="javascript" ev:event="onkeyup">
  256. <![CDATA[
  257. inputEnterKey("btn_search", "DOMActivate");
  258. ]]>
  259. </script>
  260. </input>
  261. <caption id="caption1" class="search_name" style="left:240px; top:10px; width:95px; height:17px; ">조회기준 :</caption>
  262. </group>
  263. <switch id="swt_endo" style="left:4px; top:89px; width:1203px; height:656px; ">
  264. <case id="case_cnfmmanlst" selected="true">
  265. <datagrid id="grd_cnfmmanlst" nodeset="/root/main/cnfmmanlst/item" caption="판독의^날짜^상부내시경^수면내시경^대장내시경" colsep="^" colwidth="100, 68, 120, 120, 120" explorerbar="sortshow" mergecells="byrestriccol" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:1191px; height:644px; ">
  266. <col ref="cnfmmanid" style="text-align:center; "/>
  267. <col ref="prcpdd" style="text-align:center; "/>
  268. <col ref="endo" style="text-align:center; "/>
  269. <col ref="sendo" format="yyyy-mm-dd" style="text-align:center; "/>
  270. <col ref="colon" style="text-align:center; "/>
  271. <script type="javascript" ev:event="onaftersort">
  272. <![CDATA[
  273. grd_cnfmmanlst.gridToInstance();
  274. ]]>
  275. </script>
  276. </datagrid>
  277. </case>
  278. <case id="case_endodetllst">
  279. <datagrid id="grd_endodetllst" nodeset="/root/main/endodetllst/item" caption="처방일자^차트번호^성명^처방명^실시일자^판독의" colsep="^" colwidth="135, 106, 100, 110, 135, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:1191px; height:644px; ">
  280. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  281. <col ref="pid" style="text-align:center; "/>
  282. <col ref="hngnm" style="text-align:center; "/>
  283. <col ref="calcscorcd" style="text-align:center; "/>
  284. <col ref="excuexectodd" format="yyyy-mm-dd" style="text-align:center; "/>
  285. <col ref="cnfmman" style="text-align:center; "/>
  286. <script type="javascript" ev:event="onaftersort">
  287. <![CDATA[
  288. grd_endodetllst.gridToInstance();
  289. ]]>
  290. </script>
  291. </datagrid>
  292. </case>
  293. </switch>
  294. <button id="btn_cnfmmanlst" class="btn_sw" group="tab" selected="true" style="left:5px; top:67px; width:90px; height:22px; ">
  295. <caption>판독의별</caption>
  296. <script type="javascript" ev:event="DOMActivate">
  297. <![CDATA[
  298. model.toggle("case_cnfmmanlst");
  299. btn_cnfmmanlst.selected = true;
  300. // rdo_search.disabled = false;
  301. ]]>
  302. </script>
  303. </button>
  304. <button id="btn_endodetllst" class="btn_sw" group="tab" style="left:94px; top:67px; width:104px; height:22px; ">
  305. <caption>환자명단</caption>
  306. <script type="javascript" ev:event="DOMActivate">
  307. <![CDATA[
  308. model.toggle("case_endodetllst");
  309. btn_endodetllst.selected = true;
  310. // rdo_search.disabled = true;
  311. ]]>
  312. </script>
  313. </button>
  314. <select1 id="rdo_search" ref="/root/init/srch/srchdate" appearance="full" cols="2" overflow="visible" style="left:340px; top:35px; width:150px; height:20px; border-style:none; ">
  315. <choices>
  316. <item>
  317. <label>처방일자</label>
  318. <value>1</value>
  319. </item>
  320. <item>
  321. <label>실시일자</label>
  322. <value>2</value>
  323. </item>
  324. </choices>
  325. </select1>
  326. </xhtml:body>
  327. </xhtml:html>