SMMMP01000_CP마스터정보.xfdl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMMP01000_CP마스터정보" classname="SMMMP01000_CP마스터정보" inheritanceid="" position="absolute 0 0 551 365" titletext="CP정보" oninit="SMMMP01000_oninit" onload="SMMMP01000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="CP 정보" class="tit_1" position="absolute 0 0 117 20"/>
  8. <Static id="cap_cpaprvno" text="CP명" class="cell_1" position="absolute 0 24 93 47"/>
  9. <Static id="cap_cpaprvno00" text="진료과" class="cell_1" position="absolute 0 49 93 72"/>
  10. <Static id="cap_cpaprvno01" text="재원일수(일)" class="cell_1" position="absolute 0 74 93 97"/>
  11. <Static id="cap_cpaprvno04" text="적용일" class="cell_1" position="absolute 0 99 93 122"/>
  12. <Static id="cap_cpaprvno06" text="메모" class="cell_1" position="absolute 0 124 93 147"/>
  13. <Grid id="grd_attfile" taborder="11" binddataset="ds_temp_trmqp_rslt_attach" useinputpanel="false" position="absolute 95 150 551 365" anchor="all" autofitbandtype="body" autofittype="col">
  14. <Formats>
  15. <Format id="default">
  16. <Columns>
  17. <Column size="25" band="left"/>
  18. <Column size="488"/>
  19. <Column size="0"/>
  20. <Column size="0"/>
  21. <Column size="0"/>
  22. <Column size="0"/>
  23. </Columns>
  24. <Rows>
  25. <Row size="24" band="head"/>
  26. <Row size="24"/>
  27. </Rows>
  28. <Band id="head">
  29. <Cell/>
  30. <Cell col="1" text="파일명"/>
  31. <Cell col="2" text="경로"/>
  32. <Cell col="3" text="caption1"/>
  33. <Cell col="4" text="caption2"/>
  34. <Cell col="5" text="path"/>
  35. </Band>
  36. <Band id="body">
  37. <Cell celltype="head" text="expr:currow + 1"/>
  38. <Cell col="1" style="align:left;" text="bind:attfilenm"/>
  39. <Cell col="2" text="bind:file"/>
  40. <Cell col="3" text="bind:detlinfoseq"/>
  41. <Cell col="4" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:check == 'true' || check == '1' ? 1 : 0"/>
  42. <Cell col="5" text="bind:path"/>
  43. </Band>
  44. </Format>
  45. </Formats>
  46. </Grid>
  47. <Static id="cap_attfile" text="CP자료" class="cell_1" position="absolute 0 149 93 365" anchor="left top bottom"/>
  48. <Button id="button_download" taborder="12" text="다운" class="btn2" position="absolute 2 340 91 363" anchor="left bottom" onclick="button_download_onclick"/>
  49. <Static id="Static00" position="absolute 95 24 551 47" style="border:1 solid #808080ff ;padding:0 0 0 5;" anchor="left top right"/>
  50. <Static id="Static01" position="absolute 95 49 551 72" style="border:1 solid #808080ff ;padding:0 0 0 5;"/>
  51. <Static id="Static02" position="absolute 95 74 551 97" style="border:1 solid #808080ff ;padding:0 0 0 5;" anchor="left top right"/>
  52. <Static id="Static04" position="absolute 95 124 551 147" style="border:1 solid #808080ff ;padding:0 0 0 5;" anchor="left top right"/>
  53. <Calendar id="Calendar00" taborder="13" position="absolute 95 99 551 122" style="daybackground:transparent;background:transparent 5,5;border:1 solid #808080ff ;" readonly="true"/>
  54. </Layout>
  55. </Layouts>
  56. <Objects>
  57. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  58. <ColumnInfo>
  59. <Column id="pid" type="STRING" size="256"/>
  60. <Column id="indd" type="STRING" size="256"/>
  61. <Column id="cretno" type="STRING" size="256"/>
  62. </ColumnInfo>
  63. <Rows>
  64. <Row/>
  65. </Rows>
  66. </Dataset>
  67. <Dataset id="ds_temp_trmqp_rslt_masterinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  68. <ColumnInfo>
  69. <Column id="cpgnm" type="STRING" size="256"/>
  70. <Column id="cpgorddeptcd" type="STRING" size="256"/>
  71. <Column id="cpaprvno" type="STRING" size="256"/>
  72. <Column id="swimlineno" type="STRING" size="256"/>
  73. <Column id="fcstinhospdayno" type="STRING" size="256"/>
  74. <Column id="appdd" type="STRING" size="256"/>
  75. <Column id="todd" type="STRING" size="256"/>
  76. <Column id="lastupdtdt" type="STRING" size="256"/>
  77. <Column id="cpgmemo" type="STRING" size="256"/>
  78. <Column id="cpgno" type="STRING" size="256"/>
  79. <Column id="cpghistseq" type="STRING" size="256"/>
  80. <Column id="cpgflagcd" type="STRING" size="256"/>
  81. <Column id="reqrid" type="STRING" size="256"/>
  82. <Column id="rgstrid" type="STRING" size="256"/>
  83. <Column id="cpglasthistyn" type="STRING" size="256"/>
  84. <Column id="tmpyn" type="STRING" size="256"/>
  85. <Column id="fstrgstrid" type="STRING" size="256"/>
  86. <Column id="fstrgstdt" type="STRING" size="256"/>
  87. <Column id="lastupdtrid" type="STRING" size="256"/>
  88. <Column id="instcd" type="STRING" size="256"/>
  89. <Column id="cpkind" type="STRING" size="256"/>
  90. <Column id="reqrnm" type="STRING" size="256"/>
  91. <Column id="rgstrnm" type="STRING" size="256"/>
  92. <Column id="cretdd" type="STRING" size="256"/>
  93. <Column id="orgcpgnm" type="STRING" size="256"/>
  94. <Column id="ioflagcd" type="STRING" size="256"/>
  95. <Column id="cpgtypecd" type="STRING" size="256"/>
  96. <Column id="valusgeyn" type="STRING" size="256"/>
  97. <Column id="valunm" type="STRING" size="256"/>
  98. <Column id="cpgorddeptnm" type="STRING" size="256"/>
  99. <Column id="startdd" type="STRING" size="256"/>
  100. <Column id="enddd" type="STRING" size="256"/>
  101. </ColumnInfo>
  102. <Rows>
  103. <Row>
  104. <Col id="cpgnm"/>
  105. <Col id="cpgorddeptcd"/>
  106. <Col id="cpaprvno"/>
  107. <Col id="swimlineno"/>
  108. <Col id="fcstinhospdayno"/>
  109. <Col id="appdd"/>
  110. <Col id="todd"/>
  111. <Col id="lastupdtdt"/>
  112. <Col id="cpgmemo"/>
  113. <Col id="cpgno"/>
  114. <Col id="cpghistseq"/>
  115. <Col id="cpgflagcd">01</Col>
  116. <Col id="reqrid"/>
  117. <Col id="rgstrid"/>
  118. <Col id="cpglasthistyn"/>
  119. <Col id="tmpyn"/>
  120. <Col id="fstrgstrid"/>
  121. <Col id="fstrgstdt"/>
  122. <Col id="lastupdtrid"/>
  123. <Col id="instcd"/>
  124. <Col id="cpkind"/>
  125. <Col id="reqrnm"/>
  126. <Col id="rgstrnm"/>
  127. <Col id="cretdd"/>
  128. <Col id="orgcpgnm"/>
  129. <Col id="ioflagcd">I</Col>
  130. <Col id="cpgtypecd">D</Col>
  131. <Col id="valusgeyn">N</Col>
  132. <Col id="valunm"/>
  133. </Row>
  134. </Rows>
  135. </Dataset>
  136. <Dataset id="ds_temp_trmqp_rslt_attach" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  137. <ColumnInfo>
  138. <Column id="attfilenm" type="STRING" size="256"/>
  139. </ColumnInfo>
  140. </Dataset>
  141. </Objects>
  142. <Bind>
  143. <BindItem id="item2" compid="Static00" propid="text" datasetid="ds_temp_trmqp_rslt_masterinfo" columnid="cpgnm"/>
  144. <BindItem id="item3" compid="Static01" propid="text" datasetid="ds_temp_trmqp_rslt_masterinfo" columnid="cpgorddeptnm"/>
  145. <BindItem id="item4" compid="Static02" propid="text" datasetid="ds_temp_trmqp_rslt_masterinfo" columnid="fcstinhospdayno"/>
  146. <BindItem id="item8" compid="Static04" propid="text" datasetid="ds_temp_trmqp_rslt_masterinfo" columnid="cpgmemo"/>
  147. <BindItem id="item0" compid="Calendar00" propid="value" datasetid="ds_temp_trmqp_rslt_masterinfo" columnid="startdd"/>
  148. </Bind>
  149. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  150. function SMMMP01000_oninit(obj:Form, e:InitEventInfo)
  151. {
  152. frmf_initForm(obj);
  153. }
  154. function SMMMP01000_onload(obj:Form, e:LoadEventInfo)
  155. {
  156. fSearchCPMasterInfo();
  157. }
  158. function fSearchCPMasterInfo()
  159. {
  160. var varPid = this.opener.frmf_getParameter("pid");
  161. var varIndd = this.opener.frmf_getParameter("indd");
  162. var varCretno = this.opener.frmf_getParameter("cretno");
  163. ds_send_req.setColumn(0, "pid", varPid);
  164. ds_send_req.setColumn(0, "indd", varIndd);
  165. ds_send_req.setColumn(0, "cretno", varCretno);
  166. var oParam = {};
  167. oParam.id = "TMMMP01000";
  168. oParam.service = "prcpbaseapp.CpMngt";
  169. oParam.method = "reqGetCPMasterInfo";
  170. oParam.inds = "req=ds_send_req";
  171. oParam.outds = "ds_temp_trmqp_rslt_masterinfo=masterinfo ds_temp_trmqp_rslt_attach=attach"
  172. oParam.async = false;
  173. tranf_submit(oParam);
  174. }
  175. function button_download_onclick(obj:Button, e:ClickEventInfo)
  176. {
  177. //저장한 파일을 다운로드한다.
  178. var grdDs = ds_temp_trmqp_rslt_attach
  179. if( grdDs.rowposition < -1 ) {
  180. sysf_messageBox("다운로드 할 파일을 ", "C002");
  181. return;
  182. } else if( grdDs.getColumn(grdDs.rowposition, "check") != "true" && grdDs.getColumn(grdDs.rowposition, "check") != 1) {
  183. sysf_messageBox("저장되지 ", "E007");
  184. return;
  185. } else {
  186. fDownLoadFile( grdDs.rowposition );
  187. }
  188. }
  189. function fDownLoadFile( idx ){
  190. dsf_createDs("ds_temp_attachfile", [{col:"filedata", type:"BLOB"}]);
  191. var filepath = ds_temp_trmqp_rslt_attach.getColumn(idx, "file");
  192. var filenm = ds_temp_trmqp_rslt_attach.getColumn(idx, "attfilenm");
  193. var fd = new FileDialog;
  194. var localfile = fd.open("FileSave", FileDialog.SAVE, "%MYDOCUMENT%", filenm); // 단일 파일 선택
  195. if (!utlf_isNull(localfile)) {
  196. dsf_createDsRow("ds_send_TRMQP00605", [{col: "filepath", val:filepath }]);
  197. var oParam = {};
  198. oParam.id = "TRMQP00605";
  199. oParam.service = "prcpbaseapp.CpMngt";
  200. oParam.method = "reqGetAttFileData";
  201. oParam.inds = "req=ds_send_TRMQP00605";
  202. oParam.outds = "ds_temp_attachfile=attachfile";
  203. oParam.async = false;
  204. oParam.error = false;
  205. tranf_submit(oParam);
  206. dsf_readFileFromDs(localfile.fullpath, ds_temp_attachfile, 0, "filedata"); // 파일저장
  207. var rtn = sysf_messageBox("파일을", "Q004");
  208. if( rtn == 6 ) {
  209. var objExtCommon = new ExtCommon();
  210. var rtn = objExtCommon.executeProcess(localfile.fullpath,"","");
  211. }
  212. }
  213. }
  214. ]]></Script>
  215. </Form>
  216. </FDL>