SPMMO13900_AJCC조회.xfdl 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO13900" position="absolute 0 0 581 472" titletext="AJCC조회" onload="SPMMO13900_onload" oninit="SPMMO13900_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static text="AJCC 내역리스트" position="absolute 0 4 147 21" align="align:center middle;" id="caption18" class="tit_2"/>
  8. <Grid position="absolute 0 23 580 439" id="grd_AJCClist" scrollbars="fixedvert" taborder="4" binddataset="ds_main_AJCCspeclist" autofittype="col" oncelldblclick="grd_AJCClist_oncelldblclick">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="25"/>
  13. <Column size="539"/>
  14. <Column size="0"/>
  15. <Column size="0"/>
  16. <Column size="0"/>
  17. <Column size="0"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="24" band="head"/>
  21. <Row size="24"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell/>
  25. <Cell col="1" text="문서제목"/>
  26. <Cell col="2" text="파일명"/>
  27. <Cell col="3" text="발생일자"/>
  28. <Cell col="4" text="발생번호"/>
  29. <Cell col="5" text="사용구분"/>
  30. </Band>
  31. <Band id="body">
  32. <Cell celltype="head" expr="expr:currow+1"/>
  33. <Cell col="1" style="align:left middle;" text="bind:docutitlnm"/>
  34. <Cell col="2" text="bind:attfilenm"/>
  35. <Cell col="3" text="bind:genrdd"/>
  36. <Cell col="4" text="bind:genrno"/>
  37. <Cell col="5" displaytype="combo" edittype="combo" text="bind:useyn" combodataset="ds_combo_useyn" combocodecol="value" combodatacol="label"/>
  38. </Band>
  39. </Format>
  40. </Formats>
  41. </Grid>
  42. <Button position="absolute 524 442 580 464" id="button2" class="btn4" text="닫기" onclick="button2_onclick"/>
  43. </Layout>
  44. </Layouts>
  45. <Objects>
  46. <Dataset id="ds_main_AJCCspeclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  47. <ColumnInfo>
  48. <Column id="docutitlnm" type="STRING" size="256"/>
  49. <Column id="attfilenm" type="STRING" size="256"/>
  50. <Column id="useyn" type="STRING" size="256"/>
  51. <Column id="genrdd" type="STRING" size="256"/>
  52. <Column id="genrno" type="STRING" size="256"/>
  53. </ColumnInfo>
  54. <Rows>
  55. <Row>
  56. <Col id="docutitlnm"/>
  57. <Col id="attfilenm"/>
  58. <Col id="useyn"/>
  59. <Col id="genrdd"/>
  60. <Col id="genrno"/>
  61. </Row>
  62. </Rows>
  63. </Dataset>
  64. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  65. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  66. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  67. <Dataset id="ds_init_file" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  68. <ColumnInfo>
  69. <Column id="attfilenm" type="STRING" size="256"/>
  70. <Column id="attfilecnts" type="BLOB" size="256"/>
  71. </ColumnInfo>
  72. <Rows>
  73. <Row>
  74. <Col id="attfilenm"/>
  75. <Col id="attfilecnts"/>
  76. </Row>
  77. </Rows>
  78. </Dataset>
  79. <Dataset id="ds_combo_useyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  80. <ColumnInfo>
  81. <Column id="label" type="STRING" size="256"/>
  82. <Column id="value" type="STRING" size="256"/>
  83. </ColumnInfo>
  84. <Rows>
  85. <Row>
  86. <Col id="label">사용</Col>
  87. <Col id="value">Y</Col>
  88. </Row>
  89. <Row>
  90. <Col id="label">미사용</Col>
  91. <Col id="value">N</Col>
  92. </Row>
  93. </Rows>
  94. </Dataset>
  95. </Objects>
  96. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  97. * System Name :
  98. * Job Name :
  99. * Creator :
  100. * Make Date : 2015-09-01
  101. * Description :
  102. *---------------------------------------------------------------------------------------
  103. * Modify Date Modifier Modify Description
  104. *---------------------------------------------------------------------------------------
  105. * 2015-09-01 Live Converter TF->XP
  106. *
  107. *---------------------------------------------------------------------------------------
  108. ****************************************************************************************/
  109. //=======================================================================================
  110. // Lib Include
  111. //---------------------------------------------------------------------------------------
  112. include "com_commonxp::comm_main.xjs"
  113. //=======================================================================================
  114. // Global Form Variable
  115. //---------------------------------------------------------------------------------------
  116. var arErrorCode = new HashArray();
  117. //=======================================================================================
  118. // Event
  119. //---------------------------------------------------------------------------------------
  120. /****************************************************************************************
  121. * Components : Form
  122. * Components ID : SPMMO13900
  123. * Event : oninit
  124. * Argument : 01.obj : Object Event has occurred
  125. * : 02.e : Event Object
  126. * Description : 화면 처음 초기화시 폼초기화
  127. ****************************************************************************************/
  128. function SPMMO13900_oninit(obj:Form, e:InitEventInfo)
  129. {
  130. frmf_initForm(obj);
  131. }
  132. /****************************************************************************************
  133. * Components : Form
  134. * Components ID : SPMMO13900
  135. * Event : oninit
  136. * Argument : 01.obj : Object Event has occurred
  137. * : 02.e : Event Object
  138. * Description : 화면 처음 초기화시 폼초기화
  139. ****************************************************************************************/
  140. function SPMMO13900_onload(obj:Form, e:LoadEventInfo)
  141. {
  142. //그리드 초기화
  143. ds_main_AJCCspeclist.clearData();
  144. //질환병기AJCC테이블에 있는 데이타 조회
  145. var oParam = {};
  146. oParam.id = "TRMMO13901";
  147. oParam.service = "prcpmngtapp.EtcPrcpMngt";
  148. oParam.method = "reqGetAJCCList";
  149. //oParam.inds = "";
  150. oParam.outds = "ds_main_AJCCspeclist=AJCCspeclist";
  151. oParam.async = false;
  152. //oParam.callback = "cf_TRMMO13901";
  153. tranf_submit(oParam);
  154. }
  155. /****************************************************************************************
  156. * Components : Grid
  157. * Components ID : grd_AJCClist
  158. * Event : oncelldblclick
  159. * Argument : 01.obj : Object Event has occurred
  160. * : 02.e : Event Object
  161. * Description : AJCC 리스트 더블클릭
  162. ****************************************************************************************/
  163. function grd_AJCClist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  164. {
  165. var row = ds_main_AJCCspeclist.rowposition;
  166. //저장할 파일명, 확장자를 알아내어 저장화면을 화면에 불러온다.
  167. var filenm = ds_main_AJCCspeclist.getColumn(row,"attfilenm");
  168. var fileext = filenm.lastIndexOf(".");
  169. var ext = filenm.substring(fileext +1);
  170. var filesave = "C:\\Temp\\" + filenm;
  171. if (!utlf_isNull(filesave)) {
  172. //파일을 키값을 가지고 저장하러 간다
  173. var getdd = ds_main_AJCCspeclist.getColumn(row,"genrdd");
  174. var getno = ds_main_AJCCspeclist.getColumn(row,"genrno");
  175. dsf_makeValue(ds_send_reqdata,"genrdd","string",getdd);
  176. dsf_makeValue(ds_send_reqdata,"genrno","string",getno);
  177. var oParam = {};
  178. oParam.id = "TRMMO13902";
  179. oParam.service = "prcpmngtapp.EtcPrcpMngt";
  180. oParam.method = "reqExeAJCCFileDownLoad";
  181. oParam.inds = "req=ds_send_reqdata";
  182. oParam.outds = "ds_init_file=file";
  183. oParam.async = false;
  184. //oParam.callback = "cf_TRMMO13902";
  185. tranf_submit(oParam);
  186. trace(filenm);
  187. var fd = new FileDialog;
  188. var objVFile = fd.open("FileSave", FileDialog.SAVE, "%MYDOCUMENT%", filenm); // 단일 파일 선택
  189. if (!utlf_isNull(objVFile)) {
  190. dsf_readFileFromDs(objVFile.fullpath, ds_init_file, 0, "attfilecnts"); // 파일저장
  191. }
  192. }
  193. }
  194. function button2_onclick(obj:Button, e:ClickEventInfo)
  195. {
  196. this.close();
  197. }
  198. ]]></Script>
  199. </Form>
  200. </FDL>