SMLLP02000_외주검사청구서.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLP02000검사청구서.xrw
  4. * 설 명 : 검사청구서
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 이재민
  7. * 작 성 일 : 2009.10.6
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>검사 청구서</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <getBills>
  20. <spcacptdt/>
  21. <spcapctnm/>
  22. <patnm/>
  23. <pid/>
  24. <bcno/>
  25. </getBills>
  26. <getListBills1>
  27. <sectnm/>
  28. <tclscount/>
  29. <totalpay/>
  30. <totalpay2/>
  31. <margin/>
  32. <gpay/>
  33. <gpay/>
  34. </getListBills1>
  35. <getListBills>
  36. <tclscd/>
  37. <sectnm/>
  38. <tclsscrnnm/>
  39. <gbn/>
  40. <pay/>
  41. <pay2/>
  42. <tclscount/>
  43. <totalpay/>
  44. <totalpay2/>
  45. <margin/>
  46. <gpay/>
  47. <gpay/>
  48. </getListBills>
  49. </main>
  50. <send>
  51. <data1/>
  52. <codeflag/>
  53. <codeflag2/>
  54. </send>
  55. <hidden>
  56. <ref>
  57. <code1>00</code1>
  58. <code2/>
  59. <code3/>
  60. <code4/>
  61. <code5>R</code5>
  62. <code6>00</code6>
  63. <check/>
  64. </ref>
  65. </hidden>
  66. </root>
  67. </instance>
  68. <script type="javascript" ev:event="xforms-model-construct-done">
  69. <![CDATA[
  70. model.removeNodeset("/root/main/getListBills");
  71. model.removeNodeset("/root/main/getListBills1");
  72. model.removeNodeset("/root/main/getBills");
  73. model.refresh();
  74. ]]>
  75. </script>
  76. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  79. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  80. <script type="javascript" ev:event="xforms-ready">
  81. <![CDATA[
  82. model.setValue("/root/send/codeflag", "0110|0106|0108|0109|0111|0210|0000|0124|1005|0128|"); //0110
  83. //model.setValue("/root/send/codeflag", "0104|0102|0105|0103|0110|"); //0106 시행부서 // 0105 검체 // 0111 계
  84. submit("TRLZZ00101");
  85. fSet();
  86. ]]>
  87. </script>
  88. <submission id="TRLLP02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getListBills"/>
  89. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/L"/>
  90. <submission id="TRLLP02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getBills"/>
  91. <submission id="TRLLP02003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getListBills1"/>
  92. </model>
  93. <script type="javascript">
  94. <![CDATA[
  95. //날짜
  96. function fSet(){
  97. var toDay = getCurrentDate();
  98. var toDays = toDay.substr(0,6)
  99. model.setValue("/root/hidden/ref/code2", toDays);
  100. input1.attribute("format") = "yyyy-mm";
  101. model.refresh();
  102. }
  103. // 초기화
  104. function fSetInit() {
  105. model.removeNodeset("/root/main/getListBills");
  106. model.removeNodeset("/root/main/getListBills1");
  107. model.removeNodeset("/root/main/getBills");
  108. model.refresh();
  109. }
  110. //조회2
  111. function fgetListBills1(){
  112. model.copyNode("/root/send/data1" , "/root/hidden/ref");
  113. submit("TRLLP02003");
  114. datagrid2.rowStyle(1,"all","background-color") = "#ffcc99"
  115. datagrid2.seqrowheader = 0;
  116. datagrid2.frozenRows = 1;
  117. fgetListBills();
  118. }
  119. //조회
  120. function fgetListBills(){
  121. model.copyNode("/root/send/data1" , "/root/hidden/ref");
  122. submit("TRLLP02001");
  123. datagrid1.rowStyle(1,"all","background-color") = "#ffcc99"
  124. datagrid1.seqrowheader = 0;
  125. datagrid1.frozenRows = 1;
  126. }
  127. //청구내역서조회
  128. function fClickResultList(){
  129. var row = datagrid1.row;
  130. model.setValue("/root/hidden/ref/code4", model.getValue("/root/main/getListBills["+row+"]/tclscd"));
  131. model.copyNode("/root/send/data1" , "/root/hidden/ref");
  132. //alert(model.getValue("/root/hidden/ref/code4"));
  133. submit("TRLLP02002");
  134. //modal("SPLLP90500","", "", "","", "/root/hidden/ref", "/root/hidden/ref");
  135. }
  136. // 청구서상세내역저장 저장
  137. function fExeExcel(pGridId) {
  138. var fileName = window.fileDialog("save", ",", false, "청구서 상세내역_" + getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  139. if (fileName != "") {
  140. pGridId.saveExcel(fileName);
  141. }
  142. }
  143. // 부서별청구총액 저장
  144. function fExeExcel1(pGridId) {
  145. var fileName = window.fileDialog("save", ",", false, "부서별청구총액_" + getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  146. if (fileName != "") {
  147. pGridId.saveExcel(fileName);
  148. }
  149. }
  150. ]]>
  151. </script>
  152. </xhtml:head>
  153. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  154. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; "/>
  155. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  156. <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  157. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  158. <caption id="caption2" class="search_name" style="left:205px; top:10px; width:99px; height:17px; ">외주업체 :</caption>
  159. <button id="button1" class="btn1_letter2" style="left:1130px; top:7px; width:56px; height:22px; ">
  160. <caption>조회</caption>
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. fSetInit();
  164. fgetListBills1();
  165. ]]>
  166. </script>
  167. </button>
  168. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  169. <input id="input1" ref="/root/hidden/ref/code2" class="input_default" inputtype="date" format="yyyy-mm" style="left:679px; top:8px; width:90px; height:19px; "/>
  170. <select1 id="combo1" ref="/root/hidden/ref/code1" appearance="minimal" style="left:293px; top:9px; width:100px; height:19px; ">
  171. <choices>
  172. <itemset nodeset="/root/init/LB0110">
  173. <label ref="nm"/>
  174. <value ref="cd"/>
  175. </itemset>
  176. </choices>
  177. </select1>
  178. <caption id="caption3" class="search_name" style="left:600px; top:10px; width:99px; height:17px; ">의뢰월 :</caption>
  179. <caption id="caption5" class="search_name" style="left:902px; top:10px; width:86px; height:17px; ">보험선택 :</caption>
  180. <select1 id="combo2" ref="/root/hidden/ref/code3" appearance="minimal" style="left:995px; top:9px; width:100px; height:19px; ">
  181. <choices>
  182. <item>
  183. <label>-전체-</label>
  184. <value/>
  185. </item>
  186. <item>
  187. <label>일반</label>
  188. <value>G</value>
  189. </item>
  190. <item>
  191. <label>보험</label>
  192. <value>I</value>
  193. </item>
  194. </choices>
  195. </select1>
  196. <select1 id="combo3" ref="/root/hidden/ref/code5" appearance="minimal" style="left:486px; top:9px; width:100px; height:19px; ">
  197. <choices>
  198. <item>
  199. <label>수거시점</label>
  200. <value>R</value>
  201. </item>
  202. <item>
  203. <label>통보시점</label>
  204. <value>N</value>
  205. </item>
  206. </choices>
  207. </select1>
  208. <caption id="caption4" class="search_name" style="left:398px; top:10px; width:99px; height:17px; ">시점기준 :</caption>
  209. <select1 id="combo4" ref="/root/hidden/ref/code6" appearance="minimal" style="left:94px; top:9px; width:100px; height:19px; ">
  210. <choices>
  211. <itemset nodeset="/root/init/LB0111">
  212. <label ref="nm"/>
  213. <value ref="cd"/>
  214. </itemset>
  215. </choices>
  216. </select1>
  217. <caption id="caption7" class="search_name" style="left:6px; top:9px; width:90px; height:17px; ">시행부서 :</caption>
  218. </group>
  219. <caption id="caption1" class="tit_2" style="left:5px; top:275px; width:131px; height:14px; ">청구서 상세내역</caption>
  220. <datagrid id="datagrid1" nodeset="/root/main/getListBills" caption="검사코드^시행부서^검사명^유형^단가^계약가^건수^총단가^총계약가^차액^ 일반가격^보험가격" colsep="^" colwidth="75, 75, 230, 45, 70, 70, 70, 90, 110, 110, 90, 90" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:296px; width:1194px; height:434px; font-weight:bold; text-align:center; ">
  221. <col ref="tclscd"/>
  222. <col ref="sectnm" style="text-align:left; "/>
  223. <col ref="tclsscrnnm" style="text-align:left; "/>
  224. <col ref="gbn" style="text-align:center; "/>
  225. <col ref="pay" format="#,###.99" style="text-align:right; "/>
  226. <col ref="pay2" format="#,###.99" style="text-align:right; "/>
  227. <col ref="tclscount" format="#,###" style="text-align:right; "/>
  228. <col ref="totalpay" format="#,###.99" style="text-align:right; "/>
  229. <col ref="totalpay2" format="#,###.99" style="text-align:right; "/>
  230. <col ref="margin" format="#,###.99" style="text-align:right; "/>
  231. <col ref="gpay" format="#,###.99" style="text-align:right; "/>
  232. <col ref="ipay" format="#,###.99" style="text-align:right; "/>
  233. <script type="javascript" ev:event="ondblclick">
  234. <![CDATA[
  235. fClickResultList();
  236. ]]>
  237. </script>
  238. <script type="javascript" ev:event="onaftersort">
  239. <![CDATA[
  240. datagrid1.gridToInstance();
  241. ]]>
  242. </script>
  243. </datagrid>
  244. <line id="line1" class="line_1" style="x1:0px; y1:291px; x2:1194px; y2:291px; "/>
  245. <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:271px; width:42px; height:19px; ">
  246. <caption>엑셀</caption>
  247. <script type="javascript" ev:event="DOMActivate">
  248. <![CDATA[
  249. fExeExcel(datagrid1);
  250. ]]>
  251. </script>
  252. </button>
  253. <datagrid id="datagrid2" nodeset="/root/main/getListBills1" caption="시행부서^건수^총단가^총계약가^차액^ 일반가격^보험가격" colsep="^" colwidth="85, 70, 89, 115, 115, 90, 90" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:78px; width:705px; height:187px; font-weight:bold; text-align:center; ">
  254. <col ref="sectnm" style="text-align:left; "/>
  255. <col ref="tclscount" format="#,###" style="text-align:right; "/>
  256. <col ref="totalpay" format="#,###.99" style="text-align:right; "/>
  257. <col ref="totalpay2" format="#,###.99" style="text-align:right; "/>
  258. <col ref="margin" format="#,###.99" style="text-align:right; "/>
  259. <col ref="gpay" format="#,###.99" style="text-align:right; "/>
  260. <col ref="gpay" format="#,###.99" style="text-align:right; "/>
  261. </datagrid>
  262. <caption id="caption8" class="tit_2" style="left:0px; top:56px; width:131px; height:13px; ">부서별 청구 총액</caption>
  263. <datagrid id="grd_patlist" nodeset="/root/main/getBills" caption="접수일^수거자^환자명^등록번호^샘플번호" colsep="^" colwidth="110, 60, 60, 80, 115" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:714px; top:78px; width:481px; height:187px; font-weight:bold; ">
  264. <col ref="spcacptdt" format="yyyy-mm-dd" style="text-align:left; "/>
  265. <col ref="spcapctnm" style="text-align:left; "/>
  266. <col ref="patnm" style="text-align:left; "/>
  267. <col ref="pid" style="text-align:left; "/>
  268. <col ref="bcno" style="text-align:left; "/>
  269. </datagrid>
  270. <line id="line2" class="line_1" style="x1:0px; y1:73px; x2:705px; y2:73px; "/>
  271. <line id="line3" class="line_1" style="x1:714px; y1:73px; x2:1194px; y2:73px; "/>
  272. <caption id="caption9" class="tit_2" style="left:713px; top:57px; width:131px; height:13px; ">외주업체 내역서</caption>
  273. <button id="button2" class="btn2_letter2" style="left:663px; top:53px; width:42px; height:19px; ">
  274. <caption>엑셀</caption>
  275. <script type="javascript" ev:event="DOMActivate">
  276. <![CDATA[
  277. fExeExcel1(datagrid2);
  278. ]]>
  279. </script>
  280. </button>
  281. </group>
  282. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  283. <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  284. <caption>초기화</caption>
  285. <script type="javascript" ev:event="onclick">
  286. <![CDATA[
  287. fSetInit();
  288. ]]>
  289. </script>
  290. </button>
  291. <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  292. </group>
  293. <group id="group5" style="left:0px; top:0px; width:1195px; height:13px; ">
  294. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">검사 청구서</caption>
  295. </group>
  296. </xhtml:body>
  297. </xhtml:html>