SPLPC02300_검사항목팝업.xfdl 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLPC02300" position="absolute 0 0 466 346" titletext="검사항목" onload="SPLPC02300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="stt_titleText" text="검사항목" onclick="caption00_onclick" class="sta_POP_title" position="absolute 12 8 161 28"/>
  8. <Grid id="grd_testcodelist" taborder="1" useinputpanel="false" position="absolute 1 1 464 322" binddataset="ds_grid_grd_testcodelist" positiontype="position" ondbclick="grd_testcodelist_ondbclick" autofittype="col" oncelldblclick="grd_testcodelist_oncelldblclick">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="0"/>
  13. <Column size="30"/>
  14. <Column size="102"/>
  15. <Column size="330"/>
  16. <Column size="0"/>
  17. </Columns>
  18. <Rows>
  19. <Row size="22" band="head"/>
  20. <Row size="20"/>
  21. </Rows>
  22. <Band id="head">
  23. <Cell text="병원코드"/>
  24. <Cell col="1"/>
  25. <Cell col="2" text="검사코드"/>
  26. <Cell col="3" text="검사명칭"/>
  27. <Cell col="4" text="검사그룹약칭"/>
  28. </Band>
  29. <Band id="body">
  30. <Cell text="bind:instcd"/>
  31. <Cell col="1" celltype="head" expr="expr:currow+1"/>
  32. <Cell col="2" style="align:left middle;" text="bind:testcd"/>
  33. <Cell col="3" style="align:left;" text="bind:testnm"/>
  34. <Cell col="4" text="bind:testabbr"/>
  35. <Cell col="5"/>
  36. </Band>
  37. </Format>
  38. </Formats>
  39. </Grid>
  40. <Button id="btn_cfm" taborder="5" text="확인" position="absolute 406 324 462 344" class="btn4" onclick="btn_cfm_onclick"/>
  41. </Layout>
  42. </Layouts>
  43. <Objects>
  44. <Dataset id="ds_grid_grd_testcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  45. <ColumnInfo>
  46. <Column id="instcd" type="STRING"/>
  47. <Column id="testcd" type="STRING"/>
  48. <Column id="testnm" type="STRING"/>
  49. <Column id="testabbr" type="STRING"/>
  50. </ColumnInfo>
  51. </Dataset>
  52. <Dataset id="ds_hidden_scrndata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  53. </Objects>
  54. <Script type="xscript4.0"><![CDATA[
  55. /***************************************************************************************
  56. * System Name : KU2.0
  57. * Job Name :
  58. * File Name : SPLPC02300_검사항목팝업.xfdl
  59. * Creator :
  60. * Make Date : 2015-12-10
  61. *
  62. * Description :
  63. *---------------------------------------------------------------------------------------
  64. * Modify Date Modifier Modify Description
  65. *---------------------------------------------------------------------------------------
  66. *
  67. *---------------------------------------------------------------------------------------
  68. ****************************************************************************************/
  69. //=======================================================================================
  70. // xjs Include
  71. //---------------------------------------------------------------------------------------
  72. include "com_commonxp::comm_main.xjs";
  73. //=======================================================================================
  74. // Function
  75. //---------------------------------------------------------------------------------------
  76. function lf_GetRefData(){
  77. ds_hidden_scrndata.copyData(arg_ds_hidden_scrndata);
  78. var test_code_flag = opener.ds_hidden_scrndata.getColumn(0,"testcdflag")
  79. dsf_createDsRow("ds_send"
  80. , [{col: "delflagcd", val: "0"}
  81. , {col: "instcd", val: opener.ds_hidden_userinfo.getColumn(0,"instcd")}
  82. , {col: "testflag", val: test_code_flag}
  83. ]);
  84. // 서브밋호출
  85. var oParam = {};
  86. oParam.id = "TRLPC02301";
  87. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  88. oParam.method = "reqGetTestCodeList";
  89. oParam.inds = "refData=ds_send";
  90. oParam.outds = "ds_grid_grd_testcodelist=refrslt";
  91. oParam.async = false;
  92. oParam.callback = "cbf_SPLPC02300";
  93. tranf_submit(oParam);
  94. }
  95. //콜백함수
  96. function cbf_SPLPC02300(strSvcID, nErrorCode, strErrorMag){
  97. if(nErrorCode != 0){
  98. sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  99. }else{
  100. switch(strSvcID){
  101. case "TXLPQ02701" :
  102. in_ds_search.clear();
  103. sysf_messageBox("검사코드 변경이 완료되었습니다.", "I");
  104. opener.lf_getWorkList();
  105. this.close();
  106. break;
  107. }
  108. }
  109. }
  110. // 검사코드, 검사명칭 보내기
  111. function lf_ExeChoitestcode(){
  112. var curRow = ds_grid_grd_testcodelist.rowposition;
  113. opener.ds_hidden_scrndata.setColumn(0,"testcd",ds_grid_grd_testcodelist.getColumn(curRow, "testcd"));
  114. opener.ds_hidden_scrndata.setColumn(0,"testhngnm",ds_grid_grd_testcodelist.getColumn(curRow, "testnm"));
  115. opener.ds_hidden_scrndata.setColumn(0,"testhngabbr",ds_grid_grd_testcodelist.getColumn(curRow, "testabbr"));
  116. close();
  117. }
  118. //=======================================================================================
  119. // Event
  120. //---------------------------------------------------------------------------------------
  121. /****************************************************************************************
  122. * Components :
  123. * Components ID : SPLPC02300
  124. * Event : onload
  125. * Argument : 01.obj : Object Event has occurred
  126. * : 02.e : Event Object
  127. * Description :
  128. ****************************************************************************************/
  129. function SPLPC02300_onload(obj:Form, e:LoadEventInfo)
  130. {
  131. frmf_initForm(obj);
  132. lf_GetRefData();
  133. }
  134. /****************************************************************************************
  135. * Components :
  136. * Components ID : btn_cfm
  137. * Event : onclick
  138. * Argument : 01.obj : Object Event has occurred
  139. * : 02.e : Event Object
  140. * Description :
  141. ****************************************************************************************/
  142. // 확인버튼
  143. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  144. {
  145. lf_ExeChoitestcode();
  146. }
  147. /****************************************************************************************
  148. * Components :
  149. * Components ID : grd_testcodelist
  150. * Event : oncelldblclick
  151. * Argument : 01.obj : Object Event has occurred
  152. * : 02.e : Event Object
  153. * Description :
  154. ****************************************************************************************/
  155. // 데이터 더블클릭
  156. function grd_testcodelist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  157. {
  158. lf_ExeChoitestcode();
  159. }
  160. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  161. {
  162. this.close();
  163. }
  164. ]]></Script>
  165. </Form>
  166. </FDL>