SPMNW04703_피부욕창관찰기록파일첨부팝업.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNW04703" position="absolute 0 0 337 300" titletext="피부욕창관찰기록파일첨부" oninit="SPMNW04703_oninit" onload="SPMNW04703_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="피부욕창관찰기록파일첨부" position="absolute 0 0 190 25" id="caption6" class="tit_1"/>
  8. <Grid position="absolute 0 48 335 298" id="grd_report" binddataset="ds_main_list_reportlist" oncelldblclick="grd_report_oncelldblclick">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="334"/>
  13. <Column size="0"/>
  14. <Column size="0"/>
  15. <Column size="0"/>
  16. <Column size="0"/>
  17. <Column size="0"/>
  18. <Column size="0"/>
  19. </Columns>
  20. <Rows>
  21. <Row size="24" band="head"/>
  22. <Row size="24"/>
  23. </Rows>
  24. <Band id="head">
  25. <Cell text="제목"/>
  26. <Cell col="1" text="REPORTID"/>
  27. <Cell col="2"/>
  28. <Cell col="3"/>
  29. <Cell col="4"/>
  30. <Cell col="5"/>
  31. <Cell col="6"/>
  32. </Band>
  33. <Band id="body">
  34. <Cell style="align:left middle;" text="bind:filenm"/>
  35. <Cell col="1" text="bind:reportid"/>
  36. <Cell col="2" text="bind:filesize"/>
  37. <Cell col="3" text="bind:filetype"/>
  38. <Cell col="4" text="bind:filepath"/>
  39. <Cell col="5" text="bind:pid"/>
  40. <Cell col="6" text="bind:grupcd"/>
  41. </Band>
  42. </Format>
  43. </Formats>
  44. </Grid>
  45. <Button position="absolute 95 28 159 47" id="button1" class="btn2" text="새로고침" onclick="button1_onclick"/>
  46. <Button position="absolute 249 28 291 47" id="btn_upload" class="btn5" text="저장" onclick="btn_upload_onclick"/>
  47. <Button position="absolute 161 28 203 47" id="button2" class="btn2" text="추가" onclick="button2_onclick"/>
  48. <Button position="absolute 205 28 247 47" id="button3" class="btn2" text="삭제" onclick="button3_onclick"/>
  49. <Button position="absolute 293 28 335 47" id="button4" class="btn2" text="닫기" onclick="button4_onclick"/>
  50. <Grid position="absolute 0 163 335 288" id="grd_attach" visible="false" binddataset="ds_send_attach">
  51. <Formats>
  52. <Format id="default">
  53. <Columns>
  54. <Column size="334"/>
  55. </Columns>
  56. <Rows>
  57. <Row size="24" band="head"/>
  58. <Row size="24"/>
  59. </Rows>
  60. <Band id="head">
  61. <Cell text="파일경로"/>
  62. </Band>
  63. <Band id="body">
  64. <Cell text="bind:file"/>
  65. </Band>
  66. </Format>
  67. </Formats>
  68. </Grid>
  69. </Layout>
  70. </Layouts>
  71. <Objects>
  72. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  73. <ColumnInfo>
  74. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  75. <Column id="obsrecseq" type="INT" size="256" sumtext="욕창기록순번"/>
  76. <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드"/>
  77. <Column id="reportid" type="STRING" size="256" sumtext="보고서ID"/>
  78. <Column id="filepath" type="STRING" size="256" sumtext="파일경로"/>
  79. <Column id="filenm" type="STRING" size="256"/>
  80. <Column id="filesize" type="STRING" size="256"/>
  81. <Column id="filetype" type="STRING" size="256"/>
  82. <Column id="send" type="STRING" size="256"/>
  83. </ColumnInfo>
  84. <Rows>
  85. <Row/>
  86. </Rows>
  87. </Dataset>
  88. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  89. <ColumnInfo>
  90. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  91. <Column id="obsrecseq" type="INT" size="256" sumtext="욕창기록순번"/>
  92. <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드"/>
  93. <Column id="reportid" type="STRING" size="256" sumtext="보고서ID"/>
  94. <Column id="filepath" type="STRING" size="256" sumtext="파일경로"/>
  95. </ColumnInfo>
  96. <Rows>
  97. <Row/>
  98. </Rows>
  99. </Dataset>
  100. <Dataset id="ds_main_list_reportlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  101. <ColumnInfo>
  102. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  103. <Column id="obsrecseq" type="STRING" size="256" sumtext="욕창기록순번"/>
  104. <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드"/>
  105. <Column id="reportid" type="STRING" size="256" sumtext="레포트번호"/>
  106. <Column id="filepath" type="STRING" size="256" sumtext="ftp경로"/>
  107. <Column id="filenm" type="STRING" size="256" sumtext="원본파일명"/>
  108. <Column id="filesize" type="STRING" size="256" sumtext="파일크기"/>
  109. <Column id="filetype" type="STRING" size="256" sumtext="파일형식"/>
  110. <Column id="cnt" type="STRING" size="256" sumtext="파일첨부갯수"/>
  111. </ColumnInfo>
  112. </Dataset>
  113. <Dataset id="ds_send_attach" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  114. <ColumnInfo>
  115. <Column id="filenm" type="STRING" size="256" sumtext="첨부파일명"/>
  116. <Column id="filedata" type="BLOB" size="256" sumtext="첨부파일데이터"/>
  117. <Column id="filesize" type="STRING" size="256" sumtext="첨부파일크기"/>
  118. <Column id="filetype" type="STRING" size="256" sumtext="파일종류"/>
  119. <Column id="file" type="STRING" size="256"/>
  120. </ColumnInfo>
  121. </Dataset>
  122. <Dataset id="ds_main_attachfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  123. <ColumnInfo>
  124. <Column id="filedata" type="STRING" size="256" sumtext="파일데이터"/>
  125. </ColumnInfo>
  126. </Dataset>
  127. </Objects>
  128. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  129. * System Name : 경대 의료정보시스템
  130. * Job Name : emr_wardcarexp -> SPMNW04703
  131. * Creator : yjh
  132. * Make Date : 2016-02-23
  133. * Description :
  134. *---------------------------------------------------------------------------------------
  135. * Modify Date Modifier Modify Description
  136. *---------------------------------------------------------------------------------------
  137. * 2016-02-23 yjh TF->XP
  138. *
  139. *---------------------------------------------------------------------------------------
  140. ****************************************************************************************/
  141. //=======================================================================================
  142. // Lib Include
  143. //---------------------------------------------------------------------------------------
  144. include "com_commonxp::comm_main.xjs";
  145. include "emr_wardcarexp::SPMNW04703.xjs"; //yjh : 커밋
  146. //=======================================================================================
  147. // Global Form Variable
  148. //---------------------------------------------------------------------------------------
  149. //=======================================================================================
  150. // Function
  151. //---------------------------------------------------------------------------------------
  152. /****************************************************************************************
  153. * Argument : N/A
  154. * Description :
  155. ****************************************************************************************/
  156. //=======================================================================================
  157. // Event
  158. //---------------------------------------------------------------------------------------
  159. /****************************************************************************************
  160. * Components : Form
  161. * Components ID : SPMNW04703
  162. * Event : oninit
  163. * Argument : 01.obj : Object Event has occurred
  164. * : 02.e : Event Object
  165. * Description : 화면 처음 초기화시
  166. ****************************************************************************************/
  167. function SPMNW04703_oninit(obj:Form, e:InitEventInfo)
  168. {
  169. frmf_initForm(obj); //폼 초기화
  170. }
  171. /****************************************************************************************
  172. * Components : Form
  173. * Components ID : SPMNW04703
  174. * Event : onload
  175. * Argument : 01.obj : Object Event has occurred
  176. * : 02.e : Event Object
  177. * Description : 화면 로딩 완료시
  178. ****************************************************************************************/
  179. function SPMNW04703_onload(obj:Form, e:LoadEventInfo)
  180. {
  181. fInit();
  182. }
  183. /****************************************************************************************
  184. * Components : Grid
  185. * Components ID : grd_report
  186. * Event : oncelldblclick
  187. * Argument : 01.obj : Object Event has occurred
  188. * : 02.e : Event Object
  189. * Description : 그리드 셀 더블클릭시
  190. ****************************************************************************************/
  191. function grd_report_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  192. {
  193. fDownLoad();
  194. }
  195. /****************************************************************************************
  196. * Components : Button
  197. * Components ID : button1
  198. * Event : onclick
  199. * Argument : 01.obj : Object Event has occurred
  200. * : 02.e : Event Object
  201. * Description : 새로고침버튼 클릭시
  202. ****************************************************************************************/
  203. function button1_onclick(obj:Button, e:ClickEventInfo)
  204. {
  205. if(isUpdated && sysf_messageBox('파일을 다시', 'Q005') == 6)
  206. fInit();
  207. else if(!isUpdated)
  208. fInit();
  209. }
  210. /****************************************************************************************
  211. * Components : Button
  212. * Components ID : button2
  213. * Event : onclick
  214. * Argument : 01.obj : Object Event has occurred
  215. * : 02.e : Event Object
  216. * Description : 추가버튼 클릭시
  217. ****************************************************************************************/
  218. function button2_onclick(obj:Button, e:ClickEventInfo)
  219. {
  220. fAddRow();
  221. }
  222. /****************************************************************************************
  223. * Components : Button
  224. * Components ID : button3
  225. * Event : onclick
  226. * Argument : 01.obj : Object Event has occurred
  227. * : 02.e : Event Object
  228. * Description : 삭제버튼 클릭시
  229. ****************************************************************************************/
  230. function button3_onclick(obj:Button, e:ClickEventInfo)
  231. {
  232. fDelete(grd_report.currentrow);
  233. }
  234. /****************************************************************************************
  235. * Components : Button
  236. * Components ID : btn_upload
  237. * Event : onclick
  238. * Argument : 01.obj : Object Event has occurred
  239. * : 02.e : Event Object
  240. * Description : 저장버튼 클릭시
  241. ****************************************************************************************/
  242. function btn_upload_onclick(obj:Button, e:ClickEventInfo)
  243. {
  244. fSave();
  245. }
  246. /****************************************************************************************
  247. * Components : Button
  248. * Components ID : button4
  249. * Event : onclick
  250. * Argument : 01.obj : Object Event has occurred
  251. * : 02.e : Event Object
  252. * Description : 닫기버튼 클릭시
  253. ****************************************************************************************/
  254. function button4_onclick(obj:Button, e:ClickEventInfo)
  255. {
  256. //첨부파일갯수를 리턴한다.
  257. var cnt = ds_main_list_reportlist.getColumn(0, "cnt");
  258. if( utlf_isNull(cnt) ){
  259. cnt = 0;
  260. }
  261. //alert('개수 : ' + cnt);
  262. opener.frmf_setParameter('retCnt', cnt);
  263. close();
  264. }
  265. ]]></Script>
  266. </Form>
  267. </FDL>