SMRFC00407_재물조사대상자업로드.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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. <degolist/>
  12. </grid>
  13. </main>
  14. <send>
  15. <instcd/>
  16. <yyyymm/>
  17. <yyyy/>
  18. <mngtdeptcd/>
  19. <mngtdeptnm/>
  20. <acntcd/>
  21. <acntnm/>
  22. <installplcecd/>
  23. <installplcenm/>
  24. <totcnt/>
  25. <userid/>
  26. <save>
  27. <degolist/>
  28. </save>
  29. </send>
  30. <init>
  31. </init>
  32. <hidden/>
  33. <temp>
  34. <fixainfo/>
  35. </temp>
  36. <popacnt>
  37. <instcd/>
  38. <yyyy/>
  39. <selectyn/>
  40. </popacnt>
  41. <popacntlist>
  42. <acntlist/>
  43. </popacntlist>
  44. </root>
  45. </instance>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  48. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  49. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  51. <script type="javascript" ev:event="xforms-ready">
  52. <![CDATA[
  53. fInitialize();
  54. ]]>
  55. </script>
  56. <submission id="TRRFC00412" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid/degolist"/>
  57. <submission id="TRRFC00413" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/fixainfo"/>
  58. <submission id="TXRFC00409" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  59. </model>
  60. <script type="javascript">
  61. <![CDATA[
  62. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  63. function fInitialize() {
  64. misfGridInit(grd_degolist);
  65. misfComboComCdList("C0048",cmb_instcd,"Y"); //기관코드
  66. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd")); // 기관 설정
  67. model.setValue(ipt_yyyymm.attribute("ref"),getCurrentDate().substring(0, 6));
  68. var tyyyy = model.getValue("/root/send/yyyymm");
  69. model.setValue("/root/send/yyyy",tyyyy.substring(0, 4));
  70. model.setValue(ipt_acntcd_search.attribute("ref"),'');
  71. model.setValue(ipt_acntnm_search.attribute("ref"),'');
  72. model.setValue(ipt_installplcecd.attribute("ref"),'');
  73. model.setValue(ipt_installplcenm.attribute("ref"),'');
  74. var dutplcecd = getUserInfo("dutplcecd");
  75. if(dutplcecd == "4020334000" || getUserInfo("userid") == "MIS" || getUserInfo("userid") == "99207" ){
  76. // btn_search.dispatch("DOMActivate");
  77. submit("TRRFC00413"); // 저장된 데이터 건수 조회
  78. model.setValue("/root/send/totcnt",model.getValue("/root/temp/fixainfo/cnt"));
  79. }else{
  80. messageBox("물류팀외 조회할 수","I004");
  81. btn_search.disabled = true;
  82. btn_save.disabled = true;
  83. btn_proc.disabled = true;
  84. ipt_yyyymm.disabled = true;
  85. btn_mngtdeptcd.disabled = true;
  86. ipt_mngtdeptcd.disabled = true;
  87. btn_list.disabled = true;
  88. }
  89. model.refresh();
  90. }
  91. ]]>
  92. </script>
  93. </xhtml:head>
  94. <xhtml:body pagewidth="1200" pageheight="800" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  95. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  96. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:15px; ">재물조사 대상자 업로드</caption>
  97. </group>
  98. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:722px; ">
  99. <group id="grp_sea" style="left:0px; top:10px; width:1185px; height:35px; vertical-align:top; ">
  100. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1185px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  101. <line id="line13" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  102. </group>
  103. </group>
  104. <group id="group2" style="left:0px; top:12px; width:1195px; height:27px; ">
  105. <line id="line16" class="line_2" style="x1:0px; y1:25px; x2:1185px; y2:25px; "/>
  106. <button id="btn_clear" class="btn4_letter3" navindex="13" style="left:1115px; top:3px; width:68px; height:22px; ">
  107. <caption>초기화</caption>
  108. <script type="javascript" ev:event="DOMActivate">
  109. <![CDATA[
  110. fInitialize();
  111. ]]>
  112. </script>
  113. </button>
  114. <button id="btn_list" class="btn3_letter6" navindex="12" style="left:1010px; top:3px; width:104px; height:22px; ">
  115. <caption>대상자산집계</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. model.setValue("/root/send/userid",getUserInfo("userid"));
  119. var cnt = model.getValue("/root/send/totcnt");
  120. if(cnt != "0"){ // 저장 건수가 있으면
  121. var ret = messageBox("기존에 저장된 데이터가 "+ cnt +"건 존재합니다.\n","Q003");
  122. if (ret == 6) { // OK
  123. submit("TXRFC00409");
  124. btn_search.dispatch("DOMActivate");
  125. messageBox("저장", "I002");
  126. }else{
  127. return;
  128. }
  129. }else{
  130. submit("TXRFC00409");
  131. btn_search.dispatch("DOMActivate");
  132. messageBox("저장", "I002");
  133. }
  134. submit("TRRFC00413"); // 저장된 데이터 건수 조회
  135. model.refresh();
  136. ]]>
  137. </script>
  138. </button>
  139. </group>
  140. <group id="group1" scroll="auto" style="left:0px; top:38px; width:1195px; height:722px; ">
  141. <group id="group3" style="left:0px; top:10px; width:1185px; height:70px; vertical-align:top; ">
  142. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1185px; height:70px; background-color:#fffbf2; border-color:#ffd799; "/>
  143. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  144. <line id="line1" class="line_4" style="x1:1034px; y1:11px; x2:1034px; y2:61px; border-color:#ffe4bb; border-left-style:solid; "/>
  145. <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1085px; top:21px; width:56px; height:22px; ">
  146. <caption>조회</caption>
  147. <script type="javascript" ev:event="DOMActivate">
  148. <![CDATA[
  149. submit("TRRFC00412");
  150. model.refresh();
  151. ]]>
  152. </script>
  153. </button>
  154. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" disabled="true" navindex="1" appearance="minimal" style="left:108px; top:8px; width:147px; height:19px; text-align:center; ">
  155. <choices>
  156. <itemset>
  157. <label/>
  158. <value/>
  159. </itemset>
  160. </choices>
  161. <script type="javascript" ev:event="xforms-value-changed">
  162. <![CDATA[
  163. btn_search.dispatch("DOMActivate");
  164. ]]>
  165. </script>
  166. </select1>
  167. <input id="ipt_mngtdeptcd" ref="/root/send/mngtdeptcd" class="input_search" disabled="false" navindex="4" style="left:115px; top:40px; width:95px; height:19px; ">
  168. <script type="javascript" ev:event="xforms-value-changed">
  169. <![CDATA[
  170. misfSearchDept(ipt_mngtdeptnm);
  171. ]]>
  172. </script>
  173. </input>
  174. <button id="btn_mngtdeptcd" class="icon_search" disabled="false" navindex="-1" style="left:213px; top:40px; width:16px; height:16px; ">
  175. <caption/>
  176. <script type="javascript" ev:event="DOMActivate">
  177. <![CDATA[
  178. misfOpenPopUpList("02", ipt_mngtdeptcd,"","mngtdeptcd,mngtdeptnm");
  179. ipt_mngtdeptcd.refresh();
  180. ipt_mngtdeptnm.refresh();
  181. ]]>
  182. </script>
  183. </button>
  184. <caption id="caption9" class="search_name" style="left:15px; top:40px; width:92px; height:17px; ">사용부서 :</caption>
  185. <input id="ipt_mngtdeptnm" ref="/root/send/mngtdeptnm" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:232px; top:40px; width:150px; height:19px; "/>
  186. <input id="ipt_acntcd_search" ref="/root/send/acntcd" class="input_search" navindex="5" visibility="visible" style="left:640px; top:8px; width:85px; height:19px; ">
  187. <script type="javascript" ev:event="xforms-value-changed">
  188. <![CDATA[
  189. if(ipt_acntcd_search.value != "")
  190. {
  191. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt",
  192. ",Y,2," + ipt_acntcd_search.value, "", "acntcd,acntnm",
  193. ipt_acntcd_search, "PPRAC00100_계정코드HELP", "useyn,acntcd","Y,ipt_acntcd_search");
  194. }else{
  195. ipt_acntnm_search.value = '';
  196. }
  197. ipt_acntcd_search.refresh();
  198. ipt_acntnm_search.refresh();
  199. ]]>
  200. </script>
  201. </input>
  202. <input id="ipt_acntnm_search" ref="/root/send/acntnm" class="output_fix" navindex="-1" editable="false" style="left:748px; top:8px; width:197px; height:19px; "/>
  203. <button id="btn_acntcd_search" class="icon_search" navindex="-1" style="left:729px; top:11px; width:16px; height:16px; ">
  204. <caption/>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. rszfOpenPopUpListByWndName(ipt_acntcd_search, "", "acntcd,acntnm","PPRAC00100_계정코드HELP","","");
  208. ipt_acntcd_search.refresh();
  209. ipt_acntnm_search.refresh();
  210. ]]>
  211. </script>
  212. </button>
  213. <caption id="caption5" class="search_name" style="left:575px; top:10px; width:65px; height:17px; ">계정:</caption>
  214. <caption id="caption1" class="search_name" style="left:330px; top:10px; width:86px; height:17px; ">기준년월 :</caption>
  215. <input id="ipt_installplcecd" ref="/root/send/installplcecd" class="input_search" disabled="false" navindex="4" style="left:515px; top:40px; width:95px; height:19px; ">
  216. <script type="javascript" ev:event="xforms-value-changed">
  217. <![CDATA[
  218. misfSearchDept(ipt_installplcenm);
  219. ]]>
  220. </script>
  221. </input>
  222. <button id="btn_installplcecd" class="icon_search" disabled="false" navindex="-1" style="left:613px; top:40px; width:16px; height:16px; ">
  223. <caption/>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. misfOpenPopUpList("02", ipt_installplcecd,"","installplcecd,installplcenm");
  227. ipt_installplcecd.refresh();
  228. ipt_installplcenm.refresh();
  229. ]]>
  230. </script>
  231. </button>
  232. <caption id="caption2" class="search_name" style="left:415px; top:40px; width:92px; height:17px; ">설치장소 :</caption>
  233. <input id="ipt_installplcenm" ref="/root/send/installplcenm" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:632px; top:40px; width:150px; height:19px; "/>
  234. </group>
  235. <line id="line3" class="line_1" style="x1:0px; y1:104px; x2:1195px; y2:104px; "/>
  236. <caption id="caption10" class="tit_2" style="left:5px; top:89px; width:205px; height:15px; ">재물조사 대상자 리스트</caption>
  237. <datagrid id="grd_degolist" nodeset="/root/main/grid/degolist" caption="자산코드^자산명^계정과목^계정과목^수량^취득금액^취득일^잔존가^사용부서^설치부서" colsep="^" colwidth="120, 316, 55,100, 35, 95, 70, 95,120,120" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" navindex="7" style="left:0px; top:109px; width:1185px; height:596px; ">
  238. <col ref="fixasetcd" style="text-align:center; "/>
  239. <col ref="goodflaghngnm" style="padding-left:5; "/>
  240. <col ref="acntcd" style="text-align:center; "/>
  241. <col ref="acntnm" style="padding-left:5; "/>
  242. <col ref="goodqty" style="text-align:center; "/>
  243. <col ref="possnamt" format="#,##0" style="text-align:right; "/>
  244. <col ref="possndd" format="yyyy-mm-dd" style="text-align:center; "/>
  245. <col ref="janjonsak" format="#,##0" style="text-align:right; "/>
  246. <col ref="mngtdeptnm" style="text-align:center; "/>
  247. <col ref="installplcenm" style="text-align:center; "/>
  248. <script type="javascript" ev:event="onaftersort">
  249. <![CDATA[
  250. grd_degolist.gridToInstance();
  251. ]]>
  252. </script>
  253. </datagrid>
  254. <button id="button4" class="btn2_letter4" navindex="8" style="left:1122px; top:84px; width:64px; height:19px; ">
  255. <caption>엑셀저장</caption>
  256. <script type="javascript" ev:event="DOMActivate">
  257. <![CDATA[
  258. if( grd_degolist.rows - grd_degolist.fixedRows > 0 ) {
  259. var fileName ="재물조사대상자산조회_" + getCurrentDate();
  260. var fileName = window.fileDialog("save", ",", false, fileName, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  261. grd_degolist.saveExcel(fileName, "Sheet");
  262. } else {
  263. messageBox("저장 데이터가","I004");
  264. }
  265. ]]>
  266. </script>
  267. </button>
  268. <input id="ipt_yyyymm" ref="/root/send/yyyymm" class="input_search" navindex="2" format="yyyy-mm" style="left:425px; top:20px; width:55px; height:19px; text-align:center; ">
  269. <script type="javascript" ev:event="xforms-value-changed">
  270. <![CDATA[
  271. var tyyyy = model.getValue("/root/send/yyyymm");
  272. model.setValue("/root/send/yyyy",tyyyy.substring(0, 4));
  273. ]]>
  274. </script>
  275. </input>
  276. <caption id="caption4" style="left:916px; top:82px; width:201px; height:20px; background-color:#ffffcc; ">* 잔존가 기준 : 기준년도의 6월달</caption>
  277. <input id="ipt_cnt" ref="/root/send/totcnt" disabled="true" navindex="2" format="#,###" style="left:288px; top:84px; width:92px; height:19px; font-weight:bold; text-align:right; "/>
  278. <caption id="caption13" style="left:190px; top:85px; width:95px; height:18px; text-align:center; vertical-align:middle; background-color:#C4E693; ">저장된 건수 :</caption>
  279. </group>
  280. </xhtml:body>
  281. </xhtml:html>