SMAEB02300_오염측정지점코드.xfdl 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEB02300" position="absolute 0 0 1256 805" titletext="오염측정지점코드관리" oninit="model1_oninit" onload="SMAEB02300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="오염측정지점코드관리" class="tit_1" position="absolute 0 0 192 25" positiontype="position"/>
  8. <Static id="caption14" text="오염측정지점코드" class="tit_2" position="absolute 0 77 147 97" positiontype="position"/>
  9. <Grid id="grd_list" taborder="2" useinputpanel="false" position="absolute 0 97 1256 783" autofittype="col" anchor="all" binddataset="ds_grid_grd_list" positiontype="position">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="22"/>
  14. <Column size="67"/>
  15. <Column size="111"/>
  16. <Column size="345"/>
  17. <Column size="627"/>
  18. <Column size="0"/>
  19. <Column size="0"/>
  20. </Columns>
  21. <Rows>
  22. <Row size="24" band="head"/>
  23. <Row size="24"/>
  24. </Rows>
  25. <Band id="head">
  26. <Cell/>
  27. <Cell col="1" text="순번"/>
  28. <Cell col="2" text="측정지점코드"/>
  29. <Cell col="3" text="측정지점코드명"/>
  30. <Cell col="4" text="비고"/>
  31. <Cell col="5" text="caption1"/>
  32. <Cell col="6" text="caption2"/>
  33. </Band>
  34. <Band id="body">
  35. <Cell celltype="head"/>
  36. <Cell col="1" displaytype="text" edittype="text" text="bind:sortno" editlimit="4" editlengthunit="utf8"/>
  37. <Cell col="2" displaytype="text" edittype="text" text="bind:basecd" editlimit="12" editlengthunit="utf8"/>
  38. <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc" editlimit="100" editlengthunit="utf8"/>
  39. <Cell col="4" displaytype="text" edittype="text" text="bind:basecdcnts" editlimit="100" editlengthunit="utf8"/>
  40. <Cell col="5" displaytype="text" edittype="text" text="bind:basecdflag"/>
  41. <Cell col="6" text="bind:basesuppdeptcd"/>
  42. </Band>
  43. </Format>
  44. </Formats>
  45. </Grid>
  46. <Button id="btn_grdadd" taborder="3" text="행추가" onlbuttonup="btn_grdadd_onlbuttonup" class="btn2" position="absolute 1140 74 1196 94" anchor="top right" positiontype="position" onclick="btn_grdadd_onclick"/>
  47. <Button id="btn_grddel" taborder="4" text="행삭제" onlbuttonup="btn_grddel_onlbuttonup" class="btn2" position="absolute 1200 74 1256 94" anchor="top right" positiontype="position" onclick="btn_grddel_onclick"/>
  48. <Button id="btn_save" taborder="6" text="저장" onlbuttonup="btn_save_onlbuttonup" class="btn4" position="absolute 1200 786 1256 805" anchor="right bottom" positiontype="position" onclick="btn_save_onclick" onmouseenter="btn_save_onmouseenter"/>
  49. <Div id="Div00" taborder="7" text="Div00" class="div_SA" anchor="left top right" position="absolute 0 26 1256 68">
  50. <Layouts>
  51. <Layout>
  52. <Static id="caption3" text="코드" class="search_name" position="absolute 8 10 94 30" anchor="default" positiontype="position"/>
  53. <Edit id="input1" taborder="1" class="input_search" position="absolute 57 10 157 30" anchor="default" imemode="hangul" positiontype="position"/>
  54. <Button id="btn_sea" taborder="2" text="조회" onlbuttonup="btn_sea_onlbuttonup" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" onclick="btn_sea_onclick" positiontype="position"/>
  55. </Layout>
  56. </Layouts>
  57. </Div>
  58. </Layout>
  59. </Layouts>
  60. <Objects>
  61. <Dataset id="ds_grid_grd_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  62. <ColumnInfo>
  63. <Column id="sortno"/>
  64. <Column id="basecd"/>
  65. <Column id="basecdflagdesc"/>
  66. <Column id="basecdcnts"/>
  67. <Column id="basesuppdeptcd"/>
  68. <Column id="basecdflag"/>
  69. </ColumnInfo>
  70. </Dataset>
  71. </Objects>
  72. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  73. * System Name : KU2.0
  74. * Job Name :
  75. * File Name : SMAEB02300_오염측정지점코드.xfdl
  76. * Creator :
  77. * Make Date : 2016.06.15
  78. *
  79. * Description :
  80. *---------------------------------------------------------------------------------------
  81. * Modify Date Modifier Modify Description
  82. *---------------------------------------------------------------------------------------
  83. *
  84. *---------------------------------------------------------------------------------------
  85. ****************************************************************************************/
  86. //=======================================================================================
  87. // xjs Include
  88. //---------------------------------------------------------------------------------------
  89. include "com_commonxp::comm_main.xjs";
  90. include "ast_commonxp::AST.xjs";
  91. include "ast_examcurexp::AEZ0001.xjs";
  92. /****************************************************************************************
  93. * Components :
  94. * Components ID : SMAEB02300
  95. * Event : onload
  96. * Argument : 01.obj : Object Event has occurred
  97. * : 02.e : Event Object
  98. * Description :
  99. ****************************************************************************************/
  100. function SMAEB02300_onload(obj:Form, e:LoadEventInfo)
  101. {
  102. frmf_initForm(obj);
  103. lf_aezfSetSuppDeptcd();
  104. grdf_setRowTypeIcon(grd_list,0);
  105. Div00.btn_sea.click();
  106. }
  107. /****************************************************************************************
  108. * Components :
  109. * Components ID : btn_sea
  110. * Event : onclick
  111. * Argument : 01.obj : Object Event has occurred
  112. * : 02.e : Event Object
  113. * Description :
  114. ****************************************************************************************/
  115. function btn_sea_onclick(obj:Button, e:ClickEventInfo)
  116. {
  117. dsf_createDsRow("ds_cond_req",
  118. [{col:"basecd", val:Div00.input1.value},
  119. {col:"basecdflag", val:"Q"},
  120. {col:"basesuppdeptcd", val:suppdeptcd}]);
  121. var objParam = new Object();
  122. objParam.id = "TRAEB02301";
  123. objParam.service = "examcurebaseapp.ExamCureCode";
  124. objParam.method = "reqGetCntmInspCdMngt";
  125. objParam.inds = "req=ds_cond_req";
  126. objParam.outds ="ds_grid_grd_list=item";
  127. tranf_submit(objParam);
  128. }
  129. /****************************************************************************************
  130. * Components :
  131. * Components ID : btn_grddel
  132. * Event : onclick
  133. * Argument : 01.obj : Object Event has occurred
  134. * : 02.e : Event Object
  135. * Description :
  136. ****************************************************************************************/
  137. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  138. {
  139. dsf_deleteSelectedRows(grd_list, false); //현재row 데이터 삭제설정(true:실제데이터 삭제, false:상태만변경)
  140. }
  141. /****************************************************************************************
  142. * Components :
  143. * Components ID : btn_grdadd
  144. * Event : onclick
  145. * Argument : 01.obj : Object Event has occurred
  146. * : 02.e : Event Object
  147. * Description :
  148. ****************************************************************************************/
  149. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  150. {
  151. ds_grid_grd_list.addRow();
  152. ds_grid_grd_list.setColumn(grd_list.currentrow,"basecdflag","Q");
  153. ds_grid_grd_list.setColumn(grd_list.currentrow,"basesuppdeptcd",suppdeptcd);
  154. }
  155. /****************************************************************************************
  156. * Components :
  157. * Components ID : btn_save
  158. * Event : onclick
  159. * Argument : 01.obj : Object Event has occurred
  160. * : 02.e : Event Object
  161. * Description :
  162. ****************************************************************************************/
  163. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  164. {
  165. for(var i=0; i<ds_grid_grd_list.rowcount; i++){
  166. if(utlf_isNull(ds_grid_grd_list.getColumn(i,"basecd"))){
  167. sysf_messageBox("코드값이 입력되지 않았습니다.","E999");
  168. return;
  169. }
  170. }
  171. if ( sysf_messageBox("","Q002")==6 ) {
  172. var objParam = new Object();
  173. objParam.id = "TXAEB02301";
  174. objParam.service = "examcurebaseapp.ExamCureCode";
  175. objParam.method = "reqExeCntmInspGoodMngt";
  176. objParam.inds = "req=ds_grid_grd_list:U";
  177. objParam.callback = "cbf_TXAEB02301";
  178. objParam.typeStr = "m"
  179. tranf_submit(objParam);
  180. }
  181. }
  182. function cbf_TXAEB02301(strSvcID, nErrorCode, strErrorMsg){
  183. //에러 처리
  184. if(nErrorCode == 0){
  185. ds_grid_grd_list.clear();
  186. Div00.btn_sea.click();
  187. }else{
  188. }
  189. }
  190. ]]></Script>
  191. </Form>
  192. </FDL>