SMRFE00302_정보자산기간별변동사항조회.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <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. <name_search/>
  32. <userid/>
  33. <usernm/>
  34. </search>
  35. <prntsearch>
  36. <instcd/>
  37. <goodflag/>
  38. <fixasetcd/>
  39. <goodflaghngnm/>
  40. </prntsearch>
  41. </send>
  42. <init>
  43. <possnflagcd>
  44. <label>내자</label>
  45. <value>H</value>
  46. <label>외자</label>
  47. <value>F</value>
  48. </possnflagcd>
  49. <goodflag>
  50. <label>- 전 체 -</label>
  51. <value/>
  52. <label>일반비품</label>
  53. <value>GE</value>
  54. <label>의료장비</label>
  55. <value>EQ</value>
  56. </goodflag>
  57. </init>
  58. <temp/>
  59. </root>
  60. </instance>
  61. <submission id="TRRFE00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/chgnhistinfo/chgnhistlist"/>
  62. </model>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. //화면 Control을 초기화한다
  66. fInitialize();
  67. ]]>
  68. </script>
  69. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  71. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  72. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  75. <script type="javascript">
  76. <![CDATA[
  77. function fInitialize()
  78. {
  79. misfGridInit(grd_rfchcgmtlist);
  80. rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","Y");
  81. misfComboComCdListMulti("C0048,R0044",
  82. "cmb_instcd,cmb_updtflag");
  83. addComboItem( "cmb_updtflag", "- 전 체 -", "", "above");
  84. cmb_goodflag.select(0);
  85. misfComboCopyItemSet(cmb_goodflag,"",grd_rfchcgmtlist,"goodflag");
  86. grd_rfchcgmtlist.fixedcellcheckbox(0,grd_rfchcgmtlist.colRef("choice"),false) = true;
  87. grd_rfchcgmtlist.refresh();
  88. // 현재 날짜 기본 입력(3개월 간격 설정)
  89. var reqdate = getCurrentDate().toDate("YYYYMMDD");
  90. model.setValue(ipt_updtdd1.attribute("ref"), reqdate.getAddDate(-7, "D").getDateFormat("YYYYMMDD") );
  91. model.setValue(ipt_updtdd2.attribute("ref"), getCurrentDate());
  92. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd")); // 기관 설정
  93. model.setValue(cmb_goodflag.attribute("ref"), "GE");
  94. model.setValue(cmb_updtflag.attribute("ref"), "4");
  95. cmb_updtflag
  96. //misfMsterDetailSet(grd_rfchcgmtlist, null, "TRRFE00201", "N");
  97. model.refresh();
  98. model.setFocus("ipt_fixasetcd");
  99. }
  100. ]]>
  101. </script>
  102. </xhtml:head>
  103. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  104. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  105. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:15px; ">정보자산 변동사항 조회</caption>
  106. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  107. </group>
  108. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  109. <line id="line1" class="line_1" style="x1:0px; y1:116px; x2:1194; y2:116px; "/>
  110. <group id="group4" style="left:0px; top:10px; width:1194px; height:81px; vertical-align:top; ">
  111. <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; "/>
  112. <caption id="cap_goodflag" class="search_name" style="left:309px; top:9px; width:86px; height:17px; ">자산구분 :</caption>
  113. <button id="btn_search" class="btn1_letter2" navindex="14" style="left:1123; top:30; width:56px; height:22px; text-align:left; ">
  114. <caption>조회</caption>
  115. <script type="javascript" ev:event="DOMActivate">
  116. <![CDATA[
  117. if(!isRequiredControls("cmb_instcd")) return;
  118. //if(!isRequiredControls("cmb_goodflag")) return;
  119. if(!isRequiredControls("ipt_updtdd1")) return;
  120. if(!isRequiredControls("ipt_updtdd2")) return;
  121. submit("TRRFE00302");
  122. grd_rfchcgmtlist.fixedcellischeck(0,grd_rfchcgmtlist.colRef("choice")) = false;
  123. ]]>
  124. </script>
  125. </button>
  126. <caption id="cap_fixasetcd" class="search_name" style="left:15px; top:57px; width:89px; height:17px; ">자산코드 :</caption>
  127. <line id="line3" class="line_4" style="top:54; x1:1107; y1:8; x2:1107; y2:75; "/>
  128. <select1 id="cmb_goodflag" ref="/root/send/search/goodflag" class="combo_s_essential" disabled="true" navindex="2" appearance="minimal" style="left:399px; top:8px; width:171px; height:19px; text-align:center; ">
  129. <choices>
  130. <itemset nodeset="/root/init/goodflag">
  131. <label ref="label"/>
  132. <value ref="value"/>
  133. </itemset>
  134. </choices>
  135. <script type="javascript" ev:event="xforms-value-changed">
  136. <![CDATA[
  137. ipt_fixasetcd.value = "";
  138. ipt_fixasetnm.value = "";
  139. ]]>
  140. </script>
  141. </select1>
  142. <caption id="cap_updtflag" class="search_name" style="left:15px; top:33px; width:86px; height:17px; ">변동구분 :</caption>
  143. <caption id="cap_updtdd1" class="search_name" style="left:703px; top:9px; width:86px; height:17px; ">변동일자 :</caption>
  144. <caption id="cap_installplcecd" class="search_name" style="left:703px; top:33px; width:88px; height:17px; ">설치장소 :</caption>
  145. <caption id="cap_deptcd" class="search_name" style="left:309px; top:33px; width:89px; height:17px; ">운용부서 :</caption>
  146. <input id="ipt_installplcenm" ref="/root/send/search/installplcenm" class="output_fix" navindex="-1" editable="false" style="left:923px; top:32px; width:168px; height:19px; "/>
  147. <input id="ipt_installplcecd" ref="/root/send/search/installplcecd" class="input_search" navindex="8" style="left:793px; top:32px; width:106px; height:19px; ">
  148. <script type="javascript" ev:event="xforms-value-changed">
  149. <![CDATA[
  150. if(ipt_installplcecd.value == ""){
  151. ipt_installplcenm.value = "";
  152. }else {
  153. misfValidationCheck("02", "", "installplcecd,installplcenm");
  154. }
  155. ipt_installplcecd.refresh();
  156. ipt_installplcenm.refresh();
  157. ]]>
  158. </script>
  159. </input>
  160. <input id="ipt_fixasetnm" ref="/root/send/search/name_search" class="input_search" navindex="11" style="left:399px; top:56px; width:277px; height:19px; ">
  161. <script type="javascript" ev:event="onkeyup">
  162. <![CDATA[
  163. inputEnterKey("btn_search", "DOMActivate");
  164. ]]>
  165. </script>
  166. </input>
  167. <input id="ipt_fixasetcd" ref="/root/send/search/fixasetcd" class="input_search" navindex="10" imemode="disabled" _chartype="upper" style="left:104px; top:56px; width:171px; height:19px; ">
  168. <script type="javascript" ev:event="onkeyup">
  169. <![CDATA[
  170. inputEnterKey("btn_search", "DOMActivate");
  171. ]]>
  172. </script>
  173. </input>
  174. <select1 id="cmb_updtflag" ref="/root/send/search/updtflag" class="combo_search" disabled="true" navindex="5" appearance="minimal" style="left:104px; top:32px; width:171px; height:19px; text-align:center; ">
  175. <choices>
  176. <itemset>
  177. <label/>
  178. <value/>
  179. </itemset>
  180. </choices>
  181. </select1>
  182. <input id="ipt_deptnm" ref="/root/send/search/deptnm" class="output_fix" navindex="-1" editable="false" style="left:528px; top:32px; width:147px; height:19px; "/>
  183. <input id="ipt_deptcd" ref="/root/send/search/deptcd" class="input_search" navindex="6" style="left:399px; top:32px; width:106px; height:19px; ">
  184. <script type="javascript" ev:event="xforms-value-changed">
  185. <![CDATA[
  186. misfSearchDept(ipt_deptnm);
  187. ]]>
  188. </script>
  189. </input>
  190. <input id="ipt_updtdd1" ref="/root/send/search/updtdd1" class="input_s_essential" navindex="3" inputtype="date" style="left:794px; top:8px; width:100px; height:19px; text-align:center; "/>
  191. <input id="ipt_updtdd2" ref="/root/send/search/updtdd2" class="input_s_essential" navindex="4" inputtype="date" style="left:916px; top:8px; width:100px; height:19px; text-align:center; "/>
  192. <caption id="caption16" style="left:899px; top:9px; width:17px; height:20px; vertical-align:middle; ">~</caption>
  193. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  194. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_s_essential" disabled="true" navindex="1" appearance="minimal" style="left:104px; top:8px; width:171px; height:19px; text-align:center; ">
  195. <choices>
  196. <itemset>
  197. <label/>
  198. <value/>
  199. </itemset>
  200. </choices>
  201. </select1>
  202. <button id="btn_deptcd" class="icon_search" navindex="7" style="left:509px; top:34px; width:16px; height:16px; ">
  203. <caption/>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. misfOpenPopUpList("02", ipt_deptcd,"","deptcd,deptnm");
  207. model.refresh();
  208. ]]>
  209. </script>
  210. </button>
  211. <button id="btn_installplcecd" class="icon_search" navindex="9" style="left:903px; top:33px; width:16px; height:16px; ">
  212. <caption/>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. misfOpenPopUpList("02", ipt_installplcecd,"","installplcecd,installplcenm");
  216. model.refresh();
  217. ]]>
  218. </script>
  219. </button>
  220. <caption id="caption2" class="search_name" style="left:310px; top:55px; width:89px; height:17px; ">자 산 명 :</caption>
  221. <input id="ipt_userid" ref="/root/send/search/userid" class="input_search" navindex="12" style="left:793px; top:55px; width:75px; height:19px; text-align:center; ">
  222. <script type="javascript" ev:event="xforms-value-changed">
  223. <![CDATA[
  224. if(ipt_userid.value.length == 0)
  225. ipt_usernm.value = "";
  226. else
  227. misfValidationCheck("01-1", "", "userid,usernm");
  228. ipt_userid.refresh();
  229. ipt_usernm.refresh();
  230. //btn_search.dispatch("DOMActivate");
  231. ]]>
  232. </script>
  233. </input>
  234. <button id="btn_userid" class="icon_search" navindex="13" style="left:874px; top:55px; width:16px; height:16px; ">
  235. <caption/>
  236. <script type="javascript" ev:event="DOMActivate">
  237. <![CDATA[
  238. misfOpenPopUpList("01", ipt_userid, "", "userid,usernm");
  239. ipt_userid.refresh();
  240. ipt_usernm.refresh();
  241. ]]>
  242. </script>
  243. </button>
  244. <input id="ipt_usernm" ref="/root/send/search/usernm" class="output_fix" navindex="-1" appearance="input" style="left:893px; top:55px; width:125px; height:19px; text-align:left; padding-left:10; "/>
  245. <caption id="caption3" class="search_name" style="left:703px; top:55px; width:88px; height:17px; ">담 당 자 :</caption>
  246. </group>
  247. <caption id="caption21" class="tit_2" style="left:5px; top:101px; width:148px; height:15px; ">정보자산 변동 현황List</caption>
  248. <button id="btn_excel" class="btn2_letter4" navindex="17" style="left:1128px; top:96px; width:64px; height:19px; ">
  249. <caption>엑셀저장</caption>
  250. <script type="javascript" ev:event="DOMActivate">
  251. <![CDATA[
  252. var fileName = window.fileDialog ("save", ",", false, "자산변동사항이력List", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  253. if (fileName != "")
  254. {
  255. grd_rfchcgmtlist.saveExcel(fileName);
  256. }
  257. ]]>
  258. </script>
  259. </button>
  260. <datagrid id="grd_rfchcgmtlist" nodeset="/root/main/list/chgnhistinfo/chgnhistlist" caption="^변동구분^변동일자^자산구분^자산코드^자산명^규격^모델^취득일자^금액^공급처^변동전 운용부서^운용부서^비고^적요^변경설치장소^IP주소^기관코드^담당자^담당자" colsep="^" colwidth="24, 55, 69, 55, 95, 161, 91, 80, 69, 62, 119, 100, 100, 200, 138, 100, 100, 100, 45, 55" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" navindex="15" style="left:0px; top:120px; width:1194px; height:604px; ">
  261. <col checkvalue="Y,N" ref="choice" type="checkbox" visibility="hidden"/>
  262. <col disabled="true" ref="updtflag" type="combo" _key="true" style="text-align:center; ">
  263. <choices>
  264. <item>
  265. <label>신규</label>
  266. <value>9</value>
  267. </item>
  268. <item>
  269. <label>이동</label>
  270. <value>4</value>
  271. </item>
  272. </choices>
  273. </col>
  274. <col ref="updtdd" format="yyyy-mm-dd" style="text-align:center; "/>
  275. <col disabled="true" ref="goodflag" type="combo" visibility="hidden" style="text-align:center; ">
  276. <choices>
  277. <itemset>
  278. <label/>
  279. <value/>
  280. </itemset>
  281. </choices>
  282. </col>
  283. <col ref="fixasetcd" style="text-align:center; "/>
  284. <col ref="goodflaghngnm" style="text-align:left; "/>
  285. <col ref="goodspec" style="text-align:left; "/>
  286. <col ref="goodmodel" style="text-align:left; "/>
  287. <col ref="possndd" format="yyyy-mm-dd"/>
  288. <col ref="fixasetamt" format="#,###" maxlength="12" style="text-align:right; "/>
  289. <col ref="suplplcenm"/>
  290. <col ref="premngtdeptnm"/>
  291. <col disabled="true" ref="upddeptnm" _key="true" style="text-align:left; ">
  292. <choices>
  293. <itemset>
  294. <label/>
  295. <value/>
  296. </itemset>
  297. </choices>
  298. </col>
  299. <col ref="cmt" style="text-align:left; "/>
  300. <col ref="mainrec" visibility="hidden" style="text-align:center; "/>
  301. <col ref="installplcenm" visibility="hidden" style="left:639px; top:23px; width:130px; height:23px; text-align:center; "/>
  302. <col ref="ipaddr" style="text-align:left; "/>
  303. <col ref="instcd" visibility="hidden"/>
  304. <col ref="userid" style="text-align:left; "/>
  305. <col ref="usernm" style="text-align:left; "/>
  306. </datagrid>
  307. <button id="btn_barcodeprt" class="btn2_letter5" navindex="16" visibility="hidden" style="left:1048px; top:96px; width:75px; height:19px; ">
  308. <caption>바코드출력</caption>
  309. <script type="javascript" ev:event="DOMActivate">
  310. <![CDATA[
  311. var goodnm, mngtdeptnm, installplcenm;
  312. var node = instance1.selectNodes("/root/main/list/chgnhistinfo/chgnhistlist[choice='Y']");
  313. if (node == null || node.length < 1){
  314. messageBox("선택 된 자산이","I004");
  315. return false;
  316. }
  317. model.removeNodeset(grd_cpfixasetlist.nodeset);
  318. grd_cpfixasetlist.refresh();
  319. for (var i=0; i<node.length; i++) {
  320. var selectItem = node.item(i);
  321. var goodflag = selectItem.selectSingleNode("goodflag").value.getTrim();
  322. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= E) => (goodflag= EQ)
  323. if (goodflag == "EQ") {
  324. goodnm = selectItem.selectSingleNode("goodflagengnm").value.getTrim();
  325. } else {
  326. goodnm = selectItem.selectSingleNode("goodflaghngnm").value.getTrim();
  327. }
  328. mngtdeptnm = selectItem.selectSingleNode("upddeptnm").value.getTrim();
  329. installplcenm = selectItem.selectSingleNode("installplcenm").value.getTrim();
  330. grd_cpfixasetlist.addRow(false);
  331. grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("fixasetcd" )) = selectItem.selectSingleNode("fixasetcd").value;
  332. grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("possndd" )) = selectItem.selectSingleNode("possndd").value;
  333. grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("goodnm1" )) = goodnm;
  334. grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("goodspec" )) = selectItem.selectSingleNode("goodspec").value;
  335. grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("deptnm1" )) = mngtdeptnm;
  336. grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("deptnm2" )) = installplcenm;
  337. grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("mngtno" )) = selectItem.selectSingleNode("mngtno").value;
  338. grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("suplplcenm" )) = selectItem.selectSingleNode("suplplcenm").value;
  339. grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("cmt" )) = selectItem.selectSingleNode("cmt").value;
  340. grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("ipaddr" )) = selectItem.selectSingleNode("ipaddr").value;
  341. }
  342. grd_cpfixasetlist.refresh();
  343. exeReportPreview("RPRFC00702","XMLSTR");
  344. exeReportPreview("RPRFC00703","XMLSTR");
  345. ]]>
  346. </script>
  347. </button>
  348. <datagrid id="grd_cpfixasetlist" nodeset="/root/main/list/cpfixaset/cpfixasetlist" visibility="hidden" caption="기관코드^자산코드^품명^모델^규격^SERIAL NO^공급처^구입일자^운용부서^설치장소^물품명2^IP주소^비고" colsep="^" colwidth="53, 110, 230, 100, 160, 123, 159, 75, 130, 130, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:490px; top:440px; width:679px; height:262px; ">
  349. <col ref="instcd" visibility="hidden"/>
  350. <col ref="fixasetcd" style="text-align:center; "/>
  351. <col ref="goodnm1" style="padding-left:5; "/>
  352. <col ref="goodmodel" visibility="hidden"/>
  353. <col ref="goodspec" style="padding-left:5; "/>
  354. <col ref="mngtno"/>
  355. <col ref="suplplcenm" style="padding-left:5; "/>
  356. <col ref="possndd" format="yyyy-mm-dd" style="text-align:center; "/>
  357. <col ref="deptnm1"/>
  358. <col ref="deptnm2"/>
  359. <col ref="goodnm2" visibility="hidden"/>
  360. <col ref="ipaddr"/>
  361. <col ref="cmt"/>
  362. </datagrid>
  363. </group>
  364. <group id="group2" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  365. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  366. <button id="btn_init" class="btn4_letter3" navindex="20" style="left:1126; top:3; width:68px; height:22px; ">
  367. <caption>초기화</caption>
  368. <script type="javascript" ev:event="DOMActivate">
  369. <![CDATA[
  370. fInitialize();
  371. ]]>
  372. </script>
  373. </button>
  374. </group>
  375. </xhtml:body>
  376. </xhtml:html>