SMPAS03400_액팅마감건수조회.xrw 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>처방액팅 및 마감조회</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <wardlist>
  12. <dept/>
  13. <ioflag/>
  14. <execcnt/>
  15. <endcnt/>
  16. </wardlist>
  17. <outlist>
  18. <dept/>
  19. <ioflag/>
  20. <execcnt/>
  21. <endcnt/>
  22. </outlist>
  23. <astlist>
  24. <dept/>
  25. <ioflag/>
  26. <execcnt/>
  27. <endcnt/>
  28. </astlist>
  29. </main>
  30. <send>
  31. <search>
  32. </search>
  33. <cond>
  34. <execdd/>
  35. </cond>
  36. </send>
  37. </root>
  38. </instance>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. fInitialize();
  42. ]]>
  43. </script>
  44. <submission id="TRPAS03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main"/>
  45. </model>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  49. <script type="javascript">
  50. <![CDATA[
  51. /** ----------------------------------------------------------------------
  52. *
  53. * 날짜 계산(기준일자를 기준으로 입력일자만큼 이후 날짜를 찾아오기)
  54. *
  55. * ----------------------------------------------------------------------
  56. **/
  57. function getDateAddc(inputday,addend){
  58. var backDate ="";
  59. var rt = 0;
  60. var yyyy = inputday.substring(0,4) +"";
  61. var mm = inputday.substring(4,6) +"";
  62. var dd = inputday.substring(6,8) +"";
  63. var startDate = new Date(yyyy,(eval(mm)-1),dd);
  64. startDate.setTime(startDate.getTime()+(86400000*addend));
  65. NowYear = startDate.getYear();// 년
  66. NowMonth = startDate.getMonth()+1;// 월
  67. NowDay = startDate.getDate(); // 일
  68. backDate += NowYear ; //년도
  69. if (NowMonth < 10 ) backDate += "0" + NowMonth ;
  70. else backDate += (startDate.getMonth() + 1);
  71. if (NowDay < 10 ) backDate += "0" + NowDay ;
  72. else backDate += (startDate.getDate());
  73. return backDate ;
  74. }
  75. function fInitialize(){
  76. var today = getCurrentDate();
  77. model.setValue("/root/send/cond/execdd", getDateAddc(today, -1));
  78. model.removeNodeset("/root/main/projlist/list/proj");
  79. model.refresh();
  80. }
  81. function fGetActingCountList(){
  82. model.removeNodeset("/root/main");
  83. model.refresh();
  84. submit("TRPAS03401");
  85. grd_wardlist.colstyle(3,"data","text-align") = "right";
  86. grd_wardlist.colstyle(4,"data","text-align") = "right";
  87. grd_outlist.colstyle(3,"data","text-align") = "right";
  88. grd_outlist.colstyle(4,"data","text-align") = "right";
  89. grd_astlist.colstyle(3,"data","text-align") = "right";
  90. grd_astlist.colstyle(4,"data","text-align") = "right";
  91. var xWardPath = "/root/main/wardlist"
  92. var wRow = grd_wardlist.rows;
  93. var xOutPath = "/root/main/outlist"
  94. var oRow = grd_outlist.rows;
  95. var xAstPath = "/root/main/astlist"
  96. var aRow = grd_astlist.rows;
  97. for(i=1; i<wRow; i++){
  98. var execCnt = model.getValue(xWardPath+"["+i+"]/execcnt");
  99. var endCnt = model.getValue(xWardPath+"["+i+"]/endcnt");
  100. if(execCnt != endCnt){
  101. grd_wardlist.rowstyle(i, "data", "background-color") = '#FFCCCC';
  102. }
  103. }
  104. for(i=1; i<oRow; i++){
  105. var execCnt = model.getValue(xOutPath+"["+i+"]/execcnt");
  106. var endCnt = model.getValue(xOutPath+"["+i+"]/endcnt");
  107. if(execCnt != endCnt){
  108. grd_outlist.rowstyle(i, "data", "background-color") = '#FFCCCC';
  109. }
  110. }
  111. for(i=1; i<aRow; i++){
  112. var execCnt = model.getValue(xAstPath+"["+i+"]/execcnt");
  113. var endCnt = model.getValue(xAstPath+"["+i+"]/endcnt");
  114. if(execCnt != endCnt){
  115. grd_astlist.rowstyle(i, "data", "background-color") = '#FFCCCC';
  116. }
  117. }
  118. }
  119. ]]>
  120. </script>
  121. </xhtml:head>
  122. <xhtml:body guideline="1,1195;2,782;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  123. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  124. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; ">액팅 및 마감건수 조회</caption>
  125. </group>
  126. <group id="group5" scroll="auto" style="left:0px; top:45px; width:1195px; height:730px; ">
  127. <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  128. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  129. <line id="line18" class="line_4" style="x1:1116px; y1:7px; x2:1116px; y2:29px; border-left-style:solid; "/>
  130. <button id="button1" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  131. <caption>조회</caption>
  132. <script type="javascript" ev:event="DOMActivate">
  133. <![CDATA[
  134. fGetActingCountList();
  135. ]]>
  136. </script>
  137. </button>
  138. <caption id="caption3" class="search_name" style="left:15px; top:8px; width:76px; height:17px; ">액팅일자</caption>
  139. <input id="ipt_execdd" ref="/root/send/cond/execdd" class="input_default" inputtype="date" style="left:103px; top:8px; width:105px; height:19px; "/>
  140. </group>
  141. <line id="line20" class="line_1" style="x1:1px; y1:81px; x2:1194px; y2:81px; "/>
  142. <caption id="caption8" class="tit_2" style="left:5px; top:66px; width:162px; height:14px; ">병동</caption>
  143. <datagrid id="grd_wardlist" nodeset="/root/main/wardlist" caption="실시부서^입원/외래^액팅건수^마감건수^seq" colsep="^" colwidth="120, 70, 70, 70" dataheight="23" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:1px; top:85px; width:380px; height:640px; ">
  144. <col ref="dept"/>
  145. <col ref="ioflag"/>
  146. <col ref="execcnt"/>
  147. <col ref="endcnt"/>
  148. </datagrid>
  149. <datagrid id="grd_outlist" nodeset="/root/main/outlist" caption="실시부서^입원/외래^액팅건수^마감건수^seq" colsep="^" colwidth="120, 70, 70, 70" dataheight="23" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:401px; top:85px; width:380px; height:640px; ">
  150. <col ref="dept"/>
  151. <col ref="ioflag"/>
  152. <col ref="execcnt"/>
  153. <col ref="endcnt"/>
  154. </datagrid>
  155. <caption id="caption2" class="tit_2" style="left:405px; top:66px; width:162px; height:14px; ">진료과</caption>
  156. <datagrid id="grd_astlist" nodeset="/root/main/astlist" caption="실시부서^입원/외래^액팅건수^마감건수^seq" colsep="^" colwidth="120, 70, 70, 70" dataheight="23" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:805px; top:85px; width:385px; height:640px; ">
  157. <col ref="dept"/>
  158. <col ref="ioflag"/>
  159. <col ref="execcnt"/>
  160. <col ref="endcnt"/>
  161. </datagrid>
  162. <caption id="caption4" class="tit_2" style="left:805px; top:66px; width:162px; height:14px; ">진료지원</caption>
  163. </group>
  164. <group id="group3" style="left:0px; top:13px; width:1190px; height:27px; ">
  165. <button id="button7" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1120px; top:2px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  166. <caption>초기화</caption>
  167. <script type="javascript" ev:event="DOMActivate">
  168. <![CDATA[
  169. fInitialize();
  170. ]]>
  171. </script>
  172. </button>
  173. <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1189px; y2:25px; "/>
  174. </group>
  175. </xhtml:body>
  176. </xhtml:html>