SMPAS01250_수익명세서.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. <?xml version="1.0" encoding="UTF-16"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <earnlist>
  11. <rcptlist/>
  12. </earnlist>
  13. </main>
  14. <send>
  15. <search>
  16. <fromdd/>
  17. <todd/>
  18. <ordtype>O</ordtype>
  19. <earncls1>01</earncls1>
  20. <earncls2>%</earncls2>
  21. <earncls3>%</earncls3>
  22. <schond>S</schond>
  23. <lrgchk>L</lrgchk>
  24. <mdlchk/>
  25. </search>
  26. </send>
  27. <hidden>
  28. <session/>
  29. </hidden>
  30. <init>
  31. <list1>
  32. <deptitem>
  33. <deptcd/>
  34. <depthngnm/>
  35. </deptitem>
  36. </list1>
  37. <earncls1>
  38. <earnlrgcls>
  39. <cdnm/>
  40. <cdid/>
  41. </earnlrgcls>
  42. </earncls1>
  43. <earncls2>
  44. <earnmdlcls>
  45. <cdnm/>
  46. <cdid/>
  47. </earnmdlcls>
  48. </earncls2>
  49. <earncls3>
  50. <earnsmlcls>
  51. <cdnm/>
  52. <cdid/>
  53. </earnsmlcls>
  54. </earncls3>
  55. <earnlist>
  56. <rcptlist/>
  57. <lrglist/>
  58. <mdllist/>
  59. </earnlist>
  60. </init>
  61. </root>
  62. </instance>
  63. <script type="javascript" ev:event="xforms-model-construct-done">
  64. <![CDATA[
  65. model.setValue("/root/send/search/fromdd", getCurrentDate());
  66. model.setValue("/root/send/search/todd", getCurrentDate());
  67. input7.refresh();
  68. input1.refresh();
  69. datagrid1.addColumn("ref:earncls1nm; type:output; style:text-align:left; ");
  70. datagrid1.addColumn("ref:earncls2nm; type:output; style:text-align:left; ");
  71. datagrid1.addColumn("ref:earncls3nm; type:output; style:text-align:left; ");
  72. datagrid1.caption = "수익대분류" + "^" + "수익중분류" + "^" + "수익소분류" ;
  73. // 과별 불러오기
  74. submit("TRPAS01251");
  75. var count = getNodesetCount("/root/init/list1/deptitem");
  76. for ( j=1; j <= count; j++ ) {
  77. var capName = model.getValue("/root/init/list1/deptitem["+ j +"]/depthngnm");
  78. datagrid1.addColumn("ref:name"+ (j-1) +"; type:output; format:(-)#,###; style:text-align:right; ");
  79. datagrid1.caption = datagrid1.caption + "^" + capName;
  80. if ( datagrid1.caption = datagrid1.caption ) {
  81. continue;
  82. } else {
  83. break;
  84. }
  85. }
  86. if ( submit("TRPAS01252") ) {
  87. if ( submit("TRPAS01253") ) {
  88. if ( submit("TRPAS01254") ) {
  89. } else {
  90. messageBox("수익 소분류 조회 중 오류","E999");
  91. return;
  92. }
  93. } else {
  94. messageBox("수익 중분류 조회 중 오류","E999");
  95. return;
  96. }
  97. } else {
  98. messageBox("수익 대분류 조회 중 오류","E999");
  99. return;
  100. }
  101. datagrid1.autoSizeMouse = true;
  102. datagrid1.refresh();
  103. ]]>
  104. </script>
  105. <submission id="TRPAS01251" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/init"/>
  106. <submission id="TRPAS01252" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/earncls1"/>
  107. <submission id="TRPAS01253" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/earncls2"/>
  108. <submission id="TRPAS01254" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/earncls3"/>
  109. <submission id="TRPAS01255" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/earnlist"/>
  110. <submission id="TRPAS01256" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/earnlist"/>
  111. </model>
  112. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  114. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  115. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  116. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  118. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  119. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  120. </xhtml:head>
  121. <xhtml:body pagewidth="1211" pageheight="784">
  122. <group id="group2" style="left:4px; top:22px; width:1203px; height:35px; ">
  123. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  124. <caption id="caption2" class="search_name" style="left:5px; top:9px; width:198px; height:17px; ">기간 ~</caption>
  125. <line id="line2" class="line_4" style="x1:1130px; y1:7px; x2:1130px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  126. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  127. <caption>조회</caption>
  128. <script type="javascript" ev:event="DOMActivate">
  129. <![CDATA[
  130. var fromdd = model.getValue("/root/send/search/fromdd");
  131. var todd = model.getValue("/root/send/search/todd");
  132. if ( fromdd > todd ) {
  133. messageBox("시작일자가 종료일자보다 클수 ", "C001")
  134. return;
  135. }
  136. model.removeNodeset("/root/main/earnlist/rcptlist");
  137. model.removeNodeset("/root/main/earnlist/lrglist");
  138. model.removeNodeset("/root/main/earnlist/mdllist");
  139. var rtGubn = model.getValue("/root/send/search/schond");
  140. var MdlCheck = model.getValue("/root/send/search/mdlchk");
  141. submit("TRPAS01255");
  142. if ( rtGubn == "S") {
  143. datagrid1.nodeset = "/root/main/earnlist/rcptlist";
  144. copyNodeListType("/root/main/earnlist","/root/init/earnlist/rcptlist", "after");
  145. } else {
  146. if ( MdlCheck == "M" ) {
  147. datagrid1.nodeset = "/root/main/earnlist/mdllist";
  148. copyNodeListType("/root/main/earnlist","/root/init/earnlist/mdllist", "after");
  149. } else {
  150. datagrid1.nodeset = "/root/main/earnlist/lrglist";
  151. copyNodeListType("/root/main/earnlist","/root/init/earnlist/lrglist", "after");
  152. }
  153. }
  154. model.refresh();
  155. datagrid1.mergeCol(1) = true;
  156. datagrid1.merge();
  157. var row = datagrid1.rows - 1;
  158. //합계 Merge 후 가운데 정렬
  159. if ( rtGubn == "S" ) {
  160. datagrid1.mergeByFree(row, 0, row, 2);
  161. datagrid1.cellstyle("text-align", row, 0, row, 2) = "center";
  162. } else {
  163. if ( MdlCheck == "M" ) {
  164. datagrid1.mergeByFree(row, 0, row, 1);
  165. datagrid1.cellstyle("text-align", row, 0, row, 1) = "center";
  166. }
  167. }
  168. ]]>
  169. </script>
  170. </button>
  171. <input id="input7" ref="/root/send/search/fromdd" class="input_default" navindex="7" inputtype="date" style="left:60px; top:9px; width:100px; height:19px; text-align:center; ">
  172. <script type="javascript" ev:event="onkeydown">
  173. <![CDATA[
  174. if( event.keyCode == 13 ) {
  175. var pCurTargetObj = event.ptarget.parent;
  176. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  177. event.keyCode = 9;
  178. pCurTargetObj.dispatch("onkeydown");
  179. }
  180. else {
  181. event.keyCode = 9;
  182. }
  183. }
  184. event.stopPropagation();
  185. ]]>
  186. </script>
  187. </input>
  188. <input id="input1" ref="/root/send/search/todd" class="input_default" navindex="7" inputtype="date" style="left:175px; top:9px; width:100px; height:19px; text-align:center; ">
  189. <script type="javascript" ev:event="onkeydown">
  190. <![CDATA[
  191. if( event.keyCode == 13 ) {
  192. var pCurTargetObj = event.ptarget.parent;
  193. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  194. event.keyCode = 9;
  195. pCurTargetObj.dispatch("onkeydown");
  196. }
  197. else {
  198. event.keyCode = 9;
  199. }
  200. }
  201. event.stopPropagation();
  202. ]]>
  203. </script>
  204. </input>
  205. <select1 id="combo1" ref="/root/send/search/ordtype" appearance="minimal" style="left:342px; top:9px; width:68px; height:19px; text-align:center; ">
  206. <choices>
  207. <item>
  208. <label>외래</label>
  209. <value>O</value>
  210. </item>
  211. <item>
  212. <label>입원</label>
  213. <value>I</value>
  214. </item>
  215. </choices>
  216. </select1>
  217. <caption id="caption7" style="left:285px; top:9px; width:54px; height:19px; font-weight:bold; ">진료형태</caption>
  218. <select1 id="combo2" ref="/root/send/search/earncls1" visibility="visible" appearance="minimal" style="left:570px; top:10px; width:120px; height:19px; text-align:left; ">
  219. <choices>
  220. <itemset nodeset="/root/init/earncls1/earnlrgcls">
  221. <label ref="cdnm"/>
  222. <value ref="cdid"/>
  223. </itemset>
  224. </choices>
  225. <script type="javascript" ev:event="xforms-select">
  226. <![CDATA[
  227. if ( !submit("TRPAS01253") ) {
  228. messageBox("수익 중분류 조회 중 오류","E999");
  229. return;
  230. }
  231. ]]>
  232. </script>
  233. </select1>
  234. <select1 id="combo3" ref="/root/send/search/earncls2" visibility="visible" appearance="minimal" style="left:725px; top:10px; width:155px; height:19px; text-align:left; ">
  235. <choices>
  236. <itemset nodeset="/root/init/earncls2/earnmdlcls">
  237. <label ref="cdnm"/>
  238. <value ref="cdid"/>
  239. </itemset>
  240. </choices>
  241. <script type="javascript" ev:event="xforms-select">
  242. <![CDATA[
  243. if ( !submit("TRPAS01254") ) {
  244. messageBox("수익 소분류 조회 중 오류","E999");
  245. return;
  246. }
  247. ]]>
  248. </script>
  249. </select1>
  250. <select1 id="combo4" ref="/root/send/search/earncls3" visibility="visible" appearance="minimal" style="left:900px; top:10px; width:225px; height:19px; text-align:left; ">
  251. <choices>
  252. <itemset nodeset="/root/init/earncls3/earnsmlcls">
  253. <label ref="cdnm"/>
  254. <value ref="cdid"/>
  255. </itemset>
  256. </choices>
  257. </select1>
  258. <select1 id="rdo_indyn" ref="/root/send/search/schond" appearance="full" cellspacing="7" cols="2" style="left:421px; top:10px; width:100px; height:20px; font-weight:bold; ">
  259. <choices>
  260. <item>
  261. <label>상세</label>
  262. <value>S</value>
  263. </item>
  264. <item>
  265. <label>집계</label>
  266. <value>A</value>
  267. </item>
  268. </choices>
  269. <script type="javascript" ev:event="xforms-select">
  270. <![CDATA[
  271. var schond = model.getValue("/root/send/search/schond");
  272. if ( schond == "A" ) {
  273. caption1.visible = false;
  274. caption3.visible = false;
  275. caption4.visible = false;
  276. combo2.visible = false;
  277. combo3.visible = false;
  278. combo4.visible = false;
  279. checkbox1.visible = true;
  280. checkbox2.visible = true;
  281. } else {
  282. caption1.visible = true;
  283. caption3.visible = true;
  284. caption4.visible = true;
  285. combo2.visible = true;
  286. combo3.visible = true;
  287. combo4.visible = true;
  288. checkbox1.visible = false;
  289. checkbox2.visible = false;
  290. }
  291. ]]>
  292. </script>
  293. </select1>
  294. <caption id="caption1" visibility="visible" style="left:551px; top:10px; width:15px; height:19px; font-weight:bold; ">대</caption>
  295. <caption id="caption3" visibility="visible" style="left:709px; top:10px; width:15px; height:19px; font-weight:bold; ">중</caption>
  296. <caption id="caption4" visibility="visible" style="left:885px; top:10px; width:15px; height:19px; font-weight:bold; ">소</caption>
  297. <select id="checkbox1" ref="/root/send/search/lrgchk" visibility="hidden" overflow="visible" appearance="full" style="left:535px; top:11px; width:30px; height:20px; font-weight:bold; border-style:none; ">
  298. <choices>
  299. <item>
  300. <label>대</label>
  301. <value>L</value>
  302. </item>
  303. </choices>
  304. <script type="javascript" ev:event="xforms-deselect">
  305. <![CDATA[
  306. checkbox1.selected = true;
  307. ]]>
  308. </script>
  309. </select>
  310. <select id="checkbox2" ref="/root/send/search/mdlchk" visibility="hidden" overflow="visible" appearance="full" style="left:568px; top:11px; width:30px; height:20px; font-weight:bold; border-style:none; ">
  311. <choices>
  312. <item>
  313. <label>중</label>
  314. <value>M</value>
  315. </item>
  316. </choices>
  317. </select>
  318. </group>
  319. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  320. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; font-family:돋움; vertical-align:middle; ">수익명세서</caption>
  321. </group>
  322. <datagrid id="datagrid1" nodeset="/root/main/earnlist/rcptlist" autoresize="true" colsep="^" colwidth="100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:90px; width:1200px; height:680px; "/>
  323. <button id="button95" class="btn6_letter4" visibility="visible" style="left:1125px; top:60px; width:80px; height:22px; ">
  324. <caption>액셀저장</caption>
  325. <script type="javascript" ev:event="DOMActivate">
  326. <![CDATA[
  327. //엑셀저장 여부(타이틀별)
  328. var fileName = window.fileDialog("save", "", false, "수익명세서 "+getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  329. if (fileName != "")
  330. {
  331. datagrid1.saveExcel(fileName, "수익명세서 "+getCurrentDate(), true, true, "", "", true);
  332. }
  333. ]]>
  334. </script>
  335. </button>
  336. </xhtml:body>
  337. </xhtml:html>