SMRFC00917_컴퓨터현황.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRFC00917" position="absolute 0 0 1203 783" titletext="컴퓨터현황조회" oninit="SMRFC00917_oninit" onload="SMRFC00917_onload">
  5. <Layouts>
  6. <Layout>
  7. <Tab id="switch1" taborder="5" tabindex="0" position="absolute 0 118 1195 772" anchor="all" onchanged="switch1_onchanged">
  8. <Tabpages>
  9. <Tabpage id="case_fixasetlist" text="운영체제별">
  10. <Layouts>
  11. <Layout>
  12. <Grid id="grd_fixasetlist" class="datagrid2" taborder="0" binddataset="ds_main_list_fixaset_fixasetlist" useinputpanel="false" position="absolute 0 0 850 625" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="24"/>
  17. <Column size="100"/>
  18. <Column size="90"/>
  19. <Column size="90"/>
  20. <Column size="90"/>
  21. <Column size="90"/>
  22. <Column size="90"/>
  23. <Column size="90"/>
  24. <Column size="150"/>
  25. </Columns>
  26. <Rows>
  27. <Row size="24" band="head"/>
  28. <Row size="24"/>
  29. <Row size="24" band="summ"/>
  30. </Rows>
  31. <Band id="head">
  32. <Cell/>
  33. <Cell col="1" text="년도"/>
  34. <Cell col="2" text="WinXP"/>
  35. <Cell col="3" text="Win7-32bit"/>
  36. <Cell col="4" text="Win7-64bit"/>
  37. <Cell col="5" text="Win8"/>
  38. <Cell col="6" text="Win8.1"/>
  39. <Cell col="7" text="-"/>
  40. <Cell col="8" text="계"/>
  41. </Band>
  42. <Band id="body">
  43. <Cell celltype="head" expr="currow+1"/>
  44. <Cell col="1" text="bind:possndd"/>
  45. <Cell col="2" text="bind:os1"/>
  46. <Cell col="3" text="bind:os2"/>
  47. <Cell col="4" text="bind:os3"/>
  48. <Cell col="5" text="bind:os5"/>
  49. <Cell col="6" text="bind:os4"/>
  50. <Cell col="7" text="bind:os0"/>
  51. <Cell col="8" displaytype="number" style="align:center middle;color:#990000ff;color2:#990000ff;" text="bind:tt"/>
  52. </Band>
  53. <Band id="summary">
  54. <Cell style="background:#99ccffff;background2:#99ccffff;font:arial,9,bold;"/>
  55. <Cell col="1" style="background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="총계"/>
  56. <Cell col="2" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('os1')"/>
  57. <Cell col="3" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('os2')"/>
  58. <Cell col="4" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('os3')"/>
  59. <Cell col="5" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('os5')"/>
  60. <Cell col="6" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('os4')"/>
  61. <Cell col="7" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('os0')"/>
  62. <Cell col="8" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;color:#990000ff;color2:#990000ff;font:arial,9,bold;" text="expr:getSum('tt')"/>
  63. </Band>
  64. </Format>
  65. </Formats>
  66. </Grid>
  67. </Layout>
  68. </Layouts>
  69. </Tabpage>
  70. <Tabpage id="case_fixasetmodel" text="기종별">
  71. <Layouts>
  72. <Layout>
  73. <Div id="grp_biz" anchor="all" taborder="0" position="absolute 0 0 1195 620"/>
  74. </Layout>
  75. </Layouts>
  76. </Tabpage>
  77. </Tabpages>
  78. </Tab>
  79. <Static id="caption6" text="컴퓨터 현황 조회" class="tit_1" position="absolute 0 0 186 25"/>
  80. <Div id="group5" anchor="left top right" taborder="1" class="div_SA2" position="absolute 0 48 1195 108">
  81. <Layouts>
  82. <Layout>
  83. <Edit id="ipt_mngtdeptcd_search" taborder="21" class="input_search" position="absolute 103 32 188 51" onkeyup="group5_ipt_mngtdeptcd_search_onkeyup"/>
  84. <Button id="btn_mngtdeptcd_search" taborder="22" class="icon_search" position="absolute 192 34 208 50" onclick="group5_btn_mngtdeptcd_search_onclick"/>
  85. <Edit id="ipt_mngtdeptnm_search" taborder="23" class="input_search" position="absolute 211 32 408 51" onkeyup="group5_ipt_mngtdeptnm_search_onkeyup"/>
  86. <Static id="cap_possndd_search" text="취득일자 :" class="search_name" position="absolute 499 8 593 25"/>
  87. <Calendar id="ipt_possnfrdd_search" taborder="24" class="input_default" position="absolute 589 6 687 25" mask="yyyy" dateformat="yyyy" value="null" editformat="yyyy" onchanged="group5_ipt_possnfrdd_search_onchanged" style="align:center middle;"/>
  88. <Button id="btn_search" taborder="25" text="조회" class="btn1" position="absolute 1120 20 1176 42" anchor="top right" onclick="group5_btn_search_onclick"/>
  89. <Static id="cap_instcd_search" text="기관코드 :" class="search_name" position="absolute 11 8 128 25"/>
  90. <Combo id="cmb_instcd_search" taborder="26" class="combo_essential" enable="false" position="absolute 103 6 298 25"/>
  91. <Shape id="line12" linetype="vertical" class="line_4" position="absolute 1102 7 1108 53" anchor="top right"/>
  92. <Calendar id="ipt_possntodd_search" taborder="27" class="input_default" position="absolute 704 6 802 25" mask="yyyy" dateformat="yyyy" editformat="yyyy" onchanged="group5_ipt_possntodd_search_onchanged" style="align:center middle;"/>
  93. <Static id="caption2" text="~" position="absolute 690 7 705 27"/>
  94. <Static id="cap_installplcecd" text="운용부서 :" class="search_name" position="absolute 11 33 103 50"/>
  95. <Combo id="cmb_deptflag_search" taborder="28" position="absolute 937 6 1017 25"/>
  96. <Static id="caption1" text="부서구분 :" class="search_name" position="absolute 847 8 963 25"/>
  97. <Static id="caption3" text="정리구분 :" class="search_name" position="absolute 500 35 616 52"/>
  98. <Combo id="cmb_gubun" taborder="29" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 589 35 669 54">
  99. <Dataset id="innerdataset">
  100. <ColumnInfo>
  101. <Column id="codecolumn"/>
  102. <Column id="datacolumn"/>
  103. </ColumnInfo>
  104. <Rows>
  105. <Row>
  106. <Col id="codecolumn">A</Col>
  107. <Col id="datacolumn">정리</Col>
  108. </Row>
  109. <Row>
  110. <Col id="codecolumn">B</Col>
  111. <Col id="datacolumn">미정리</Col>
  112. </Row>
  113. </Rows>
  114. </Dataset>
  115. </Combo>
  116. </Layout>
  117. </Layouts>
  118. </Div>
  119. <Button id="btn_excel" taborder="2" text="Excel 저장" class="btn5" position="absolute 1120 121 1195 140" anchor="top right" onclick="btn_excel_onclick"/>
  120. <Shape id="line16" linetype="vertical" class="line_1" position="absolute 0 199 1190 200"/>
  121. <Button id="btn_print" taborder="3" text="운영체체리스트" class="btn5" position="absolute 1014 121 1119 140" anchor="top right" onclick="btn_print_onclick"/>
  122. <Shape id="line14" class="line_6" position="absolute 0 44 1195 50" anchor="left top right"/>
  123. <Button id="btn_init" taborder="4" text="초기화" class="btn4" position="absolute 1127 23 1195 45" anchor="top right" onclick="btn_init_onclick"/>
  124. </Layout>
  125. </Layouts>
  126. <Objects>
  127. <Dataset id="ds_send_fixasetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_fixasetlist_oncolumnchanged">
  128. <ColumnInfo>
  129. <Column id="instcd" type="STRING" size="256"/>
  130. <Column id="mngtdeptcd" type="STRING" size="256"/>
  131. <Column id="mngtdeptnm" type="STRING" size="256"/>
  132. <Column id="possnfrdd" type="STRING" size="256"/>
  133. <Column id="possntodd" type="STRING" size="256"/>
  134. <Column id="gubun" type="STRING" size="256"/>
  135. <Column id="deptflag" type="STRING" size="256"/>
  136. </ColumnInfo>
  137. <Rows>
  138. <Row>
  139. <Col id="instcd"/>
  140. <Col id="mngtdeptcd"/>
  141. <Col id="mngtdeptnm"/>
  142. <Col id="possnfrdd"/>
  143. <Col id="possntodd"/>
  144. <Col id="gubun">A</Col>
  145. <Col id="deptflag"/>
  146. </Row>
  147. </Rows>
  148. </Dataset>
  149. <Dataset id="ds_main_list_fixaset_fixasetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  150. <ColumnInfo>
  151. <Column id="possndd" type="STRING" size="256" sumtext="년도 "/>
  152. <Column id="os1" type="STRING" size="256" sumtext="winxp "/>
  153. <Column id="os2" type="STRING" size="256" sumtext="win7-32 "/>
  154. <Column id="os3" type="STRING" size="256" sumtext="win7-64 "/>
  155. <Column id="os5" type="STRING" size="256" sumtext="win8 "/>
  156. <Column id="os4" type="STRING" size="256" sumtext="win8.1 "/>
  157. <Column id="os0" type="STRING" size="256" sumtext="- "/>
  158. <Column id="tt" type="STRING" size="256" sumtext="계 "/>
  159. </ColumnInfo>
  160. </Dataset>
  161. <Dataset id="ds_main_list_fixasetmodel" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  162. <ColumnInfo>
  163. <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
  164. <Column id="possndd" type="STRING" size="256" sumtext="년도 "/>
  165. <Column id="goodspec" type="STRING" size="256" sumtext="기종 "/>
  166. <Column id="cnt" type="STRING" size="256" sumtext="자산수 "/>
  167. </ColumnInfo>
  168. </Dataset>
  169. </Objects>
  170. <Bind>
  171. <BindItem id="item0" compid="group5.cmb_instcd_search" propid="value" datasetid="ds_send_fixasetlist" columnid="instcd"/>
  172. <BindItem id="item1" compid="group5.ipt_mngtdeptcd_search" propid="value" datasetid="ds_send_fixasetlist" columnid="mngtdeptcd"/>
  173. <BindItem id="item2" compid="group5.ipt_mngtdeptnm_search" propid="value" datasetid="ds_send_fixasetlist" columnid="mngtdeptnm"/>
  174. <BindItem id="item3" compid="group5.ipt_possnfrdd_search" propid="value" datasetid="ds_send_fixasetlist" columnid="possnfrdd"/>
  175. <BindItem id="item4" compid="group5.ipt_possntodd_search" propid="value" datasetid="ds_send_fixasetlist" columnid="possntodd"/>
  176. <BindItem id="item5" compid="group5.cmb_deptflag_search" propid="value" datasetid="ds_send_fixasetlist" columnid="deptflag"/>
  177. <BindItem id="item6" compid="group5.cmb_gubun" propid="value" datasetid="ds_send_fixasetlist" columnid="gubun"/>
  178. </Bind>
  179. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  180. * System Name :
  181. * Job Name :
  182. * Creator :
  183. * Make Date : 2017-06-19
  184. * Description :
  185. *---------------------------------------------------------------------------------------
  186. * Modify Date Modifier Modify Description
  187. *---------------------------------------------------------------------------------------
  188. * 2017-06-19 Live Converter TF->XP
  189. *
  190. *---------------------------------------------------------------------------------------
  191. ****************************************************************************************/
  192. include "com_commonxp::comm_main.xjs";
  193. include "mis_miscommonxp::MIS.xjs";
  194. function SMRFC00917_oninit(obj:Form, e:InitEventInfo)
  195. {
  196. frmf_initForm(obj);
  197. }
  198. function SMRFC00917_onload(obj:Form, e:LoadEventInfo)
  199. {
  200. grdf_initGrid(switch1.case_fixasetlist.grd_fixasetlist);
  201. fInitialize();
  202. }
  203. function fInitialize()
  204. {
  205. misfGridInit(switch1.case_fixasetlist.grd_fixasetlist);
  206. misfComboComCdListMulti("C0048,R0480", "group5.cmb_instcd_search,group5.cmb_deptflag_search");
  207. frmf_addComboItem("group5.cmb_deptflag_search", "전체", "", "above" );
  208. ds_send_fixasetlist.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  209. ds_main_list_fixaset_fixasetlist.clearData();
  210. //misfMsterDetailSet(grd_fixasetlist, null, "TRRFC00917", "Y" , "byrow");
  211. var curdate = utlf_getCurrentDate();
  212. ds_send_fixasetlist.setColumn(0, "possnfrdd", "2000");
  213. ds_send_fixasetlist.setColumn(0, "possntodd", String(curdate).substr(0,4));
  214. var objDOM = rptf_createDOM();
  215. var objParam = new Object();
  216. objParam.xml_data_XML1 = objDOM.documentElement.source;
  217. var option = null;
  218. //rptf_exeReportPreview30(["RPRFC00918"],[objParam], option, "", "switch1.case_fixasetmodel.grp_biz")
  219. }
  220. function ds_send_fixasetlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  221. {
  222. if(e.columnid == "mngtdeptcd")
  223. {
  224. group5.ipt_mngtdeptnm_search.setFocus();
  225. misfSearchDept(group5.ipt_mngtdeptnm_search);
  226. }
  227. }
  228. function group5_ipt_mngtdeptcd_search_onkeyup(obj:Edit, e:KeyEventInfo)
  229. {
  230. if(e.keycode == 13)
  231. {
  232. obj.updateToDataset();
  233. }
  234. }
  235. function group5_ipt_mngtdeptnm_search_onkeyup(obj:Edit, e:KeyEventInfo)
  236. {
  237. if(e.keycode == 13)
  238. {
  239. obj.updateToDataset();
  240. group5.btn_search.click();
  241. }
  242. }
  243. function group5_btn_mngtdeptcd_search_onclick(obj:Button, e:ClickEventInfo)
  244. {
  245. misfOpenPopUpList("02", group5.ipt_mngtdeptcd_search,"","mngtdeptcd,mngtdeptnm");
  246. }
  247. function group5_ipt_possntodd_search_onchanged(obj:Calendar, e:ChangeEventInfo)
  248. {
  249. ds_send_fixasetlist.setColumn(0, "possntodd", String(obj.value).substr(0,4));
  250. }
  251. function group5_ipt_possnfrdd_search_onchanged(obj:Calendar, e:ChangeEventInfo)
  252. {
  253. ds_send_fixasetlist.setColumn(0, "possnfrdd", String(obj.value).substr(0,4));
  254. }
  255. function group5_btn_search_onclick(obj:Button, e:ClickEventInfo)
  256. {
  257. if(switch1.tabindex == 0)
  258. {
  259. misfGridInit(switch1.case_fixasetlist.grd_fixasetlist);
  260. var oParam = {};
  261. oParam.id = "TRRFC00917";
  262. oParam.service = "purcbaseapp.PurcBaseMngt";
  263. oParam.method = "reqGetOsFixAsetList";
  264. oParam.inds = "req=ds_send_fixasetlist";
  265. oParam.outds = "ds_main_list_fixaset_fixasetlist=fixasetlist";
  266. oParam.async = false;
  267. //oParam.callback = "cf_TRRFC00917";
  268. tranf_submit(oParam);
  269. if(ds_main_list_fixaset_fixasetlist.rowcount > 0)
  270. {
  271. ds_main_list_fixaset_fixasetlist.rowposition = 0;
  272. }
  273. }
  274. else if(switch1.tabindex == 1)
  275. {
  276. var oParam = {};
  277. oParam.id = "TRRFC00918";
  278. oParam.service = "purcbaseapp.PurcBaseMngt";
  279. oParam.method = "reqGetModelFixAsetList";
  280. oParam.inds = "req=ds_send_fixasetlist";
  281. oParam.outds = "ds_main_list_fixasetmodel=fixasetmodel";
  282. oParam.async = false;
  283. oParam.callback = "cf_TRRFC00918";
  284. tranf_submit(oParam);
  285. }
  286. }
  287. function cf_TRRFC00918(sSvcId, nErrorCode, sErrorMsg)
  288. {
  289. if(nErrorCode < 0) return;
  290. else
  291. {
  292. var objDOM = rptf_createDOM();
  293. rptf_setNodeListToDOM(objDOM, "/root/main/list/fixasetmodel/fixasetmodel", ds_main_list_fixasetmodel);
  294. var objParam = new Object();
  295. objParam.xml_data_XML1 = objDOM.documentElement.source;
  296. var option = null;
  297. rptf_exeReportPreview30(["RPRFC00918"],[objParam], option, "", "switch1.case_fixasetmodel.grp_biz")
  298. }
  299. }
  300. function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  301. {
  302. fDisableSetting();
  303. }
  304. function fDisableSetting()
  305. {
  306. var disValue = "";
  307. if(switch1.tabindex == 0)
  308. {
  309. disValue = true;
  310. }
  311. else
  312. {
  313. disValue = false;
  314. }
  315. btn_excel.enable = disValue;
  316. btn_print.enable = disValue;
  317. }
  318. function btn_print_onclick(obj:Button, e:ClickEventInfo)
  319. {
  320. var objDOM = rptf_createDOM();
  321. rptf_setNodeListToDOM(objDOM, "/root/main/list/fixaset/fixasetlist", ds_main_list_fixaset_fixasetlist);
  322. var objParam = new Object();
  323. objParam.xml_data_XML1 = objDOM.documentElement.source;
  324. var option = "";
  325. rptf_exeReportPreview30(["RPRFC00917"],[objParam], option);
  326. }
  327. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  328. {
  329. if( ds_main_list_fixaset_fixasetlist.rowcount > 0)
  330. {
  331. var fileName = "컴퓨터현황_" + utlf_getCurrentDate();
  332. grdf_exportExcel(switch1.case_fixasetlist.grd_fixasetlist, fileName, "Sheet", "true", "", "");
  333. }
  334. else
  335. {
  336. sysf_messageBox("저장 데이터가","I004");
  337. }
  338. }
  339. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  340. {
  341. fInitialize();
  342. }
  343. ]]></Script>
  344. </Form>
  345. </FDL>