SMRSG02700_월별 1식당 평균단가(영양).xrw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  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. <init/>
  10. <send>
  11. <instcd/>
  12. <stocfrym/>
  13. <goodflag/>
  14. <reqdeptcd/>
  15. <stoctoym/>
  16. <avgwinamtlist/>
  17. </send>
  18. <temp/>
  19. <main>
  20. <list>
  21. <avgwinamtlist/>
  22. </list>
  23. </main>
  24. <hidden/>
  25. </root>
  26. </instance>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. //화면 Control을 초기화한다
  30. fInitialize();
  31. ]]>
  32. </script>
  33. <submission id="TRRSG02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  34. <submission id="TXRSG02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/avgwinamtlist" resultref="/root/hidden"/>
  35. </model>
  36. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  38. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  39. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  42. <script type="javascript">
  43. <![CDATA[
  44. var RetrYn = "Y";
  45. function fInitialize() {
  46. misfGridInit(grd_avgwinamtlist);
  47. grd_avgwinamtlist.rowHeight(0) = "20";
  48. grd_avgwinamtlist.rowHeight(1) = "20";
  49. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  50. misfMsterDetailSet(grd_avgwinamtlist,null, "TRRSG02701" ,"N");
  51. var curdate = getCurrentDate();
  52. model.setValue(ipt_stocfrym.attribute("ref") ,curdate);
  53. model.setValue(ipt_stoctoym.attribute("ref") ,curdate);
  54. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  55. model.setValue(ipt_goodflag.attribute("ref"),"PH");
  56. // hidden column
  57. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= S) => (goodflag= SF)
  58. model.setValue(ipt_goodflag.attribute("ref"),'SF');
  59. //model.setValue(ipt_stocdeptcd.attribute("ref") ,"3251000000"); // getUserInfo("dutplcecd"));
  60. model.setValue(ipt_reqdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  61. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  62. model.refresh();
  63. }
  64. function fCheckRetrieveData(pmsg)
  65. {
  66. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  67. {
  68. if(pmsg == true)
  69. {
  70. messageBox("기관코드를 " ,"C002");
  71. model.setFocus("cmb_instcd");
  72. }
  73. return false;
  74. }
  75. if(model.getValue(ipt_stocfrym.attribute("ref")).length== 0 )
  76. {
  77. if(pmsg == true)
  78. {
  79. messageBox("조회시작년월 " ,"C002");
  80. model.setFocus("ipt_stocfrym");
  81. }
  82. return false;
  83. }
  84. if(model.getValue(ipt_stoctoym.attribute("ref")).length== 0 )
  85. {
  86. if(pmsg == true)
  87. {
  88. messageBox("조회끝년월 " ,"C002");
  89. model.setFocus("ipt_stoctoym");
  90. }
  91. return false;
  92. }
  93. /*
  94. if(model.getValue(ipt_reqdeptcd.attribute("ref")).length== 0 )
  95. {
  96. if(pmsg == true)
  97. {
  98. messageBox("입고부서를 " ,"C001");
  99. model.setFocus("ipt_windeptcd");
  100. }
  101. return false;
  102. }
  103. if(model.getValue(ipt_winfrdd.attribute("ref")).length== 0 )
  104. {
  105. if(pmsg == true)
  106. {
  107. messageBox("입고시작일자를 " ,"C001");
  108. model.setFocus("ipt_winfrdd");
  109. }
  110. return false;
  111. }
  112. if(model.getValue(ipt_wintodd.attribute("ref")).length== 0 )
  113. {
  114. if(pmsg == true)
  115. {
  116. messageBox("입고종료일자를 " ,"C001");
  117. model.setFocus("ipt_wintodd");
  118. }
  119. return false;
  120. }
  121. */
  122. return true;
  123. }
  124. ]]>
  125. </script>
  126. </xhtml:head>
  127. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  128. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  129. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">월별 1식당 평균단가</caption>
  130. </group>
  131. <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  132. <caption id="caption21" class="tit_2" style="left:5px; top:54px; width:138px; height:14px; ">월별 1식당 평균단가</caption>
  133. <group id="group6" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  134. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  135. <caption id="caption4" class="search_name" style="left:226px; top:9px; width:86px; height:17px; ">조회년월 :</caption>
  136. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  137. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  138. <caption>조회</caption>
  139. <script type="javascript" ev:event="DOMActivate">
  140. <![CDATA[
  141. //if(fCheckRetrieveData(false) == false)return;
  142. misfMsterDetailRetrieve();
  143. //fAfterRetrieve();
  144. ]]>
  145. </script>
  146. </button>
  147. <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  148. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" appearance="minimal" style="left:100px; top:8; width:100; height:19px; ">
  149. <choices>
  150. <itemset>
  151. <label/>
  152. <value/>
  153. </itemset>
  154. </choices>
  155. </select1>
  156. <input id="ipt_stocfrym" ref="/root/send/stocfrym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:312px; top:8px; width:100; height:19px; text-align:center; "/>
  157. <input id="ipt_goodflag" ref="/root/send/goodflag" visibility="hidden" style="left:632px; top:9px; width:51px; height:19px; "/>
  158. <input id="ipt_reqdeptcd" ref="/root/send/reqdeptcd" visibility="hidden" style="left:688px; top:8px; width:44px; height:19px; "/>
  159. <caption id="caption1" style="left:415px; top:5px; width:25px; height:25px; font-weight:bold; vertical-align:middle; ">~</caption>
  160. <input id="ipt_stoctoym" ref="/root/send/stoctoym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:430px; top:8px; width:100px; height:19px; text-align:center; "/>
  161. </group>
  162. <line id="line15" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
  163. <button id="button14" class="btn2_letter2" style="left:1153px; top:48px; width:42px; height:19px; ">
  164. <caption>엑셀</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. misfSaveExcel(grd_avgwinamtlist,"월별 1식당 평균단가");
  168. ]]>
  169. </script>
  170. </button>
  171. <datagrid id="grd_avgwinamtlist" nodeset="/root/main/list/avgwinamtlist" caption="년월^환자식^환자식^환자식^환자식^환자식^환자식^직원식^직원식^직원식^직원식^직원식^직원식^평균단가^|년월^일반식(G)^일반식(G)^일반식(G)^치료식(T)^치료식(T)^치료식(T)^직원식(S)^직원식(S)^직원식(S)^야식(N)^야식(N)^야식(N)^평균단가^|년월^급식비^식수^1식단가^급식비^식수^1식단가^급식비^식수^1식단가^급식비^식수^1식단가^평균단가^" colsep="^" colwidth="80, 90, 80, 80,90, 80, 80,90, 80, 80, 90, 80, 80,92,0,0,0,0,0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:74px; width:1195px; height:660px; ">
  172. <col ref="winym" format="yyyy-mm"/>
  173. <col ref="custpatwinamt" format="###,###,###" style="text-align:right; "/>
  174. <col ref="custpatmonqty" type="input" format="###,###,###" style="text-align:right; "/>
  175. <col ref="custpatdayamt" format="###,###,###" style="text-align:right; "/>
  176. <col ref="custcurwinamt" format="###,###,###" style="text-align:right; "/>
  177. <col ref="custcurmonqty" type="input" format="###,###,###" style="text-align:right; "/>
  178. <col ref="custcurdayamt" format="###,###,###" style="text-align:right; "/>
  179. <col ref="custempwinamt" format="###,###,###" style="text-align:right; "/>
  180. <col ref="custempmonqty" type="input" format="###,###,###" style="text-align:right; "/>
  181. <col ref="custempdayamt" format="###,###,###" style="text-align:right; "/>
  182. <col ref="custempnigtwinamt" format="###,###,###" style="text-align:right; "/>
  183. <col ref="custempnigtmonqty" type="input" format="###,###,###" style="text-align:right; "/>
  184. <col ref="custempnigtdayamt" format="###,###,###" style="text-align:right; "/>
  185. <col ref="custtotavgamt" format="###,###,###.##" style="text-align:right; "/>
  186. <col ref="instcd" visiable="hidden" style="text-align:right; "/>
  187. <col ref="reqdeptcd" visiable="hidden" style="text-align:right; "/>
  188. <col ref="goodflag" visiable="hidden" style="text-align:right; "/>
  189. <col ref="totwinamt" visibility="hidden" format="###,###,###.##" style="text-align:right; "/>
  190. <col ref="totavgcout" visiable="hidden" style="text-align:right; "/>
  191. <script type="javascript" ev:event="xforms-value-changed">
  192. <![CDATA[
  193. if(grd_avgwinamtlist.col == grd_avgwinamtlist.colRef("custpatmonqty") && grd_avgwinamtlist.valueMatrix(grd_avgwinamtlist.row, grd_avgwinamtlist.colRef("custpatmonqty")).length> 0 && model.getValue(grd_avgwinamtlist.nodeset + "["+(grd_avgwinamtlist.row - grd_avgwinamtlist.fixedRows + 1) +"]/custpatmonqty") != 0) {
  194. var custpatwinamt = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("custpatwinamt")));
  195. //식수cout가 0일 경우
  196. if(custpatwinamt == 0)
  197. {
  198. model.setValue(grd_avgwinamtlist.nodeset + "["+(grd_avgwinamtlist.row - grd_avgwinamtlist.fixedRows + 1) +"]/custpatmonqty", 0);
  199. } else {
  200. var custpatmonqty = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("custpatmonqty")));
  201. var custpatdayamt = 0;
  202. //alert(custpatwinamt + ":"+custpatmonqty+":");
  203. //alert(custpatwinamt / custpatmonqty +":"+ Math.round(custpatwinamt / custpatmonqty));
  204. custpatdayamt = parseFloat(Math.round(custpatwinamt / custpatmonqty));
  205. model.setValue(grd_avgwinamtlist.nodeset + "["+(grd_avgwinamtlist.row - grd_avgwinamtlist.fixedRows + 1) +"]/custpatdayamt", custpatdayamt);
  206. model.setValue(grd_avgwinamtlist.nodeset + "["+(grd_avgwinamtlist.row - grd_avgwinamtlist.fixedRows + 1) +"]/reqdeptcd", model.getValue(ipt_reqdeptcd.attribute("ref")));
  207. grd_avgwinamtlist.rowStatus(grd_avgwinamtlist.row) = "2";
  208. //평균단가를 구하기 위해서
  209. var custcurmonqty = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("custcurmonqty")));
  210. var custempmonqty = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("custempmonqty")));
  211. var custempnigtmonqty = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("custempnigtmonqty")));
  212. var totwinamt = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("totwinamt")));
  213. var totmonqty = custpatmonqty+ custcurmonqty + custempmonqty + custempnigtmonqty ;
  214. totavgamt = parseFloat(Math.round(totwinamt / totmonqty));
  215. model.setValue(grd_avgwinamtlist.nodeset + "["+(grd_avgwinamtlist.row - grd_avgwinamtlist.fixedRows + 1) +"]/custtotavgamt", totavgamt);
  216. }
  217. } else if(grd_avgwinamtlist.col == grd_avgwinamtlist.colRef("custcurmonqty") && grd_avgwinamtlist.valueMatrix(grd_avgwinamtlist.row, grd_avgwinamtlist.colRef("custcurmonqty")).length> 0) {
  218. var custcurwinamt = parseFloat(grd_avgwinamtlist.valueMatrix(grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("custcurwinamt")));
  219. //식수cout가 0일 경우
  220. if(custcurwinamt == 0)
  221. {
  222. model.setValue(grd_avgwinamtlist.nodeset + "["+(grd_avgwinamtlist.row - grd_avgwinamtlist.fixedRows + 1) +"]/custcurmonqty", 0);
  223. } else {
  224. var custcurmonqty = parseFloat(grd_avgwinamtlist.valueMatrix(grd_avgwinamtlist.row ,grd_avgwinamtlist.colRef("custcurmonqty")));
  225. var custcurdayamt = 0;
  226. custcurdayamt = parseFloat(Math.round(custcurwinamt / custcurmonqty));
  227. model.setValue(grd_avgwinamtlist.nodeset + "["+(grd_avgwinamtlist.row - grd_avgwinamtlist.fixedRows + 1) +"]/custcurdayamt", custcurdayamt);
  228. model.setValue(grd_avgwinamtlist.nodeset + "["+(grd_avgwinamtlist.row - grd_avgwinamtlist.fixedRows + 1) +"]/reqdeptcd", model.getValue(ipt_reqdeptcd.attribute("ref")));
  229. grd_avgwinamtlist.rowStatus(grd_avgwinamtlist.row ) = "2";
  230. //평균단가를 구하기 위해서
  231. var custpatmonqty = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("custpatmonqty")));
  232. var custempmonqty = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("custempmonqty")));
  233. var custempnigtmonqty = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("custempnigtmonqty")));
  234. var totwinamt = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("totwinamt")));
  235. var totmonqty = custpatmonqty+ custcurmonqty + custempmonqty + custempnigtmonqty ;
  236. totavgamt = parseFloat(Math.round(totwinamt / totmonqty));
  237. model.setValue(grd_avgwinamtlist.nodeset + "["+(grd_avgwinamtlist.row - grd_avgwinamtlist.fixedRows + 1) +"]/custtotavgamt", totavgamt);
  238. }
  239. } else if(grd_avgwinamtlist.col == grd_avgwinamtlist.colRef("custempmonqty") && grd_avgwinamtlist.valueMatrix(grd_avgwinamtlist.row, grd_avgwinamtlist.colRef("custempmonqty")).length> 0) {
  240. var custempwinamt = parseFloat(grd_avgwinamtlist.valueMatrix(grd_avgwinamtlist.row ,grd_avgwinamtlist.colRef("custempwinamt")));
  241. //식수cout가 0일 경우
  242. if(custempwinamt == 0)
  243. {
  244. model.setValue(grd_avgwinamtlist.nodeset + "["+(grd_avgwinamtlist.row - grd_avgwinamtlist.fixedRows + 1) +"]/custempmonqty", 0);
  245. } else {
  246. var custempmonqty = parseFloat(grd_avgwinamtlist.valueMatrix(grd_avgwinamtlist.row ,grd_avgwinamtlist.colRef("custempmonqty")));
  247. var custempdayamt = 0;
  248. custempdayamt = parseFloat(Math.round(custempwinamt / custempmonqty));
  249. model.setValue(grd_avgwinamtlist.nodeset + "["+(grd_avgwinamtlist.row - grd_avgwinamtlist.fixedRows + 1) +"]/custempdayamt", custempdayamt);
  250. model.setValue(grd_avgwinamtlist.nodeset + "["+(grd_avgwinamtlist.row - grd_avgwinamtlist.fixedRows + 1)+"]/reqdeptcd", model.getValue(ipt_reqdeptcd.attribute("ref")));
  251. grd_avgwinamtlist.rowStatus(grd_avgwinamtlist.row) = "2";
  252. //평균단가를 구하기 위해서
  253. var custpatmonqty = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("custpatmonqty")));
  254. var custcurmonqty = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("custcurmonqty")));
  255. var custempnigtmonqty = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("custempnigtmonqty")));
  256. var totwinamt = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("totwinamt")));
  257. var totmonqty = custpatmonqty+ custcurmonqty + custempmonqty + custempnigtmonqty ;
  258. totavgamt = parseFloat(Math.round(totwinamt / totmonqty));
  259. model.setValue(grd_avgwinamtlist.nodeset + "["+(grd_avgwinamtlist.row - grd_avgwinamtlist.fixedRows + 1) +"]/custtotavgamt", totavgamt);
  260. }
  261. } else if(grd_avgwinamtlist.col == grd_avgwinamtlist.colRef("custempnigtmonqty") && grd_avgwinamtlist.valueMatrix(grd_avgwinamtlist.row, grd_avgwinamtlist.colRef("custempnigtmonqty")).length> 0) {
  262. //alert("1");
  263. var custempnigtwinamt = parseFloat(grd_avgwinamtlist.valueMatrix(grd_avgwinamtlist.row ,grd_avgwinamtlist.colRef("custempnigtwinamt")));
  264. //alert( custempnigtwinamt);
  265. //식수cout가 0일 경우
  266. if(custempnigtwinamt == 0)
  267. {
  268. model.setValue(grd_avgwinamtlist.nodeset + "["+(grd_avgwinamtlist.row - grd_avgwinamtlist.fixedRows + 1) +"]/custempnigtmonqty", 0);
  269. } else {
  270. var custempnigtmonqty = parseFloat(grd_avgwinamtlist.valueMatrix(grd_avgwinamtlist.row ,grd_avgwinamtlist.colRef("custempnigtmonqty")));
  271. var custempnigtdayamt = 0;
  272. custempnigtdayamt = parseFloat(Math.round(custempnigtwinamt / custempnigtmonqty));
  273. model.setValue(grd_avgwinamtlist.nodeset + "["+(grd_avgwinamtlist.row - grd_avgwinamtlist.fixedRows + 1) +"]/custempnigtdayamt", custempnigtdayamt);
  274. model.setValue(grd_avgwinamtlist.nodeset + "["+(grd_avgwinamtlist.row - grd_avgwinamtlist.fixedRows + 1) +"]/reqdeptcd", model.getValue(ipt_reqdeptcd.attribute("ref")));
  275. grd_avgwinamtlist.rowStatus(grd_avgwinamtlist.row ) = "2";
  276. //평균단가를 구하기 위해서
  277. var custpatmonqty = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("custpatmonqty")));
  278. var custcurmonqty = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("custcurmonqty")));
  279. var custempmonqty = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("custempmonqty")));
  280. var totwinamt = parseFloat(grd_avgwinamtlist.valueMatrix( grd_avgwinamtlist.row , grd_avgwinamtlist.colRef("totwinamt")));
  281. var totmonqty = custpatmonqty+ custcurmonqty + custempmonqty + custempnigtmonqty ;
  282. totavgamt = parseFloat(Math.round(totwinamt / totmonqty));
  283. model.setValue(grd_avgwinamtlist.nodeset + "["+(grd_avgwinamtlist.row - grd_avgwinamtlist.fixedRows + 1) +"]/custtotavgamt", totavgamt);
  284. }
  285. }
  286. ]]>
  287. </script>
  288. </datagrid>
  289. </group>
  290. <group id="group4" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  291. <button id="button34" class="btn6_letter2" visibility="hidden" style="left:0; top:3px; width:56px; height:22px; ">
  292. <caption>출력</caption>
  293. </button>
  294. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
  295. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  296. <caption>초기화</caption>
  297. <script type="javascript" ev:event="DOMActivate">
  298. <![CDATA[
  299. var data = getGridUpdateData(grd_rsthrstnlist);
  300. if(data != "")
  301. {
  302. if(messageBox("작업중인 Data 가 있습니다.","Q003") != 6 )return;
  303. }
  304. fInitialize();
  305. ]]>
  306. </script>
  307. </button>
  308. <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
  309. <caption>저장</caption>
  310. <script type="javascript" ev:event="DOMActivate">
  311. <![CDATA[
  312. // if(messageBox("","Q002") != 6) return;
  313. if(fCheckRetrieveData()== false) return;
  314. model.setValue("/root/send/avgwinamtlist", grd_avgwinamtlist.getUpdateData());
  315. misfSave("TXRSG02701");
  316. if (model.getValue(gvErrorMsgPath + "/type") != "error")btn_search.dispatch("DOMActivate");
  317. // btn_search.dispatch("DOMActivate");
  318. // model.refresh();
  319. ]]>
  320. </script>
  321. </button>
  322. </group>
  323. </xhtml:body>
  324. </xhtml:html>