SPPIZ01000_심사수정사유관리.xfdl 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPIZ01000" position="absolute 0 0 235 421" titletext="심사수정 사유관리" scrollbars="none" onload="SPPIZ01000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="수정사유" class="tit_2" position="absolute 1 33 86 53" positiontype="position"/>
  8. <Grid id="grd_judgresn0127" taborder="2" useinputpanel="false" onkeydown="grd_judgresn0127_onkeydown" position="absolute 1 53 228 239" autofittype="col" anchor="left top right" binddataset="ds_grid_grd_judgresn0127" positiontype="position" oncelldblclick="grd_judgresn0127_oncelldblclick">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="45"/>
  13. <Column size="180"/>
  14. </Columns>
  15. <Rows>
  16. <Row size="22" band="head"/>
  17. <Row size="20"/>
  18. </Rows>
  19. <Band id="head">
  20. <Cell text="코드"/>
  21. <Cell col="1" text="사후 수정사유 명칭"/>
  22. </Band>
  23. <Band id="body">
  24. <Cell text="bind:cdid"/>
  25. <Cell col="1" text="bind:cdnm"/>
  26. <Cell col="2"/>
  27. </Band>
  28. </Format>
  29. </Formats>
  30. </Grid>
  31. <Grid id="grd_judgresn0153" taborder="3" useinputpanel="false" onkeydown="grd_judgresn0153_onkeydown" position="absolute 1 53 228 239" autofittype="col" anchor="left top right" binddataset="ds_grid_grd_judgresn0153" positiontype="position" oncelldblclick="grd_judgresn0153_oncelldblclick" cellsizingtype="col">
  32. <Formats>
  33. <Format id="default">
  34. <Columns>
  35. <Column size="45"/>
  36. <Column size="180"/>
  37. </Columns>
  38. <Rows>
  39. <Row size="22" band="head"/>
  40. <Row size="20"/>
  41. </Rows>
  42. <Band id="head">
  43. <Cell text="코드"/>
  44. <Cell col="1" text="사전 수정사유 명칭"/>
  45. </Band>
  46. <Band id="body">
  47. <Cell text="bind:cdid"/>
  48. <Cell col="1" text="bind:cdnm"/>
  49. <Cell col="2"/>
  50. </Band>
  51. </Format>
  52. </Formats>
  53. </Grid>
  54. <Static id="caption4" text="수정세부사유" class="tit_2" position="absolute 1 243 104 263" positiontype="position"/>
  55. <TextArea id="textarea1" taborder="4" position="absolute 1 263 228 411" style="align:left top;" anchor="all" imemode="hangul" positiontype="position" scrollbars="autovert" wordwrap="word"/>
  56. <Static id="caption00" text="심사수정사유관리" class="tit_1" position="absolute 1 0 178 26"/>
  57. </Layout>
  58. </Layouts>
  59. <Objects>
  60. <Dataset id="ds_grid_grd_judgresn0153" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  61. <ColumnInfo>
  62. <Column id="cdid" type="STRING"/>
  63. <Column id="cdnm" type="STRING"/>
  64. </ColumnInfo>
  65. </Dataset>
  66. <Dataset id="ds_grid_grd_judgresn0127" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  67. <ColumnInfo>
  68. <Column id="cdid" type="STRING"/>
  69. <Column id="cdnm" type="STRING"/>
  70. </ColumnInfo>
  71. </Dataset>
  72. <Dataset id="ds_temp_openValue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  73. <ColumnInfo>
  74. <Column id="cdcls" type="STRING" size="256"/>
  75. <Column id="cdid" type="STRING" size="256"/>
  76. <Column id="adjtresndesc" type="STRING" size="256"/>
  77. </ColumnInfo>
  78. </Dataset>
  79. </Objects>
  80. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  81. * System Name :
  82. * Job Name :
  83. * Creator :
  84. * Make Date : 2015-05-01
  85. * Description :
  86. *---------------------------------------------------------------------------------------
  87. * Modify Date Modifier Modify Description
  88. *---------------------------------------------------------------------------------------
  89. * 2015-05-01 Live Converter TF->XP
  90. *
  91. *---------------------------------------------------------------------------------------
  92. ****************************************************************************************/
  93. include "com_commonxp::comm_main.xjs";
  94. // 화면을 초기화한다.
  95. function lf_Initialize() {
  96. // 공통코드를 조회한다.
  97. appf_getCodeListSubmit([{cdGrpId: "P0153", dsNm: "ds_grid_grd_judgresn0153"}], false, false, "");
  98. appf_getCodeListSubmit([{cdGrpId: "P0127", dsNm: "ds_grid_grd_judgresn0127"}], false, false, "");
  99. if( frmf_checkOpener () ) {
  100. var selectedCd = sCdid;
  101. var cdcls = sCdCls;
  102. var desc = sAdjtresndesc;
  103. if( cdcls == "aftin"){ //opener가 사후 입원이면 P0127
  104. grd_judgresn0153.visible = false;
  105. grd_judgresn0127.visible = true;
  106. if( !utlf_isNull(selectedCd) ) {// 기존에 선택된 사유
  107. for(i = 0 ; i < ds_grid_grd_judgresn0127.rowcount; i++) {
  108. if( selectedCd == ds_grid_grd_judgresn0127.getColumn(i, "cdid") ) {
  109. ds_grid_grd_judgresn0127.rowposition = i;
  110. i = ds_grid_grd_judgresn0127.rowcount;
  111. }
  112. }
  113. textarea1.value = desc;
  114. }
  115. }
  116. // 현재는 사후입원과 사후외래가 동일한 수정사유(같은 공통코드)를 사용하나,
  117. // 추후 변경될 수 있으므로 로직을 분리함
  118. else if(cdcls == "aftout") { //opener가 사후 외래이면 P0127
  119. grd_judgresn0153.visible = false;
  120. grd_judgresn0127.visible = true;
  121. if( !utlf_isNull(selectedCd) ) {// 기존에 선택된 사유
  122. for(i = 0 ; i < ds_grid_grd_judgresn0127.rowcount; i++) {
  123. if( selectedCd == ds_grid_grd_judgresn0127.getColumn(i, "cdid") ) {
  124. ds_grid_grd_judgresn0127.rowposition = i;
  125. i = ds_grid_grd_judgresn0127.rowcount;
  126. }
  127. }
  128. textarea1.value = desc;
  129. }
  130. }
  131. else { //opener가 사전이면 P0153
  132. grd_judgresn0153.visible = true;
  133. grd_judgresn0127.visible = false;
  134. if( !utlf_isNull(selectedCd) ) {// 기존에 선택된 사유
  135. for(i = 0 ; i < ds_grid_grd_judgresn0153.rowcount; i++) {
  136. if( selectedCd == ds_grid_grd_judgresn0153.getColumn(i, "cdid") ) {
  137. ds_grid_grd_judgresn0153.rowposition = i;
  138. i = ds_grid_grd_judgresn0153.rowcount;
  139. }
  140. }
  141. textarea1.value = desc;
  142. }
  143. }
  144. }
  145. }
  146. function SPPIZ01000_onload(obj:Form, e:LoadEventInfo)
  147. {
  148. frmf_initForm(obj); // 화면공통
  149. lf_Initialize(); // 화면을 초기화한다
  150. //그리드 정렬
  151. grdf_initGrid(grd_judgresn0127);
  152. }
  153. function grd_judgresn0153_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  154. {
  155. // 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  156. if ( frmf_checkOpener()) {
  157. var judgresn = ds_grid_grd_judgresn0153.getColumn(e.row, "cdid");
  158. var adjtresndesc = textarea1.text;
  159. var objArg = new Object();
  160. objArg.sCdid = judgresn;
  161. objArg.sAdjtresndesc = adjtresndesc; //기존 심사수정사유
  162. this.close(objArg);
  163. }
  164. }
  165. function grd_judgresn0127_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  166. {
  167. // 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  168. if ( frmf_checkOpener()) {
  169. var judgresn = ds_grid_grd_judgresn0127.getColumn(e.row, "cdid");
  170. var adjtresndesc = textarea1.text; //기존 심사수정사유
  171. var objArg = new Object();
  172. objArg.sCdid = judgresn;
  173. objArg.sAdjtresndesc = adjtresndesc;
  174. this.close(objArg);
  175. }
  176. }
  177. function Button00_onclick(obj:Button, e:ClickEventInfo)
  178. {
  179. this.close();
  180. }
  181. ]]></Script>
  182. </Form>
  183. </FDL>