SMRAD01100_관리내역원장.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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. <condition>
  11. <notecd/>
  12. <notecdnm/>
  13. <frdt/>
  14. <todt/>
  15. <instcd/>
  16. <mngitem/>
  17. </condition>
  18. <list>
  19. <itemlist/>
  20. <detailist/>
  21. </list>
  22. </main>
  23. <send>
  24. </send>
  25. <init/>
  26. <temp/>
  27. </root>
  28. </instance>
  29. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  30. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  31. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  32. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  33. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  34. <script type="javascript" ev:event="xforms-ready">
  35. <![CDATA[
  36. fOpenForm();
  37. //sCdGrupid = model.getValue("/root/init/comcode/cdgrupid");
  38. ]]>
  39. </script>
  40. <script type="javascript">
  41. <![CDATA[
  42. //========================================================================================
  43. //화면 로드시 초기화 함수
  44. //========================================================================================
  45. function fOpenForm() {
  46. model.removenode("/root/main/notelist");
  47. var sToday = getCurrentDate().toString();
  48. var sFrday = sToday.substring(0,4) + "0301";
  49. model.setValue("/root/main/condition/todt",sToday);
  50. model.setValue("/root/main/condition/frdt",sFrday);
  51. var instcd = getUserInfo("dutplceinstcd");
  52. model.setValue("/root/main/condition/instcd",instcd);
  53. model.refresh();
  54. }
  55. //========================================================================================
  56. //기재사항코드 조회
  57. //========================================================================================
  58. function fGetNoteList() {
  59. model.resetInstanceNode("/root/main/list/itemlist");
  60. model.removenode("/root/main/list/itemlist");//조회시 기존 데이터 삭제
  61. model.copyNode("/root/send", "/root/main/condition");
  62. model.refresh();
  63. submit("TRRAD01001");
  64. // misfMsterDetailRetrieve();
  65. // misfSetReadOnlyCol(grd_notelist, "notecd");
  66. model.refresh();
  67. }
  68. //========================================================================================
  69. //관리항목 상세정보 조회(그리드용)
  70. //========================================================================================
  71. function fGetMngItemInfo(pRow)
  72. {
  73. if ( pRow > 0 )
  74. {
  75. model.resetInstanceNode("/root/send");
  76. var strItem ;
  77. strItem = grd_notelist.valueMatrix(grd_notelist.row, grd_notelist.colRef("mngitem"));
  78. model.setValue("/root/main/condition/mngitem",strItem);
  79. model.resetInstanceNode("/root/main/list/detailist");
  80. model.removenode("/root/main/list/detailist");//조회시 기존 데이터 삭제
  81. model.copyNode("/root/send", "/root/main/condition");
  82. submit("TRRAD01101");
  83. //fCopyInstance();
  84. }
  85. }
  86. //========================================================================================
  87. //엑셀입력(excel file을 그리드에 입력)
  88. //========================================================================================
  89. function fInputExcel(pGrid) {
  90. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  91. if(fileName != "") {
  92. pGrid.loadExcel(fileName, 1, true);
  93. pGrid.deleteRow(1);
  94. for(i = 1; i < pGrid.rows; i++) {
  95. pGrid.rowStatus(i) = 1;
  96. }
  97. pGrid.refresh();
  98. }
  99. }
  100. ]]>
  101. </script>
  102. <submission id="TRRAD01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/itemlist"/>
  103. <submission id="TRRAD01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/detailist"/>
  104. </model>
  105. </xhtml:head>
  106. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  107. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  108. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">관리 내역 원장</caption>
  109. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  110. </group>
  111. <group id="group3" scroll="auto" style="left:0px; top:20px; width:1195px; height:730px; ">
  112. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  113. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  114. <caption id="caption7" class="search_name" style="left:16px; top:9px; width:125px; height:17px; ">관리항목코드 :</caption>
  115. <line id="line5" class="line_4" style="x1:1087px; y1:8px; x2:1087px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  116. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1120px; top:10px; width:56px; height:22px; text-align:left; ">
  117. <caption>조회</caption>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. fGetNoteList();
  121. ]]>
  122. </script>
  123. </button>
  124. <input id="ipt_notecd" ref="/root/main/condition/notecd" class="input_s_essential" navindex="6" style="left:135px; top:8px; width:80px; height:19px; ">
  125. <script type="javascript" ev:event="onkeypress">
  126. <![CDATA[
  127. if(event.keyCode == 13)
  128. {
  129. model.setFocus("ipt_notecdnm");
  130. }
  131. ]]>
  132. </script>
  133. <script type="javascript" ev:event="xforms-value-changed">
  134. <![CDATA[
  135. racfNoteValidCheck("notecd,notecdnm")
  136. ]]>
  137. </script>
  138. </input>
  139. <input id="ipt_notecdnm" ref="/root/main/condition/notecdnm" class="input_s_essential" navindex="6" style="left:241px; top:8px; width:230px; height:19px; ">
  140. <script type="javascript" ev:event="onkeypress">
  141. <![CDATA[
  142. if(event.keyCode == 13)
  143. {
  144. model.setFocus("btn_search");
  145. }
  146. ]]>
  147. </script>
  148. <script type="javascript" ev:event="xforms-value-changed">
  149. <![CDATA[
  150. racfNoteValidCheck("notecd,notecdnm")
  151. ]]>
  152. </script>
  153. </input>
  154. <button id="btn_help" class="icon_search" style="left:221px; top:10px; width:16px; height:16px; ">
  155. <caption/>
  156. <script type="javascript" ev:event="DOMActivate">
  157. <![CDATA[
  158. misfOpenPopUpList("06", ipt_notecd, "", "notecd,notecdnm");
  159. model.refresh();
  160. ]]>
  161. </script>
  162. </button>
  163. <caption id="caption1" class="search_name" style="left:505px; top:8px; width:89px; height:17px; ">기 간 :</caption>
  164. <caption id="caption2" style="left:699px; top:8px; width:15px; height:20px; ">~</caption>
  165. <input id="input2" ref="/root/main/condition/frdt" class="input_s_essential" inputtype="date" style="left:595px; top:8px; width:100px; height:19px; "/>
  166. <input id="input3" ref="/root/main/condition/todt" class="input_s_essential" inputtype="date" style="left:712px; top:8px; width:100px; height:19px; "/>
  167. </group>
  168. <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1180px; y2:70px; "/>
  169. <caption id="caption21" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">관리내역</caption>
  170. <button id="btn_excadd" class="btn2_letter4" style="left:1115px; top:50px; width:64px; height:19px; text-align:left; ">
  171. <caption>엑셀입력</caption>
  172. <script type="javascript" ev:event="onclick">
  173. <![CDATA[
  174. fInputExcel(grd_notelist);
  175. ]]>
  176. </script>
  177. </button>
  178. <upload id="upload1" style="left:735px; top:415px; width:100px; height:20px; "/>
  179. <datagrid id="datagrid" nodeset="/root/main/list/detailist" caption="기관^계정코드^계정명^년도^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^합계" colsep="^" colwidth="0,0,149, 90, 90, 90, 90, 90, 90, 90, 90, 90,90, 90, 90, 90, 120" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:300px; top:75px; width:895px; height:620px; ">
  180. <col ref="instcd" visibility="hidden"/>
  181. <col ref="acntcd" visibility="hidden"/>
  182. <col ref="acntnm" style="text-align:left; "/>
  183. <col ref="yyyy" style="text-align:center; "/>
  184. <col ref="mon01" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  185. <col ref="mon02" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  186. <col ref="mon03" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  187. <col ref="mon04" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  188. <col ref="mon05" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  189. <col ref="mon06" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  190. <col ref="mon07" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  191. <col ref="mon08" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  192. <col ref="mon09" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  193. <col ref="mon10" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  194. <col ref="mon11" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  195. <col ref="mon12" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  196. <col ref="totl" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  197. </datagrid>
  198. <datagrid id="grd_notelist" nodeset="/root/main/list/itemlist" caption="기관코드^코드^관리항목내역" colsep="^" colwidth="0, 0, 246" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:75px; width:295px; height:620px; ">
  199. <col ref="instcd" visibility="hidden"/>
  200. <col ref="notecd" visibility="hidden"/>
  201. <col ref="mngitem" type="input" maxlength="3" style="text-align:left; "/>
  202. <script type="javascript" ev:event="onrowchanged">
  203. <![CDATA[
  204. var cur_row = grd_notelist.row;
  205. fGetMngItemInfo(cur_row);
  206. grd_notelist.dispatch("onmouseup");
  207. ]]>
  208. </script>
  209. </datagrid>
  210. </group>
  211. </xhtml:body>
  212. </xhtml:html>