SMRFR02800_의료장비 공동운영 계약건.xrw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>의료장비 공동운영 계약건</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <grid>
  11. <rfcmfacd>
  12. <rfcmfacdlist/>
  13. </rfcmfacd>
  14. <rfcdcmcr>
  15. <rfcdcmcrlist/>
  16. </rfcdcmcr>
  17. </grid>
  18. </main>
  19. <send>
  20. <rfcmfacd>
  21. <instcd>0</instcd>
  22. <fromdd/>
  23. <todd/>
  24. <fixasetcd/>
  25. <goodflaghngnm/>
  26. <acqtflag>5</acqtflag>
  27. <goodflag>EQ</goodflag>
  28. <grid>
  29. <rfcmfacdlist_row/>
  30. </grid>
  31. <suplplcecd/>
  32. <suplplcenm/>
  33. <stat/>
  34. </rfcmfacd>
  35. <rfcdcmcr>
  36. <instcd/>
  37. <fixasetcd/>
  38. <stat/>
  39. </rfcdcmcr>
  40. </send>
  41. <init/>
  42. <temp/>
  43. <save>
  44. <rfcdcmcrlist/>
  45. </save>
  46. </root>
  47. </instance>
  48. <submission id="TRRFR02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfcmfacd" resultref="/root/main/grid/rfcmfacd"/>
  49. <submission id="TRRFR02802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfcdcmcr" resultref="/root/main/grid/rfcdcmcr"/>
  50. <submission id="TXRFR02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save/rfcdcmcrlist" resultref="/root/temp"/>
  51. </model>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. fInitialize();
  55. ]]>
  56. </script>
  57. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  59. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  61. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  63. <script type="javascript">
  64. <![CDATA[
  65. function fInitialize()
  66. {
  67. //초기화
  68. misfGridInit(grd_rfcmfacdlist);
  69. misfGridInit(grd_rfcdcmcrlist);
  70. // 기관코드
  71. misfComboComCdList("Z0007", cmb_instcd);
  72. // 현재 날짜 기본 입력(6개월 간격 설정)
  73. var reqdate = getCurrentDate().toDate("YYYYMMDD");
  74. model.setValue(ipt_fromdd.attribute("ref"), reqdate.getAddDate(-6, "M").getDateFormat("YYYYMMDD") );
  75. model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
  76. misfMsterDetailSet(grd_rfcmfacdlist, null, "TRRFR02801", "N");
  77. // 기본 사용자 설정값
  78. model.setValue("/root/send/rfcmfacd/instcd", getUserInfo("dutplceinstcd"));
  79. model.setValue("/root/send/rfcmfacd/goodflag", "EQ");
  80. model.refresh();
  81. }
  82. /*
  83. function fSettingGoodList(pnode, nodename){
  84. var codynode = instance1.selectNodes(pnode + "/*");
  85. var addRow = grd_rfcmeqgdlist.rows - grd_rfcmeqgdlist.fixedRows;
  86. if(model.getValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/goodcd").length > 0)addRow = addRow + 1;
  87. for (var j = 1; j <= codynode.length ; j++) {
  88. if((grd_rfcmeqgdlist.rows - grd_rfcmeqgdlist.fixedRows == 0) ||
  89. (addRow > grd_rfcmeqgdlist.rows - grd_rfcmeqgdlist.fixedRows))
  90. {
  91. misfGridIUD(grd_rfcmeqgdlist,"A");
  92. addRow = grd_rfcmeqgdlist.rows - grd_rfcmeqgdlist.fixedRows;
  93. fDefaultSetting(addRow );
  94. }
  95. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd"));
  96. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/goodnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm"));
  97. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/goodspec" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodspec"));
  98. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/qty" , 1);
  99. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/goodunitcost" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodunitcost"));
  100. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/amt" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodunitcost"));
  101. addRow = addRow + 1;
  102. }
  103. model.refresh();
  104. }
  105. */
  106. function fDefaultSetting(prow)
  107. {
  108. model.setValue(grd_rfcmeqgdlist.nodeset +"[" + prow+ "]/instcd" , cmb_instcd.value);
  109. model.setValue(grd_rfcmeqgdlist.nodeset +"[" + prow+ "]/fixasetcd" , grd_rfcmfacdlist.valueMatrix(grd_rfcmfacdlist.row, grd_rfcmfacdlist.colRef("fixasetcd")) );
  110. model.setValue(grd_rfcmeqgdlist.nodeset +"[" + prow + "]/fromdd" , getCurrentDate());
  111. model.setValue(grd_rfcmeqgdlist.nodeset +"[" + prow + "]/todd" , '99991231');
  112. }
  113. ]]>
  114. </script>
  115. </xhtml:head>
  116. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  117. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  118. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:168px; height:14px; ">의료장비 공동운영 계약건</caption>
  119. </group>
  120. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195; height:744; ">
  121. <group id="group2" style="left:0px; top:10px; width:1195px; height:65px; vertical-align:top; ">
  122. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:65px; "/>
  123. <select1 id="cmb_instcd" ref="/root/send/rfcmfacd/instcd" class="combo_s_essential" appearance="minimal" style="left:107px; top:8px; width:209px; height:19px; text-align:center; ">
  124. <choices>
  125. <itemset>
  126. <label/>
  127. <value/>
  128. </itemset>
  129. </choices>
  130. </select1>
  131. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:97px; height:17px; ">기관코드 :</caption>
  132. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:20px; width:56px; height:22px; ">
  133. <caption>조회</caption>
  134. <script type="javascript" ev:event="DOMActivate">
  135. <![CDATA[
  136. misfGridInit(grd_rfcmfacdlist);
  137. misfGridInit(grd_rfcdcmcrlist);
  138. if(!isRequiredControls("cmb_instcd"))return;
  139. if(!isRequiredControls("ipt_fromdd"))return;
  140. if(!isRequiredControls("ipt_todd"))return;
  141. submit("TRRFR02801");
  142. grd_rfcmfacdlist.dispatch("ondblclick");
  143. ]]>
  144. </script>
  145. </button>
  146. <line id="line1" class="line_4" style="x1:1110px; y1:7; x2:1110px; y2:60; "/>
  147. <caption id="cap_fromdd" class="search_name" style="left:455px; top:9px; width:90px; height:17px; ">계약일자:</caption>
  148. <input id="ipt_fromdd" ref="/root/send/rfcmfacd/fromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:548px; top:8px; width:140px; height:19px; text-align:center; "/>
  149. <input id="ipt_todd" ref="/root/send/rfcmfacd/todd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:708px; top:8px; width:140px; height:19px; text-align:center; "/>
  150. <caption id="cap_fixasetcd" class="search_name" style="left:15px; top:35px; width:97px; height:17px; ">장비명 :</caption>
  151. <button id="btn_fixasetcd" class="icon_search" style="left:214px; top:36px; width:16px; height:16px; ">
  152. <caption/>
  153. <script type="javascript" ev:event="DOMActivate">
  154. <![CDATA[
  155. if(!isRequiredControls("cmb_instcd"))return;
  156. rszfOpenPopUpListByWndName(ipt_fixasetcd,"", "fixasetcd,goodflaghngnm", "SPRSD00240", "instcd", cmb_instcd.value, "Y");
  157. model.refresh();
  158. ]]>
  159. </script>
  160. </button>
  161. <input id="ipt_goodflaghngnm" ref="/root/send/rfcmfacd/goodflaghngnm" class="input_default" style="left:235px; top:36px; width:200px; height:19px; text-align:center; ">
  162. <script type="javascript" ev:event="xforms-value-changed">
  163. <![CDATA[
  164. if(!isRequiredControls("cmb_instcd"))return;
  165. if(ipt_goodflaghngnm.value != "")
  166. {
  167. rszfValidationCheck("TRRSD00241", "rfcmfacdlist",
  168. "requirementcd,instcd,requirementnm", "goodflaghngnm," + cmb_instcd.value + "," + ipt_goodflaghngnm.value, "",
  169. "fixasetcd,goodflaghngnm", ipt_fixasetcd, "SPRSD00240", "instcd", cmb_instcd.value, 'Y');
  170. }else{
  171. ipt_fixasetcd.value = "";
  172. }
  173. model.refresh();
  174. ]]>
  175. </script>
  176. </input>
  177. <input id="ipt_fixasetcd" ref="/root/send/rfcmfacd/fixasetcd" class="input_default" imemode="disabled" style="left:107px; top:35px; width:104px; height:19px; text-align:center; ">
  178. <script type="javascript" ev:event="xforms-value-changed">
  179. <![CDATA[
  180. if(!isRequiredControls("cmb_instcd"))return;
  181. if(ipt_fixasetcd.value != "")
  182. {
  183. rszfValidationCheck("TRRSD00241", "rfcmfacdlist",
  184. "requirementcd,instcd,requirementnm", "fixasetcd," + cmb_instcd.value + "," + ipt_fixasetcd.value, "",
  185. "fixasetcd,goodflaghngnm",ipt_fixasetcd, "SPRSD00240", "instcd", cmb_instcd.value, 'Y');
  186. }else{
  187. ipt_goodflaghngnm.value = "";
  188. }
  189. model.refresh();
  190. ]]>
  191. </script>
  192. </input>
  193. <caption id="caption8" style="left:691px; top:9px; width:15px; height:20px; ">~</caption>
  194. <caption id="cap_suplcecd_search" class="search_name" style="left:455px; top:35px; width:89px; height:17px; ">거래처 :</caption>
  195. <button id="btn_suplcecd_search" class="icon_search" style="left:647px; top:35px; width:16px; height:16px; ">
  196. <caption/>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd");
  200. ipt_suplplcecd.refresh();
  201. ipt_suplplcenm.refresh();
  202. ]]>
  203. </script>
  204. </button>
  205. <input id="ipt_suplplcenm" ref="/root/send/rfcmfacd/suplplcenm" class="input_fix" style="left:670px; top:35px; width:178px; height:19px; ">
  206. <script type="javascript" ev:event="xforms-value-changed">
  207. <![CDATA[
  208. if(ipt_suplplcenm_search.value != '')
  209. {
  210. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  211. cmb_instcd_search.value + "," + "custnm," + ipt_suplplcenm_search.value, "", "suplplcecd_search,suplplcenm_search",
  212. ipt_suplplcecd_search, "SPRSD00220", "instcd","cmb_instcd_search");
  213. }else
  214. {
  215. ipt_suplplcecd_search.value = '';
  216. }
  217. ipt_suplplcecd_search.refresh();
  218. ipt_suplplcenm_search.refresh();
  219. ]]>
  220. </script>
  221. </input>
  222. <input id="ipt_suplplcecd" ref="/root/send/rfcmfacd/suplplcecd" class="input_default" style="left:547px; top:35px; width:95px; height:19px; ">
  223. <script type="javascript" ev:event="xforms-value-changed">
  224. <![CDATA[
  225. if(ipt_suplplcecd_search.value != '')
  226. {
  227. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  228. cmb_instcd_search.value + "," + "entrregno," + ipt_suplplcecd_search.value, "", "suplplcecd_search,suplplcenm_search",
  229. ipt_suplplcecd_search, "SPRSD00220", "instcd","cmb_instcd_search");
  230. }else
  231. {
  232. ipt_suplplcenm_search.value = '';
  233. }
  234. ipt_suplplcecd.refresh();
  235. ipt_suplplcenm.refresh();
  236. ]]>
  237. </script>
  238. </input>
  239. <caption id="caption2" class="search_name" style="left:870px; top:9px; width:127px; height:17px; ">계약 만료 여부 :</caption>
  240. <select1 id="cmb_stat" ref="/root/send/rfcmfacd/stat" class="combo_s_essential" appearance="minimal" style="left:1000px; top:8px; width:95px; height:19px; text-align:center; ">
  241. <choices>
  242. <item>
  243. <label>전체</label>
  244. <value/>
  245. </item>
  246. <item>
  247. <label>계약진행</label>
  248. <value>0</value>
  249. </item>
  250. <item>
  251. <label>계약완료</label>
  252. <value>1</value>
  253. </item>
  254. </choices>
  255. </select1>
  256. </group>
  257. <line id="line3" class="line_1" style="x1:0px; y1:108px; x2:1195px; y2:108px; "/>
  258. <datagrid id="grd_rfcmfacdlist" nodeset="/root/main/grid/rfcmfacd/rfcmfacdlist" caption="장비코드^장비명^모델^사용부서^설치장소^제조원^기관코드^ fromdd^todd" colsep="^" colwidth="103, 252, 137, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="25" rowsep="|" style="left:0px; top:113px; width:1194px; height:397px; ">
  259. <col ref="fixasetcd" style="text-align:center; "/>
  260. <col ref="goodflaghngnm" style="text-align:left; padding-left:10; "/>
  261. <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
  262. <col ref="cntrdeptnm" style="text-align:left; padding-left:10; "/>
  263. <col ref="installplcenm" style="text-align:left; padding-left:10; "/>
  264. <!-- 입고일 -->
  265. <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
  266. <col ref="instcd" visibility="hidden"/>
  267. <script type="javascript" ev:event="ondblclick">
  268. <![CDATA[
  269. model.setValue("/root/send/rfcdcmcr/instcd" , grd_rfcmfacdlist.valueMatrix(grd_rfcmfacdlist.row, grd_rfcmfacdlist.colRef("instcd")));
  270. model.setValue("/root/send/rfcdcmcr/fixasetcd" , grd_rfcmfacdlist.valueMatrix(grd_rfcmfacdlist.row, grd_rfcmfacdlist.colRef("fixasetcd")));
  271. model.setValue("/root/send/rfcdcmcr/stat" , model.getValue(cmb_stat.attribute("ref")));
  272. submit("TRRFR02802");
  273. model.refresh();
  274. ]]>
  275. </script>
  276. </datagrid>
  277. <caption id="caption4" class="tit_2" style="left:0px; top:92px; width:295px; height:14px; ">계약건 리스트</caption>
  278. <button id="button1" class="btn2_letter2" style="left:1149px; top:87px; width:42px; height:19px; ">
  279. <caption>엑셀</caption>
  280. <script type="javascript" ev:event="DOMActivate">
  281. <![CDATA[
  282. if(grd_rfcmfacdlist.fixedRows != grd_rfcmfacdlist.rows)
  283. {
  284. var fileName = window.fileDialog("save", ",", false, "의료장비 공동운영 계약건", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  285. if (fileName != "")
  286. {
  287. grd_rfcmfacdlist.saveExcel(fileName, "의료장비공동운영계약건");
  288. }
  289. }else{
  290. messageBox("저장할 Data가 없습니다. Data 조회 후 다시 실행하세요.", "I999");
  291. }
  292. ]]>
  293. </script>
  294. </button>
  295. <line id="line2" class="line_1" style="x1:0px; y1:108px; x2:1195px; y2:108px; "/>
  296. <caption id="caption1" class="tit_2" style="left:0px; top:520px; width:295px; height:14px; ">계약건 상세 List</caption>
  297. <line id="line4" class="line_1" style="x1:0px; y1:535px; x2:1195px; y2:535px; "/>
  298. <datagrid id="grd_rfcdcmcrlist" nodeset="/root/main/grid/rfcdcmcr/rfcdcmcrlist" class="datagrid3" caption="기관코드^자산코드^계약업체코드^계약업체명^계약일자^계약기간^계약기간^계약년한^계약조건^회차^월분배금^누적금액^상태^비고" colsep="^" colwidth="31, 32, 98, 146, 96, 98, 99, 80, 154, 55, 80, 80, 80, 163" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:540px; width:1194px; height:190px; font-weight:normal; text-align:center; ">
  299. <col ref="instcd" visibility="hidden" style="text-align:left; "/>
  300. <col ref="fixasetcd" visibility="hidden" style="text-align:left; "/>
  301. <col ref="concmpycd" type="inputbutton" style="text-align:center; "/>
  302. <col ref="concmpynm" style="text-align:left; padding-left:10; "/>
  303. <col ref="condd" type="inputdate" format="yyyy/mm/dd" style="text-align:center; "/>
  304. <col ref="conddfr" type="inputdate" format="yyyy/mm/dd" style="text-align:center; "/>
  305. <col ref="conddto" type="inputdate" format="yyyy/mm/dd" style="text-align:center; "/>
  306. <col ref="conyy" type="input" style="text-align:center; "/>
  307. <col ref="conterm" type="input" style="text-align:left; "/>
  308. <col ref="condg" type="input" format="##" maxlength="2" style="text-align:center; "/>
  309. <col ref="mmdtbtamt" type="input" format="#,###" style="text-align:right; "/>
  310. <col ref="acmlamt" type="input" format="#,###" style="text-align:right; "/>
  311. <col ref="stat" type="combo" style="text-align:left; ">
  312. <choices>
  313. <item>
  314. <label>계약진행</label>
  315. <value>0</value>
  316. </item>
  317. <item>
  318. <label>계약완료</label>
  319. <value>1</value>
  320. </item>
  321. </choices>
  322. </col>
  323. <col ref="cmt" type="input" style="text-align:left; "/>
  324. <script type="javascript" ev:event="onbuttonclick">
  325. <![CDATA[
  326. if (grd_rfcdcmcrlist.col == grd_rfcdcmcrlist.colRef("concmpycd")) {// 그리드 제조회사명 클릭
  327. rszfOpenPopUpListByWndName(grd_rfcdcmcrlist,"","concmpycd,concmpynm","SPRSD00220","instcd","cmb_instcd");
  328. model.refresh();
  329. }
  330. ]]>
  331. </script>
  332. <script type="javascript" ev:event="xforms-value-changed">
  333. <![CDATA[
  334. var acmlamt = 0;
  335. var bfcondg = 0;
  336. var condg = 0;
  337. bfcondg = grd_rfcdcmcrlist.valueMatrix(grd_rfcdcmcrlist.row-1, grd_rfcdcmcrlist.colRef("condg"));
  338. condg = grd_rfcdcmcrlist.valueMatrix(grd_rfcdcmcrlist.row , grd_rfcdcmcrlist.colRef("condg"));
  339. if (grd_rfcdcmcrlist.col == grd_rfcdcmcrlist.colRef("mmdtbtamt")) {// 그리드 제조회사명 클릭
  340. for (var i=grd_rfcdcmcrlist.fixedRows;i<grd_rfcdcmcrlist.rows;i++){
  341. acmlamt += parseInt(grd_rfcdcmcrlist.valueMatrix(i, grd_rfcdcmcrlist.colRef("mmdtbtamt")));
  342. grd_rfcdcmcrlist.valueMatrix(i, grd_rfcdcmcrlist.colRef("acmlamt")) = "";
  343. grd_rfcdcmcrlist.valueMatrix(i, grd_rfcdcmcrlist.colRef("acmlamt")) = acmlamt;
  344. }
  345. }
  346. model.refresh();
  347. ]]>
  348. </script>
  349. </datagrid>
  350. <button id="btn_delrow" class="btn2_letter2" style="left:1025px; top:513px; width:42px; height:19px; ">
  351. <caption>삭제</caption>
  352. <script type="javascript" ev:event="DOMActivate">
  353. <![CDATA[
  354. grd_rfcdcmcrlist.rowStatus(grd_rfcdcmcrlist.row) = 4;
  355. ]]>
  356. </script>
  357. </button>
  358. <button id="button2" class="btn2_letter2" style="left:1135px; top:513px; width:42px; height:19px; ">
  359. <caption>저장</caption>
  360. <script type="javascript" ev:event="DOMActivate">
  361. <![CDATA[
  362. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  363. if ( retMes != 6) {
  364. return;
  365. }
  366. var updtdata = getGridUpdateData(grd_rfcdcmcrlist);
  367. if (updtdata == "")
  368. {
  369. messageBox("변경된 데이터가","I004");
  370. return;
  371. }
  372. model.setValue("/root/save/rfcdcmcrlist", updtdata);
  373. submit("TXRFR02801");
  374. btn_search.dispatch("DOMActivate");
  375. ]]>
  376. </script>
  377. </button>
  378. <button id="button3" class="btn2_letter3" style="left:1075px; top:513px; width:53px; height:19px; ">
  379. <caption>행추가</caption>
  380. <script type="javascript" ev:event="DOMActivate">
  381. <![CDATA[
  382. grd_rfcdcmcrlist.addRow();
  383. grd_rfcdcmcrlist.valueMatrix(grd_rfcdcmcrlist.row, grd_rfcdcmcrlist.colRef("instcd")) = grd_rfcmfacdlist.valueMatrix(grd_rfcmfacdlist.row, grd_rfcmfacdlist.colRef("instcd"));
  384. grd_rfcdcmcrlist.valueMatrix(grd_rfcdcmcrlist.row, grd_rfcdcmcrlist.colRef("fixasetcd")) = grd_rfcmfacdlist.valueMatrix(grd_rfcmfacdlist.row, grd_rfcmfacdlist.colRef("fixasetcd"));
  385. if (grd_rfcdcmcrlist.rows == 2) {
  386. grd_rfcdcmcrlist.valueMatrix(grd_rfcdcmcrlist.row, grd_rfcdcmcrlist.colRef("condg")) = 1;
  387. }else{
  388. grd_rfcdcmcrlist.valueMatrix(grd_rfcdcmcrlist.row, grd_rfcdcmcrlist.colRef("condg")) = parseInt(grd_rfcdcmcrlist.valueMatrix(grd_rfcdcmcrlist.row-1, grd_rfcdcmcrlist.colRef("condg"))) + 1;
  389. }
  390. ]]>
  391. </script>
  392. </button>
  393. </group>
  394. <group id="group5" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  395. <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:1068px; top:3; width:56px; height:22px; ">
  396. <caption>저장</caption>
  397. </button>
  398. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3; width:68px; height:22px; ">
  399. <caption>초기화</caption>
  400. <script type="javascript" ev:event="DOMActivate">
  401. <![CDATA[
  402. fInitialize();
  403. ]]>
  404. </script>
  405. </button>
  406. <line id="line16" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  407. </group>
  408. </xhtml:body>
  409. </xhtml:html>