SMRFC00917_컴퓨터현황.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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. <fixaset>
  12. <fixasetlist/>
  13. </fixaset>
  14. <fixasetmodel/>
  15. </list>
  16. <fixasetdet>
  17. <fixasettmplist/>
  18. </fixasetdet>
  19. </main>
  20. <send>
  21. <fixasetlist>
  22. <instcd_search/>
  23. <mngtdeptcd_search/>
  24. <mngtdeptnm_search/>
  25. <possnfrdd_search/>
  26. <possntodd_search/>
  27. <gubun_search>A</gubun_search>
  28. <deptflag_search/>
  29. </fixasetlist>
  30. </send>
  31. <init>
  32. <goodflag>
  33. <label>비품</label>
  34. <value>GE</value>
  35. <label>의료장비</label>
  36. <value>EQ</value>
  37. </goodflag>
  38. </init>
  39. <temp>
  40. <searchresult>
  41. <fixaset/>
  42. </searchresult>
  43. </temp>
  44. </root>
  45. </instance>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. //화면 Control을 초기화한다
  49. fInitialize();
  50. // cmb_mdlcd_search.select(10); // 중분류 전산장비
  51. // cmb_smlcd_search.select(1); // 소분류 컴퓨터
  52. // model.refresh();
  53. ]]>
  54. </script>
  55. <submission id="TRRFC00917" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fixasetlist" resultref="/root/main/list/fixaset"/>
  56. <submission id="TRRFC00918" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fixasetlist" resultref="/root/main/list/fixasetmodel"/>
  57. </model>
  58. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  60. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  61. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript">
  65. <![CDATA[
  66. function fInitialize()
  67. {
  68. misfGridInit(grd_fixasetlist);
  69. misfComboComCdListMulti("C0048,R0480",
  70. "cmb_instcd_search,cmb_deptflag_search");
  71. // addComboItem("cmb_oskind_search", "전체", "", "above" );
  72. // addComboItem("cmb_memoryvol_search", "전체", "", "above" );
  73. // addComboItem("rdo_dsplflag_search", "전체", "", "below" );
  74. addComboItem("cmb_deptflag_search", "전체", "", "above" );
  75. // model.setValue(rdo_dsplflag_search.attribute("ref"), "0"); // 처분구분 Default 정상
  76. model.setValue("/root/send/fixasetlist/instcd_search", getUserInfo("dutplceinstcd")); // 기관 설정
  77. // model.setValue("/root/send/fixasetlist/goodflag_search", "GE");
  78. // rszfLMSComboList("GE", "", "", "cmb_lrgcd_search", "", "L", "Y", "Y");
  79. //
  80. // model.setValue("/root/send/fixasetlist/lrgcd_search", "17");
  81. //
  82. // rszfLMSComboList("GE", "ALL", "", "cmb_mdlcd_search", "", "M", "Y", "Y");
  83. //
  84. // rszfLMSComboList("GE", "ALL", "ALL", "cmb_smlcd_search", "", "S", "Y", "Y");
  85. //
  86. // cmb_lrgcd_search.dispatch("xforms-value-changed");
  87. model.resetInstanceNode("/root/main/fixasetdet/fixasettmplist");
  88. model.resetInstanceNode("/root/main/list/fixasetdet/fixasettmplist");
  89. misfMsterDetailSet(grd_fixasetlist, null, "TRRFC00917", "Y" , "byrow");
  90. var curdate = getCurrentDate();
  91. model.setValue(ipt_possnfrdd_search.attribute("ref"),"2000");
  92. model.setValue(ipt_possntodd_search.attribute("ref"),curdate.substr(0,4));
  93. model.refresh();
  94. makeReportPreview(0, 0, 1188, 550, "case_fixasetmodel");
  95. }
  96. function fDefaultSetting(prow)
  97. {
  98. model.setValue(grd_fixasetlist.nodeset +"[" + prow+ "]/instcd" ,model.getValue(cmb_instcd_search.attribute("ref")));
  99. model.setValue("/root/main/fixasetdet/fixasettmplist/instcd", model.getValue(cmb_instcd_search.attribute("ref"))); // 기관 설정
  100. //model.setValue("/root/main/fixasetdet/fixasettmplist/goodflag", model.getValue(opt_goodflag_search.attribute("ref"))); // 물품구분
  101. model.setValue("/root/main/fixasetdet/fixasettmplist/goodqty", "1"); // 수량
  102. }
  103. function fDisableSetting() {
  104. var disValue = "";
  105. if(btn_fixasetlistcase.selected == true) {
  106. disValue = false;
  107. } else {
  108. disValue = true;
  109. }
  110. btn_excel.disabled = disValue;
  111. btn_print.disabled = disValue;
  112. // ipt_mngtdeptcd_search.disabled = disValue;
  113. // ipt_mngtdeptnm_search.disabled = disValue;
  114. // btn_mngtdeptcd_search.disabled = disValue;
  115. // ipt_fixasetcd_search.disabled = disValue;
  116. // ipt_name_search.disabled = disValue;
  117. model.refresh();
  118. }
  119. function fSubmitOnScroll() {
  120. if(grd_fixasetlist.vscroll.attribute("max") == grd_fixasetlist.vscroll.attribute("pos")) {
  121. // end of scroll
  122. model.makeValue("/root/send/fixasetlist/offset",grd_fixasetlist.rows-grd_fixasetlist.fixedRows); // grid의 header row는 제외
  123. submit("TRRFC00917");
  124. grd_fixasetlist.dispatch("onmouseup");
  125. }
  126. }
  127. ]]>
  128. </script>
  129. </xhtml:head>
  130. <xhtml:body pagewidth="1200" pageheight="800" guideline="1,-2;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  131. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  132. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:15px; ">컴퓨터 현황 조회</caption>
  133. </group>
  134. <group id="group4" scroll="auto" style="left:0px; top:36px; width:1195px; height:738px; ">
  135. <group id="group5" style="left:0px; top:5px; width:1193px; height:70px; vertical-align:top; ">
  136. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  137. <input id="ipt_mngtdeptcd_search" ref="/root/send/fixasetlist/mngtdeptcd_search" class="input_search" navindex="3" style="left:95px; top:33px; width:85px; height:19px; ">
  138. <script type="javascript" ev:event="xforms-value-changed">
  139. <![CDATA[
  140. misfSearchDept(ipt_mngtdeptnm_search);
  141. ]]>
  142. </script>
  143. </input>
  144. <button id="btn_mngtdeptcd_search" class="icon_search" navindex="-1" style="left:184px; top:34px; width:16px; height:16px; ">
  145. <caption/>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. misfOpenPopUpList("02", ipt_mngtdeptcd_search,"","mngtdeptcd_search,mngtdeptnm_search");
  149. model.refresh();
  150. ]]>
  151. </script>
  152. </button>
  153. <input id="ipt_mngtdeptnm_search" ref="/root/send/fixasetlist/mngtdeptnm_search" class="input_search" navindex="4" appearance="input" style="left:203px; top:33px; width:197px; height:19px; ">
  154. <script type="javascript" ev:event="onkeyup">
  155. <![CDATA[
  156. inputEnterKey("btn_search", "DOMActivate");
  157. ]]>
  158. </script>
  159. </input>
  160. <caption id="cap_possndd_search" class="search_name" visibility="visible" style="left:507px; top:6px; width:94px; height:17px; ">취득일자 :</caption>
  161. <input id="ipt_possnfrdd_search" ref="/root/send/fixasetlist/possnfrdd_search" class="input_default" navindex="15" visibility="visible" inputtype="date" format="yyyy" style="left:597px; top:4px; width:90px; height:19px; text-align:center; "/>
  162. <button id="btn_search" class="btn1_letter2" navindex="20" style="left:1120px; top:26px; width:56px; height:22px; ">
  163. <caption>조회</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. if(btn_fixasetlistcase.selected == true) {
  167. misfGridInit(grd_fixasetlist);
  168. submit("TRRFC00917");
  169. grd_fixasetlist.subtotalPosition = "below";
  170. grd_fixasetlist.subtotal("clear", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ccff; font-weight:bold; text-align:center", 1, "총계" );
  171. for(var i=0; i < grd_fixasetlist.cols; i++){
  172. if(i >= grd_fixasetlist.colRef("os1")){
  173. grd_fixasetlist.subtotal("sum", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ccff; font-weight:bold; text-align:center", 1, "총계" );
  174. }
  175. }
  176. grd_fixasetlist.refresh();
  177. if(grd_fixasetlist.rows - grd_fixasetlist.fixedRows > 0) {
  178. grd_fixasetlist.row = 1;
  179. grd_fixasetlist.dispatch("onrowchanged");
  180. }else{
  181. model.removenode("/root/main/fixasetdet/fixasettmplist");
  182. }
  183. }else if(btn_fixasetmodelcase.selected == true) {
  184. if(submit("TRRFC00918")){
  185. exeReportPreview("RPRFC00918", "XMLSTR","","","","","","","","","","case_fixasetmodel");
  186. }
  187. }
  188. //closeLoadingBar();
  189. ]]>
  190. </script>
  191. </button>
  192. <caption id="cap_instcd_search" class="search_name" style="left:3px; top:6px; width:117px; height:17px; ">기관코드 :</caption>
  193. <select1 id="cmb_instcd_search" ref="/root/send/fixasetlist/instcd_search" class="combo_s_essential" disabled="true" navindex="1" appearance="minimal" style="left:95px; top:4px; width:195px; height:19px; ">
  194. <choices>
  195. <itemset>
  196. <label/>
  197. <value/>
  198. </itemset>
  199. </choices>
  200. </select1>
  201. <line id="line12" class="line_4" style="x1:1105px; y1:13px; x2:1105px; y2:59px; border-color:#ffd799; "/>
  202. <input id="ipt_possntodd_search" ref="/root/send/fixasetlist/possntodd_search" class="input_default" navindex="16" visibility="visible" inputtype="date" format="yyyy" style="left:704px; top:4px; width:90px; height:19px; text-align:center; "/>
  203. <caption id="caption2" visibility="visible" style="left:689px; top:5px; width:15px; height:20px; font-weight:bold; ">~</caption>
  204. <caption id="cap_installplcecd" class="search_name" style="left:3px; top:32px; width:92px; height:17px; ">운용부서 :</caption>
  205. <select1 id="cmb_deptflag_search" ref="/root/send/fixasetlist/deptflag_search" navindex="19" visibility="visible" appearance="minimal" style="left:937px; top:4px; width:80px; height:19px; ">
  206. <choices>
  207. <itemset>
  208. <label/>
  209. <value/>
  210. </itemset>
  211. </choices>
  212. </select1>
  213. <caption id="caption1" class="search_name" style="left:847px; top:6px; width:116px; height:17px; ">부서구분 :</caption>
  214. <caption id="caption3" class="search_name" style="left:506px; top:35px; width:116px; height:17px; ">정리구분 :</caption>
  215. <select1 id="cmb_gubun" ref="/root/send/fixasetlist/gubun_search" navindex="19" visibility="visible" appearance="minimal" style="left:595px; top:35px; width:80px; height:19px; ">
  216. <choices>
  217. <item>
  218. <label>정리</label>
  219. <value>A</value>
  220. </item>
  221. <item>
  222. <label>미정리</label>
  223. <value>B</value>
  224. </item>
  225. </choices>
  226. </select1>
  227. </group>
  228. <button id="btn_excel" class="btn5_letter5" navindex="21" style="left:1114px; top:74px; width:75px; height:19px; ">
  229. <caption>Excel 저장</caption>
  230. <script type="javascript" ev:event="DOMActivate">
  231. <![CDATA[
  232. if( grd_fixasetlist.rows - grd_fixasetlist.fixedRows > 0 ) {
  233. var fileName = "컴퓨터현황_" + getCurrentDate();
  234. var fileName = window.fileDialog("save", ",", false, fileName, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  235. grd_fixasetlist.saveExcel(fileName, "Sheet");
  236. } else {
  237. messageBox("저장 데이터가","I004");
  238. }
  239. ]]>
  240. </script>
  241. </button>
  242. <line id="line16" class="line_1" style="x1:0px; y1:158px; x2:1190px; y2:157px; "/>
  243. <switch id="switch1" style="left:0px; top:95px; width:1190px; height:630px; ">
  244. <case id="case_fixasetlist">
  245. <datagrid id="grd_fixasetlist" nodeset="/root/main/list/fixaset/fixasetlist" class="datagrid2" caption="년도^WinXP^Win7-32bit^Win7-64bit^Win8^Win8.1^-^계" colsep="^" colwidth="100, 90, 90, 90, 90, 90, 90, 150" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" selectionmode="byrow" navindex="22" style="left:0px; top:0px; width:850px; height:625px; ">
  246. <col ref="possndd" style="height:35; text-align:center; "/>
  247. <col ref="os1" style="text-align:center; "/>
  248. <col ref="os2" style="text-align:center; "/>
  249. <col ref="os3" style="text-align:center; "/>
  250. <col ref="os5" style="text-align:center; "/>
  251. <col ref="os4" style="text-align:center; "/>
  252. <col ref="os0" style="text-align:center; "/>
  253. <col ref="tt" format="#,###" style="font-weight:bold; color:#990000; text-align:center; "/>
  254. <script type="javascript" ev:event="onaftersort">
  255. <![CDATA[
  256. grd_fixasetlist.gridToInstance();
  257. ]]>
  258. </script>
  259. </datagrid>
  260. </case>
  261. <case id="case_fixasetmodel"/>
  262. </switch>
  263. <button id="btn_fixasetlistcase" class="btn_sw" group="tab" selected="true" style="left:0px; top:75px; width:100px; height:22px; ">
  264. <caption>운영체제별</caption>
  265. <toggle case="case_fixasetlist" ev:event="onclick"/>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. fDisableSetting();
  269. ]]>
  270. </script>
  271. </button>
  272. <button id="btn_fixasetmodelcase" class="btn_sw" group="tab" style="left:100px; top:75px; width:100px; height:22px; ">
  273. <caption>기종별</caption>
  274. <toggle case="case_fixasetmodel" ev:event="onclick"/>
  275. <script type="javascript" ev:event="DOMActivate">
  276. <![CDATA[
  277. fDisableSetting();
  278. ]]>
  279. </script>
  280. </button>
  281. <button id="btn_print" class="btn5_letter7" navindex="21" style="left:1015px; top:74px; width:97px; height:19px; ">
  282. <caption>운영체체리스트</caption>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. exeReportPreview("RPRFC00917","XMLSTR");
  286. ]]>
  287. </script>
  288. </button>
  289. </group>
  290. <group id="group1" style="left:0px; top:12; width:1195; height:27px; ">
  291. <button id="btn_init" class="btn4_letter3" navindex="24" style="left:1120px; top:4px; width:68px; height:22px; ">
  292. <caption>초기화</caption>
  293. <script type="javascript" ev:event="DOMActivate">
  294. <![CDATA[
  295. model.resetInstanceNode("/root/send");
  296. fInitialize();
  297. ]]>
  298. </script>
  299. </button>
  300. <line id="line14" class="line_6" style="x1:0; y1:25; x2:1194; y2:25; "/>
  301. </group>
  302. </xhtml:body>
  303. </xhtml:html>