SPRSD00130_대분류코드HELP.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPRSD00130" position="absolute 0 0 902 532" titletext="대분류코드 검색화면" onload="SPRSD00130_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 900 501" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 0 900 40" id="group2" class="div_SA2" anchor="default">
  11. <Layouts>
  12. <Layout>
  13. <Edit position="absolute 599 10 719 29" id="ipt_refcond" class="input_essential" anchor="default" onkeydown="group3_group2_ipt_refcond_onkeydown"/>
  14. <Button position="absolute 829 9 885 31" id="btn_search" class="btn1" text="조회" anchor="default" onclick="group3_group2_btn_search_onclick"/>
  15. <Shape position="absolute 811 8 817 31" linetype="vertical" id="line13" class="line_4" anchor="default"/>
  16. <Static text="조회조건:" position="absolute 515 12 601 29" id="caption2" class="search_name" anchor="default"/>
  17. <Radio position="absolute 342 10 505 30" id="rdo_refcond" class="radio_search" columncount="2" innerdataset="ds_init_refcond" datacolumn="label" codecolumn="value" anchor="default" onitemchanged="group3_group2_rdo_refcond_onitemchanged"/>
  18. <Static text="조회구분:" position="absolute 258 12 344 29" id="caption3" class="search_name" anchor="default"/>
  19. <Static text="물품구분:" position="absolute 15 12 101 29" id="caption4" class="search_name" anchor="default"/>
  20. <Combo position="absolute 100 10 232 29" id="cmb_goodflag" taborder="1" class="combo_essential" innerdataset="ds_init_goodflag" datacolumn="cdnm" codecolumn="cdid" anchor="default" onitemchanged="group3_group2_cmb_goodflag_onitemchanged"/>
  21. </Layout>
  22. </Layouts>
  23. </Div>
  24. <Static text="대분류리스트" position="absolute 0 51 145 72" id="caption1" class="tit_2" anchor="default"/>
  25. <Shape position="absolute 0 67 900 73" id="line1" class="line_10" anchor="default"/>
  26. <Grid position="absolute 0 72 900 500" id="grd_lrgllist" binddataset="ds_main_lrglist" anchor="default" oncelldblclick="group3_grd_lrgllist_oncelldblclick" selecttype="multirow" cellsizingtype="col">
  27. <Formats>
  28. <Format id="default">
  29. <Columns>
  30. <Column size="25" band="left"/>
  31. <Column size="130"/>
  32. <Column size="170"/>
  33. <Column size="0"/>
  34. <Column size="120"/>
  35. <Column size="130"/>
  36. <Column size="120"/>
  37. <Column size="115"/>
  38. </Columns>
  39. <Rows>
  40. <Row size="24" band="head"/>
  41. <Row size="24"/>
  42. </Rows>
  43. <Band id="head">
  44. <Cell/>
  45. <Cell col="1" text="대분류코드"/>
  46. <Cell col="2" text="대분류명"/>
  47. <Cell col="3" text="물품구분"/>
  48. <Cell col="4" text="주관리부서코드"/>
  49. <Cell col="5" text="주관리부서명"/>
  50. <Cell col="6" text="계정코드"/>
  51. <Cell col="7" text="비용계정"/>
  52. </Band>
  53. <Band id="body">
  54. <Cell celltype="head" text="expr:currow+1"/>
  55. <Cell col="1" displaytype="text" text="bind:lrgcd"/>
  56. <Cell col="2" displaytype="text" text="bind:lrgnm"/>
  57. <Cell col="3" displaytype="text" text="bind:goodflag"/>
  58. <Cell col="4" displaytype="text" text="bind:mainmngtdeptcd"/>
  59. <Cell col="5" displaytype="text" text="bind:mainmngtdeptnm"/>
  60. <Cell col="6" displaytype="text" text="bind:winacnt"/>
  61. <Cell col="7" displaytype="text" text="bind:amtacnt"/>
  62. </Band>
  63. </Format>
  64. </Formats>
  65. </Grid>
  66. </Layout>
  67. </Layouts>
  68. </Div>
  69. <Div position="absolute 0 500 900 527" id="group1" scrollbars="autoboth">
  70. <Layouts>
  71. <Layout>
  72. <Button position="absolute 787 5 843 27" id="btn_confirm" class="btn4" text="확인" anchor="default" onclick="group1_btn_confirm_onclick"/>
  73. <Button position="absolute 844 5 900 27" id="btn_cancel" class="btn4" text="취소" anchor="default" onclick="group1_btn_cancel_onclick"/>
  74. <Shape position="absolute 0 0 900 6" id="line32" class="line_6" anchor="default"/>
  75. </Layout>
  76. </Layouts>
  77. </Div>
  78. </Layout>
  79. </Layouts>
  80. <Objects>
  81. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  82. <ColumnInfo/>
  83. </Dataset>
  84. <Dataset id="ds_main_lrglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  85. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  86. <ColumnInfo>
  87. <Column id="refcond" type="STRING" size="256"/>
  88. <Column id="lrgnm" type="STRING" size="256"/>
  89. <Column id="lrgcd" type="STRING" size="256"/>
  90. <Column id="goodflag" type="STRING" size="256"/>
  91. </ColumnInfo>
  92. <Rows>
  93. <Row>
  94. <Col id="refcond"/>
  95. <Col id="lrgnm"/>
  96. <Col id="lrgcd"/>
  97. <Col id="goodflag"/>
  98. </Row>
  99. </Rows>
  100. </Dataset>
  101. <Dataset id="ds_target_defaultvalue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  102. <ColumnInfo>
  103. <Column id="goodflag" type="STRING" size="256"/>
  104. </ColumnInfo>
  105. <Rows>
  106. <Row>
  107. <Col id="goodflag">A</Col>
  108. </Row>
  109. </Rows>
  110. </Dataset>
  111. <Dataset id="ds_init_refcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  112. <ColumnInfo>
  113. <Column id="label" type="STRING" size="256"/>
  114. <Column id="value" type="STRING" size="256"/>
  115. </ColumnInfo>
  116. <Rows>
  117. <Row>
  118. <Col id="label">대분류코드</Col>
  119. <Col id="value">lrgcd</Col>
  120. </Row>
  121. <Row>
  122. <Col id="label">대분류명</Col>
  123. <Col id="value">lrgnm</Col>
  124. </Row>
  125. </Rows>
  126. </Dataset>
  127. <Dataset id="ds_target" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  128. <ColumnInfo/>
  129. </Dataset>
  130. <Dataset id="ds_target_recvitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  131. </Objects>
  132. <Bind>
  133. <BindItem id="item0" compid="group3.group2.ipt_refcond" propid="value" datasetid="ds_send" columnid="lrgnm"/>
  134. <BindItem id="item1" compid="group3.group2.rdo_refcond" propid="value" datasetid="ds_send" columnid="refcond"/>
  135. <BindItem id="item2" compid="group3.group2.cmb_goodflag" propid="value" datasetid="ds_send" columnid="goodflag"/>
  136. </Bind>
  137. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  138. * System Name :
  139. * Job Name :
  140. * Creator :
  141. * Make Date : 2017-06-19
  142. * Description :
  143. *---------------------------------------------------------------------------------------
  144. * Modify Date Modifier Modify Description
  145. *---------------------------------------------------------------------------------------
  146. * 2017-06-19 Live Converter TF->XP
  147. *
  148. *---------------------------------------------------------------------------------------
  149. ****************************************************************************************/
  150. //=======================================================================================
  151. // Lib Include
  152. //---------------------------------------------------------------------------------------
  153. include "com_commonxp::comm_main.xjs";
  154. include "mis_miscommonxp::MIS.xjs";
  155. //=======================================================================================
  156. // Global Form Variable
  157. //---------------------------------------------------------------------------------------
  158. var arErrorCode = new HashArray();
  159. //=======================================================================================
  160. // Function
  161. //---------------------------------------------------------------------------------------
  162. /****************************************************************************************
  163. * Argument : N/A
  164. * Description :
  165. ****************************************************************************************/
  166. //=======================================================================================
  167. // Event
  168. //---------------------------------------------------------------------------------------
  169. /****************************************************************************************
  170. * Components : Form
  171. * Description : 화면 처음 초기화시 폼초기화
  172. ****************************************************************************************/
  173. function SPRSD00130_onload(obj:Form, e:LoadEventInfo) {
  174. frmf_initForm(obj);
  175. //grdf_initGrid(grd_XXX);
  176. grdf_setGridSort(group3.grd_lrgllist);
  177. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  178. ds_send.updatecontrol = false;
  179. try{
  180. ds_target.copyData(arg_ds_target);
  181. ds_target_recvitem.copyData(arg_ds_target_recvitem);
  182. ds_target_defaultvalue.copyData(arg_ds_target_defaultvalue)
  183. }catch(e){}
  184. misfComboComCdList("R0025", group3.group2.cmb_goodflag); //물품구분
  185. ds_send.setColumn(0, "goodflag", eval(PURTARGET_NODE).getColumn(0,"goodflag"));
  186. group3.group2.rdo_refcond.index = 1;
  187. group3.group2.btn_search.click();
  188. group3.group2.ipt_refcond.setFocus();
  189. ds_send.updatecontrol = true;
  190. }
  191. /****************************************************************************************
  192. * Components : Button
  193. * Description : 조회
  194. ****************************************************************************************/
  195. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  196. if(group3.group2.rdo_refcond.value == "lrgnm") {
  197. ds_send.setColumn( 0, "lrgnm",group3.group2.ipt_refcond.text);
  198. }
  199. else {
  200. ds_send.setColumn( 0, "lrgcd",group3.group2.ipt_refcond.text);
  201. }
  202. var oParam = {};
  203. oParam.id = "TRRSD00131";
  204. oParam.service = "purccommonapp.PurcCommon";
  205. oParam.method = "reqGetLrgCdListByCond";
  206. oParam.inds = "req=ds_send";
  207. oParam.outds = "ds_main_lrglist=lrglist";
  208. oParam.async = false;
  209. //oParam.callback = "cf_TRRSD00131";
  210. tranf_submit(oParam);
  211. }
  212. /****************************************************************************************
  213. * Components : Combo
  214. * Description : 물품구분 변경
  215. ****************************************************************************************/
  216. function group3_group2_cmb_goodflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  217. group3.group2.btn_search.click();
  218. }
  219. /****************************************************************************************
  220. * Components : Grid
  221. * Description : 대분류리스트 선택
  222. ****************************************************************************************/
  223. function group3_grd_lrgllist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  224. if( e.row > -1 ) {
  225. group1.btn_confirm.click();
  226. }
  227. }
  228. /****************************************************************************************
  229. * Components : Button
  230. * Description : 확인
  231. ****************************************************************************************/
  232. function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
  233. misfPopUpListReturn(group3.grd_lrgllist);
  234. }
  235. /****************************************************************************************
  236. * Components : Button
  237. * Description : 취소
  238. ****************************************************************************************/
  239. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
  240. this.close();
  241. }
  242. /****************************************************************************************
  243. * Components : Radio
  244. * Description : 조회구분
  245. ****************************************************************************************/
  246. function group3_group2_rdo_refcond_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  247. {
  248. if(group3.group2.rdo_refcond.value == "lrgnm") {
  249. group3.group2.ipt_refcond.imemode = "hangul";
  250. }
  251. else if (group3.group2.rdo_refcond.value == "lrgcd") {
  252. group3.group2.ipt_refcond.imemode = "none";
  253. }
  254. else {
  255. group3.group2.ipt_refcond.imemode = "none";
  256. }
  257. group3.group2.ipt_refcond.setFocus();
  258. }
  259. /****************************************************************************************
  260. * Components : Edit
  261. * Description : 조회조건 입력 후 조회
  262. ****************************************************************************************/
  263. function group3_group2_ipt_refcond_onkeydown(obj:Edit, e:KeyEventInfo)
  264. {
  265. if(e.keycode == 13) {
  266. obj.updateToDataset();
  267. group3.group2.btn_search.click();
  268. }
  269. }
  270. ]]></Script>
  271. </Form>
  272. </FDL>