SPLPC02100_세부파트팝업.xfdl 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLPC02100" position="absolute 0 0 326 358" titletext="세부파트" onload="SPLPC02100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="grd_detlpartlist" taborder="1" useinputpanel="false" position="absolute 1 0 322 330" binddataset="ds_grid_grd_detlpartlist" positiontype="position" ondbclick="grd_detlpartlist_ondbclick" autofittype="col" oncelldblclick="grd_detlpartlist_oncelldblclick" class="CSS::lis.css">
  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:hospcd"/>
  28. <Cell col="1" celltype="head" expr="expr:currow+1"/>
  29. <Cell col="2" text="bind:detlpartcd"/>
  30. <Cell col="3" text="bind:detlpartnm"/>
  31. <Cell col="4"/>
  32. </Band>
  33. </Format>
  34. </Formats>
  35. </Grid>
  36. <Button id="btn_cfm" taborder="3" text="확인" onclick="btn_cfm_onclick" class="btn2" position="absolute 198 336 242 356" positiontype="position"/>
  37. <Button id="btn_cfm00" taborder="4" text="닫기" class="btn2" position="absolute 262 336 306 356" onclick="btn_cfm00_onclick"/>
  38. </Layout>
  39. </Layouts>
  40. <Objects>
  41. <Dataset id="ds_grid_grd_detlpartlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  42. <ColumnInfo>
  43. <Column id="hospcd" type="STRING"/>
  44. <Column id="detlpartcd" type="STRING"/>
  45. <Column id="detlpartnm" type="STRING"/>
  46. </ColumnInfo>
  47. </Dataset>
  48. <Dataset id="ds_hidden_scrndata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  49. </Objects>
  50. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  51. * System Name : KU2.0
  52. * Job Name :
  53. * File Name : SPLPC02100_세부파트팝업.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. //var sBaseCd = opener.ds_rslt_ptnoinfo.getColumn(0,"basepartcd");
  74. var sBaseCd = opener.ds_hidden_scrndata.getColumn(0,"basepartcd");
  75. if(utlf_isNull(sBaseCd)){
  76. sysf_messageBox("기본파트를 먼저", "C002");
  77. close();
  78. }
  79. /*
  80. dsf_createDsRow("ds_send"
  81. , [{col: "delflag" , val: "0"}
  82. , {col: "instcd" , val: sysf_getUserInfo("dutplceinstcd")}
  83. ]);
  84. dsf_createDsRow("ds_send"
  85. , [{col: "delflag" , val: "0"}
  86. , {col: "instcd" , val: sysf_getUserInfo("dutplceinstcd")}
  87. , {col: "instcd" , val: opener.ds_data_exmpinfo.getColumn(0,"instcd")}
  88. , {col: "instcd" , val: opener.ds_rslt_ptnoinfo.getColumn(0,"instcd")}
  89. , {col: "basepartcd", val: sBaseCd}
  90. ]);
  91. */
  92. dsf_createDsRow("ds_send"
  93. , [{col: "delflag" , val: "0"}
  94. , {col: "instcd" , val: sysf_getUserInfo("dutplceinstcd")}
  95. , {col: "basepartcd", val: sBaseCd}
  96. ]);
  97. ds_grid_grd_detlpartlist.clearData();
  98. // 서브밋호출
  99. var oParam = {};
  100. oParam.id = "TRLPC02101";
  101. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  102. oParam.method = "reqGetDetailPartCodeList";
  103. oParam.inds = "refData=ds_send";
  104. oParam.outds = "ds_grid_grd_detlpartlist=refrslt";
  105. oParam.async = false;
  106. oParam.callback = "cbf_SPLPC02100";
  107. tranf_submit(oParam);
  108. }
  109. //콜백함수
  110. function cbf_SPLPC02100(strSvcID, nErrorCode, strErrorMag){
  111. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  112. }
  113. // 세부파트코드, 세부파트명칭 보내기
  114. function lf_ExeChoidetlPart(){
  115. var nRow = ds_grid_grd_detlpartlist.rowposition;
  116. // opener.ds_data_exmpinfo.setColumn(0,"detlpartcd", ds_grid_grd_detlpartlist.getColumn(nRow, "detlpartcd"));
  117. // opener.ds_data_exmpinfo.setColumn(0,"detlpartnm", ds_grid_grd_detlpartlist.getColumn(nRow, "detlpartnm"));
  118. opener.ds_hidden_scrndata.setColumn(0,"detlpartcd",ds_grid_grd_detlpartlist.getColumn(nRow, "detlpartcd"));
  119. opener.ds_hidden_scrndata.setColumn(0,"detlpartnm",ds_grid_grd_detlpartlist.getColumn(nRow, "detlpartnm"));
  120. // opener.ds_rslt_ptnoinfo.setColumn(0,"detlpartcd", ds_grid_grd_detlpartlist.getColumn(nRow, "detlpartcd"));
  121. // opener.ds_rslt_ptnoinfo.setColumn(0,"detlpartnm", ds_grid_grd_detlpartlist.getColumn(nRow, "detlpartnm"));
  122. this.close();
  123. }
  124. //=======================================================================================
  125. // Event
  126. //---------------------------------------------------------------------------------------
  127. /****************************************************************************************
  128. * Components :
  129. * Components ID : SPLPC02100
  130. * Event : onload
  131. * Argument : 01.obj : Object Event has occurred
  132. * : 02.e : Event Object
  133. * Description :
  134. ****************************************************************************************/
  135. function SPLPC02100_onload(obj:Form, e:LoadEventInfo)
  136. {
  137. frmf_initForm(obj);
  138. lf_GetRefData();
  139. }
  140. /****************************************************************************************
  141. * Components :
  142. * Components ID : btn_cls
  143. * Event : onclick
  144. * Argument : 01.obj : Object Event has occurred
  145. * : 02.e : Event Object
  146. * Description :
  147. ****************************************************************************************/
  148. // 닫기버튼
  149. function btn_cls_onclick(obj:Button, e:ClickEventInfo)
  150. {
  151. close();
  152. }
  153. /****************************************************************************************
  154. * Components :
  155. * Components ID : btn_cls
  156. * Event : onclick
  157. * Argument : 01.obj : Object Event has occurred
  158. * : 02.e : Event Object
  159. * Description :
  160. ****************************************************************************************/
  161. // 확인버튼
  162. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  163. {
  164. lf_ExeChoidetlPart();
  165. }
  166. /****************************************************************************************
  167. * Components :
  168. * Components ID : btn_cls
  169. * Event : onclick
  170. * Argument : 01.obj : Object Event has occurred
  171. * : 02.e : Event Object
  172. * Description :
  173. ****************************************************************************************/
  174. // 데이터 더블클릭
  175. function grd_detlpartlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  176. {
  177. lf_ExeChoidetlPart();
  178. }
  179. function btn_cfm00_onclick(obj:Button, e:ClickEventInfo)
  180. {
  181. close();
  182. }
  183. ]]></Script>
  184. </Form>
  185. </FDL>