SPASI02900_지정전염병조회.xfdl 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPASI02900" position="absolute 0 0 531 377" titletext="지정전염병조회" onload="SPASI02900_onload" class="frm_POP">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 2 35 520 351" id="group3" scrollbars="autoboth" positiontype="position">
  8. <Layouts>
  9. <Layout>
  10. <Grid position="absolute 10 11 517 301" id="grd_spclist" binddataset="ds_grid_grd_spclist" positiontype="position" oncelldblclick="grd_spclist_oncelldblclick" oncellclick="group3_grd_spclist_oncellclick">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="30"/>
  15. <Column size="0"/>
  16. <Column size="465"/>
  17. </Columns>
  18. <Rows>
  19. <Row size="24" band="head"/>
  20. <Row size="24"/>
  21. </Rows>
  22. <Band id="head">
  23. <Cell/>
  24. <Cell col="1" text="reptflag"/>
  25. <Cell col="2" text="전염병명"/>
  26. </Band>
  27. <Band id="body">
  28. <Cell displaytype="expr:reptflag == '01' ? 'checkbox' : 'none'" edittype="expr:reptflag == '01' ? 'checkbox' : 'none'" text="expr:check == &quot;1&quot; ? 'Y' : ''"/>
  29. <Cell col="1" text="bind:reptflag"/>
  30. <Cell col="2" text="bind:lglydisnm"/>
  31. </Band>
  32. </Format>
  33. </Formats>
  34. </Grid>
  35. </Layout>
  36. </Layouts>
  37. </Div>
  38. <Static id="stt_titleText" text="지정전염병 리스트" class="sta_POP_title" position="absolute 12 8 488 28" enableevent="false"/>
  39. <Button id="Button00" taborder="1" class="btn_POP_cls" position="absolute 504 12 518 25" onclick="btn_cancel_onclick"/>
  40. <Button id="btn_confirm" taborder="2" text="확인" onclick="btn_confirm_onclick" class="btn4" position="absolute 404 346 460 366"/>
  41. <Button id="btn_cancel" taborder="3" text="취소" onclick="btn_cancel_onclick" class="btn4" position="absolute 463 346 519 366"/>
  42. </Layout>
  43. </Layouts>
  44. <Objects>
  45. <Dataset id="ds_grid_grd_spclist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_spclist_onrowposchanged">
  46. <ColumnInfo>
  47. <Column id="check" type="STRING"/>
  48. <Column id="reptflag" type="STRING"/>
  49. <Column id="lglydisnm" type="STRING"/>
  50. </ColumnInfo>
  51. <Rows>
  52. <Row/>
  53. </Rows>
  54. </Dataset>
  55. </Objects>
  56. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  57. * System Name : Himed
  58. * Job Name :
  59. * File Name : SPASI02900_지정전염병조회.xfdl
  60. * Creator :
  61. * Make Date : 2014-08-20
  62. *
  63. * Description :
  64. *---------------------------------------------------------------------------------------
  65. * Modify Date Modifier Modify Description
  66. *---------------------------------------------------------------------------------------
  67. * 2014-08-20 HIT Converting Program(TF->XP)
  68. *
  69. *---------------------------------------------------------------------------------------
  70. ****************************************************************************************/
  71. //=======================================================================================
  72. // xjs Include
  73. //---------------------------------------------------------------------------------------
  74. include "com_commonxp::comm_main.xjs";
  75. include "com_commodulexp::SSZFM00401.xjs"; // Dataset 뷰어용
  76. //=======================================================================================
  77. // Function
  78. //---------------------------------------------------------------------------------------
  79. /**********************************************************************************
  80. * Argument
  81. * Description : 조회 함수
  82. * writer :
  83. **********************************************************************************/
  84. function lf_search()
  85. {
  86. var objParam = new Object();
  87. objParam.id = "TRASI02901";
  88. objParam.service = "infcmngtapp.LglyDisMngt";
  89. objParam.method = "reqGetLglyDisApntList";
  90. //objParam.inds = "req=ds_cond_req";
  91. objParam.outds ="ds_grid_grd_spclist=info";
  92. objParam.callback = "cbf_lfCallback";
  93. tranf_submit(objParam);
  94. }
  95. /**********************************************************************************
  96. * Argument
  97. * Description : submit() 후 callback함수
  98. * writer :
  99. **********************************************************************************/
  100. function cbf_lfCallback(strSvcID, nErrorCode, strErrorMsg){
  101. if(strSvcID == "TRASI02901" ){ // search
  102. if( nErrorCode == 0 ){
  103. //lf_setCheckBox();
  104. }
  105. }
  106. }
  107. //=======================================================================================
  108. // Event
  109. //---------------------------------------------------------------------------------------
  110. /****************************************************************************************
  111. * Components :
  112. * Components ID : SPASI02900
  113. * Event : onload
  114. * Argument : 01.obj : Object Event has occurred
  115. * : 02.e : Event Object
  116. * Description :
  117. ****************************************************************************************/
  118. function SPASI02900_onload(obj:Form, e:LoadEventInfo)
  119. {
  120. frmf_initForm(obj); // 화면공통
  121. lf_commoduleDataSetShow(); //DataSet 조회;
  122. lf_search();
  123. }
  124. /****************************************************************************************
  125. * Components :
  126. * Components ID : grd_spclist
  127. * Event : oncelldblclick
  128. * Argument : 01.obj : Object Event has occurred
  129. * : 02.e : Event Object
  130. * Description :
  131. ****************************************************************************************/
  132. function grd_spclist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  133. {
  134. if( ds_grid_grd_spclist.rowcount > 0 ) {
  135. var iRow = ds_grid_grd_spclist.rowposition;
  136. if( "" == utlf_transNullToEmpty(ds_grid_grd_spclist.getColumn( iRow, "reptflag")) ) {
  137. sysf_messageBox("간염표본감시결과신고서에서 신고", "I006");
  138. return;
  139. } else {
  140. var nm = utlf_transNullToEmpty(ds_grid_grd_spclist.getColumn( iRow, "lglydisnm"));
  141. trace("nm : " + nm);
  142. opener.frmf_setParameter("SPASI02900_lglynm", ds_grid_grd_spclist.getColumn( iRow, "lglydisnm"));
  143. /*
  144. var rtnObj = new Object();
  145. rtnObj.prv_sNm = nm;
  146. close(rtnObj);
  147. */
  148. this.close();
  149. }
  150. }
  151. }
  152. /****************************************************************************************
  153. * Components :
  154. * Components ID : btn_cancel
  155. * Event : onclick
  156. * Argument : 01.obj : Object Event has occurred
  157. * : 02.e : Event Object
  158. * Description :
  159. ****************************************************************************************/
  160. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  161. {
  162. this.close();
  163. }
  164. /****************************************************************************************
  165. * Components :
  166. * Components ID : btn_confirm
  167. * Event : onclick
  168. * Argument : 01.obj : Object Event has occurred
  169. * : 02.e : Event Object
  170. * Description :
  171. ****************************************************************************************/
  172. function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  173. {
  174. if( ds_grid_grd_spclist.rowcount > 0 ) {
  175. var iRow = ds_grid_grd_spclist.rowposition;
  176. if(iRow < 0) {
  177. sysf_messageBox("전염병명을 ", "C002");
  178. return;
  179. } else {
  180. if( "03" == utlf_transNullToEmpty(ds_grid_grd_spclist.getColumn( iRow, "reptflag")) ) {
  181. sysf_messageBox("간염표본감시결과신고서에서 신고", "I006");
  182. return;
  183. } else {
  184. var nm = utlf_transNullToEmpty(ds_grid_grd_spclist.getColumn( iRow, "lglydisnm"));
  185. trace("nm : " + nm);
  186. opener.frmf_setParameter("SPASI02900_lglynm", ds_grid_grd_spclist.getColumn( iRow, "lglydisnm"));
  187. /*
  188. var rtnObj = new Object();
  189. rtnObj.prv_sNm = nm;
  190. close(rtnObj);
  191. */
  192. this.close();
  193. }
  194. }
  195. }
  196. }
  197. function group3_grd_spclist_oncellclick(obj:Grid, e:GridClickEventInfo)
  198. {
  199. for(var i=0; i< ds_grid_grd_spclist.rowcount; i++){
  200. ds_grid_grd_spclist.setColumn(i, "check", "");
  201. }
  202. ds_grid_grd_spclist.setColumn(ds_grid_grd_spclist.rowposition, "check", "1");
  203. }
  204. function ds_grid_grd_spclist_onrowposchanged(obj:Dataset, e:DSRowPosChangeEventInfo)
  205. {
  206. group3_grd_spclist_oncellclick();
  207. }
  208. ]]></Script>
  209. </Form>
  210. </FDL>