SSMNB00100_간호통계집계.xrw 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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. <cond>
  11. <fromdd/>
  12. <todd/>
  13. <sumflag/>
  14. <getparamcnt/>
  15. </cond>
  16. </main>
  17. <init>
  18. <sumlist>
  19. <sum>
  20. <cdnm/>
  21. <grupdetldesc/>
  22. <getparamcnt/>
  23. </sum>
  24. </sumlist>
  25. </init>
  26. </root>
  27. </instance>
  28. <script type="javascript" ev:event="xforms-ready">
  29. <![CDATA[
  30. model.setValue("/root/main/cond/fromdd",getCurrentDate());
  31. model.setValue("/root/main/cond/todd",getCurrentDate());
  32. submit("TRSNB00101");
  33. if (checkOpener()) {
  34. var sumnm = opener.javascript.getParameter("sumnm");
  35. if (sumnm.length > 0) {
  36. model.setValue("/root/main/cond/sumflag", model.getValue("/root/init/sumlist/sum[cdnm = '"+ sumnm +"']/grupdetldesc"));
  37. }
  38. }
  39. model.refresh();
  40. ]]>
  41. </script>
  42. <submission id="TRSNB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/sumlist"/>
  43. <submission id="TXSNB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  44. </model>
  45. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  50. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  51. <script type="javascript">
  52. <![CDATA[
  53. ]]>
  54. </script>
  55. </xhtml:head>
  56. <xhtml:body pagewidth="341" pageheight="215" style="font-family:돋움, Arial; font-size:12px; color:#4d4d4d; ">
  57. <group id="group1" style="left:0px; top:15px; width:325px; height:200px; ">
  58. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:325px; height:200px; "/>
  59. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:106px; top:73px; width:85px; height:19px; text-align:center; ">
  60. <script type="javascript" ev:event="xforms-value-changed">
  61. <![CDATA[]]>
  62. </script>
  63. </input>
  64. <button id="btn_exec" class="btn4_letter2" style="left:247px; top:115px; width:56px; height:22px; ">
  65. <caption>실행</caption>
  66. <script type="javascript" ev:event="DOMActivate">
  67. <![CDATA[
  68. var sSumflag = model.getValue("/root/main/cond/sumflag");
  69. var sFromdd = model.getValue("/root/main/cond/fromdd");
  70. var sTodd = model.getValue("/root/main/cond/todd");
  71. var getparamcnt = model.getValue("/root/main/cond/getparamcnt");
  72. if ( sSumflag == "") {
  73. messageBox("집계구분을 선택하세요", "I");
  74. model.setFocus("cb_list");
  75. return;
  76. }
  77. if(getparamcnt == '1'){ //20100315_SMY
  78. if ( sFromdd > getCurrentDate()) {
  79. messageBox("미래일자는 집계 할 수 없습니다.", "I");
  80. model.setFocus("ipt_fromdd");
  81. return;
  82. }
  83. }else{
  84. if ( sFromdd > sTodd) {
  85. messageBox("집계시작일자가 종료일자보다 큽니다.", "I");
  86. model.setFocus("ipt_fromdd");
  87. return;
  88. }
  89. if ( sTodd > getCurrentDate()) {
  90. messageBox("미래일자는 집계 할 수 없습니다.", "I");
  91. model.setFocus("ipt_todd");
  92. return;
  93. }
  94. }
  95. if ( sFromdd != "" || sTodd != "") {
  96. model.removeNode("/root/send");
  97. model.makeNode("/root/send");
  98. model.copyNode("/root/send", "/root/main/cond");
  99. if (submit("TXSNB00101")) {
  100. messageBox("해당 집계기간의 집계가 완료되었습니다.", "I");
  101. }
  102. } else {
  103. messageBox("집계일자를 입력하세요", "I");
  104. model.setFocus("ipt_fromdd");
  105. return;
  106. }
  107. ]]>
  108. </script>
  109. </button>
  110. <caption id="caption1" style="left:65px; top:165px; width:200px; height:17px; ">※ 미래일자는 집계 할 수 없습니다.</caption>
  111. <caption id="caption2" class="search_name" style="left:15px; top:30px; width:91px; height:17px; ">집계구분 :</caption>
  112. <select1 id="cb_list" ref="/root/main/cond/sumflag" class="combo_search" appearance="minimal" editmode="search" itemcount="20" style="left:106px; top:30px; width:199px; height:19px; ">
  113. <choices>
  114. <itemset nodeset="/root/init/sumlist/sum">
  115. <label ref="grupdetldesc"/>
  116. <value ref="cdnm"/>
  117. </itemset>
  118. </choices>
  119. <script type="javascript" ev:event="xforms-value-changed">
  120. <![CDATA[
  121. var sumnm = model.getValue("/root/main/cond/sumflag");
  122. var getparamcnt = model.getValue("/root/init/sumlist/sum[cdnm = '"+ sumnm +"']/getparamcnt");
  123. model.setValue("/root/main/cond/getparamcnt", getparamcnt);
  124. if(getparamcnt == '1'){
  125. caption3.visible = false;
  126. ipt_todd.visible = false;
  127. }else{
  128. caption3.visible = true;
  129. ipt_todd.visible = true;
  130. }
  131. caption3.refresh();
  132. ipt_todd.refresh();
  133. ]]>
  134. </script>
  135. </select1>
  136. <caption id="caption4" class="search_name" style="left:15px; top:73px; width:86px; height:17px; ">집계일자 :</caption>
  137. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:220px; top:73px; width:85px; height:19px; text-align:center; ">
  138. <script type="javascript" ev:event="xforms-value-changed">
  139. <![CDATA[]]>
  140. </script>
  141. </input>
  142. <caption id="caption3" style="left:199px; top:76px; width:20px; height:15px; font-weight:bold; ">~</caption>
  143. </group>
  144. <group id="grp_tle" style="left:0px; top:0px; width:325px; height:13px; ">
  145. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">간호통계집계</caption>
  146. </group>
  147. </xhtml:body>
  148. </xhtml:html>