SMRFC00400_입고별 고정자산관리.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  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. <list>
  11. <rfchinpflist/>
  12. <rfcmfacdlist/>
  13. </list>
  14. </main>
  15. <send>
  16. <instcd/>
  17. <goodflag/>
  18. <windd1/>
  19. <windd2/>
  20. <rfcmfacd_send/>
  21. <suplplcecd/>
  22. <suplplcenm/>
  23. <cntrdeptcd/>
  24. <cntrdeptnm/>
  25. <frpossndd/>
  26. <topossndd/>
  27. </send>
  28. <init>
  29. <goodflag>
  30. <label>의료장비</label>
  31. <value>E</value>
  32. <label>일반비품</label>
  33. <value>G</value>
  34. </goodflag>
  35. </init>
  36. <temp/>
  37. </root>
  38. </instance>
  39. <submission id="TRRFC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list/rfchinpflist"/>
  40. <submission id="TRRFC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfcmfacd_send" resultref="/root/main/list/rfcmfacdlist"/>
  41. </model>
  42. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  45. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  46. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. fInitialize();
  50. ]]>
  51. </script>
  52. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  54. <script type="javascript">
  55. <![CDATA[
  56. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  57. function fInitialize() {
  58. rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
  59. misfComboComCdListMulti("Z0007", "cmb_instcd");
  60. misfGridInit(grd_rfchinpflist);
  61. misfGridInit(grd_rfcmfacdlist);
  62. // misfMsterDetailSet(grd_rfchinpflist, null, "TRRSE01101", "Y");
  63. cmb_instcd.select(0);
  64. cmb_goodflag.select(0);
  65. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
  66. // 현재 날짜 기본 입력(6개월 간격 설정)
  67. var acptdate = getCurrentDate().toDate("YYYYMMDD");
  68. model.setValue(ipt_windd2.attribute("ref"), acptdate.getDateFormat("YYYYMMDD") );
  69. model.setValue(ipt_windd1.attribute("ref"), acptdate.getAddDate(-1, "M").getDateFormat("YYYYMMDD") );
  70. model.refresh();
  71. }
  72. ]]>
  73. </script>
  74. </xhtml:head>
  75. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  76. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  77. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:207px; height:14px; ">입고별 고정자산 관리</caption>
  78. </group>
  79. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  80. <group id="grp_sea" style="left:0px; top:0px; width:1194px; height:60px; vertical-align:top; ">
  81. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  82. <caption id="cap_instcd" class="search_name" style="left:15px; top:8px; width:76px; height:17px; ">기관코드</caption>
  83. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:18px; width:56px; height:22px; ">
  84. <caption>조회</caption>
  85. <script type="javascript" ev:event="DOMActivate">
  86. <![CDATA[
  87. if(!isRequiredControls("cmb_instcd"))return;
  88. if(!isRequiredControls("cmb_goodflag"))return;
  89. //if(!isRequiredControls("ipt_windd1"))return;
  90. //if(!isRequiredControls("ipt_windd2"))return;
  91. model.makeValue("/root/send/reqdata/instcd", model.getValue(cmb_instcd.attribute("ref")));
  92. model.makeValue("/root/send/reqdata/goodflag", model.getValue(cmb_goodflag.attribute("ref")));
  93. model.makeValue("/root/send/reqdata/windd1", model.getValue(ipt_windd1.attribute("ref")));
  94. model.makeValue("/root/send/reqdata/windd2", model.getValue(ipt_windd2.attribute("ref")));
  95. model.makeValue("/root/send/reqdata/suplplcecd", model.getValue(ipt_suplplcecd.attribute("ref")));
  96. model.makeValue("/root/send/reqdata/cntrdeptcd", model.getValue(ipt_cntrdeptcd.attribute("ref")));
  97. model.makeValue("/root/send/reqdata/cntrdeptnm", model.getValue(ipt_cntrdeptnm.attribute("ref")));
  98. model.makeValue("/root/send/reqdata/frpossndd" , model.getValue(ipt_frpossndd.attribute("ref")));
  99. model.makeValue("/root/send/reqdata/topossndd" , model.getValue(ipt_topossndd.attribute("ref")));
  100. submit("TRRFC00401");
  101. if(grd_rfchinpflist.rows != grd_rfchinpflist.fixedRows)
  102. {
  103. grd_rfchinpflist.row = grd_rfchinpflist.fixedRows;
  104. grd_rfchinpflist.dispatch("onrowchanged");
  105. }
  106. ]]>
  107. </script>
  108. </button>
  109. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:95px; top:8px; width:127px; height:19px; text-align:center; ">
  110. <choices>
  111. <itemset>
  112. <label/>
  113. <value/>
  114. </itemset>
  115. </choices>
  116. </select1>
  117. <line id="line13" class="line_4" style="x1:1102px; y1:17px; x2:1102px; y2:39px; border-color:#ffe4bb; border-left-style:solid; "/>
  118. <caption id="cap_windd1" class="search_name" style="left:470px; top:8px; width:76px; height:17px; ">입고일자</caption>
  119. <select1 id="cmb_goodflag" ref="/root/send/goodflag" class="combo_s_essential" appearance="minimal" style="left:310px; top:8px; width:150px; height:19px; text-align:center; ">
  120. <choices>
  121. <itemset nodeset="/root/init/goodflag">
  122. <label ref="label"/>
  123. <value ref="value"/>
  124. </itemset>
  125. </choices>
  126. <script type="javascript" ev:event="xforms-value-changed">
  127. <![CDATA[
  128. if(cmb_goodflag.value=="EQ")
  129. {
  130. grd_rfchinpflist.colHidden(10) = true;
  131. grd_rfcmfacdlist.colHidden(3) = true;
  132. grd_rfchinpflist.colHidden(9) = false;
  133. grd_rfcmfacdlist.colHidden(2) = false;
  134. }
  135. else
  136. {
  137. grd_rfchinpflist.colHidden(10) = false;
  138. grd_rfcmfacdlist.colHidden(3) = false;
  139. grd_rfchinpflist.colHidden(9) = true;
  140. grd_rfcmfacdlist.colHidden(2) = true;
  141. }
  142. ]]>
  143. </script>
  144. </select1>
  145. <caption id="cap_goodflag" class="search_name" style="left:230px; top:8px; width:76px; height:17px; ">자산구분</caption>
  146. <input id="ipt_windd2" ref="/root/send/windd2" class="input_s_essential" inputtype="date" style="left:678px; top:8px; width:101px; height:19px; text-align:center; "/>
  147. <input id="ipt_windd1" ref="/root/send/windd1" class="input_s_essential" inputtype="date" style="left:565px; top:8px; width:97px; height:19px; text-align:center; "/>
  148. <caption id="caption2" style="left:664px; top:10px; width:14px; height:18px; ">~</caption>
  149. <caption id="cap_windd2" class="search_name" style="left:470px; top:8px; width:76px; height:17px; ">입고일자</caption>
  150. <input id="ipt_suplplcenm" ref="/root/send/suplplcenm" class="input_fix" appearance="input" style="left:967px; top:9px; width:125px; height:19px; ">
  151. <script type="javascript" ev:event="xforms-value-changed">
  152. <![CDATA[
  153. if(ipt_suplplcenm.value.length == 0)
  154. ipt_suplplcecd.value = "";
  155. else
  156. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  157. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcenm.attribute("ref")),"","suplplcecd,suplplcenm" ,
  158. ipt_suplplcenm,"SPRSD00220","instcd","cmb_instcd");
  159. model.refresh();
  160. setInputNodeCurText();
  161. btn_search.dispatch("DOMActivate");
  162. ]]>
  163. </script>
  164. </input>
  165. <input id="ipt_suplplcecd" ref="/root/send/suplplcecd" style="left:864px; top:9px; width:80px; height:19px; ">
  166. <script type="javascript" ev:event="xforms-value-changed">
  167. <![CDATA[
  168. if(ipt_suplplcecd.value.length == 0)
  169. ipt_suplplcenm.value = "";
  170. else
  171. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  172. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcecd.attribute("ref")),"","suplplcecd,suplplcenm" ,
  173. ipt_suplplcecd,"SPRSD00220","instcd","cmb_instcd");
  174. model.refresh();
  175. setInputNodeCurText();
  176. btn_search.dispatch("DOMActivate");
  177. ]]>
  178. </script>
  179. </input>
  180. <caption id="caption18" class="search_name" style="left:790px; top:10px; width:74px; height:17px; ">거래처 :</caption>
  181. <button id="btn_suplplcecd" class="icon_search" style="left:947px; top:13px; width:16px; height:16px; ">
  182. <caption/>
  183. <script type="javascript" ev:event="DOMActivate">
  184. <![CDATA[
  185. rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd");
  186. model.refresh();
  187. btn_search.dispatch("DOMActivate");
  188. ]]>
  189. </script>
  190. </button>
  191. <input id="ipt_topossndd" ref="/root/send/topossndd" class="input_s_essential" inputtype="date" style="left:678px; top:35px; width:101px; height:19px; text-align:center; "/>
  192. <caption id="caption3" style="left:664px; top:37px; width:14px; height:18px; ">~</caption>
  193. <caption id="caption7" class="search_name" style="left:470px; top:35px; width:89px; height:17px; ">계산서일자</caption>
  194. <input id="ipt_frpossndd" ref="/root/send/frpossndd" class="input_s_essential" inputtype="date" style="left:565px; top:35px; width:97px; height:19px; text-align:center; "/>
  195. <caption id="caption8" class="search_name" style="left:15px; top:35px; width:76px; height:17px; ">청구부서</caption>
  196. <input id="ipt_cntrdeptnm" ref="/root/send/cntrdeptnm" class="input_fix" appearance="input" style="left:197px; top:35px; width:156px; height:19px; ">
  197. <script type="javascript" ev:event="xforms-value-changed">
  198. <![CDATA[
  199. if(ipt_cntrdeptnm.value.length == 0)
  200. ipt_cntrdeptcd.value = "";
  201. else
  202. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
  203. "deptnm," + ipt_cntrdeptnm.value, "", "cntrdeptcd,cntrdeptnm",
  204. ipt_cntrdeptnm, "SPRPZ00200", "","");
  205. model.refresh();
  206. ]]>
  207. </script>
  208. </input>
  209. <input id="ipt_cntrdeptcd" ref="/root/send/cntrdeptcd" class="input_default" appearance="input" style="left:95px; top:35px; width:80px; height:19px; ">
  210. <script type="javascript" ev:event="xforms-value-changed">
  211. <![CDATA[
  212. if(ipt_cntrdeptcd.value.length == 0)
  213. ipt_cntrdeptnm.value = "";
  214. else
  215. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
  216. "deptcd," + ipt_cntrdeptcd.value, "", "cntrdeptcd,cntrdeptnm",
  217. ipt_cntrdeptcd, "SPRPZ00200", "","");
  218. model.refresh();
  219. ]]>
  220. </script>
  221. </input>
  222. <button id="btn_cntrdeptcd" class="icon_search" style="left:179px; top:35px; width:16px; height:16px; ">
  223. <caption/>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. misfOpenPopUpList("02", ipt_cntrdeptcd,"","cntrdeptcd,cntrdeptnm");
  227. model.refresh();
  228. ]]>
  229. </script>
  230. </button>
  231. </group>
  232. <line id="line1" class="line_1" style="x1:0px; y1:91px; x2:1193px; y2:91px; "/>
  233. <datagrid id="grd_rfchinpflist" nodeset="/root/main/list/rfchinpflist" caption="입고번호^입고번호^입고일자^세금계산서 일자^대분류코드^대분류명^중분류코드^중분류명^거래처명^자산명^자산명^모델^규격^제조회사^설치장소^입고수량^단가^금액^최종입고자" colsep="^" colwidth="35, 30, 70, 112, 72, 121, 71, 139, 140, 3, 244, 140, 150, 63, 91, 90, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:96px; width:1193px; height:304px; ">
  234. <col ref="winno"/>
  235. <col ref="winseqno"/>
  236. <col ref="windd" format="yyyy-mm-dd"/>
  237. <col ref="calcdocudd" format="yyyy-mm-dd" style="text-align:center; "/>
  238. <col ref="lrgcd" visibility="visible"/>
  239. <col ref="lrgcdnm"/>
  240. <col ref="mdlcd" visibility="visible"/>
  241. <col ref="mdlcdnm"/>
  242. <col ref="suplplcenm" visibility="visible"/>
  243. <col ref="goodnm2" visibility="visible"/>
  244. <col ref="goodnm2" visibility="visible"/>
  245. <col ref="goodmodel"/>
  246. <col ref="goodspec"/>
  247. <col ref="prodcmpynm"/>
  248. <col ref="installplcecdnm"/>
  249. <col ref="plcewinqty" style="text-align:right; "/>
  250. <col ref="wncurncyamt" format="#,###" style="text-align:right; "/>
  251. <col ref="plcewinamt" format="#,###" style="text-align:right; "/>
  252. <col ref="lastupdtrnm"/>
  253. <col ref="instcd" visibility="hidden"/>
  254. <col ref="goodflag" visibility="hidden"/>
  255. <col ref="windd" visibility="hidden"/>
  256. <col ref="winno" visibility="hidden"/>
  257. <col ref="winseqno" visibility="hidden"/>
  258. <col ref="smlcd" visibility="hidden"/>
  259. <col ref="prodcmpy" visibility="hidden"/>
  260. <col ref="installplcecd" visibility="hidden"/>
  261. <script type="javascript" ev:event="onrowchanged">
  262. <![CDATA[
  263. grd_rfchinpflist.dispatch("onmouseup");
  264. model.copyNode("/root/send/rfcmfacd_send", "/root/main/list/rfchinpflist[" + grd_rfchinpflist.row + "]");
  265. submit("TRRFC00402");
  266. ]]>
  267. </script>
  268. <script type="javascript" ev:event="onaftersort">
  269. <![CDATA[
  270. grd_rfchinpflist.gridToInstance();
  271. ]]>
  272. </script>
  273. </datagrid>
  274. <caption id="caption4" class="tit_2" style="left:0px; top:75px; width:110px; height:13px; ">입고내역</caption>
  275. <datagrid id="grd_rfcmfacdlist" nodeset="/root/main/list/rfcmfacdlist" caption="자산코드^자산명^자산명^모델^규격^거래처^제조원^청구부서^사용부서^사용장소^이미지" colsep="^" colwidth="111, 150, 150, 115, 100, 100, 111, 111, 112, 80, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:430px; width:1193px; height:304px; ">
  276. <col ref="fixasetcd"/>
  277. <col ref="goodflagengnm" visibility="visible"/>
  278. <col ref="goodflaghngnm" visibility="visible"/>
  279. <col ref="goodmodel"/>
  280. <col ref="goodspec"/>
  281. <col ref="suplplcecdnm"/>
  282. <col ref="prodcmpynm"/>
  283. <col ref="cntrdeptcdnm"/>
  284. <col ref="mngtdeptcdnm"/>
  285. <col ref="installplcecdnm"/>
  286. <col ref="imageyn"/>
  287. <col ref="instcd" visibility="hidden"/>
  288. <col ref="suplplcecd" visibility="hidden"/>
  289. <col ref="prodcmpy" visibility="hidden"/>
  290. <col ref="cntrdeptcd" visibility="hidden"/>
  291. <col ref="mngtdeptcd" visibility="hidden"/>
  292. <col ref="installplcecd" visibility="hidden"/>
  293. </datagrid>
  294. <caption id="caption1" class="tit_2" style="left:0px; top:410px; width:110px; height:13px; ">고정자산목록</caption>
  295. <line id="line2" class="line_1" style="x1:0px; y1:425px; x2:1193px; y2:425px; "/>
  296. <button id="btn_excel" class="btn5_letter3" style="left:1139px; top:70px; width:53px; height:19px; ">
  297. <caption>Excel</caption>
  298. <script type="javascript" ev:event="DOMActivate">
  299. <![CDATA[
  300. var fileName = window.fileDialog("save", ",", false, "입고내역", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  301. if (fileName != "")
  302. {
  303. grd_rfchinpflist.saveExcel(fileName, "입고내역List",true,true, "");
  304. }
  305. ]]>
  306. </script>
  307. </button>
  308. </group>
  309. <group id="group4" style="left:0px; top:13; width:1195px; height:27px; ">
  310. <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3; width:56px; height:22px; ">
  311. <caption>출력</caption>
  312. </button>
  313. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3; width:68px; height:22px; ">
  314. <caption>초기화</caption>
  315. <script type="javascript" ev:event="DOMActivate">
  316. <![CDATA[
  317. fInitialize();
  318. ]]>
  319. </script>
  320. </button>
  321. <line id="line14" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  322. </group>
  323. </xhtml:body>
  324. </xhtml:html>