SMRFE00300_자산기간별변동사항조회.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <list>
  11. <chgnhistinfo>
  12. <chgnhistlist/>
  13. </chgnhistinfo>
  14. <asetmoveinfo>
  15. <asetmovelist/>
  16. </asetmoveinfo>
  17. </list>
  18. </main>
  19. <send>
  20. <search>
  21. <instcd/>
  22. <goodflag/>
  23. <updtdd1/>
  24. <updtdd2/>
  25. <updtflag/>
  26. <deptcd/>
  27. <deptnm/>
  28. <installplcecd/>
  29. <installplcenm/>
  30. <fixasetcd/>
  31. <goodflaghngnm/>
  32. </search>
  33. <prntsearch>
  34. <instcd/>
  35. <goodflag/>
  36. <fixasetcd/>
  37. <goodflaghngnm/>
  38. </prntsearch>
  39. </send>
  40. <init>
  41. <possnflagcd>
  42. <label>내자</label>
  43. <value>H</value>
  44. <label>외자</label>
  45. <value>F</value>
  46. </possnflagcd>
  47. <goodflag>
  48. <label>일반비품</label>
  49. <value>GE</value>
  50. <label>의료장비</label>
  51. <value>EQ</value>
  52. </goodflag>
  53. </init>
  54. <temp/>
  55. </root>
  56. </instance>
  57. <submission id="TRRFE00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/chgnhistinfo/chgnhistlist"/>
  58. <submission id="TRRFE00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prntsearch" resultref="/root/main/list/asetmoveinfo/asetmovelist"/>
  59. </model>
  60. <script type="javascript" ev:event="xforms-ready">
  61. <![CDATA[
  62. //화면 Control을 초기화한다
  63. fInitialize();
  64. ]]>
  65. </script>
  66. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  69. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  72. <script type="javascript">
  73. <![CDATA[
  74. function fInitialize()
  75. {
  76. misfGridInit(grd_rfchcgmtlist);
  77. rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
  78. // misfComboComCdListMulti("Z0007", "cmb_instcd"); // 기관코드
  79. // misfGridComboComCdList("R0041", grd_chgnhistlist, "updtflag");
  80. // misfGridComboComCdList("R0047", grd_chgnhistlist, "curncyunit");
  81. misfComboComCdListMulti("Z0007,R0044,R0044,R0047",
  82. "cmb_instcd,cmb_updtflag,grd_rfchcgmtlist.updtflag,grd_rfchcgmtlist.curncyunit");
  83. addComboItem( "cmb_updtflag", "- 전 체 -", "", "above");
  84. cmb_goodflag.select(0);
  85. // 대분류 코드 콤보 설정.
  86. //rszfLMSComboList(cmb_goodflag_search.value, "", "", "cmb_lrgcd_search", "", "L", "Y") ;
  87. // 현재 날짜 기본 입력(6개월 간격 설정)
  88. var reqdate = getCurrentDate().toDate("YYYYMMDD");
  89. model.setValue(ipt_updtdd1.attribute("ref"), reqdate.getAddDate(-6, "M").getDateFormat("YYYYMMDD") );
  90. model.setValue(ipt_updtdd2.attribute("ref"), getCurrentDate());
  91. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd")); // 기관 설정
  92. misfMsterDetailSet(grd_rfchcgmtlist, null, "TRRFE00201", "N");
  93. model.refresh();
  94. }
  95. ]]>
  96. </script>
  97. </xhtml:head>
  98. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  99. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  100. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">자산기간별 변동사항 조회</caption>
  101. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  102. </group>
  103. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  104. <line id="line1" class="line_1" style="x1:0px; y1:116px; x2:1194; y2:116px; "/>
  105. <group id="group4" style="left:0px; top:10px; width:1194px; height:81px; vertical-align:top; ">
  106. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194; height:81 px; background-color:#fffbf2; border-color:#ffd799; "/>
  107. <caption id="cap_goodflag" class="search_name" style="left:309px; top:9px; width:86px; height:17px; ">자산구분 :</caption>
  108. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1123; top:30; width:56px; height:22px; text-align:left; ">
  109. <caption>조회</caption>
  110. <script type="javascript" ev:event="DOMActivate">
  111. <![CDATA[
  112. if(!isRequiredControls("cmb_instcd")) return;
  113. if(!isRequiredControls("cmb_goodflag")) return;
  114. if(!isRequiredControls("ipt_updtdd1")) return;
  115. if(!isRequiredControls("ipt_updtdd2")) return;
  116. submit("TRRFE00201");
  117. ]]>
  118. </script>
  119. </button>
  120. <caption id="cap_fixasetcd" class="search_name" style="left:15px; top:57px; width:89px; height:17px; ">자산코드 :</caption>
  121. <line id="line3" class="line_4" style="top:54; x1:1107; y1:8; x2:1107; y2:75; "/>
  122. <select1 id="cmb_goodflag" ref="/root/send/search/goodflag" class="combo_s_essential" appearance="minimal" style="left:399px; top:8px; width:171px; height:19px; text-align:center; ">
  123. <choices>
  124. <itemset nodeset="/root/init/goodflag">
  125. <label ref="label"/>
  126. <value ref="value"/>
  127. </itemset>
  128. </choices>
  129. <script type="javascript" ev:event="xforms-value-changed">
  130. <![CDATA[
  131. ipt_fixasetcd.value = "";
  132. ipt_fixasetnm.value = "";
  133. ]]>
  134. </script>
  135. </select1>
  136. <caption id="cap_updtflag" class="search_name" style="left:15px; top:33px; width:86px; height:17px; ">변동구분 :</caption>
  137. <caption id="cap_updtdd1" class="search_name" style="left:703px; top:9px; width:86px; height:17px; ">변동일자 :</caption>
  138. <caption id="cap_installplcecd" class="search_name" style="left:703px; top:33px; width:88px; height:17px; ">설치장소 :</caption>
  139. <caption id="cap_deptcd" class="search_name" style="left:309px; top:33px; width:89px; height:17px; ">사용부서 :</caption>
  140. <input id="ipt_installplcenm" ref="/root/send/search/installplcenm" class="input_search" navindex="6" style="left:923px; top:32px; width:168px; height:19px; text-align:center; ">
  141. <script type="javascript" ev:event="xforms-value-changed">
  142. <![CDATA[
  143. if(ipt_installplcenm.value == ""){
  144. ipt_installplcecd.value = "";
  145. }else {
  146. misfValidationCheck("02", "", "installplcecd,installplcenm");
  147. }
  148. model.refresh();
  149. ]]>
  150. </script>
  151. </input>
  152. <input id="ipt_installplcecd" ref="/root/send/search/installplcecd" class="input_search" navindex="6" style="left:793px; top:32px; width:106px; height:19px; text-align:center; ">
  153. <script type="javascript" ev:event="xforms-value-changed">
  154. <![CDATA[
  155. if(ipt_installplcecd.value == ""){
  156. ipt_installplcenm.value = "";
  157. }else {
  158. misfValidationCheck("02", "", "installplcecd,installplcenm");
  159. }
  160. model.refresh();
  161. ]]>
  162. </script>
  163. </input>
  164. <button id="btn_fixasetcd" class="icon_search" style="left:214px; top:58px; width:16px; height:16px; ">
  165. <caption/>
  166. <script type="javascript" ev:event="DOMActivate">
  167. <![CDATA[
  168. // ,cntrdeptcd,installplcenm,possnamt,goodspec,mngtno,possndd,installplcecd,depthngnm
  169. var temp = "fixasetcd,goodflaghngnm";
  170. rszfOpenPopUpListByWndName(ipt_fixasetcd,"", temp, "SPRSD00240","instcd,goodflag","cmb_instcd,cmb_goodflag");
  171. model.refresh();
  172. ]]>
  173. </script>
  174. </button>
  175. <input id="ipt_fixasetnm" ref="/root/send/search/goodflaghngnm" class="input_search" navindex="6" style="left:233px; top:56px; width:272px; height:19px; text-align:center; ">
  176. <script type="javascript" ev:event="xforms-value-changed">
  177. <![CDATA[
  178. if(ipt_fixasetnm.value != "")
  179. {
  180. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "requirementcd,instcd,requirementnm",
  181. "goodflaghngnm," + cmb_instcd.value + "," + ipt_fixasetnm.value, "", "fixasetcd,goodflaghngnm",
  182. ipt_fixasetnm, "SPRSD00240_고정자산코드검색HELP", "instcd,goodflag","cmb_instcd,cmb_goodflag");
  183. }else{
  184. ipt_fixasetcd.value = "";
  185. }
  186. model.refresh();
  187. ]]>
  188. </script>
  189. </input>
  190. <input id="ipt_fixasetcd" ref="/root/send/search/fixasetcd" class="input_search" navindex="6" style="left:104px; top:56px; width:106px; height:19px; text-align:center; ">
  191. <script type="javascript" ev:event="xforms-value-changed">
  192. <![CDATA[
  193. if(ipt_fixasetcd.value != "")
  194. {
  195. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "requirementcd,instcd,requirementnm",
  196. "fixasetcd," + cmb_instcd.value + "," + ipt_fixasetcd.value, "", "fixasetcd,goodflaghngnm",
  197. ipt_fixasetcd, "SPRSD00240_고정자산코드검색HELP", "instcd,goodflag","cmb_instcd,cmb_goodflag");
  198. }else{
  199. ipt_fixasetnm.value = "";
  200. }
  201. model.refresh();
  202. ]]>
  203. </script>
  204. </input>
  205. <select1 id="cmb_updtflag" ref="/root/send/search/updtflag" class="combo_search" appearance="minimal" style="left:104px; top:32px; width:171px; height:19px; text-align:center; ">
  206. <choices>
  207. <itemset>
  208. <label/>
  209. <value/>
  210. </itemset>
  211. </choices>
  212. </select1>
  213. <input id="ipt_deptnm" ref="/root/send/search/deptnm" class="input_search" navindex="6" style="left:528px; top:32px; width:147px; height:19px; text-align:center; ">
  214. <script type="javascript" ev:event="xforms-value-changed">
  215. <![CDATA[
  216. if(ipt_deptnm.value == ""){
  217. ipt_deptcd.value = "";
  218. }else {
  219. misfValidationCheck("02", "", "deptcd,deptnm");
  220. }
  221. model.refresh();
  222. ]]>
  223. </script>
  224. </input>
  225. <input id="ipt_deptcd" ref="/root/send/search/deptcd" class="input_search" navindex="6" style="left:399px; top:32px; width:106px; height:19px; text-align:center; ">
  226. <script type="javascript" ev:event="xforms-value-changed">
  227. <![CDATA[
  228. if(ipt_deptcd.value == ""){
  229. ipt_deptnm.value = "";
  230. }else {
  231. misfValidationCheck("02", "", "deptcd,deptnm");
  232. }
  233. model.refresh();
  234. ]]>
  235. </script>
  236. </input>
  237. <input id="ipt_updtdd1" ref="/root/send/search/updtdd1" class="input_s_essential" inputtype="date" style="left:794px; top:8px; width:100px; height:19px; text-align:center; "/>
  238. <input id="ipt_updtdd2" ref="/root/send/search/updtdd2" class="input_s_essential" inputtype="date" style="left:916px; top:8px; width:100px; height:19px; text-align:center; "/>
  239. <caption id="caption16" style="left:899px; top:9px; width:17px; height:20px; vertical-align:middle; ">~</caption>
  240. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  241. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_s_essential" appearance="minimal" style="left:104px; top:8px; width:171px; height:19px; text-align:center; ">
  242. <choices>
  243. <itemset>
  244. <label/>
  245. <value/>
  246. </itemset>
  247. </choices>
  248. </select1>
  249. <button id="btn_deptcd" class="icon_search" style="left:509px; top:34px; width:16px; height:16px; ">
  250. <caption/>
  251. <script type="javascript" ev:event="DOMActivate">
  252. <![CDATA[
  253. misfOpenPopUpList("02", ipt_deptcd,"","deptcd,deptnm");
  254. model.refresh();
  255. ]]>
  256. </script>
  257. </button>
  258. <button id="btn_installplcecd" class="icon_search" style="left:903px; top:33px; width:16px; height:16px; ">
  259. <caption/>
  260. <script type="javascript" ev:event="DOMActivate">
  261. <![CDATA[
  262. misfOpenPopUpList("02", ipt_installplcecd,"","installplcecd,installplcenm");
  263. model.refresh();
  264. ]]>
  265. </script>
  266. </button>
  267. </group>
  268. <caption id="caption21" class="tit_2" style="left:5px; top:101px; width:131px; height:14px; ">변동사항이력List</caption>
  269. <button id="btn_excel" class="btn2_letter4" style="left:1128px; top:96px; width:64px; height:19px; ">
  270. <caption>엑셀저장</caption>
  271. <script type="javascript" ev:event="DOMActivate">
  272. <![CDATA[
  273. var fileName = window.fileDialog ("save", ",", false, "자산변동사항이력List", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  274. if (fileName != "")
  275. {
  276. grd_rfchcgmtlist.saveExcel(fileName);
  277. }
  278. ]]>
  279. </script>
  280. </button>
  281. <datagrid id="grd_rfchcgmtlist" nodeset="/root/main/list/chgnhistinfo/chgnhistlist" caption="변동구분^변동일자^자산코드^명칭^규격^모델명^제조회사^제조국^취득일자^금액^외화액/단위^외화액/단위^거래처^도입구분^변동전 사용부서^사용부서^적요^변경설치장소" colsep="^" colwidth="71, 69, 87, 161, 91, 80, 80, 45, 59, 62, 60, 40, 79, 56, 100, 100, 138, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:121px; width:1194px; height:604px; ">
  282. <col disabled="true" ref="updtflag" type="combo" _key="true" style="text-align:center; ">
  283. <choices>
  284. <itemset>
  285. <label/>
  286. <value/>
  287. </itemset>
  288. </choices>
  289. </col>
  290. <col ref="updtdd" format="yyyy-mm-dd" style="text-align:center; "/>
  291. <col ref="fixasetcd" style="text-align:center; "/>
  292. <col ref="goodflaghngnm" style="text-align:center; "/>
  293. <col ref="goodspec"/>
  294. <col ref="goodmodel"/>
  295. <col ref="prodcmpynm"/>
  296. <col ref="prodplcenm"/>
  297. <col ref="possndd"/>
  298. <col ref="fixasetamt" format="#,###" maxlength="12" style="text-align:right; "/>
  299. <col format="#,###" maxlength="12" ef="forgncurncyamt" style="text-align:right; "/>
  300. <col disabled="true" ref="curncyunit" type="combo" maxlength="2" style="text-align:left; ">
  301. <choices>
  302. <itemset>
  303. <label/>
  304. <value/>
  305. </itemset>
  306. </choices>
  307. </col>
  308. <col ref="suplplcenm"/>
  309. <col ref="acqtflagnm" style="text-align:center; "/>
  310. <col ref="premngtdeptnm"/>
  311. <col disabled="true" ref="upddeptnm" type="input" _key="true" style="text-align:center; ">
  312. <choices>
  313. <itemset>
  314. <label/>
  315. <value/>
  316. </itemset>
  317. </choices>
  318. </col>
  319. <col ref="mainrec" style="text-align:center; "/>
  320. <col ref="installplcenm" visibility="hidden" style="left:639px; top:23px; width:130px; height:23px; text-align:center; "/>
  321. </datagrid>
  322. </group>
  323. <group id="group2" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  324. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  325. <button id="btn_init" class="btn4_letter3" style="left:1126; top:3; width:68px; height:22px; ">
  326. <caption>초기화</caption>
  327. <script type="javascript" ev:event="DOMActivate">
  328. <![CDATA[
  329. fInitialize();
  330. ]]>
  331. </script>
  332. </button>
  333. <button id="btn_prnt" class="btn6_letter7" style="left:0px; top:5px; width:56px; height:22px; ">
  334. <caption>자산이동내역서</caption>
  335. <script type="javascript" ev:event="DOMActivate">
  336. <![CDATA[
  337. if (model.getValue(ipt_fixasetcd_prnt.attribute("ref")).getTrim() == ""){
  338. messageBox("자산코드가 입력되지 ", "E007");
  339. return;
  340. }
  341. model.setValue("/root/send/prntsearch/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  342. //model.setValue("/root/send/prntsearch/goodflag" , model.getValue(cmb_goodflag.attribute("ref")));
  343. submit("TRRFE00301");
  344. exeReportPreview("RPRFE00301","XMLSTR");
  345. ]]>
  346. </script>
  347. </button>
  348. <button id="button1" class="icon_search" style="left:314px; top:8px; width:16px; height:16px; ">
  349. <caption/>
  350. <script type="javascript" ev:event="DOMActivate">
  351. <![CDATA[
  352. // ,cntrdeptcd,installplcenm,possnamt,goodspec,mngtno,possndd,installplcecd,depthngnm
  353. var temp = "fixasetcd,goodflaghngnm";
  354. rszfOpenPopUpListByWndName(ipt_fixasetcd_prnt,"", temp, "SPRSD00240","instcd,goodflag","cmb_instcd,cmb_goodflag");
  355. model.refresh();
  356. ]]>
  357. </script>
  358. </button>
  359. <input id="ipt_fixasetnm_prnt" ref="/root/send/prntsearch/goodflaghngnm" class="input_search" navindex="6" style="left:333px; top:6px; width:202px; height:19px; text-align:center; ">
  360. <script type="javascript" ev:event="xforms-value-changed">
  361. <![CDATA[
  362. if(ipt_fixasetnm.value != "")
  363. {
  364. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "requirementcd,instcd,requirementnm",
  365. "goodflaghngnm," + cmb_instcd.value + "," + ipt_fixasetnm.value, "", "fixasetcd,goodflaghngnm",
  366. ipt_fixasetnm, "SPRSD00240_고정자산코드검색HELP", "instcd,goodflag","cmb_instcd,cmb_goodflag");
  367. }else{
  368. ipt_fixasetcd.value = "";
  369. }
  370. model.refresh();
  371. ]]>
  372. </script>
  373. </input>
  374. <input id="ipt_fixasetcd_prnt" ref="/root/send/prntsearch/fixasetcd" class="input_search" navindex="6" style="left:214px; top:6px; width:96px; height:19px; text-align:center; ">
  375. <script type="javascript" ev:event="xforms-value-changed">
  376. <![CDATA[
  377. if(ipt_fixasetcd.value != "")
  378. {
  379. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "requirementcd,instcd,requirementnm",
  380. "fixasetcd," + cmb_instcd.value + "," + ipt_fixasetcd.value, "", "fixasetcd,goodflaghngnm",
  381. ipt_fixasetcd, "SPRSD00240_고정자산코드검색HELP", "instcd,goodflag","cmb_instcd,cmb_goodflag");
  382. }else{
  383. ipt_fixasetnm.value = "";
  384. }
  385. model.refresh();
  386. ]]>
  387. </script>
  388. </input>
  389. <caption id="caption1" class="tit_2" style="left:125px; top:7px; width:89px; height:17px; ">자산코드 :</caption>
  390. </group>
  391. </xhtml:body>
  392. </xhtml:html>