SMRFC00916_부서별자산현황.xfdl 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRFC00916" position="absolute 0 0 1200 949" titletext="부서별 자산 현황" oninit="SMRFC00916_oninit" onload="SMRFC00916_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_biz" anchor="all" taborder="3" position="absolute 0 490 1195 924" scrollbars="none"/>
  8. <Static id="caption6" text="부서별 자산 현황" class="tit_1" position="absolute 0 0 186 25"/>
  9. <Div id="group5" taborder="1" class="div_SA" position="absolute 0 25 1195 65" anchor="left top right">
  10. <Layouts>
  11. <Layout>
  12. <Edit id="ipt_mngtdeptcd_search" taborder="21" class="input_search" position="absolute 446 11 531 30" anchor="default" onkeyup="group5_ipt_mngtdeptcd_search_onkeyup"/>
  13. <Button id="btn_mngtdeptcd_search" taborder="22" class="icon_search" position="absolute 535 11 551 27" anchor="default" onclick="group5_btn_mngtdeptcd_search_onclick"/>
  14. <Edit id="ipt_mngtdeptnm_search" taborder="23" class="input_search" position="absolute 554 11 751 30" anchor="default" onkeyup="group5_ipt_mngtdeptnm_search_onkeyup"/>
  15. <Button id="btn_search" taborder="24" text="조회" class="btn1" position="absolute 1076 9 1132 31" anchor="default" onclick="group5_btn_search_onclick"/>
  16. <Static id="cap_instcd_search" text="기관코드 :" class="search_name" position="absolute 9 11 126 28" anchor="default"/>
  17. <Combo id="cmb_instcd_search" taborder="25" class="combo_essential" enable="false" position="absolute 101 11 296 30" anchor="default"/>
  18. <Shape id="line12" linetype="vertical" class="line_4" position="absolute 1058 8 1064 29" anchor="default"/>
  19. <Static id="cap_installplcecd" text="운용부서 :" class="search_name" position="absolute 354 11 446 28" anchor="default"/>
  20. </Layout>
  21. </Layouts>
  22. </Div>
  23. <ImageViewer id="img1" taborder="2" position="absolute 115 71 871 478" stretch="fit"/>
  24. <Shape id="line1" class="line_10" position="absolute 0 481 1195 487" anchor="left top right"/>
  25. </Layout>
  26. </Layouts>
  27. <Objects>
  28. <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">
  29. <ColumnInfo>
  30. <Column id="instcd" type="STRING" size="256"/>
  31. <Column id="mngtdeptcd" type="STRING" size="256"/>
  32. <Column id="mngtdeptnm" type="STRING" size="256"/>
  33. </ColumnInfo>
  34. <Rows>
  35. <Row>
  36. <Col id="instcd"/>
  37. <Col id="mngtdeptcd"/>
  38. <Col id="mngtdeptnm"/>
  39. </Row>
  40. </Rows>
  41. </Dataset>
  42. <Dataset id="ds_main_list_fixasetstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  43. <ColumnInfo>
  44. <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
  45. <Column id="fixasetcd" type="STRING" size="256" sumtext="자산코드 "/>
  46. <Column id="goodflaghngnm" type="STRING" size="256" sumtext="자산명 "/>
  47. <Column id="goodspec" type="STRING" size="256" sumtext="규격 "/>
  48. <Column id="fixasetunitnm" type="STRING" size="256" sumtext="고정자산단위명 "/>
  49. <Column id="goodqty" type="STRING" size="256" sumtext="물품수량 "/>
  50. <Column id="goodunitcost" type="STRING" size="256" sumtext="단가 "/>
  51. <Column id="possnamt" type="STRING" size="256" sumtext="취득금액 "/>
  52. <Column id="possndd" type="STRING" size="256" sumtext="취급일자 "/>
  53. <Column id="suplplcenm" type="STRING" size="256" sumtext="공급처명 "/>
  54. <Column id="installplcenm" type="STRING" size="256" sumtext="설치장소명 "/>
  55. <Column id="cmt" type="STRING" size="256" sumtext="비고 "/>
  56. <Column id="lrgnm" type="STRING" size="256" sumtext="대분류 "/>
  57. <Column id="mdlnm" type="STRING" size="256" sumtext="중분류 "/>
  58. <Column id="smlnm" type="STRING" size="256" sumtext="소분류 "/>
  59. </ColumnInfo>
  60. </Dataset>
  61. </Objects>
  62. <Bind>
  63. <BindItem id="item0" compid="group5.cmb_instcd_search" propid="value" datasetid="ds_send_fixasetlist" columnid="instcd"/>
  64. <BindItem id="item1" compid="group5.ipt_mngtdeptcd_search" propid="value" datasetid="ds_send_fixasetlist" columnid="mngtdeptcd"/>
  65. <BindItem id="item2" compid="group5.ipt_mngtdeptnm_search" propid="value" datasetid="ds_send_fixasetlist" columnid="mngtdeptnm"/>
  66. </Bind>
  67. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  68. * System Name :
  69. * Job Name :
  70. * Creator :
  71. * Make Date : 2017-06-19
  72. * Description :
  73. *---------------------------------------------------------------------------------------
  74. * Modify Date Modifier Modify Description
  75. *---------------------------------------------------------------------------------------
  76. * 2017-06-19 Live Converter TF->XP
  77. *
  78. *---------------------------------------------------------------------------------------
  79. ****************************************************************************************/
  80. include "com_commonxp::comm_main.xjs";
  81. include "com_irmsxp::IrmsCom.xjs";
  82. include "mis_miscommonxp::MIS.xjs";
  83. function SMRFC00916_oninit(obj:Form, e:InitEventInfo)
  84. {
  85. frmf_initForm(obj);
  86. }
  87. function SMRFC00916_onload(obj:Form, e:LoadEventInfo)
  88. {
  89. fInitialize();
  90. }
  91. function fInitialize()
  92. {
  93. misfComboComCdListMulti("C0048", "group5.cmb_instcd_search");
  94. ds_send_fixasetlist.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd")); // 기관 설정
  95. var objDOM = rptf_createDOM();
  96. var objParam = new Object();
  97. objParam.xml_data_XML1 = objDOM.documentElement.source;
  98. var option = null;
  99. rptf_exeReportPreview30(["RPRFC00916"],[objParam], option, "", "grp_biz")
  100. }
  101. function ds_send_fixasetlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  102. {
  103. if(e.columnid == "mngtdeptcd")
  104. {
  105. group5.ipt_mngtdeptnm_search.setFocus();
  106. misfSearchDept(group5.ipt_mngtdeptnm_search);
  107. }
  108. }
  109. function group5_ipt_mngtdeptnm_search_onkeyup(obj:Edit, e:KeyEventInfo)
  110. {
  111. if(e.keycode == 13)
  112. {
  113. obj.updateToDataset();
  114. group5.btn_search.click();
  115. }
  116. }
  117. function group5_btn_mngtdeptcd_search_onclick(obj:Button, e:ClickEventInfo)
  118. {
  119. misfOpenPopUpList("02", group5.ipt_mngtdeptcd_search,"","mngtdeptcd,mngtdeptnm");
  120. }
  121. function group5_btn_search_onclick(obj:Button, e:ClickEventInfo)
  122. {
  123. var oParam = {};
  124. oParam.id = "TRRFC00916";
  125. oParam.service = "purcbaseapp.PurcBaseMngt";
  126. oParam.method = "reqGetDeptFixAsetList";
  127. oParam.inds = "req=ds_send_fixasetlist";
  128. oParam.outds = "ds_main_list_fixasetstat=fixasetstat";
  129. oParam.async = false;
  130. oParam.callback = "cf_TRRFC00916";
  131. tranf_submit(oParam);
  132. }
  133. function cf_TRRFC00916(sSvcId, nErrorCode, sErrorMsg)
  134. {
  135. if(nErrorCode < 0) return;
  136. else
  137. {
  138. var deptcd = ds_send_fixasetlist.getColumn(0, "mngtdeptcd");
  139. var img = "URL(IMG::mis/"+deptcd+".png)";
  140. if(!utlf_isNull(deptcd))
  141. {
  142. img1.image = img;
  143. }
  144. else
  145. {
  146. img1.visible = true;
  147. }
  148. var objDOM = rptf_createDOM();
  149. rptf_setNodeListToDOM(objDOM, "/root/main/list/fixasetstat/fixasetstat", ds_main_list_fixasetstat);
  150. var objParam = new Object();
  151. objParam.xml_data_XML1 = objDOM.documentElement.source;
  152. var option = null;
  153. rptf_exeReportPreview30(["RPRFC00916"],[objParam], option, "", "grp_biz")
  154. }
  155. }
  156. function group5_ipt_mngtdeptcd_search_onkeyup(obj:Edit, e:KeyEventInfo)
  157. {
  158. if(e.keycode == 13)
  159. {
  160. obj.updateToDataset();
  161. }
  162. }
  163. ]]></Script>
  164. </Form>
  165. </FDL>