SPSTP00900_수익예산조회.xrw 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <cond>
  10. <bugtym/>
  11. </cond>
  12. <grddata>
  13. </grddata>
  14. </root>
  15. </instance>
  16. <script type="javascript" ev:event="xforms-ready">
  17. <![CDATA[
  18. fInit();
  19. ]]>
  20. </script>
  21. <submission id="TRSTP01705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/grddata"/>
  22. <submission id="TXSTP00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="root/reqExeEarnBugtList"/>
  23. </model>
  24. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  25. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  26. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  27. <script type="javascript">
  28. <![CDATA[
  29. function fInit(){
  30. model.setValue("/root/cond/bugtym", getCurrentDate().substr(0, 6));
  31. ipt_srchdd.refresh();
  32. }
  33. function fDispAprvCnclChng(grdObj){
  34. var nodePath = grdObj.attribute("nodeset");
  35. var chagValue = "";
  36. grdObj.rebuildStyle();
  37. for(var i = 1; i < grdObj.rows; i++){
  38. chagValue = model.getValue(nodePath + "[" + i + "]/orddeptcd");
  39. if(chagValue == ""){
  40. grdObj.rowStyle(i, "data", "background-color") = "#ffff99";
  41. grdObj.rowStyle(i, "data", "font-weight") = "bold";
  42. }
  43. }
  44. }
  45. ]]>
  46. </script>
  47. </xhtml:head>
  48. <xhtml:body guideline="2,767;1,1200;1,1290;">
  49. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:19px; width:1200px; height:43px; background-color:#fffbf2; border-color:#ffd799; "/>
  50. <line id="line13" class="line_4" style="x1:1005px; y1:25px; x2:1005px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
  51. <caption id="caption21" class="search_name" style="left:21px; top:30px; width:86px; height:17px; ">조회년월 :</caption>
  52. <input id="ipt_srchdd" ref="/root/cond/bugtym" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:110px; top:30px; width:90px; height:19px; text-align:center; ">
  53. <script type="javascript" ev:event="onkeydown">
  54. <![CDATA[
  55. if(event.keycode == 13){
  56. btn_search.dispatch("DOMActivate");
  57. }
  58. ]]>
  59. </script>
  60. </input>
  61. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1015px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  62. <caption>조회</caption>
  63. <script type="javascript" ev:event="DOMActivate">
  64. <![CDATA[
  65. if(model.getValue("/root/cond/bugtym") == ""){
  66. return;
  67. }
  68. model.removeNodeset("/root/grddata");
  69. model.refresh();
  70. if(submit("TRSTP01705")){
  71. fDispAprvCnclChng(grd_earnbugt);
  72. }
  73. ]]>
  74. </script>
  75. </button>
  76. <button id="button1" class="btn1_letter2" navindex="4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1074px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  77. <caption>엑셀</caption>
  78. <script type="javascript" ev:event="DOMActivate">
  79. <![CDATA[
  80. var today = model.getValue("/root/cond/bugtym");
  81. var fileName = window.fileDialog("save", ",", false, "수익예산_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  82. if(fileName != ""){
  83. grd_earnbugt.saveExcel(fileName);
  84. }
  85. ]]>
  86. </script>
  87. </button>
  88. <button id="button2" class="btn1_letter2" navindex="5" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1133px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  89. <caption>출력</caption>
  90. <script type="javascript" ev:event="DOMActivate">
  91. <![CDATA[
  92. exeReportPreview("RPSTP00904", "XMLSTR");
  93. ]]>
  94. </script>
  95. </button>
  96. <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:1200px; y2:85px; "/>
  97. <datagrid id="grd_earnbugt" nodeset="/root/grddata/earnbugtList" caption="구분^센터^과별^입원목표^입원실적^입원달성율(%)^외래목표^외래실적^외래달성율(%)" colsep="^" colwidth="80, 100, 140, 130, 130, 120, 130, 130, 120" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:90px; width:1200px; height:690px; ">
  98. <col ref="grupgbnm" style="text-align:center; "/>
  99. <col ref="centhngnm" style="text-align:center; "/>
  100. <col ref="depthngnm" style="text-align:center; "/>
  101. <col ref="inpgoalamt" format="(-)#,###" style="text-align:right; "/>
  102. <col ref="inptotamt" format="(-)#,###" style="text-align:right; "/>
  103. <col ref="inpgoalp" style="text-align:right; "/>
  104. <col ref="outgoalamt" format="(-)#,###" style="text-align:right; "/>
  105. <col ref="outtotamt" format="(-)#,###" style="text-align:right; "/>
  106. <col ref="outgoalp" style="text-align:right; "/>
  107. </datagrid>
  108. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">수익예산조회</caption>
  109. <caption id="caption46" class="tit_2" style="left:0px; top:70px; width:151px; height:13px; ">수익예산조회</caption>
  110. <button id="button3" class="btn4_letter7" navindex="2" style="left:881px; top:30px; width:116px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  111. <caption>수익데이터 생성</caption>
  112. <script type="javascript" ev:event="DOMActivate">
  113. <![CDATA[
  114. if(model.getValue("/root/cond/bugtym") == ""){
  115. return;
  116. }
  117. if (messageBox(ipt_srchdd.label + " 수익자료 생성을","Q004") == "6" ) {
  118. if(submit("TXSTP00902")) {
  119. model.refresh();
  120. if (model.getValue("root/reqExeEarnBugtList/msg/result") > 0) {
  121. messageBox(model.getValue("root/reqExeEarnBugtList/msg/message"),"I002");
  122. btn_search.dispatch("DOMActivate");
  123. } else {
  124. messageBox(model.getValue("root/reqExeEarnBugtList/msg/message"),"C001");
  125. }
  126. //alert(model.getValue("root/reqExeEarnBugtList/msg/message"));
  127. }
  128. }
  129. ]]>
  130. </script>
  131. </button>
  132. </xhtml:body>
  133. </xhtml:html>