SMAEB01100_선량율측정항목관리.xfdl 9.4 KB

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