SMAYA04800_환자방문현황.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAYA04800.환자방문현황.xrw
  4. * 설 명 : 환자방문현황
  5. * 작 성 자 : 김다영
  6. * 작 성 일 : 2008.02.04
  7. * 수정이력 :
  8. * 기 타 :
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>환자방문현황</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <patvisitlist>
  19. <patvisitlistinfo>
  20. <actdd/>
  21. <conslrnm/>
  22. <actflag/>
  23. <acttims/>
  24. <acttm/>
  25. </patvisitlistinfo>
  26. <totaltime>
  27. <tottm/>
  28. <totacttims/>
  29. </totaltime>
  30. </patvisitlist>
  31. <cond>
  32. <actfromdd/>
  33. <acttodd/>
  34. <actflag/>
  35. <conslrid/>
  36. </cond>
  37. </main>
  38. <send>
  39. <reqdata/>
  40. </send>
  41. <init>
  42. <comcodelist>
  43. <patinfomngt_cmblist/>
  44. <conslrlist>
  45. <conslrlistinfo>
  46. <conslrid/>
  47. <conslrnm/>
  48. </conslrlistinfo>
  49. </conslrlist>
  50. </comcodelist>
  51. </init>
  52. <hidden/>
  53. </root>
  54. </instance>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  61. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  62. <script type="javascript" ev:event="xforms-ready">
  63. <![CDATA[
  64. fInit();
  65. fGetActFlagList();
  66. ]]>
  67. </script>
  68. <submission id="TRAYA00101" method="post" ref="/root/send/reqdata" resultref="/root/init/comcodelist/conslrlist"/>
  69. <submission id="TRZBC00101" method="post"/>
  70. <submission id="TRAYA02801" method="post" resultref="/root/init/comcodelist/chrgconslrlist"/>
  71. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  72. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  73. <submission id="TRAYA04801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/patvisitlist"/>
  74. </model>
  75. <script type="javascript">
  76. <![CDATA[
  77. /**========================================================================================================================================
  78. * 화면 오푼시
  79. =========================================================================================================================================*/
  80. function fInit() {
  81. //그리드 초기화
  82. model.removeNodeset("/root/main/patvisitlist/patvisitlistinfo");
  83. grd_patvisitlist.refresh();
  84. //상담조회일자 세팅
  85. var currentdate = getCurrentDate();
  86. var currentYearMonthDate = currentdate.substring(0, 6) + '01';//현재년월의 시작일
  87. model.setValue("/root/main/cond/actfromdd" , currentYearMonthDate);
  88. model.setValue("/root/main/cond/acttodd" , currentdate);
  89. model.makeNode("/root/init/comcodelist/patinfomngt_cmblist");
  90. //원목자 조회
  91. model.makeValue("/root/send/reqdata/joblncd", "A");
  92. submit("TRAYA00101", false);
  93. addComboItem("cmb_conslrid", "전체", "", "above");
  94. model.refresh();
  95. }
  96. /**========================================================================================================================================
  97. * 구분 콤보리스트
  98. =========================================================================================================================================*/
  99. function fGetActFlagList(){
  100. zbcfGetKindCodeList(
  101. new Array("A0015"), //업무규칙
  102. new Array("A0457"), //코드군
  103. new Array("/root/init/comcodelist/patinfomngt_cmblist"), //노드
  104. true, //minimum : true TRZBC00105
  105. new Array("cdid"), //sorting 항목
  106. new Array("asc")
  107. );
  108. addComboItem("cmb_actflag", "전체", "", "above");
  109. cmb_actflag.select(0);
  110. model.refresh();
  111. }
  112. /**========================================================================================================================================
  113. * 원목상담현황조회
  114. =========================================================================================================================================*/
  115. function fGetPatVisitList(){
  116. model.removeNodeset("/root/send/reqdata");
  117. model.makeNode("/root/send/reqdata");
  118. model.copyNode("/root/send/reqdata", "/root/main/cond");
  119. submit("TRAYA04801");
  120. }
  121. /**========================================================================================================================================
  122. * 원목상담현황 초기화
  123. =========================================================================================================================================*/
  124. function fInitialize()
  125. {
  126. // 그리드초기화
  127. model.removeNodeset("/root/main/patvisitlist/patvisitlistinfo");
  128. model.resetInstanceNode("/root/main/patvisitlist/totaltime/tottm");
  129. // 오늘 날짜로 세팅
  130. var curDt = getCurrentDate();
  131. var currentYearMonthDate = curDt.substring(0, 6) + '01';//현재년월의 시작일
  132. model.setValue(ipt_srchfromdd.attribute("ref") , currentYearMonthDate);
  133. model.setValue(ipt_srchtodd.attribute("ref") , curDt);
  134. model.removeNodeset(grd_patvisitlist.nodeset);
  135. cmb_conslrid.select(0);
  136. cmb_actflag.select(0);
  137. model.refresh();
  138. }
  139. /**========================================================================================================================================
  140. * 환자방문현황 출력
  141. =========================================================================================================================================*/
  142. function fListPrnt(){
  143. exeReportPreview("RPAYA04801", "XMLSTR");
  144. }
  145. ]]>
  146. </script>
  147. </xhtml:head>
  148. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  149. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  150. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:181px; height:14px; ">환자방문현황</caption>
  151. </group>
  152. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  153. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:61px; vertical-align:top; ">
  154. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; "/>
  155. <button id="button1" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
  156. <caption>조회</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. fGetPatVisitList();
  160. ]]>
  161. </script>
  162. </button>
  163. <caption id="caption3" class="search_name" style="left:20px; top:20px; width:99px; height:17px; ">조회기간 :</caption>
  164. <caption id="caption5" class="search_no_b" style="left:220px; top:20px; width:12px; height:17px; ">~</caption>
  165. <input id="ipt_srchtodd" ref="/root/main/cond/acttodd" class="input_search" inputtype="date" style="left:240px; top:20px; width:90px; height:19px; "/>
  166. <input id="ipt_srchfromdd" ref="/root/main/cond/actfromdd" class="input_search" inputtype="date" style="left:125px; top:20px; width:90px; height:19px; "/>
  167. <caption id="caption2" class="search_name" style="left:735px; top:20px; width:99px; height:17px; ">원 목 자 :</caption>
  168. <select1 id="cmb_conslrid" ref="/root/main/cond/conslrid" class="combo_search" appearance="minimal" style="left:835px; top:20px; width:100px; height:19px; ">
  169. <choices>
  170. <itemset nodeset="/root/init/comcodelist/conslrlist/conslrlistinfo">
  171. <label ref="conslrnm"/>
  172. <value ref="conslrid"/>
  173. </itemset>
  174. </choices>
  175. </select1>
  176. <line id="line2" class="line_4" style="x1:1105px; y1:10px; x2:1105px; y2:53px; "/>
  177. <caption id="caption4" class="search_name" style="left:445px; top:20px; width:86px; height:17px; ">구 분 :</caption>
  178. <select1 id="cmb_actflag" ref="/root/main/cond/actflag" class="combo_search" appearance="minimal" style="left:540px; top:20px; width:100px; height:19px; ">
  179. <choices>
  180. <itemset nodeset="/root/init/comcodelist/patinfomngt_cmblist/A0015A0457">
  181. <label ref="cdnm"/>
  182. <value ref="cdid"/>
  183. </itemset>
  184. </choices>
  185. </select1>
  186. </group>
  187. <datagrid id="grd_patvisitlist" nodeset="/root/main/patvisitlist/patvisitlistinfo" caption="일자^원목자^구분^방문수^방문시간" colsep="^" colwidth="226, 203, 255, 214, 196" dataheight="25" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:106px; width:1194px; height:634px; ">
  188. <col ref="actdd" format="yyyy-mm-dd" style="text-align:center; "/>
  189. <col ref="conslrnm" style="text-align:center; "/>
  190. <col ref="actflag" style="text-align:center; "/>
  191. <col ref="acttims" style="text-align:center; "/>
  192. <col ref="acttm" style="text-align:center; "/>
  193. </datagrid>
  194. <caption id="caption55" class="cell_1" style="left:941px; top:77px; width:80px; height:23px; ">총 소요시간</caption>
  195. <input id="input1" ref="/root/main/patvisitlist/totaltime/tottm" disabled="true" style="left:1026px; top:79px; width:110px; height:19px; text-align:right; "/>
  196. <button id="button10" class="btn2_letter2" style="left:1142px; top:80px; width:42px; height:19px; ">
  197. <caption>출력</caption>
  198. <script type="javascript" ev:event="DOMActivate">
  199. <![CDATA[
  200. fListPrnt();
  201. ]]>
  202. </script>
  203. </button>
  204. <caption id="caption7" class="cell_1" style="left:788px; top:77px; width:70px; height:23px; text-align:center; vertical-align:middle; ">총방문수</caption>
  205. <input id="input2" ref="/root/main/patvisitlist/totaltime/totacttims" disabled="true" format="#,###" style="left:861px; top:79px; width:75px; height:19px; text-align:right; "/>
  206. </group>
  207. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  208. <button id="btn_search0" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  209. <caption>초기화</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. fInitialize();
  213. ]]>
  214. </script>
  215. </button>
  216. </group>
  217. <caption id="caption1" class="tit_2" style="left:5px; top:96px; width:139px; height:14px; ">환자방문현황리스트</caption>
  218. <line id="line1" class="line_1" style="x1:0px; y1:114px; x2:1194px; y2:114px; "/>
  219. </xhtml:body>
  220. </xhtml:html>