SPAEB00101_부서별장비코드조회.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAEB00101" position="absolute 0 0 945 699" titletext="부서별장비코드조회" oninit="SPAEB00101_oninit" onload="SPAEB00101_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 941 690" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="부서별장비코드" position="absolute 0 54 158 70" id="caption1" class="tit_2" anchor="default"/>
  11. <Shape position="absolute 0 70 934 76" id="line1" class="line_10" anchor="default"/>
  12. <Grid position="absolute 0 75 930 681" id="grd_fixasetcd" binddataset="ds_main_fixasetcdlist_subfixasetcdlist" cellsizingtype="both" extendsizetype="row" anchor="default">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="25" band="left"/>
  17. <Column size="31" band="left"/>
  18. <Column size="89"/>
  19. <Column size="120"/>
  20. <Column size="180"/>
  21. <Column size="180"/>
  22. <Column size="163"/>
  23. <Column size="90"/>
  24. <Column size="90"/>
  25. <Column size="70"/>
  26. <Column size="145"/>
  27. </Columns>
  28. <Rows>
  29. <Row size="24" band="head"/>
  30. <Row size="24"/>
  31. </Rows>
  32. <Band id="head">
  33. <Cell/>
  34. <Cell col="1" text="선택"/>
  35. <Cell col="2" text="자산코드"/>
  36. <Cell col="3" text="모델명"/>
  37. <Cell col="4" text="품명_한글"/>
  38. <Cell col="5" text="품명_영문"/>
  39. <Cell col="6" text="물품규격"/>
  40. <Cell col="7" text="공급처명"/>
  41. <Cell col="8" text="공급처코드"/>
  42. <Cell col="9" text="취득일자"/>
  43. <Cell col="10" text="최초등록일시"/>
  44. </Band>
  45. <Band id="body">
  46. <Cell celltype="head" expr="expr:currow+1"/>
  47. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check"/>
  48. <Cell col="2" displaytype="text" text="bind:fixasetcd"/>
  49. <Cell col="3" displaytype="text" text="bind:goodmodel"/>
  50. <Cell col="4" displaytype="text" text="bind:goodflaghngnm"/>
  51. <Cell col="5" displaytype="text" text="bind:goodflagengnm"/>
  52. <Cell col="6" displaytype="text" style="align:left middle;" text="bind:goodspec"/>
  53. <Cell col="7" displaytype="text" text="bind:suplplcenm"/>
  54. <Cell col="8" displaytype="text" text="bind:suplplcecd"/>
  55. <Cell col="9" displaytype="date" text="bind:possndd"/>
  56. <Cell col="10" text="bind:fstrgstdt"/>
  57. </Band>
  58. </Format>
  59. </Formats>
  60. </Grid>
  61. <Button position="absolute 870 48 926 70" id="btn_cls" class="btn4" text="닫기" anchor="default" onclick="group3_btn_cls_onclick"/>
  62. <Button position="absolute 811 48 867 70" id="btn_cfm" class="btn4" text="선택" anchor="default" onclick="group3_btn_cfm_onclick"/>
  63. <Div position="absolute 0 0 938 40" align="align:center top;" id="group2" class="div_SA2" anchor="default">
  64. <Layouts>
  65. <Layout>
  66. <Static text="관리부서 :" position="absolute 8 13 86 30" id="caption2" class="search_name" anchor="default"/>
  67. <Button position="absolute 872 9 928 31" id="btn_search" class="btn1" text="조회" anchor="default" onclick="group3_group2_btn_search_onclick"/>
  68. <Shape position="absolute 853 9 859 30" linetype="vertical" id="line13" anchor="default"/>
  69. <Combo position="absolute 89 11 259 30" id="cmb_mngtdeptcd" class="combo_search" innerdataset="@ds_init_cmb_instdeptcd_instdeptcd" datacolumn="cdnm" codecolumn="cdid" anchor="default" onitemchanged="group3_group2_cmb_instdeptcd_onitemchanged"/>
  70. <Static id="caption00" text="설치장소 :" class="search_name" position="absolute 312 13 390 30"/>
  71. <Combo id="cmb_instdeptcd" taborder="1" innerdataset="@ds_init_cmb_instdeptcd_instdeptcd" codecolumn="cdid" datacolumn="cdnm" onitemchanged="group3_group2_cmb_instdeptcd_onitemchanged" class="combo_search" position="absolute 393 11 563 30"/>
  72. </Layout>
  73. </Layouts>
  74. </Div>
  75. </Layout>
  76. </Layouts>
  77. </Div>
  78. </Layout>
  79. </Layouts>
  80. <Objects>
  81. <Dataset id="ds_main_fixasetcdlist_subfixasetcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  82. <ColumnInfo>
  83. <Column id="check" type="STRING" size="256"/>
  84. <Column id="fixasetcd" type="STRING" size="256"/>
  85. <Column id="goodmodel" type="STRING" size="256"/>
  86. <Column id="goodflaghngnm" type="STRING" size="256"/>
  87. <Column id="goodflagengnm" type="STRING" size="256"/>
  88. <Column id="goodspec" type="STRING" size="256"/>
  89. <Column id="suplplcenm" type="STRING" size="256"/>
  90. <Column id="suplplcecd" type="STRING" size="256"/>
  91. <Column id="possndd" type="STRING" size="256"/>
  92. <Column id="fstrgstdt" type="STRING" size="256"/>
  93. </ColumnInfo>
  94. <Rows>
  95. <Row>
  96. <Col id="check"/>
  97. <Col id="fixasetcd"/>
  98. <Col id="goodmodel"/>
  99. <Col id="goodflaghngnm"/>
  100. <Col id="goodflagengnm"/>
  101. <Col id="goodspec"/>
  102. <Col id="suplplcenm"/>
  103. <Col id="suplplcecd"/>
  104. </Row>
  105. </Rows>
  106. </Dataset>
  107. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  108. <ColumnInfo>
  109. <Column id="instdeptcd" type="STRING" size="256"/>
  110. <Column id="mngtdeptcd" type="STRING" size="256"/>
  111. </ColumnInfo>
  112. <Rows>
  113. <Row/>
  114. </Rows>
  115. </Dataset>
  116. <Dataset id="ds_init_cmb_instdeptcd_instdeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  117. <ColumnInfo>
  118. <Column id="cdid" type="STRING" size="256"/>
  119. <Column id="cdnm" type="STRING" size="256"/>
  120. </ColumnInfo>
  121. <Rows>
  122. <Row/>
  123. </Rows>
  124. </Dataset>
  125. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  126. </Objects>
  127. <Bind>
  128. <BindItem id="item0" compid="group3.group2.cmb_mngtdeptcd" propid="value" datasetid="ds_send" columnid="mngtdeptcd"/>
  129. <BindItem id="item1" compid="group3.group2.cmb_instdeptcd" propid="value" datasetid="ds_send" columnid="instdeptcd"/>
  130. </Bind>
  131. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  132. * System Name :
  133. * Job Name :
  134. * Creator :
  135. * Make Date : 2015-11-13
  136. * Description :
  137. *---------------------------------------------------------------------------------------
  138. * Modify Date Modifier Modify Description
  139. *---------------------------------------------------------------------------------------
  140. * 2015-11-13 Live Converter TF->XP
  141. *
  142. *---------------------------------------------------------------------------------------
  143. ****************************************************************************************/
  144. //=======================================================================================
  145. // Lib Include
  146. //---------------------------------------------------------------------------------------
  147. include "com_commonxp::comm_main.xjs"
  148. include "ast_examcurexp::AEZ0001.xjs"
  149. //=======================================================================================
  150. // Global Form Variable
  151. //---------------------------------------------------------------------------------------
  152. var arErrorCode = new HashArray();
  153. var gSuppdeptcd = "";
  154. //=======================================================================================
  155. // Function
  156. //---------------------------------------------------------------------------------------
  157. /****************************************************************************************
  158. * Argument : N/A
  159. * Description :
  160. ****************************************************************************************/
  161. //=======================================================================================
  162. // Event
  163. //---------------------------------------------------------------------------------------
  164. /****************************************************************************************
  165. * Components : Form
  166. * Components ID : SPAEB00101
  167. * Event : oninit
  168. * Argument : 01.obj : Object Event has occurred
  169. * : 02.e : Event Object
  170. * Description : 화면 처음 초기화시 폼초기화
  171. ****************************************************************************************/
  172. function SPAEB00101_oninit(obj:Form, e:InitEventInfo)
  173. {
  174. frmf_initForm(obj); // 폼 초기화
  175. }
  176. /****************************************************************************************
  177. * Components : Form
  178. * Components ID : SPAEB00101
  179. * Event : onload
  180. * Argument : 01.obj : Object Event has occurred
  181. * : 02.e : Event Object
  182. * Description : 화면 처음 초기화시 폼초기화
  183. ****************************************************************************************/
  184. function SPAEB00101_onload(obj:Form, e:LoadEventInfo)
  185. {
  186. grdf_setGridSort(group3.grd_fixasetcd); // 그리드 소트만
  187. grdf_setRowTypeIcon(group3.grd_fixasetcd, 0); // 그리드 상태 표시
  188. grdf_setToolTipBind(group3.grd_fixasetcd);
  189. lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
  190. gSuppdeptcd = frmf_getParameter("AST_DEPTCD");
  191. dsf_createDsRow("ds_req", [
  192. {col:"not", type:"STRING", size:256, val:"1"}
  193. ]);
  194. var oParam = {};
  195. oParam.id = "TRAEB00103";
  196. oParam.service = "examcurebaseapp.ComCode";
  197. oParam.method = "reqGetFixaSetCodeList";
  198. oParam.inds = "req=ds_req";
  199. oParam.outds = "ds_init_cmb_instdeptcd_instdeptcd=item";
  200. oParam.async = false;
  201. //oParam.callback = "cf_TRAEB00103";
  202. tranf_submit(oParam);
  203. ds_send.clearData();
  204. ds_send.addRow();
  205. ds_send.setColumn(0,"instdeptcd", opener.frmf_getParameter("SPAEB00101_param_suppdeptcd"));
  206. ds_send.setColumn(0,"mngtdeptcd", opener.frmf_getParameter("SPAEB00101_param_suppdeptcd"));
  207. }
  208. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  209. {
  210. var oParam = {};
  211. oParam.id = "TRAEB00104";
  212. oParam.service = "examcurebaseapp.ComCode";
  213. oParam.method = "reqGetFixaSetCodeDetailList";
  214. oParam.inds = "req=ds_send";
  215. oParam.outds = "ds_main_fixasetcdlist_subfixasetcdlist=item";
  216. oParam.async = false;
  217. oParam.callback = "cf_TRAEB00104";
  218. tranf_submit(oParam);
  219. }
  220. function cf_TRAEB00104(sSvcId, nErrorCode, sErrorMsg) {
  221. if(nErrorCode < 0) return;
  222. ds_main_fixasetcdlist_subfixasetcdlist.updateColID("check1","check");
  223. }
  224. function group3_group2_cmb_instdeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  225. {
  226. obj.updateToDataset();
  227. group3_group2_btn_search_onclick();
  228. }
  229. function group3_btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  230. {
  231. if ( ds_main_fixasetcdlist_subfixasetcdlist.rowposition < 0 ) return;
  232. var srcXpath1 = opener.frmf_getParameter("SPAEB00101_param_srcXpath1");
  233. //var srcXgrid1 = opener.frmf_getParameter("SPAEB00101_param_srcXgrid1");
  234. var srcXrow1 = opener.frmf_getParameter("SPAEB00101_param_srcXrow1");
  235. var srcXnode1 = opener.frmf_getParameter("SPAEB00101_param_srcXnode1");
  236. var srcXnodenm1 = opener.frmf_getParameter("SPAEB00101_param_srcXnodenm1");
  237. var srchLength1 = ds_main_fixasetcdlist_subfixasetcdlist.rowcount;
  238. if ( srchLength1 > 0 ) {
  239. for ( var i = 0; i < srchLength1; i++ ) {
  240. if ( ds_main_fixasetcdlist_subfixasetcdlist.getColumn(i,"check") == "1" ) {
  241. trace("1");
  242. if (!utlf_isNull(srcXnode1)) {
  243. opener.objects[srcXpath1].setColumn(srcXrow1,srcXnode1,ds_main_fixasetcdlist_subfixasetcdlist.getColumn(i,"fixasetcd"));
  244. }
  245. if (!utlf_isNull(srcXnodenm1)) {
  246. opener.objects[srcXpath1].setColumn(srcXrow1,srcXnodenm1,ds_main_fixasetcdlist_subfixasetcdlist.getColumn(i,"goodmodel"));
  247. }
  248. }
  249. }
  250. this.close();
  251. }
  252. }
  253. function group3_btn_cls_onclick(obj:Button, e:ClickEventInfo)
  254. {
  255. this.close();
  256. }
  257. ]]></Script>
  258. </Form>
  259. </FDL>