SMLIF00300_MIS자산코드조회.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLIF00300" classname="SPZBC00100_코드검색팝업" inheritanceid="" position="absolute 0 0 800 500" titletext="MIS자산코드조회" onload="SMLIF00300_onload" onkeydown="SMLIF00300_onkeydown">
  5. <Layouts>
  6. <Layout>
  7. <Static id="st_codeList" text="고정자산 목록" position2="absolute l:0 w:132 t:78 h:20" positiontype="position2" class="tit_2"/>
  8. <Grid id="grd_fixasetcd" taborder="3" useinputpanel="false" position2="absolute l:0 w:796 t:98 h:376" positiontype="position2" binddataset="ds_fixasetcdlist" cellmovingtype="none" autofittype="none" cellsizebandtype="allband" cellsizingtype="col" areaselecttype="limitband" oncelldblclick="gd_deptCodeList_oncelldblclick" onkeydown="gd_deptCodeList_onkeydown">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="30"/>
  13. <Column size="120"/>
  14. <Column size="220"/>
  15. <Column size="110"/>
  16. <Column size="110"/>
  17. <Column size="100"/>
  18. <Column size="100"/>
  19. <Column size="180"/>
  20. <Column size="100"/>
  21. <Column size="80"/>
  22. </Columns>
  23. <Rows>
  24. <Row size="24" band="head"/>
  25. <Row size="24"/>
  26. </Rows>
  27. <Band id="head">
  28. <Cell/>
  29. <Cell col="1" text="고정자산코드" autosizecol="limitmin"/>
  30. <Cell col="2" text="고정자산명"/>
  31. <Cell col="3" text="규격"/>
  32. <Cell col="4" text="모델"/>
  33. <Cell col="5" text="사용부서"/>
  34. <Cell col="6" text="설치부서"/>
  35. <Cell col="7" text="대리점"/>
  36. <Cell col="8" text="대리점연락처"/>
  37. <Cell col="9" text="최초등록일"/>
  38. </Band>
  39. <Band id="body">
  40. <Cell celltype="head" text="expr:currow+1"/>
  41. <Cell col="1" text="bind:fixasetcd"/>
  42. <Cell col="2" style="align:left;padding:0 0 0 3;" text="bind:goodflaghngnm"/>
  43. <Cell col="3" style="align:left;" text="bind:goodspec"/>
  44. <Cell col="4" style="align:left;" text="bind:goodmodel"/>
  45. <Cell col="5" style="align:left;" text="bind:mngtdeptnm"/>
  46. <Cell col="6" style="align:left;" text="bind:installplcenm"/>
  47. <Cell col="7" style="align:left;" text="bind:agency"/>
  48. <Cell col="8" text="bind:agencycntctel"/>
  49. <Cell col="9" text="bind:fstrgstdd" mask="####-##-##"/>
  50. </Band>
  51. </Format>
  52. </Formats>
  53. </Grid>
  54. <Button id="bt_ok" taborder="4" text="확인" onclick="bt_ok_onclick" class="btn4" anchor="default" position="absolute 680 477 736 497" positiontype="position"/>
  55. <Button id="bt_cancel" taborder="5" text="취소" onclick="bt_cancel_onclick" class="btn4" anchor="default" position="absolute 739 477 795 497" positiontype="position"/>
  56. <Div id="div_search" taborder="7" class="div_SA" position="absolute 0 26 796 68">
  57. <Layouts>
  58. <Layout>
  59. <Static id="st_searchCondition" class="search_name" anchor="default" position="absolute 8 10 16 30" positiontype="position"/>
  60. <Combo id="cmb_deptflag" taborder="1" value="deptcd" text="부서코드" codecolumn="codecolumn" datacolumn="datacolumn" index="0" anchor="default" position="absolute 18 10 96 30" positiontype="position">
  61. <Dataset id="innerdataset">
  62. <ColumnInfo>
  63. <Column id="codecolumn" size="256"/>
  64. <Column id="datacolumn" size="256"/>
  65. </ColumnInfo>
  66. <Rows>
  67. <Row>
  68. <Col id="codecolumn">M</Col>
  69. <Col id="datacolumn">사용부서</Col>
  70. </Row>
  71. <Row>
  72. <Col id="codecolumn">A</Col>
  73. <Col id="datacolumn">설치부서</Col>
  74. </Row>
  75. </Rows>
  76. </Dataset>
  77. </Combo>
  78. <Edit id="ipt_deptnm" taborder="2" onkeydown="div_search_ed_searchValue_onkeydown" anchor="default" position="absolute 99 10 213 30" imemode="alpha" enable="false" positiontype="position"/>
  79. <Button id="btn_search" taborder="3" text="조회" class="btn1" anchor="default" position="absolute 726 10 782 30" onclick="div_search_btn_search_onclick" positiontype="position"/>
  80. <Static id="st_searchCondition00" text="고정자산명 : " class="search_name" position="absolute 498 10 589 30" anchor="default"/>
  81. <Edit id="ipt_goodflaghngnm" taborder="4" imemode="none" position="absolute 585 10 685 30" anchor="default" onkeydown="div_search_ipt_goodflaghngnm_onkeydown"/>
  82. <Button id="btn_deptsrch" taborder="5" class="icon_search" position="absolute 211 9 231 29" onclick="div_search_btn_deptsrch_onclick" anchor="default"/>
  83. <Button id="btn_eraser00" taborder="6" class="icon_eraser" position="absolute 235 6 261 32" tooltiptext="부서초기" onclick="div_search_btn_eraser00_onclick" anchor="default"/>
  84. <Shape id="line3" linetype="vertical" position="absolute 703 11 708 31" anchor="top right"/>
  85. <Static id="st_searchCondition01" text="고정자산규격 : " class="search_name" position="absolute 280 10 390 30"/>
  86. <Edit id="ipt_goodspec" taborder="7" onkeydown="div_search_ipt_goodflaghngnm_onkeydown" position="absolute 383 10 483 30"/>
  87. </Layout>
  88. </Layouts>
  89. </Div>
  90. <Static id="caption6" text="MIS자산코드조회" class="tit_1" position="absolute 0 0 137 26"/>
  91. </Layout>
  92. </Layouts>
  93. <Objects>
  94. <Dataset id="ds_fixasetcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  95. <ColumnInfo>
  96. <Column id="fixasetcd" type="STRING" size="256"/>
  97. <Column id="goodflaghngnm" type="STRING" size="256"/>
  98. <Column id="goodspec" type="STRING" size="256"/>
  99. <Column id="goodmodel" type="STRING" size="256"/>
  100. <Column id="mngtdeptcd" type="STRING" size="256"/>
  101. <Column id="mngtdeptnm" type="STRING" size="256"/>
  102. <Column id="installplcecd" type="STRING" size="256"/>
  103. <Column id="installplcenm" type="STRING" size="256"/>
  104. <Column id="agency" type="STRING" size="256"/>
  105. <Column id="agencycntctel" type="STRING" size="256"/>
  106. <Column id="fstrgstdd" type="STRING" size="256"/>
  107. </ColumnInfo>
  108. </Dataset>
  109. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  110. <ColumnInfo>
  111. <Column id="deptflag" type="STRING" size="256"/>
  112. <Column id="deptcd" type="STRING" size="256"/>
  113. <Column id="deptnm" type="STRING" size="256"/>
  114. <Column id="goodflaghngnm" type="STRING" size="256"/>
  115. <Column id="goodspec" type="STRING" size="256"/>
  116. </ColumnInfo>
  117. <Rows>
  118. <Row/>
  119. </Rows>
  120. </Dataset>
  121. </Objects>
  122. <Bind>
  123. <BindItem id="item1" compid="div_search.cmb_deptflag" propid="value" datasetid="ds_send" columnid="deptflag"/>
  124. <BindItem id="item0" compid="div_search.ipt_deptnm" propid="value" datasetid="ds_send" columnid="deptnm"/>
  125. <BindItem id="item2" compid="div_search.ipt_goodflaghngnm" propid="value" datasetid="ds_send" columnid="goodflaghngnm"/>
  126. <BindItem id="item3" compid="div_search.ipt_goodspec" propid="value" datasetid="ds_send" columnid="goodspec"/>
  127. </Bind>
  128. <Script type="xscript4.0"><![CDATA[/************************************************************************************************
  129. * 파 일 명 : SMLIF00300_MIS자산코드조회.xfdl
  130. * 작 성 자 : 엄영만
  131. * 작 성 일 : 2020.01.17
  132. * 설 명 : MIS자산코드 정보 검색 팝업
  133. * 수 정 자 :
  134. * 수정이력 :
  135. ************************************************************************************************/
  136. include "com_commonxp::comm_main.xjs"
  137. /************************************************************************************************
  138. ******************************** Form Event *****************************************************
  139. ************************************************************************************************/
  140. /********************************************************************************
  141. * 설 명 : form onload - argument로 넘어온 검색조건과 검색어를
  142. * 해당 컴포넌트에 입력하고 조회한다.
  143. * argument :
  144. ********************************************************************************/
  145. function SMLIF00300_onload(obj:Form, e:LoadEventInfo)
  146. {
  147. frmf_initForm(obj);
  148. grdf_initGrid(grd_fixasetcd);
  149. grdf_setToolTipBind(grd_fixasetcd);
  150. ds_send.setColumn(0, "deptflag", "M");
  151. ds_send.setColumn(0, "deptcd", sysf_getUserInfo("dutplcecd"));
  152. ds_send.setColumn(0, "deptnm", sysf_getUserInfo("dutplcenm"));
  153. }
  154. /********************************************************************************
  155. * 설 명 : 고정자산 코드 정보를 서버에서 가져온다.
  156. * argument :
  157. ********************************************************************************/
  158. function getFixasetCdList()
  159. {
  160. var oParam = {};
  161. oParam.id = "TRLIF00301";
  162. oParam.service = "diagtestbaseinfomngtapp.InterfaceTestBaseInfoMngt";
  163. oParam.method = "reqGetFixasetCdList";
  164. oParam.inds = "req=ds_send";
  165. oParam.outds = "ds_fixasetcdlist=fixasetcdlist";
  166. oParam.async = false;
  167. tranf_submit(oParam);
  168. }
  169. /********************************************************************************
  170. * 설 명 : 부모창의 return function을 호출하고 인자값을 넘겨준다.
  171. * argument :
  172. ********************************************************************************/
  173. function setFixasetCodeInfo(){
  174. var sFixasetCd = "";
  175. var sFixasetNm = "";
  176. if(ds_fixasetcdlist.rowposition >= 0) {
  177. sFixasetCd = ds_fixasetcdlist.getColumn(ds_fixasetcdlist.rowposition, "fixasetcd");
  178. sFixasetNm = ds_fixasetcdlist.getColumn(ds_fixasetcdlist.rowposition, "goodflaghngnm");
  179. }
  180. var objRetVal = new Object();
  181. objRetVal.fixasetcd = sFixasetCd;
  182. objRetVal.fixasetnm = sFixasetNm;
  183. this.close(objRetVal);
  184. }
  185. /********************************************************************************
  186. * 설 명 : 조회 - 코드목록을 조회한다.
  187. * argument :
  188. ********************************************************************************/
  189. function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  190. {
  191. getFixasetCdList();
  192. }
  193. /********************************************************************************
  194. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  195. * argument :
  196. ********************************************************************************/
  197. function gd_deptCodeList_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  198. {
  199. setFixasetCodeInfo();
  200. }
  201. /********************************************************************************
  202. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  203. * argument :
  204. ********************************************************************************/
  205. function bt_ok_onclick(obj:Button, e:ClickEventInfo)
  206. {
  207. setFixasetCodeInfo();
  208. }
  209. /********************************************************************************
  210. * 설 명 : edit박스에서 enter키 입력했을때 목록을 조회한다.
  211. * argument :
  212. ********************************************************************************/
  213. function div_search_ipt_goodflaghngnm_onkeydown(obj:Edit, e:KeyEventInfo)
  214. {
  215. if(e.keycode == 13){
  216. obj.updateToDataset();
  217. getFixasetCdList();
  218. }
  219. }
  220. /********************************************************************************
  221. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  222. * argument :
  223. ********************************************************************************/
  224. function gd_deptCodeList_onkeydown(obj:Grid, e:KeyEventInfo)
  225. {
  226. if(e.keycode == 13){
  227. setFixasetCodeInfo();
  228. }
  229. }
  230. /********************************************************************************
  231. * 설 명 : 취소 - 팝업을 닫는다.
  232. * argument :
  233. ********************************************************************************/
  234. function bt_cancel_onclick(obj:Button, e:ClickEventInfo)
  235. {
  236. this.close();
  237. }
  238. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  239. {
  240. this.close();
  241. }
  242. function SMLIF00300_onkeydown(obj:Form, e:KeyEventInfo)
  243. {
  244. if(e.keycode == 27) this.close();
  245. }
  246. function div_search_btn_deptsrch_onclick(obj:Button, e:ClickEventInfo)
  247. {
  248. var sDeptCd = "";
  249. var sDeptNm = "";
  250. var sReturn = appf_openDeptCodeList("dutplceinstcd", sysf_getUserInfo("dutplceinstcd"), "deptnm", "", "", "", "", "deptcd depthngnm cntctel");
  251. sDeptCd = sReturn.deptcd;
  252. sDeptNm = sReturn.depthngnm;
  253. if(utlf_isNull(sDeptCd)) {
  254. return;
  255. }
  256. ds_send.setColumn(0, "deptcd", sDeptCd);
  257. ds_send.setColumn(0, "deptnm", sDeptNm);
  258. }
  259. function div_search_btn_eraser00_onclick(obj:Button, e:ClickEventInfo)
  260. {
  261. ds_send.setColumn(0, "deptcd", "");
  262. ds_send.setColumn(0, "deptnm", "");
  263. }
  264. ]]></Script>
  265. </Form>
  266. </FDL>