SMRSE01600_고정자산 반납 청구 접수.xrw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <grid>
  11. <rfchrtdmlist/>
  12. </grid>
  13. <chgnhistlist/>
  14. </main>
  15. <send>
  16. <instcd/>
  17. <instnm/>
  18. <deptcd/>
  19. <deptnm/>
  20. <goodflag/>
  21. <reqdd1/>
  22. <reqdd2/>
  23. <rtreqaprvyn/>
  24. <rfchcgmt_send>
  25. <instcd/>
  26. <fixasetcd/>
  27. </rfchcgmt_send>
  28. <goodflaghngnm/>
  29. <fixasetcd_search/>
  30. <fixasetnm/>
  31. </send>
  32. <init>
  33. <combo>
  34. <rtnconfirmyn>
  35. <label>승인</label>
  36. <value>Y</value>
  37. <label>미확인</label>
  38. <value>N</value>
  39. <label>부결</label>
  40. <value>R</value>
  41. </rtnconfirmyn>
  42. </combo>
  43. <goodflag>
  44. <label>-전 체-</label>
  45. <value/>
  46. <label>의료장비</label>
  47. <value>EQ</value>
  48. <label>일반비품</label>
  49. <value>GE</value>
  50. </goodflag>
  51. </init>
  52. <temp/>
  53. </root>
  54. </instance>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. fInitialize();
  58. ipt_rtreqaprvyn.value = 'Y';
  59. ]]>
  60. </script>
  61. <submission id="TRRSE01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid/rfchrtdmlist"/>
  62. <submission id="TXRSE01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/grid/rfchrtdmlist" resultref="/root/temp"/>
  63. <submission id="TRRFE00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfchcgmt_send" resultref="/root/main/chgnhistlist"/>
  64. </model>
  65. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  69. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  70. <script type="javascript">
  71. <![CDATA[
  72. function fInitialize()
  73. {
  74. model.resetInstanceNode("/root/send");
  75. misfGridInit(grd_rfchrtdmlist);
  76. misfGridInit(grd_chgnhistlist);
  77. rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
  78. //물품구분
  79. misfComboComCdListMulti("R0025,R0041","grd_rfchrtdmlist.goodflag,grd_chgnhistlist.updtflag");
  80. // addComboItem( "cmb_goodflag", "- 전 체 -", "", "above" );
  81. misfMsterDetailSet(grd_rfchrtdmlist, null, "TRRSE01501", "Y");
  82. // 기관코드 설정
  83. model.setValue(ipt_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  84. model.setValue(opt_instnm.attribute("ref"), getUserInfo("dutplceinstnm"));
  85. //날자 설정
  86. //model.setValue("/root/send/reqdd1", getCurrentDate());
  87. // 현재 날짜 기본 입력(6개월 간격 설정)
  88. // var reqdate = getCurrentDate().toDate("YYYYMMDD");
  89. // model.setValue(ipt_reqdd1.attribute("ref"), reqdate.getAddDate(-6, "M").getDateFormat("YYYYMMDD") );
  90. // model.setValue(ipt_reqdd2.attribute("ref"), getCurrentDate());
  91. // 현재 날짜 기본 입력(1개월 간격 설정)
  92. var reqdate = getCurrentDate();
  93. var cvtdate = reqdate.toDate("YYYYMMDD");
  94. model.setValue(ipt_reqdd1.attribute("ref"), reqdate.substr(0,6)+"01" );
  95. model.setValue(ipt_reqdd2.attribute("ref"), reqdate.substr(0,6)+cvtdate.getMonthDay() );
  96. //디폴트
  97. model.setValue(cmb_goodflag.attribute("ref"),"GE");
  98. //cmb_goodflag.select(2);
  99. model.refresh();
  100. }
  101. function fupdateCheckSave()
  102. {
  103. var updtdata = getGridUpdateData(grd_rfchrtdmlist);
  104. if (updtdata == "")
  105. {
  106. messageBox("저장 하려는 데이터가","I004");
  107. return;
  108. }
  109. misfSave("TXRSE01501");
  110. btn_search.dispatch("DOMActivate");
  111. }
  112. ]]>
  113. </script>
  114. </xhtml:head>
  115. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  116. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  117. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">고정자산 반납 청구 접수</caption>
  118. </group>
  119. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195; height:744px; ">
  120. <line id="line1" class="line_1" style="x1:0px; y1:431px; x2:1194px; y2:431px; "/>
  121. <datagrid id="grd_chgnhistlist" nodeset="/root/main/chgnhistlist" caption="순번^자산^자산^변동일자^변동구분^변경부서^변경부서^변경설치장소*^변경설치장소*^취득구분^외화액^단위^금액^적요^거래처코드^기관코드^^caption1^^변경전사용부서코드^변경전사용부서이름" colsep="^" colwidth="37, 70, 123, 100, 73, 91, 98, 88, 89, 100, 100, 153, 90, 93, 100, 100, 73, 100, 53, 120, 120" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" navindex="14" style="left:0px; top:436px; width:1194px; height:294px; ">
  122. <col ref="updtseq" format="999999-9999999" style="text-align:center; "/>
  123. <col ref="fixasetcd" _key="true" style="text-align:center; "/>
  124. <col ref="goodflaghngnm"/>
  125. <col class="input_essential" disabled="true" ref="updtdd" type="inputdate" format="yyyy-mm-dd" maxlength="8" _key="true"/>
  126. <col class="input_essential" disabled="true" ref="updtflag" type="combo" _key="true">
  127. <choices>
  128. <itemset>
  129. <label/>
  130. <value/>
  131. </itemset>
  132. </choices>
  133. </col>
  134. <col class="input_essential" disabled="true" ref="upddeptcd" type="inputbutton" _key="true" style="text-align:center; "/>
  135. <col ref="upddeptnm" style="text-align:center; "/>
  136. <col class="input_essential" disabled="true" ref="chnginstallplcecd" type="inputbutton" maxlength="12" _key="true" style="text-align:center; "/>
  137. <col disabled="true" ref="installplcenm" style="text-align:center; "/>
  138. <col ref="possnflagcd" type="combo" visibility="hidden">
  139. <choices>
  140. <itemset nodeset="/root/init/possnflagcd">
  141. <label ref="label"/>
  142. <value ref="value"/>
  143. </itemset>
  144. </choices>
  145. </col>
  146. <col ref="forgncurncyamt" type="input" visibility="hidden" format="#,###" maxlength="12" style="text-align:right; "/>
  147. <col ref="curncyunit" type="combo" visibility="hidden" maxlength="2">
  148. <choices>
  149. <itemset>
  150. <label/>
  151. <value/>
  152. </itemset>
  153. </choices>
  154. </col>
  155. <col disabled="true" ref="fixasetamt" type="input" format="#,###" maxlength="12" style="text-align:right; "/>
  156. <col disabled="true" ref="mainrec" type="input" maxlength="60"/>
  157. <col ref="custcd" visibility="hidden"/>
  158. <col ref="instcd" visibility="hidden"/>
  159. <col ref="rtnreqdeptcd" visibility="hidden"/>
  160. <col ref="rtnreqdd" visibility="hidden"/>
  161. <col ref="rtnreqseq" visibility="hidden"/>
  162. <col ref="premngtdeptcd"/>
  163. <col ref="premngtdeptnm"/>
  164. <script type="javascript" ev:event="onbuttonclick">
  165. <![CDATA[
  166. // if (grd_chgnhistlist.col == grd_chgnhistlist.colRef("upddeptcd"))//변경부서 버튼을 눌렀을 때
  167. // {
  168. // misfOpenPopUpList("02", grd_chgnhistlist,"","upddeptcd,upddeptnm");
  169. // rszfOpenPopUpListByWndName(grd_chgnhistlist,"","upddeptcd,upddeptnm","PPRAC00700","instcd","cmb_instcd");
  170. // model.refresh();
  171. // grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("chnginstallplcecd")) = grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("upddeptcd"));
  172. // grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("installplcenm")) = grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("upddeptnm"));
  173. // grd_chgnhistlist.refresh();
  174. //
  175. // }else if (grd_chgnhistlist.col == grd_chgnhistlist.colRef("chnginstallplcecd"))//변경설치 버튼을 눌렀을 때
  176. // {
  177. // rszfOpenPopUpListByWndName(grd_chgnhistlist,"","chnginstallplcecd,installplcenm","PPRAC00700","instcd","cmb_instcd");
  178. // model.refresh();
  179. // }
  180. ]]>
  181. </script>
  182. <script type="javascript" ev:event="xforms-value-changed">
  183. <![CDATA[
  184. // if(grd_chgnhistlist.col == grd_chgnhistlist.colRef("upddeptcd"))//변경부서 버튼을 눌렀을 때
  185. // {
  186. // misfValidationCheck("02", "", "upddeptcd,upddeptnm" );
  187. // grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("chnginstallplcecd")) = grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("upddeptcd"));
  188. // grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("installplcenm")) = grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("upddeptnm"));
  189. //
  190. // }else if(grd_chgnhistlist.col == grd_chgnhistlist.colRef("chnginstallplcecd") && grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("chnginstallplcecd")).length> 0)
  191. // {
  192. // rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm",
  193. // "deptcd," + grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("chnginstallplcecd")), "", "chnginstallplcecd,installplcenm",
  194. // grd_chgnhistlist, "PPRAC00700", "","");
  195. // model.refresh();
  196. // }
  197. ]]>
  198. </script>
  199. <script type="javascript" ev:event="onaftersort">
  200. <![CDATA[
  201. grd_chgnhistlist.gridToInstance();
  202. ]]>
  203. </script>
  204. <script type="javascript" ev:event="onrowchanged">
  205. <![CDATA[
  206. if( grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("rtnreqseq")) != "" )
  207. {
  208. btn_delrow.disabled = true;
  209. }else{
  210. btn_delrow.disabled = false;
  211. }
  212. ]]>
  213. </script>
  214. </datagrid>
  215. <caption id="caption4" class="tit_2" style="left:5px; top:416px; width:121px; height:13px; ">자산변동이력</caption>
  216. <button id="btn_delrow" class="btn2_letter3" navindex="13" visibility="hidden" style="left:1135px; top:411px; width:53px; height:19px; ">
  217. <caption>행삭제</caption>
  218. <script type="javascript" ev:event="DOMActivate">
  219. <![CDATA[
  220. misfGridIUD(grd_chgnhistlist, "D");
  221. ]]>
  222. </script>
  223. </button>
  224. <button id="btn_addrow" class="btn2_letter3" navindex="12" visibility="hidden" style="left:1079px; top:411px; width:53px; height:19px; ">
  225. <caption>행추가</caption>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. //if(!isRequiredControls("ipt_fixasetcd")) return;
  229. misfGridIUD(grd_chgnhistlist, "A");
  230. var cur_row = grd_chgnhistlist.row;
  231. //행추가를 누를시 기간코드 값을 자동으로 저장한다.
  232. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/instcd",ipt_instcd.value);
  233. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/fixasetcd",ipt_fixasetcd.value);
  234. // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/upddeptcd", getUserInfo("dutplcecd"));
  235. // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/upddeptnm", getUserInfo("dutplcenm"));
  236. // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/chnginstallplcecd", getUserInfo("dutplcecd"));
  237. // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/installplcenm", getUserInfo("dutplcenm"));
  238. var sBaseDate = getCurrentDate();
  239. // 행추가를 누를시 날짜를 오늘 날짜로 자동 세팅 한다
  240. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/updtdd",sBaseDate);
  241. ]]>
  242. </script>
  243. </button>
  244. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:65px; vertical-align:top; ">
  245. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:65px; "/>
  246. <button id="btn_search" class="btn1_letter2" navindex="9" style="left:1122px; top:21px; width:56px; height:22px; ">
  247. <caption>조회</caption>
  248. <script type="javascript" ev:event="DOMActivate">
  249. <![CDATA[
  250. if(!isRequiredControls("ipt_instcd"))return;
  251. if(!isRequiredControls("ipt_reqdd1"))return;
  252. if(!isRequiredControls("ipt_reqdd2"))return;
  253. misfMsterDetailRetrieve();
  254. //misfSetReadOnlyCol(grd_rfchrtdmlist, "goodflag,rtnconfirmyn", true);
  255. ]]>
  256. </script>
  257. </button>
  258. <line id="line13" class="line_4" style="x1:1099px; y1:8px; x2:1099px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
  259. <caption id="cap_instcd" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
  260. <output id="opt_instnm" ref="/root/send/instnm" class="output_fix" style="left:105px; top:10px; width:130px; height:19px; text-align:center; "/>
  261. <input id="ipt_instcd" ref="/root/send/instcd" visibility="hidden" style="left:180px; top:10px; width:55px; height:19px; "/>
  262. <input id="ipt_deptcd" ref="/root/send/deptcd" navindex="5" calss="input_s_essential" style="left:701px; top:10px; width:100px; height:19px; text-align:center; ">
  263. <script type="javascript" ev:event="xforms-value-changed">
  264. <![CDATA[
  265. if(ipt_deptcd.value != '')
  266. {
  267. misfValidationCheck("02", "", "deptcd,deptnm" );
  268. }else{
  269. ipt_deptnm.value = "";
  270. }
  271. model.refresh();
  272. ]]>
  273. </script>
  274. </input>
  275. <input id="ipt_deptnm" ref="/root/send/deptnm" navindex="6" style="left:825px; top:10px; width:200px; height:19px; text-align:center; ">
  276. <script type="javascript" ev:event="xforms-value-changed">
  277. <![CDATA[
  278. if(ipt_deptnm.value != '')
  279. {
  280. misfValidationCheck("02", "", "deptcd,deptnm" );
  281. }else{
  282. ipt_deptcd.value = "";
  283. }
  284. model.refresh();
  285. ]]>
  286. </script>
  287. </input>
  288. <caption id="caption1" class="search_name" style="left:265px; top:38px; width:88px; height:17px; text-align:justify; ">물 품 명 :</caption>
  289. <input id="ipt_goodflaghngnm" ref="/root/send/goodflaghngnm" class="input_fix" navindex="4" appearance="input" style="left:355px; top:38px; width:220px; height:19px; "/>
  290. <caption id="caption3" class="search_name" style="left:609px; top:38px; width:86px; height:17px; text-align:justify; ">자산코드 :</caption>
  291. <input id="ipt_fixasetcd" ref="/root/send/fixasetcd_search" class="input_search" navindex="7" visibility="visible" style="left:701px; top:38px; width:100px; height:19px; ">
  292. <script type="javascript" ev:event="xforms-value-changed">
  293. <![CDATA[
  294. if(ipt_fixasetcd.value != "")
  295. {
  296. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "instcd,requirementcd,requirementnm,goodflag",
  297. ipt_instcd.value +",fixasetcd," + ipt_fixasetcd.value +"," + cmb_goodflag.value,
  298. "", "fixasetcd_search,fixasetnm", ipt_fixasetcd, "SPRSD00240",
  299. "instcd,goodflag","ipt_instcd,cmb_goodflag");
  300. }else{
  301. ipt_fixasetnm.value = '';
  302. }
  303. ipt_fixasetcd.refresh();
  304. ipt_fixasetnm.refresh();
  305. ]]>
  306. </script>
  307. </input>
  308. <button id="btn_fixasetcd" class="icon_search" navindex="-1" style="left:804px; top:38px; width:16px; height:16px; ">
  309. <caption/>
  310. <script type="javascript" ev:event="DOMActivate">
  311. <![CDATA[
  312. rszfOpenPopUpListByWndName(ipt_fixasetcd, "", "fixasetcd_search,fixasetnm","SPRSD00240","instcd,goodflag","ipt_instcd,cmb_goodflag");
  313. ipt_fixasetcd.refresh();
  314. ipt_fixasetnm.refresh();
  315. ]]>
  316. </script>
  317. </button>
  318. <input id="ipt_fixasetnm" ref="/root/send/fixasetnm" class="input_search" disabled="true" navindex="8" style="left:825px; top:38px; width:200px; height:19px; "/>
  319. <caption id="cap_deptcd" class="search_name" style="left:609px; top:10px; width:86px; height:17px; ">청구부서 :</caption>
  320. <button id="btn_deptcd" class="icon_search" navindex="-1" style="left:804px; top:10px; width:16px; height:16px; ">
  321. <caption/>
  322. <script type="javascript" ev:event="DOMActivate">
  323. <![CDATA[
  324. misfOpenPopUpList("02", ipt_deptcd,"", "deptcd,deptnm") ;
  325. model.refresh();
  326. ]]>
  327. </script>
  328. </button>
  329. <select1 id="cmb_goodflag" ref="/root/send/goodflag" navindex="1" appearance="minimal" style="left:105px; top:38px; width:130px; height:19px; text-align:center; ">
  330. <choices>
  331. <itemset nodeset="/root/init/goodflag">
  332. <label ref="label"/>
  333. <value ref="value"/>
  334. </itemset>
  335. </choices>
  336. </select1>
  337. <caption id="cap_goodflag" class="search_name" style="left:15px; top:38px; width:86px; height:17px; ">물품구분 :</caption>
  338. <input id="ipt_reqdd2" ref="/root/send/reqdd2" class="input_s_essential" navindex="3" inputtype="date" style="left:475px; top:10px; width:100px; height:19px; text-align:center; "/>
  339. <caption id="caption12" style="left:459px; top:10px; width:20px; height:20px; font-weight:bold; ">~</caption>
  340. <input id="ipt_reqdd1" ref="/root/send/reqdd1" class="input_s_essential" navindex="2" inputtype="date" style="left:355px; top:10px; width:100px; height:19px; text-align:center; "/>
  341. <caption id="cap_reqdd1" class="search_name" style="left:265px; top:10px; width:86px; height:17px; ">의뢰일자 :</caption>
  342. <input id="ipt_rtreqaprvyn" ref="/root/send/rtreqaprvyn" visibility="hidden" style="left:1070px; top:45px; width:25px; height:19px; "/>
  343. </group>
  344. <line id="line2" class="line_1" style="x1:0px; y1:105px; x2:1194px; y2:105px; "/>
  345. <caption id="caption19" style="left:85px; top:355px; width:100px; height:20px; vertical-align:middle; "/>
  346. <caption id="caption24" class="tit_2" style="left:5px; top:90px; width:157px; height:14px; ">반납 청구 List</caption>
  347. <datagrid id="grd_rfchrtdmlist" nodeset="/root/main/grid/rfchrtdmlist" dragmode="false" caption="반납청구일자^물품구분^자산코드^자산명^모델^규격^구입일자^사용부서^반납사유^반납청구자^반납청구자^반납확인일자^확인부서^반납확인자^반납확인자^반납확인" colsep="^" colwidth="80, 66, 90, 166, 85, 100, 71, 90, 146, 55, 80, 90, 90, 60, 65, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="listbox" tooltip="true" navindex="11" style="left:0px; top:111px; width:1195px; height:294px; ">
  348. <col ref="rtnreqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  349. <col disabled="true" ref="goodflag" type="combo" visibility="hidden" style="text-align:center; ">
  350. <choices>
  351. <itemset>
  352. <label/>
  353. <value/>
  354. </itemset>
  355. </choices>
  356. </col>
  357. <col ref="fixasetcd" style="text-align:center; "/>
  358. <col ref="goodflaghngnm" style="text-align:center; "/>
  359. <col ref="goodmodel" style="text-align:center; "/>
  360. <col ref="goodspec" style="text-align:center; "/>
  361. <col ref="windd" style="text-align:center; "/>
  362. <col ref="rtnreqdeptnm" style="text-align:center; "/>
  363. <col ref="cmt"/>
  364. <col ref="rtnreqpsn" visibility="hidden" style="text-align:center; "/>
  365. <col ref="rtnreqpsnnm" style="text-align:center; "/>
  366. <col ref="rtnconfirmdd" visibility="visible" format="yyyy-mm-dd" style="text-align:center; "/>
  367. <col ref="rtnconfirmdeptnm" visibility="hidden" style="text-align:center; "/>
  368. <col ref="rtnconfirmpsnid" visibility="hidden" style="text-align:center; "/>
  369. <col ref="rtnconfirmpsnnm" visibility="visible" style="text-align:center; "/>
  370. <col ref="rtnconfirmyn" type="combo" style="left:1136px; top:23px; width:54px; height:23px; color:#800000; text-align:center; background-color:#ffff99; ">
  371. <choices>
  372. <itemset nodeset="/root/init/combo/rtnconfirmyn">
  373. <label ref="label"/>
  374. <value ref="value"/>
  375. </itemset>
  376. </choices>
  377. </col>
  378. <col ref="instcd" visibility="hidden"/>
  379. <col ref="rtnreqdeptcd" visibility="hidden"/>
  380. <col ref="rtnreqseq" visibility="hidden"/>
  381. <col ref="rtnconfirmdeptcd" visibility="hidden"/>
  382. <col ref="mainrec" visibility="hidden"/>
  383. <col ref="rtnconfirmyn1" visibility="hidden"/>
  384. <col ref="updtseq" visibility="hidden"/>
  385. <col checkvalue="Y,N" ref="rtreqaprvyn" type="checkbox" visibility="hidden"/>
  386. <col ref="rtreqaprvdd" visibility="hidden" format="yyyy-mm-dd"/>
  387. <col ref="rtreqaprvpsn" visibility="hidden" style="text-align:center; "/>
  388. <col ref="rtreqaprvpsnnm" visibility="hidden" style="text-align:center; "/>
  389. <script type="javascript" ev:event="onmousemove">
  390. <![CDATA[
  391. grd_rfchrtdmlist.dispatch("onmouseup");
  392. ]]>
  393. </script>
  394. <script type="javascript" ev:event="xforms-value-changed">
  395. <![CDATA[
  396. if(grd_rfchrtdmlist.colRef("rtnconfirmyn") == grd_rfchrtdmlist.col)
  397. {
  398. if(grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmyn")) == 'Y')
  399. {
  400. grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdd")) = getCurrentDate();
  401. /* [2008.01.19 HBH]
  402. 비품 반품방이 따로 있다 ... "4081400000","재고물품"
  403. 기준정보 신청중
  404. */
  405. grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptcd")) = "4081400000";
  406. grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptnm")) = "재고물품";
  407. //grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptcd")) = getUserInfo("dutplcecd");
  408. //grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptnm")) = getUserInfo("dutplcenm");
  409. grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmpsnid")) = getUserInfo("userid");
  410. grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmpsnnm")) = getUserInfo("usernm");
  411. grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("mainrec")) = "부서반납확인" ;
  412. /* 자산변동이력에 추가 */
  413. misfGridIUD(grd_chgnhistlist, "A");
  414. var cur_row = grd_chgnhistlist.row;
  415. //승인 선택시 기간코드 값을 자동으로 저장한다.
  416. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/instcd", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("instcd")) );
  417. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/fixasetcd", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("fixasetcd")) );
  418. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/goodflaghngnm", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("goodflaghngnm")) );
  419. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/updtflag", "0" );
  420. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/upddeptcd", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptcd")) );
  421. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/upddeptnm", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptnm")) );
  422. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/chnginstallplcecd", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptcd")) );
  423. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/installplcenm", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptnm")) );
  424. //자산변동이력에 변경전/후 부서컬럼 추가후 추가가 코딩
  425. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/premngtdeptnm", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnreqdeptnm")) );
  426. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/premngtdeptcd", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnreqdeptcd")) );
  427. var sBaseDate = getCurrentDate();
  428. // 승인선택시 날짜를 오늘 날짜로 자동 세팅 한다
  429. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/updtdd",sBaseDate);
  430. }
  431. if(grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmyn")) == grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmyn1")) )
  432. {
  433. grd_rfchrtdmlist.rowStatus(grd_rfchrtdmlist.row) = 0;
  434. grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdd")) = "";
  435. grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptcd")) = "";
  436. grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptnm")) = "";
  437. grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmpsnid")) = "";
  438. grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmpsnnm")) = "";
  439. grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("mainrec")) = "";
  440. }
  441. }
  442. // if(grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row,grd_rfchrtdmlist.colRef("rtnconfirmyn")) == "Y")
  443. // {
  444. // misfGridIUD(grd_chgnhistlist, "A");
  445. //
  446. // var cur_row = grd_chgnhistlist.row;
  447. //
  448. // //승인 선택시 기간코드 값을 자동으로 저장한다.
  449. // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/instcd", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("instcd")) );
  450. // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/fixasetcd", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("fixasetcd")) );
  451. //
  452. // var sBaseDate = getCurrentDate();
  453. //
  454. // // 더블클릭시 날짜를 오늘 날짜로 자동 세팅 한다
  455. // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/updtdd",sBaseDate);
  456. // }
  457. ]]>
  458. </script>
  459. <script type="javascript" ev:event="onrowchanged">
  460. <![CDATA[
  461. misfGridInit(grd_chgnhistlist);
  462. grd_rfchrtdmlist.dispatch("onmouseup");
  463. model.copyNode("/root/send/rfchcgmt_send", "/root/main/grid/rfchrtdmlist["+grd_rfchrtdmlist.row + "]");
  464. submit("TRRFE00201");
  465. if(grd_chgnhistlist.rows != grd_chgnhistlist.fixedRows)
  466. {
  467. for(var i = grd_chgnhistlist.fixedRows; i < grd_chgnhistlist.rows; i++ )
  468. {
  469. if(grd_chgnhistlist.valueMatrix(i, grd_chgnhistlist.colRef("rtnreqseq")) != "")
  470. {
  471. misfSetReadOnlyCol(grd_chgnhistlist, "updtfalg,updtdd,updtflag,upddeptcd,forgncurncyamt,chnginstallplcecd,possnflagcd,curncyunit,fixasetamt,mainrec", true, i);
  472. }else{
  473. misfSetReadOnlyCol(grd_chgnhistlist, "updtfalg,updtdd", true, i);
  474. }
  475. }
  476. grd_chgnhistlist.row = grd_chgnhistlist.fixedRows;
  477. grd_chgnhistlist.dispatch("onrowchanged");
  478. grd_chgnhistlist.select(grd_chgnhistlist.fixedRows, grd_chgnhistlist.colRef("goodflaghngnm")) = true;
  479. }
  480. model.refresh();
  481. ]]>
  482. </script>
  483. </datagrid>
  484. <button id="btn_excel" class="btn5_letter5" navindex="10" style="left:1115px; top:80px; width:75px; height:19px; ">
  485. <caption>Excel 저장</caption>
  486. <script type="javascript" ev:event="DOMActivate">
  487. <![CDATA[
  488. if( grd_rfchrtdmlist.rows - grd_rfchrtdmlist.fixedRows > 0 ) {
  489. var fileName = "반납청구List_" + getCurrentDate();
  490. var fileName = window.fileDialog("save", ",", false, fileName, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  491. grd_rfchrtdmlist.saveExcel(fileName, "Sheet");
  492. } else {
  493. messageBox("저장 데이터가","I004");
  494. }
  495. ]]>
  496. </script>
  497. </button>
  498. </group>
  499. <group id="group4" style="left:0px; top:12px; width:1195px; height:27px; ">
  500. <button id="button27" class="btn6_letter2" navindex="15" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  501. <caption>출력</caption>
  502. </button>
  503. <button id="btn_init" class="btn4_letter3" navindex="17" style="left:1127px; top:3px; width:68px; height:22px; ">
  504. <caption>초기화</caption>
  505. <script type="javascript" ev:event="DOMActivate">
  506. <![CDATA[
  507. fInitialize();
  508. ]]>
  509. </script>
  510. </button>
  511. <line id="line9" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  512. <button id="btn_save" class="btn4_letter2" navindex="16" style="left:1069px; top:3px; width:56px; height:22px; ">
  513. <caption>저장</caption>
  514. <script type="javascript" ev:event="DOMActivate">
  515. <![CDATA[
  516. if(messageBox("", "Q002") == "6")
  517. {
  518. fupdateCheckSave();
  519. }
  520. ]]>
  521. </script>
  522. </button>
  523. </group>
  524. </xhtml:body>
  525. </xhtml:html>