SMAEB01600_취소코드관리.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEB01600" position="absolute 0 0 1256 805" titletext="취소코드관리" oninit="model1_oninit" scrollbars="autoboth" onload="SMAEB01600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_grdadd" class="btn2" position="absolute 1140 74 1196 94" positiontype="position" text="행추가" onlbuttonup="btn_grdadd_onlbuttonup" onclick="btn_grdadd_onclick" anchor="top right"/>
  8. <Button id="btn_grddel" class="btn2" position="absolute 1199 74 1255 94" positiontype="position" text="행삭제" onlbuttonup="btn_grddel_onlbuttonup" onclick="btn_grddel_onclick" anchor="top right"/>
  9. <Button id="btn_save" class="btn4" position="absolute 1200 785 1256 805" positiontype="position" text="저장" onlbuttonup="btn_save_onlbuttonup" style="align:center middle;" onclick="btn_save_onclick" onmouseenter="btn_save_onmouseenter" anchor="right bottom"/>
  10. <Grid id="grd_cnclcode" position="absolute 0 97 1256 782" positiontype="position" binddataset="ds_grid_grd_cnclcode" anchor="all" cellsizingtype="col">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="40"/>
  15. <Column size="100"/>
  16. <Column size="180"/>
  17. <Column size="465"/>
  18. <Column size="319"/>
  19. <Column size="124"/>
  20. </Columns>
  21. <Rows>
  22. <Row size="22" band="head"/>
  23. <Row size="20"/>
  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="취소구분"/>
  32. </Band>
  33. <Band id="body">
  34. <Cell celltype="head" style="align:center middle;"/>
  35. <Cell col="1" displaytype="text" edittype="text" style="padding:0 5 0 5;" text="bind:sortno"/>
  36. <Cell col="2" displaytype="text" edittype="text" editfilter="upper,number,char" style="padding:0 5 0 5;" text="bind:basecd" editimemode="alpha"/>
  37. <Cell col="3" displaytype="text" edittype="text" style="padding:0 5 0 5;" text="bind:basecdflagdesc"/>
  38. <Cell col="4" displaytype="text" edittype="text" style="padding:0 5 0 5;" text="bind:basecdcnts"/>
  39. <Cell col="5" displaytype="combo" edittype="combo" style="padding:0 5 0 5;" text="bind:basecdflag" combodataset="ds_init_cancelgb" combocodecol="value" combodatacol="label"/>
  40. <Cell col="6"/>
  41. </Band>
  42. </Format>
  43. </Formats>
  44. </Grid>
  45. <Div id="grp_sea" taborder="1" style="align:center top;" class="div_SA" position="absolute 0 28 1256 70" anchor="left top right">
  46. <Layouts>
  47. <Layout>
  48. <Static id="caption1" text="취소코드" class="search_name" position="absolute 8 9 82 29" anchor="default" positiontype="position"/>
  49. <Edit id="ipt_basecd" taborder="18" class="input_search" position="absolute 82 9 197 29" anchor="default" imemode="hangul" oneditclick="grp_sea_ipt_basecd_oneditclick" onkeydown="grp_sea_ipt_basecd_onkeydown" positiontype="position"/>
  50. <Button id="btn_sea" taborder="19" text="조회" onclick="btn_sea_onclick" class="btn1" position="absolute 1188 9 1244 29" style="align:left middle;" anchor="top right" positiontype="position"/>
  51. </Layout>
  52. </Layouts>
  53. </Div>
  54. <Static id="caption19" text="취소코드관리" onclick="caption19_onclick" class="tit_1" position="absolute 0 3 106 28" anchor="default" positiontype="position"/>
  55. </Layout>
  56. </Layouts>
  57. <Objects>
  58. <Dataset id="ds_grid_grd_cnclcode" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  59. <ColumnInfo>
  60. <Column id="sortno" type="INT"/>
  61. <Column id="basecd" type="STRING"/>
  62. <Column id="basecdflagdesc" type="STRING"/>
  63. <Column id="basecdcnts" type="STRING"/>
  64. <Column id="basecdflag" type="STRING"/>
  65. <Column id="suppdeptcd" type="STRING" size="256"/>
  66. </ColumnInfo>
  67. </Dataset>
  68. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  69. <ColumnInfo>
  70. <Column id="suppdeptcd" type="STRING" size="256"/>
  71. <Column id="basecd" type="STRING" size="256"/>
  72. </ColumnInfo>
  73. <Rows>
  74. <Row/>
  75. </Rows>
  76. </Dataset>
  77. <Dataset id="ds_init_cancelgb" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  78. <ColumnInfo>
  79. <Column id="label" type="STRING" size="256"/>
  80. <Column id="value" type="STRING" size="256"/>
  81. </ColumnInfo>
  82. <Rows>
  83. <Row>
  84. <Col id="label">예약취소</Col>
  85. <Col id="value">A</Col>
  86. </Row>
  87. <Row>
  88. <Col id="label">접수취소</Col>
  89. <Col id="value">C</Col>
  90. </Row>
  91. </Rows>
  92. </Dataset>
  93. </Objects>
  94. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  95. * System Name : KU2.0
  96. * Job Name :
  97. * File Name :
  98. * Creator :
  99. * Make Date : 2016-04-04
  100. *
  101. * Description :
  102. *---------------------------------------------------------------------------------------
  103. * Modify Date Modifier Modify Description
  104. *---------------------------------------------------------------------------------------
  105. *---------------------------------------------------------------------------------------
  106. ****************************************************************************************/
  107. include "com_commonxp::comm_main.xjs";
  108. include "ast_examcurexp::AEZ0001.xjs";
  109. //=======================================================================================
  110. // Function
  111. //---------------------------------------------------------------------------------------
  112. //조회
  113. function submit_TRAEB01601(){
  114. ds_grid_grd_cnclcode.clearData();
  115. ds_send.setColumn(0,"suppdeptcd",suppdeptcd);
  116. ds_send.setColumn(0,"basecd",grp_sea.ipt_basecd.value);
  117. var oParam = {};
  118. oParam.id = "TRAEB01601";
  119. oParam.service = "examcurebaseapp.CnclCode";
  120. oParam.method = "reqGetCnclCodeList";
  121. oParam.inds = "req=ds_send";
  122. oParam.outds = "ds_grid_grd_cnclcode=item";
  123. oParam.async = false;
  124. oParam.callback = "cf_TRAEB01601";
  125. tranf_submit(oParam);
  126. }
  127. function cf_TRAEB01601(){
  128. for(var i = 0 ; i< ds_grid_grd_cnclcode.rowcount ;i++){
  129. ds_grid_grd_cnclcode.setColumn(i,"suppdeptcd",suppdeptcd);
  130. }
  131. }
  132. //저장
  133. function submit_TXAEB01601(){
  134. var oParam = new Object();
  135. oParam.id = "TXAEB01601";
  136. oParam.service = "examcurebaseapp.CnclCode";
  137. oParam.method = "reqExeCnclCodeList";
  138. oParam.inds = "req=ds_grid_grd_cnclcode:U";
  139. oParam.async = false;
  140. oParam.typeStr = "m";
  141. tranf_submit(oParam);
  142. }
  143. //=======================================================================================
  144. // Event
  145. //---------------------------------------------------------------------------------------
  146. /****************************************************************************************
  147. * Components :
  148. * Components ID : SMAEB01600
  149. * Event : onload
  150. * Argument : 01.obj : Object Event has occurred
  151. * : 02.e : Event Object
  152. * Description :
  153. ****************************************************************************************/
  154. function SMAEB01600_onload(obj:Form, e:LoadEventInfo)
  155. {
  156. frmf_initForm(obj); // 화면공통
  157. grdf_setRowTypeIcon(grd_cnclcode,0);
  158. //부서정보 가져오기
  159. //간호
  160. suppdeptcd = frmf_getMenuParam();
  161. if(utlf_isNull(suppdeptcd)){
  162. //기능/과내
  163. lf_aezfSetSuppDeptcd();
  164. }
  165. grp_sea.ipt_basecd.setFocus();
  166. btn_sea_onclick();
  167. }
  168. /****************************************************************************************
  169. * Components :
  170. * Components ID : btn_sea
  171. * Event : onclick
  172. * Argument : 01.obj : Object Event has occurred
  173. * : 02.e : Event Object
  174. * Description :
  175. ****************************************************************************************/
  176. function btn_sea_onclick(obj:Button, e:ClickEventInfo)
  177. {
  178. submit_TRAEB01601();
  179. }
  180. /****************************************************************************************
  181. * Components :
  182. * Components ID : btn_grdadd
  183. * Event : onclick
  184. * Argument : 01.obj : Object Event has occurred
  185. * : 02.e : Event Object
  186. * Description :
  187. ****************************************************************************************/
  188. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  189. {
  190. ds_grid_grd_cnclcode.addRow();
  191. ds_grid_grd_cnclcode.setColumn(ds_grid_grd_cnclcode.rowposition,"suppdeptcd",suppdeptcd);
  192. ds_grid_grd_cnclcode.setColumn(ds_grid_grd_cnclcode.rowposition,"sortno", ds_grid_grd_cnclcode.getColumn(ds_grid_grd_cnclcode.rowcount-2, "sortno") + 1);
  193. }
  194. /****************************************************************************************
  195. * Components :
  196. * Components ID : btn_grddel
  197. * Event : onclick
  198. * Argument : 01.obj : Object Event has occurred
  199. * : 02.e : Event Object
  200. * Description :
  201. ****************************************************************************************/
  202. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  203. {
  204. dsf_deleteSelectedRows(grd_cnclcode, true);
  205. }
  206. /****************************************************************************************
  207. * Components :
  208. * Components ID : btn_save
  209. * Event : onclick
  210. * Argument : 01.obj : Object Event has occurred
  211. * : 02.e : Event Object
  212. * Description :
  213. ****************************************************************************************/
  214. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  215. {
  216. if ( sysf_messageBox("","Q002")==6 ) {
  217. var update = grdf_getGridUpdateData(grd_cnclcode,"all");
  218. if (update.rowcount ==0) {
  219. sysf_messageBox("업데이트 정보가 없습니다.", "I");
  220. }
  221. else {
  222. submit_TXAEB01601();
  223. }
  224. submit_TRAEB01601();
  225. }
  226. }
  227. //엔터 누를시 조회
  228. function grp_sea_ipt_basecd_onkeydown(obj:Edit, e:KeyEventInfo)
  229. {
  230. if(e.keycode == 13){
  231. submit_TRAEB01601();
  232. }
  233. }
  234. ]]></Script>
  235. </Form>
  236. </FDL>