SPRFC00204_임차장비리스트.xfdl 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPRFC00204" position="absolute 0 0 707 438" titletext="임차장비 리스트" oninit="SPRFC00204_oninit" onload="SPRFC00204_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="임차장비 리스트" class="tit_2" position="absolute 0 0 130 21"/>
  8. <Shape id="line1" class="line_10" position="absolute 0 16 707 22"/>
  9. <Grid id="grd_rentfaxlst" taborder="1" cellsizingtype="col" position="absolute 0 21 707 401" binddataset="ds_rentfaxlst" autofittype="col" oncelldblclick="grd_rentfaxlst_oncelldblclick">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="22" band="left"/>
  14. <Column size="0"/>
  15. <Column size="0"/>
  16. <Column size="92"/>
  17. <Column size="178"/>
  18. <Column size="70"/>
  19. <Column size="70"/>
  20. <Column size="60"/>
  21. <Column size="120"/>
  22. </Columns>
  23. <Rows>
  24. <Row size="24" band="head"/>
  25. <Row size="24"/>
  26. </Rows>
  27. <Band id="head">
  28. <Cell/>
  29. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  30. <Cell col="2" text="기관코드"/>
  31. <Cell col="3" text="자산코드"/>
  32. <Cell col="4" text="자산명"/>
  33. <Cell col="5" colspan="2" text="계약기간" taborder="undefined"/>
  34. <Cell col="7" text="처리여부"/>
  35. <Cell col="8" text="장비비고"/>
  36. </Band>
  37. <Band id="body">
  38. <Cell celltype="head" expr="expr:currow+1"/>
  39. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  40. <Cell col="2" text="bind:instcd"/>
  41. <Cell col="3" text="bind:fixasetcd"/>
  42. <Cell col="4" style="align:left;" text="bind:fixasetnm"/>
  43. <Cell col="5" displaytype="date" text="bind:fcondd" calendardisplaynulltype="none"/>
  44. <Cell col="6" displaytype="date" text="bind:tcondd" calendardisplaynulltype="none"/>
  45. <Cell col="7" text="bind:flag"/>
  46. <Cell col="8" style="align:left top;padding:4 2 2 2;" text="bind:facdcmt"/>
  47. </Band>
  48. </Format>
  49. </Formats>
  50. </Grid>
  51. <Button id="btn_close" taborder="3" text="닫기" class="btn4" position="absolute 651 411 707 433" onclick="btn_close_onclick"/>
  52. <Button id="btn_apply" taborder="4" text="적용" class="btn4" position="absolute 593 411 649 433" onclick="btn_apply_onclick"/>
  53. </Layout>
  54. </Layouts>
  55. <Objects>
  56. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  57. <ColumnInfo>
  58. <Column id="instcd" type="STRING" size="256"/>
  59. </ColumnInfo>
  60. <Rows>
  61. <Row/>
  62. </Rows>
  63. </Dataset>
  64. <Dataset id="ds_rentfaxlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  65. <ColumnInfo>
  66. <Column id="instcd" type="STRING" size="255"/>
  67. <Column id="fixasetcd" type="STRING" size="255"/>
  68. <Column id="fixasetnm" type="STRING" size="255"/>
  69. <Column id="fcondd" type="STRING" size="255"/>
  70. <Column id="tcondd" type="STRING" size="255"/>
  71. <Column id="flag" type="STRING" size="255"/>
  72. <Column id="facdcmt" type="STRING" size="255"/>
  73. </ColumnInfo>
  74. </Dataset>
  75. </Objects>
  76. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  77. * System Name : 경대 의료정보시스템
  78. * Job Name : mis_purcbasexp -> SPRFC00204
  79. * Creator : yjh
  80. * Make Date : 2018-08-13
  81. * Description :
  82. *---------------------------------------------------------------------------------------
  83. * Modify Date Modifier Modify Description
  84. *---------------------------------------------------------------------------------------
  85. * 2018-08-13 yjh TF->XP
  86. *
  87. *---------------------------------------------------------------------------------------
  88. ****************************************************************************************/
  89. //=======================================================================================
  90. // Lib Include
  91. //---------------------------------------------------------------------------------------
  92. include "com_commonxp::comm_main.xjs";
  93. //=======================================================================================
  94. // Global Form Variable
  95. //---------------------------------------------------------------------------------------
  96. //=======================================================================================
  97. // Function
  98. //---------------------------------------------------------------------------------------
  99. /****************************************************************************************
  100. * Argument : N/A
  101. * Description :
  102. ****************************************************************************************/
  103. //=======================================================================================
  104. // Event
  105. //---------------------------------------------------------------------------------------
  106. /****************************************************************************************
  107. * Components : Form
  108. * Components ID : SPRFC00204
  109. * Event : oninit
  110. * Argument : 01.obj : Object Event has occurred
  111. * : 02.e : Event Object
  112. * Description : 화면 처음 초기화시
  113. ****************************************************************************************/
  114. function SPRFC00204_oninit(obj:Form, e:InitEventInfo)
  115. {
  116. frmf_initForm(obj); //폼 초기화
  117. }
  118. /****************************************************************************************
  119. * Components : Form
  120. * Components ID : SPRFC00204
  121. * Event : onload
  122. * Argument : 01.obj : Object Event has occurred
  123. * : 02.e : Event Object
  124. * Description : 화면 로딩 완료시
  125. ****************************************************************************************/
  126. function SPRFC00204_onload(obj:Form, e:LoadEventInfo)
  127. {
  128. grdf_initGrid(grd_rentfaxlst);
  129. ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  130. var oParam = {};
  131. oParam.id = "TRRFC00212";
  132. oParam.service = "purcbaseapp.PurcBaseMngt";
  133. oParam.method = "reqGetRentFaxLst";
  134. oParam.inds = "req=ds_send";
  135. oParam.outds = "ds_rentfaxlst=rentfaxlst";
  136. oParam.async = false;
  137. //oParam.callback = "cf_TRRFC00212";
  138. tranf_submit(oParam);
  139. ds_rentfaxlst.addColumn("chk", "string");
  140. }
  141. /****************************************************************************************
  142. * Components : Button
  143. * Components ID : btn_close
  144. * Event : onclick
  145. * Argument : 01.obj : Object Event has occurred
  146. * : 02.e : Event Object
  147. * Description : 닫기버튼 클릭시
  148. ****************************************************************************************/
  149. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  150. {
  151. this.close();
  152. }
  153. /****************************************************************************************
  154. * Components : Button
  155. * Components ID : btn_apply
  156. * Event : onclick
  157. * Argument : 01.obj : Object Event has occurred
  158. * : 02.e : Event Object
  159. * Description : 적용버튼 클릭시
  160. ****************************************************************************************/
  161. function btn_apply_onclick(obj:Button, e:ClickEventInfo)
  162. {
  163. if(ds_rentfaxlst.rowcount == 0)
  164. {
  165. return;
  166. }
  167. opener.ds_popfixa.setColumn(0, "selectyn", "Y");
  168. opener.ds_popfixa.setColumn(0, "fixasetcd", ds_rentfaxlst.getColumn(ds_rentfaxlst.rowposition, "fixasetcd"));
  169. opener.ds_popfixa.setColumn(0, "fixasetnm", ds_rentfaxlst.getColumn(ds_rentfaxlst.rowposition, "fixasetnm"));
  170. opener.ds_popfixa.setColumn(0, "instcd" , ds_send.getColumn(0, "instcd"));
  171. this.close();
  172. }
  173. function grd_rentfaxlst_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  174. {
  175. btn_apply.click();
  176. }
  177. ]]></Script>
  178. </Form>
  179. </FDL>