SPLPC02000_기본파트팝업.xfdl 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLPC02000" position="absolute 0 0 345 410" titletext="기본파트" class="frm_POP" onload="SPLPC02000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="stt_titleText" text="기본파트" class="sta_POP_title" position="absolute 12 8 161 28"/>
  8. <Grid id="grd_basepartlist" taborder="1" useinputpanel="false" position="absolute 12 46 334 376" binddataset="ds_grid_grd_basepartlist" positiontype="position" ondbclick="grd_basepartlist_ondbclick" autofittype="col" oncelldblclick="grd_basepartlist_oncelldblclick">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="0"/>
  13. <Column size="30"/>
  14. <Column size="100"/>
  15. <Column size="200"/>
  16. </Columns>
  17. <Rows>
  18. <Row size="22" band="head"/>
  19. <Row size="20"/>
  20. </Rows>
  21. <Band id="head">
  22. <Cell text="병원코드"/>
  23. <Cell col="1"/>
  24. <Cell col="2" text="기본파트코드"/>
  25. <Cell col="3" text="기본파트명칭"/>
  26. </Band>
  27. <Band id="body">
  28. <Cell text="bind:hospcd"/>
  29. <Cell col="1" celltype="head" expr="expr:currow+1"/>
  30. <Cell col="2" text="bind:basepartcd"/>
  31. <Cell col="3" text="bind:basepartnm"/>
  32. <Cell col="4"/>
  33. </Band>
  34. </Format>
  35. </Formats>
  36. </Grid>
  37. <Button id="btn_cfm" taborder="2" text="확인" onclick="btn_cfm_onclick" class="btn5" position="absolute 289 379 333 399" 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_basepartlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  43. <ColumnInfo>
  44. <Column id="hospcd" type="STRING"/>
  45. <Column id="basepartcd" type="STRING"/>
  46. <Column id="basepartnm" 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 : SPLPC02000_기본파트팝업.xfdl
  54. * Creator :
  55. * Make Date : 2015-12-10
  56. *
  57. * Description :
  58. *---------------------------------------------------------------------------------------
  59. * Modify Date Modifier Modify Description
  60. *---------------------------------------------------------------------------------------
  61. *
  62. *---------------------------------------------------------------------------------------
  63. ****************************************************************************************/
  64. //=======================================================================================
  65. // xjs Include
  66. //---------------------------------------------------------------------------------------
  67. include "com_commonxp::comm_main.xjs";
  68. //=======================================================================================
  69. // Function
  70. //---------------------------------------------------------------------------------------
  71. function lf_GetRefData(){
  72. /*
  73. dsf_createDsRow("ds_send"
  74. , [{col: "delflag" , val: "0"}
  75. , {col: "instcd" , val: opener.ds_hidden_userinfo.getColumn(0,"instcd")}
  76. ]);
  77. */
  78. dsf_createDsRow("ds_send"
  79. , [{col: "delflag" , val: "0"}
  80. , {col: "instcd" , val: sysf_getUserInfo("dutplceinstcd")}
  81. ]);
  82. ds_grid_grd_basepartlist.clearData();
  83. // 서브밋호출
  84. var oParam = {};
  85. oParam.id = "TRLPC02001";
  86. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  87. oParam.method = "reqGetBasisPartCodeList";
  88. oParam.inds = "refData=ds_send";
  89. oParam.outds = "ds_grid_grd_basepartlist=refrslt";
  90. oParam.async = false;
  91. oParam.callback = "cbf_SPLPC02000";
  92. tranf_submit(oParam);
  93. }
  94. //콜백함수
  95. function cbf_SPLPC02000(strSvcID, nErrorCode, strErrorMag){
  96. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  97. }
  98. // 기본파트코드, 기본파트명칭 보내기
  99. function lf_ExeChoiBasePart(){
  100. opener.ds_hidden_scrndata.setColumn(0,"basepartcd",ds_grid_grd_basepartlist.getColumn(ds_grid_grd_basepartlist.rowposition, "basepartcd"));
  101. opener.ds_hidden_scrndata.setColumn(0,"basepartnm",ds_grid_grd_basepartlist.getColumn(ds_grid_grd_basepartlist.rowposition, "basepartnm"));
  102. // opener.ds_rslt_ptnoinfo.setColumn(0,"basepartcd",ds_grid_grd_basepartlist.getColumn(ds_grid_grd_basepartlist.rowposition, "basepartcd"));
  103. // opener.ds_rslt_ptnoinfo.setColumn(0,"basepartnm",ds_grid_grd_basepartlist.getColumn(ds_grid_grd_basepartlist.rowposition, "basepartnm"));
  104. this.close();
  105. }
  106. //=======================================================================================
  107. // Event
  108. //---------------------------------------------------------------------------------------
  109. /****************************************************************************************
  110. * Components :
  111. * Components ID : SPLPC02000
  112. * Event : onload
  113. * Argument : 01.obj : Object Event has occurred
  114. * : 02.e : Event Object
  115. * Description :
  116. ****************************************************************************************/
  117. function SPLPC02000_onload(obj:Form, e:LoadEventInfo)
  118. {
  119. frmf_initForm(obj);
  120. lf_GetRefData();
  121. }
  122. /****************************************************************************************
  123. * Components :
  124. * Components ID : btn_cls_
  125. * Event : onclick
  126. * Argument : 01.obj : Object Event has occurred
  127. * : 02.e : Event Object
  128. * Description :
  129. ****************************************************************************************/
  130. // 닫기
  131. function btn_cls_onclick(obj:Button, e:ClickEventInfo)
  132. {
  133. close();
  134. }
  135. /****************************************************************************************
  136. * Components :
  137. * Components ID : btn_cfm
  138. * Event : onclick
  139. * Argument : 01.obj : Object Event has occurred
  140. * : 02.e : Event Object
  141. * Description :
  142. ****************************************************************************************/
  143. // 확인
  144. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  145. {
  146. lf_ExeChoiBasePart();
  147. }
  148. /****************************************************************************************
  149. * Components :
  150. * Components ID : grd_basepartlist
  151. * Event : oncelldblclick
  152. * Argument : 01.obj : Object Event has occurred
  153. * : 02.e : Event Object
  154. * Description :
  155. ****************************************************************************************/
  156. // 데이터 더블클릭
  157. function grd_basepartlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  158. {
  159. lf_ExeChoiBasePart();
  160. }
  161. ]]></Script>
  162. </Form>
  163. </FDL>