SPLPC02400_병리번호코드팝업.xfdl 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLPC02400" position="absolute 0 0 345 410" titletext="병리번호코드" oninit="model1_oninit" class="frm_POP" onload="SPLPC02400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="grd_ptnocdlist" taborder="1" useinputpanel="false" position="absolute 12 46 333 375" binddataset="ds_grid_grd_ptnocdlist" positiontype="position" ondbclick="grd_ptnocdlist_ondbclick" autofittype="col" oncelldblclick="grd_ptnocdlist_oncelldblclick">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="0"/>
  12. <Column size="30"/>
  13. <Column size="100"/>
  14. <Column size="200"/>
  15. </Columns>
  16. <Rows>
  17. <Row size="22" band="head"/>
  18. <Row size="20"/>
  19. </Rows>
  20. <Band id="head">
  21. <Cell text="병원코드"/>
  22. <Cell col="1"/>
  23. <Cell col="2" text="병리번호코드"/>
  24. <Cell col="3" text="병리번호명칭"/>
  25. </Band>
  26. <Band id="body">
  27. <Cell text="bind:instcd"/>
  28. <Cell col="1" celltype="head" expr="expr:currow+1"/>
  29. <Cell col="2" text="bind:ptnocd"/>
  30. <Cell col="3" style="align:left;" text="bind:ptnonm"/>
  31. <Cell col="4"/>
  32. </Band>
  33. </Format>
  34. </Formats>
  35. </Grid>
  36. <Static id="stt_titleText" text="병리번호코드" onclick="caption00_onclick" class="sta_POP_title" position="absolute 12 8 161 28"/>
  37. <Button id="btn_cfm" taborder="2" text="확인" onclick="btn_cfm_onclick" class="btn5" position="absolute 289 378 333 398" positiontype="position"/>
  38. <Button id="btn_cls00" taborder="4" onclick="btn_cls_onclick" class="btn_POP_cls" position="absolute 319 12 333 25"/>
  39. </Layout>
  40. </Layouts>
  41. <Objects>
  42. <Dataset id="ds_grid_grd_ptnocdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  43. <ColumnInfo>
  44. <Column id="instcd" type="STRING"/>
  45. <Column id="ptnocd" type="STRING"/>
  46. <Column id="ptnonm" type="STRING"/>
  47. </ColumnInfo>
  48. </Dataset>
  49. </Objects>
  50. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  51. * System Name : KU2.0
  52. * Job Name :
  53. * File Name : SPLPC02400_병리번호코드팝업.xfdl
  54. * Creator :
  55. * Make Date : 2015-11-12
  56. *
  57. * Description :
  58. *---------------------------------------------------------------------------------------
  59. * Modify Date Modifier Modify Description
  60. *---------------------------------------------------------------------------------------
  61. * 2015-11-12 DBS Converting Program(TF->XP)
  62. *
  63. *---------------------------------------------------------------------------------------
  64. ****************************************************************************************/
  65. //=======================================================================================
  66. // xjs Include
  67. //---------------------------------------------------------------------------------------
  68. include "com_commonxp::comm_main.xjs";
  69. //=======================================================================================
  70. // Function
  71. //---------------------------------------------------------------------------------------
  72. function lf_GetRefData(){
  73. var sInstCd = opener.lgv_sInstCd;
  74. if (utlf_isNull(utlf_trim(sInstCd))) {
  75. sInstCd = opener.sysf_getUserInfo("dutplceinstcd");
  76. }
  77. var sInDsName = dsf_createDsRow("in_ds_search"
  78. , [{col: "delflagcd", val: "0"}
  79. , {col: "instcd" , val: sInstCd}
  80. ]);
  81. ds_grid_grd_ptnocdlist.clearData();
  82. // 서브밋호출
  83. var oParam = {};
  84. oParam.id = "TRLPC02401";
  85. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  86. oParam.method = "reqGetPtNoCodeList";
  87. oParam.inds = "refData="+sInDsName;
  88. oParam.outds = "ds_grid_grd_ptnocdlist=refrslt";
  89. oParam.async = false;
  90. oParam.callback = "cbf_SPLPC02400";
  91. tranf_submit(oParam);
  92. }
  93. //콜백함수
  94. function cbf_SPLPC02400(strSvcID, nErrorCode, strErrorMag){
  95. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  96. }
  97. // 병리코드번호, 병리번호명칭 보내기
  98. function lf_ExeChoiPtnoCd(){
  99. var nRow = ds_grid_grd_ptnocdlist.rowposition;
  100. opener.ds_hidden_scrndata.setColumn(0,"ptnocd",ds_grid_grd_ptnocdlist.getColumn(nRow, "ptnocd"));
  101. opener.ds_hidden_scrndata.setColumn(0,"ptnonm",ds_grid_grd_ptnocdlist.getColumn(nRow, "ptnonm"));
  102. this.close();
  103. }
  104. //=======================================================================================
  105. // Event
  106. //---------------------------------------------------------------------------------------
  107. /****************************************************************************************
  108. * Components :
  109. * Components ID : SPLPC02400
  110. * Event : onload
  111. * Argument : 01.obj : Object Event has occurred
  112. * : 02.e : Event Object
  113. * Description :
  114. ****************************************************************************************/
  115. function SPLPC02400_onload(obj:Form, e:LoadEventInfo)
  116. {
  117. frmf_initForm(obj);
  118. lf_GetRefData();
  119. }
  120. /****************************************************************************************
  121. * Components :
  122. * Components ID : btn_cls
  123. * Event : onclick
  124. * Argument : 01.obj : Object Event has occurred
  125. * : 02.e : Event Object
  126. * Description :
  127. ****************************************************************************************/
  128. //닫기버튼
  129. function btn_cls_onclick(obj:Button, e:ClickEventInfo)
  130. {
  131. this.close();
  132. }
  133. /****************************************************************************************
  134. * Components :
  135. * Components ID : btn_cfm
  136. * Event : onclick
  137. * Argument : 01.obj : Object Event has occurred
  138. * : 02.e : Event Object
  139. * Description :
  140. ****************************************************************************************/
  141. //확인버튼
  142. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  143. {
  144. lf_ExeChoiPtnoCd();
  145. }
  146. /****************************************************************************************
  147. * Components :
  148. * Components ID : grd_ptnocdlist
  149. * Event : oncelldblclick
  150. * Argument : 01.obj : Object Event has occurred
  151. * : 02.e : Event Object
  152. * Description :
  153. ****************************************************************************************/
  154. //그리드 더블클릭
  155. function grd_ptnocdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  156. {
  157. lf_ExeChoiPtnoCd();
  158. }
  159. ]]></Script>
  160. </Form>
  161. </FDL>