SMRSI02600_평화드림월정산.xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  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. <rsihinptlist/>
  11. </main>
  12. <send>
  13. <instcd/>
  14. <frmwindd/>
  15. <goodflag/>
  16. <iokind>1b</iokind>
  17. <errorflag/>
  18. <valid/>
  19. <workflag/>
  20. <suplplcecd/>
  21. <suppcustcd/>
  22. <suppcustnm/>
  23. <windeptcd/>
  24. <towindd/>
  25. <purcdmnddd/>
  26. <purcdmndno/>
  27. <purcdmndseq/>
  28. <windd/>
  29. <winno/>
  30. <winseqno/>
  31. <newElement/>
  32. </send>
  33. <init>
  34. <errorflag>
  35. <label>정상</label>
  36. <value>A</value>
  37. <label>둘중에러</label>
  38. <value>B</value>
  39. <label>병원만</label>
  40. <value>C</value>
  41. <label>수신업체만</label>
  42. <value>D</value>
  43. </errorflag>
  44. <suplplcecd>
  45. </suplplcecd>
  46. <goodflag>
  47. <label>의료소모품</label>
  48. <value>Y</value>
  49. <label>의료비품</label>
  50. <value>U</value>
  51. </goodflag>
  52. <calccnfmdd/>
  53. </init>
  54. <temp/>
  55. <save>
  56. <rsihinptlist/>
  57. <editgubun/>
  58. </save>
  59. </root>
  60. </instance>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  65. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. fInitialize();
  70. ]]>
  71. </script>
  72. <script type="javascript">
  73. <![CDATA[
  74. function fInitialize()
  75. {
  76. misfGridInit(grd_rsihinptlist);
  77. model.resetInstanceNode("/root/send");
  78. misfComboComCdListMulti("Z0007","cmb_instcd");
  79. //opt_windeptcd.value = rszfGetPurcDeptCd(cmb_instcd.value);
  80. // -------------------------------------------------------------------------------------
  81. // 기관별 구매시스템 기본정보를 조회한다
  82. // vPathResult = "/root/init/RscsysinftLists";
  83. // 2009.08.27 CHR
  84. // -------------------------------------------------------------------------------------
  85. rszfRscsysinftLists(getUserInfo("dutplceinstcd"));
  86. // -------------------------------------------------------------------------------------
  87. // 구매 인터페이스 거래처정보를 조회한다
  88. // vPathResult = "/root/init/RscifcustLists";
  89. // pInstcd" : (조회값) 기관코드
  90. // pEntrregno" : (조회값) 거래처
  91. // pMaindeptcd" : (조회값) 관리부서코드
  92. // pCombo : 콤보구분
  93. // pAllYN : 전체구분
  94. // ------------------------------------------------------------------------------------*/
  95. cmb_instcd.value = getUserInfo("dutplceinstcd");
  96. opt_windeptcd.value = getRscsysinftInfo("purcdept");
  97. // ipt_windd.value = getCurrentDate().substr(0,6);
  98. ipt_frmwindd.value = getCurrentDate();
  99. ipt_towindd.value = getCurrentDate();
  100. ipt_calccnfmdd.value = getCurrentDate();
  101. /* Interface 거래처 설정 */
  102. addComboItem("cmb_suplplcecd", "전체" , "", "below");
  103. addComboItem("cmb_suplplcecd", "평화드림" , rszfGetMainCust(purc_main_suplplcecd) , "below");
  104. addComboItem("cmb_suplplcecd", "하이드로메디", rszfGetMainCust(purc_main_suplplcecd2), "below");
  105. model.setValue("/root/send/errorflag", "A");
  106. model.setValue("/root/send/valid", "A");
  107. misfMsterDetailSet(grd_rsihinptlist, null, "TRRSI02605", "Y");
  108. cmb_errorflag.select(0);
  109. cmb_goodflag.select(0);
  110. model.refresh();
  111. }
  112. function fCheckSaveData ( tmp ) {
  113. if( getGridUpdateData(grd_rsihinptlist) == "" ) return false;
  114. if ( tmp == false ) return true;
  115. for ( var currow = grd_rsihinptlist.fixedRows; currow < grd_rsihinptlist.rows ; currow++ )
  116. {
  117. if(grd_rsihinptlist.valueMatrix(currow , grd_rsihinptlist.colRef("winunitcost")) <= 0)
  118. {
  119. if ( grd_rsihinptlist.valueMatrix(currow , grd_rsihinptlist.colRef("winunitcost")) == 0 )
  120. messageBox(currow + " 번째 유효한 입고단가를 " ,"C001");
  121. else {
  122. messageBox(currow + " 번째 유효한 입고단가를 " ,"C001");
  123. grd_rsihinptlist.row = currow;
  124. }
  125. grd_rsihinptlist.col= grd_rsihinptlist.colRef("winunitcost");
  126. grd_rsihinptlist.editCell();
  127. return false;
  128. }
  129. }
  130. }
  131. function fdefaultData () {
  132. }
  133. ]]>
  134. </script>
  135. <submission id="TRRSI02605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsihinptlist"/>
  136. <submission id="TXRSI02605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save" resultref="/root/temp"/>
  137. <bind id="bind1" ref="/root/main/rsihinptlist/winamt" calculate="../winqty * ../winunitcost"/>
  138. </model>
  139. </xhtml:head>
  140. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  141. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  142. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:131px; height:14px; ">평화드림월정산</caption>
  143. </group>
  144. <group id="grp_biz" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  145. <group id="grp_sea" style="left:0px; top:2px; width:1195px; height:63px; vertical-align:top; ">
  146. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:63px; background-color:#fffbf2; border-color:#ffd799; "/>
  147. <caption id="cap_instcd" class="search_name" style="left:10px; top:9px; width:99px; height:17px; ">기관코드 :</caption>
  148. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" appearance="minimal" style="left:99px; top:8px; width:126px; height:19px; text-align:center; ">
  149. <choices>
  150. <itemset>
  151. <label/>
  152. <value/>
  153. </itemset>
  154. </choices>
  155. </select1>
  156. <line id="line30" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:58px; "/>
  157. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:22px; width:56px; height:22px; ">
  158. <caption>조회</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. if(!isRequiredControls("cmb_instcd"))return;
  162. if(!isRequiredControls("ipt_frmwindd"))return;
  163. if(!isRequiredControls("ipt_towindd"))return;
  164. submit("TRRSI02605");
  165. ]]>
  166. </script>
  167. </button>
  168. <caption id="cap_windd" class="search_name" style="left:257px; top:9px; width:98px; height:17px; ">입고 일자 :</caption>
  169. <input id="ipt_frmwindd" ref="/root/send/frmwindd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:356px; top:8px; width:95px; height:19px; text-align:center; "/>
  170. <input id="ipt_towindd" ref="/root/send/towindd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:470px; top:8px; width:95px; height:19px; text-align:center; "/>
  171. <output id="opt_windeptcd" ref="/root/send/windeptcd" visibility="hidden" style="left:1095px; top:35px; width:10px; height:19px; "/>
  172. <output id="opt_iokind" ref="/root/send/iokind" visibility="hidden" style="left:1095px; top:10px; width:10px; height:19px; "/>
  173. <caption id="caption1" class="search_name" style="left:610px; top:40px; width:86px; height:17px; ">에러구분 :</caption>
  174. <select1 id="cmb_errorflag" ref="/root/send/workflag" appearance="minimal" style="left:700px; top:38px; width:100px; height:19px; ">
  175. <choices>
  176. <itemset nodeset="/root/init/errorflag">
  177. <label ref="label"/>
  178. <value ref="value"/>
  179. </itemset>
  180. </choices>
  181. <script type="javascript" ev:event="xforms-value-changed">
  182. <![CDATA[
  183. var tmpValue = model.getValue(cmb_errorflag.attribute("ref") );
  184. model.resetInstanceNode("/root/send/errorflag");
  185. model.resetInstanceNode("/root/send/valid");
  186. btn_save.disabled = false;
  187. btn_apv.disabled = false;
  188. btn_select.disabled = false;
  189. grd_rsihinptlist.colDisabled(grd_rsihinptlist.colRef("winunitcost")) = false;
  190. if ( tmpValue == "D" ) {
  191. btn_apv.disabled = true;
  192. btn_select.disabled = true;
  193. btn_save.disabled = true;
  194. grd_rsihinptlist.colDisabled(grd_rsihinptlist.colRef("winunitcost")) = true;
  195. }
  196. if ( tmpValue == "A" || tmpValue == "B" ) {
  197. model.setValue("/root/send/errorflag", "A");
  198. if ( tmpValue == "A" ) {
  199. model.setValue("/root/send/valid", "A");
  200. } else {
  201. // grd_rsihinptlist.colDisabled(grd_rsihinptlist.colRef("winunitcost")) = false;
  202. // btn_save.disabled = false;
  203. }
  204. } else model.setValue("/root/send/errorflag", tmpValue);
  205. btn_search.dispatch("DOMActivate");
  206. ]]>
  207. </script>
  208. </select1>
  209. <input id="ipt_suppcustcd" ref="/root/send/suppcustcd" class="input_s_essential" style="left:356px; top:38px; width:74px; height:19px; ">
  210. <script type="javascript" ev:event="xforms-value-changed">
  211. <![CDATA[
  212. if(ipt_suppcustcd.value.length == 0)
  213. ipt_suppcustnm.value = "";
  214. else
  215. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  216. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustcd.attribute("ref")),"","suppcustcd,suppcustnm" ,
  217. ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  218. model.refresh();
  219. ]]>
  220. </script>
  221. </input>
  222. <button id="btn_suppcust" class="icon_search" style="left:432px; top:40px; width:16px; height:16px; ">
  223. <caption/>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm","SPRSD00220","instcd","cmb_instcd", "Y");
  227. model.refresh();
  228. ]]>
  229. </script>
  230. </button>
  231. <caption id="caption14" class="search_name" style="left:256px; top:39px; width:99px; height:17px; ">보조거래처 :</caption>
  232. <caption id="caption18" class="search_name" style="left:10px; top:40px; width:99px; height:17px; ">주거래처 :</caption>
  233. <input id="ipt_suppcustnm" ref="/root/send/suppcustnm" class="input_search" style="left:450px; top:38px; width:115px; height:19px; ">
  234. <script type="javascript" ev:event="xforms-value-changed">
  235. <![CDATA[
  236. if(ipt_suppcustnm.value.length == 0)
  237. ipt_suppcustcd.value = "";
  238. else
  239. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  240. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustnm.attribute("ref")),"","suppcustcd,suppcustnm" ,
  241. ipt_suppcustnm,"SPRSD00220","instcd","cmb_instcd");
  242. model.refresh();
  243. ]]>
  244. </script>
  245. </input>
  246. <select1 id="cmb_suplplcecd" ref="/root/send/suplplcecd" class="combo_search" appearance="minimal" style="left:99px; top:38px; width:126px; height:19px; text-align:center; ">
  247. <choices>
  248. <itemset nodeset="/root/init/suplplcecd">
  249. <label ref="label"/>
  250. <value ref="value"/>
  251. </itemset>
  252. </choices>
  253. </select1>
  254. <caption id="caption2" class="search_name" style="left:610px; top:9px; width:87px; height:17px; ">물품구분 :</caption>
  255. <select1 id="cmb_goodflag" ref="/root/send/goodflag" appearance="minimal" style="left:700px; top:8px; width:100px; height:19px; ">
  256. <choices>
  257. <itemset nodeset="/root/init/goodflag">
  258. <label ref="label"/>
  259. <value ref="value"/>
  260. </itemset>
  261. </choices>
  262. </select1>
  263. <caption id="caption4" class="search_name" style="left:845px; top:10px; width:87px; height:17px; ">발주번호 :</caption>
  264. <caption id="caption3" class="search_name" style="left:845px; top:40px; width:86px; height:17px; ">입고번호 :</caption>
  265. <input id="ipt_purcdmnddd" ref="/root/send/purcdmnddd" maxlength="8" style="left:935px; top:10px; width:55px; height:19px; "/>
  266. <input id="ipt_purcdmndno" ref="/root/send/purcdmndno" maxlength="4" style="left:1010px; top:10px; width:32px; height:19px; "/>
  267. <input id="ipt_purcdmndseq" ref="/root/send/purcdmndseq" maxlength="4" style="left:1060px; top:10px; width:32px; height:19px; "/>
  268. <input id="ipt_windd" ref="/root/send/windd" maxlength="8" style="left:935px; top:40px; width:55px; height:19px; "/>
  269. <input id="ipt_winno" ref="/root/send/winno" maxlength="4" style="left:1010px; top:40px; width:32px; height:19px; "/>
  270. <input id="ipt_winseqno" ref="/root/send/winseqno" maxlength="4" style="left:1060px; top:40px; width:32px; height:19px; "/>
  271. <input id="input1" ref="/root/send/frmwindd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:356px; top:8px; width:95px; height:19px; text-align:center; "/>
  272. </group>
  273. <caption id="cap_title" class="tit_2" style="left:5px; top:74px; width:157px; height:13px; ">수신업체 월 정산 List</caption>
  274. <line id="line2" class="line_1" style="x1:0px; y1:89px; x2:1195px; y2:89px; "/>
  275. <datagrid id="grd_rsihinptlist" nodeset="/root/main/rsihinptlist" caption="선택^순번^입고일자^번호^순번^발주번호^물품코드^물품코드^물품명^규격^전표처리^비고^입고수량^입고단위^입고단가^입고금액^All Size^보조거래처^수신 입고수량^수신 입고단위^수신 입고단가^수신 입고금액^수신All Size^수신업체보조거래처" colsep="^" colwidth="30, 40, 60, 40, 40, 120, 70, 17, 210, 140, 60, 145, 70, 70, 70, 70, 70, 100, 90, 90, 90, 90, 80, 120, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:95px; width:1194px; height:645px; ">
  276. <col checkvalue="Y,N" ref="calccnfmyn" type="checkbox"/>
  277. <col ref="rowcnt" style="text-align:center; "/>
  278. <col ref="windd" format="yyyymmdd" style="text-align:center; "/>
  279. <col ref="winno" style="text-align:center; "/>
  280. <col ref="winseqno" style="text-align:center; "/>
  281. <col ref="purcdno" style="text-align:center; "/>
  282. <col ref="goodcd" style="text-align:center; "/>
  283. <col ref="popup" type="inputbutton"/>
  284. <col ref="goodnm" style="text-align:left; "/>
  285. <col ref="goodspec" style="text-align:left; "/>
  286. <col ref="slipyn" style="text-align:center; "/>
  287. <col ref="cmt" style="text-align:left; "/>
  288. <col ref="winqty" format="#,###.##" style="text-align:right; "/>
  289. <col ref="winunit" style="text-align:center; "/>
  290. <col ref="winunitcost" type="input" format="#,###.##" style="text-align:right; "/>
  291. <col ref="winamt" format="#,###" style="text-align:right; "/>
  292. <col ref="allsizespecid" style="text-align:left; "/>
  293. <col ref="subcustnm" style="text-align:left; "/>
  294. <col ref="pwinqty" format="#,###.##" style="text-align:right; "/>
  295. <col ref="pwinunit" style="text-align:center; "/>
  296. <col ref="pwinunitcost" format="#,###.##" style="text-align:right; "/>
  297. <col ref="pwinamt" format="#,###" style="text-align:right; "/>
  298. <col ref="pallsizespecid" style="text-align:left; "/>
  299. <col ref="psubcustnm" style="text-align:left; "/>
  300. <col ref="winpackqty" visibility="hidden"/>
  301. <col ref="winpackunit" visibility="hidden"/>
  302. <col ref="winpackcntperunit" visibility="hidden"/>
  303. <col ref="pwinpackqty" visibility="hidden"/>
  304. <col ref="pwinpackunit" visibility="hidden"/>
  305. <col ref="pwinpackcntperunit" visibility="hidden"/>
  306. <col ref="goodflag" visibility="hidden"/>
  307. <col ref="instcd" visibility="hidden"/>
  308. <col ref="windeptcd" visibility="hidden"/>
  309. <col ref="purcdmnddd" visibility="hidden"/>
  310. <col ref="purcdmndno" visibility="hidden"/>
  311. <col ref="purcdmndseq" visibility="hidden"/>
  312. <col ref="precalccnfmyn" visibility="hidden"/>
  313. <col ref="calccnfmpsn" visibility="hidden"/>
  314. <col ref="calccnfmdd" visibility="hidden"/>
  315. <col ref="winprcsflag" visibility="hidden"/>
  316. <script type="javascript" ev:event="xforms-value-changed">
  317. <![CDATA[
  318. if(grd_rsihinptlist.col == grd_rsihinptlist.colRef("calccnfmyn"))
  319. {
  320. if(grd_rsihinptlist.valueMatrix(grd_rsihinptlist.row, grd_rsihinptlist.colRef("calccnfmyn")) == "N")
  321. {
  322. if ( grd_rsihinptlist.valueMatrix(grd_rsihinptlist.row, grd_rsihinptlist.colRef("precalccnfmyn")) == "Y" ) {
  323. grd_rsihinptlist.valueMatrix(grd_rsihinptlist.row, grd_rsihinptlist.colRef("calccnfmpsn")) = "";
  324. grd_rsihinptlist.valueMatrix(grd_rsihinptlist.row, grd_rsihinptlist.colRef("calccnfmdd")) = "";
  325. grd_rsihinptlist.valueMatrix(grd_rsihinptlist.row, grd_rsihinptlist.colRef("winprcsflag")) = "";
  326. grd_rsihinptlist.rowStatus(grd_rsihinptlist.row) = "2";
  327. } else {
  328. grd_rsihinptlist.rowStatus(grd_rsihinptlist.row) = "0";
  329. }
  330. } else {
  331. if ( grd_rsihinptlist.valueMatrix(grd_rsihinptlist.row, grd_rsihinptlist.colRef("precalccnfmyn")) == "N" ) {
  332. grd_rsihinptlist.valueMatrix(grd_rsihinptlist.row, grd_rsihinptlist.colRef("calccnfmpsn")) = getUserInfo("userid");
  333. grd_rsihinptlist.valueMatrix(grd_rsihinptlist.row, grd_rsihinptlist.colRef("calccnfmdd")) = model.getValue(ipt_calccnfmdd.attribute("ref"));
  334. grd_rsihinptlist.valueMatrix(grd_rsihinptlist.row, grd_rsihinptlist.colRef("winprcsflag")) = "8";
  335. grd_rsihinptlist.rowStatus(grd_rsihinptlist.row) = "2";
  336. } else {
  337. grd_rsihinptlist.rowStatus(grd_rsihinptlist.row) = "0";
  338. }
  339. }
  340. model.refresh();
  341. }
  342. ]]>
  343. </script>
  344. <script type="javascript" ev:event="onbuttonclick">
  345. <![CDATA[
  346. if(grd_rsihinptlist.col == grd_rsihinptlist.colRef("popup"))
  347. {
  348. modal("SMRSC05300", "", "", "", "popup", grd_rsihinptlist.attribute("nodeset") + "[" + grd_rsihinptlist.row + "]", "/root/temp" );
  349. }
  350. ]]>
  351. </script>
  352. <script type="javascript" ev:event="onaftersort">
  353. <![CDATA[
  354. grd_rsihinptlist.gridToInstance();
  355. ]]>
  356. </script>
  357. </datagrid>
  358. <button id="btn_excel" class="btn2_letter3" style="left:830px; top:68px; width:53px; height:19px; ">
  359. <caption>Excel</caption>
  360. <script type="javascript" ev:event="DOMActivate">
  361. <![CDATA[
  362. misfSaveExcel(grd_rsihinptlist);
  363. ]]>
  364. </script>
  365. </button>
  366. <caption id="caption22" style="left:455px; top:11px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  367. <button id="btn_save" class="btn3_letter6" style="left:1008px; top:67px; width:104px; height:22px; ">
  368. <caption>입고금액수정</caption>
  369. <script type="javascript" ev:event="DOMActivate">
  370. <![CDATA[
  371. if ( fCheckSaveData( true ) == false) return;
  372. model.setValue("/root/save/editgubun", "U");
  373. model.setValue("/root/save/rsihinptlist", getGridUpdateData(grd_rsihinptlist) );
  374. // misfSave("TXRSI02605");
  375. submit("TXRSI02605");
  376. if (model.getValue(gvErrorMsgPath + "/type") != "error")
  377. btn_search.dispatch("DOMActivate");
  378. ]]>
  379. </script>
  380. </button>
  381. <button id="btn_apv" class="btn1_letter4" style="left:1115px; top:67px; width:80px; height:22px; ">
  382. <caption>정산처리</caption>
  383. <script type="javascript" ev:event="DOMActivate">
  384. <![CDATA[
  385. if ( fCheckSaveData( false ) == false) return;
  386. model.setValue("/root/save/editgubun", "C");
  387. model.setValue("/root/save/rsihinptlist", getGridUpdateData(grd_rsihinptlist) );
  388. submit("TXRSI02605");
  389. // misfSave("TXRSI02605");
  390. if (model.getValue(gvErrorMsgPath + "/type") != "error")
  391. btn_search.dispatch("DOMActivate");
  392. ]]>
  393. </script>
  394. </button>
  395. <button id="btn_select" class="btn2_letter9" style="left:886px; top:68px; width:119px; height:19px; ">
  396. <caption>전체/전체선택 취소</caption>
  397. <script type="javascript" ev:event="DOMActivate">
  398. <![CDATA[
  399. for(var liRow = grd_rsihinptlist.fixedRows; liRow < grd_rsihinptlist.rows ; liRow++)
  400. {
  401. if(grd_rsihinptlist.valueMatrix(liRow, grd_rsihinptlist.colRef("calccnfmyn")) == "N")
  402. {
  403. grd_rsihinptlist.valueMatrix(liRow, grd_rsihinptlist.colRef("calccnfmyn")) = "Y";
  404. if ( grd_rsihinptlist.valueMatrix(liRow, grd_rsihinptlist.colRef("precalccnfmyn")) == "N" ) {
  405. grd_rsihinptlist.valueMatrix(liRow, grd_rsihinptlist.colRef("calccnfmpsn")) = getUserInfo("userid");
  406. grd_rsihinptlist.valueMatrix(liRow, grd_rsihinptlist.colRef("calccnfmdd")) = model.getValue(ipt_calccnfmdd.attribute("ref"));
  407. grd_rsihinptlist.valueMatrix(liRow, grd_rsihinptlist.colRef("winprcsflag")) = "8";
  408. grd_rsihinptlist.rowStatus(liRow) = "2";
  409. } else {
  410. grd_rsihinptlist.rowStatus(liRow) = "0";
  411. }
  412. } else {
  413. grd_rsihinptlist.valueMatrix(liRow, grd_rsihinptlist.colRef("calccnfmyn")) = "N";
  414. if ( grd_rsihinptlist.valueMatrix(liRow, grd_rsihinptlist.colRef("precalccnfmyn")) == "Y" ) {
  415. grd_rsihinptlist.valueMatrix(liRow, grd_rsihinptlist.colRef("calccnfmpsn")) = "";
  416. grd_rsihinptlist.valueMatrix(liRow, grd_rsihinptlist.colRef("calccnfmdd")) = "";
  417. grd_rsihinptlist.valueMatrix(liRow, grd_rsihinptlist.colRef("winprcsflag")) = "";
  418. grd_rsihinptlist.rowStatus(liRow) = "2";
  419. } else {
  420. grd_rsihinptlist.rowStatus(liRow) = "0";
  421. }
  422. }
  423. }
  424. model.refresh();
  425. ]]>
  426. </script>
  427. </button>
  428. <caption id="caption5" style="left:995px; top:12px; width:10px; height:20px; font-weight:bold; vertical-align:middle; ">-</caption>
  429. <caption id="caption7" style="left:1045px; top:12px; width:10px; height:20px; font-weight:bold; vertical-align:middle; ">-</caption>
  430. <caption id="caption8" style="left:995px; top:42px; width:10px; height:20px; font-weight:bold; vertical-align:middle; ">-</caption>
  431. <caption id="caption9" style="left:1045px; top:42px; width:10px; height:20px; font-weight:bold; vertical-align:middle; ">-</caption>
  432. <caption id="caption10" class="tit_2" style="left:616px; top:71px; width:86px; height:13px; ">정산일자 :</caption>
  433. <input id="ipt_calccnfmdd" ref="/root/init/calccnfmdd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:703px; top:68px; width:97px; height:19px; text-align:center; "/>
  434. </group>
  435. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  436. <line id="line19" class="line_2" style="x1:0; y1:25; x2:1195; y2:25; "/>
  437. <line id="line22" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  438. <button id="btm_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  439. <caption>초기화</caption>
  440. <script type="javascript" ev:event="DOMActivate">
  441. <![CDATA[
  442. fInitialize();
  443. ]]>
  444. </script>
  445. </button>
  446. </group>
  447. </xhtml:body>
  448. </xhtml:html>