SMPIF50300_의사별원외정산내역조회.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPIF50300" position="absolute 0 0 576 752" titletext="Untitle" oninit="SMPIF50300_oninit" onload="SMPIF50300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 1 13 566 745" id="group3" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Static text="삭감현황" position="absolute 0 76 111 98" id="caption7" class="tit_2" anchor="default"/>
  11. <Shape position="absolute 0 92 564 98" linetype="horizontal" id="line8" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  12. <Button position="absolute 484 73 564 92" id="button12" class="btn7" text="엑셀저장" anchor="top right" onclick="group3_button12_onclick"/>
  13. <Grid position="absolute 0 97 564 731" id="grddrinfo" class="datagrid1" scrollbars="autoboth" binddataset="ds_main_list01_gridoprcdrinfo" anchor="all" autofittype="col" oncellclick="group3_grddrinfo_oncellclick" onkeydown="group3_grddrinfo_onkeydown" cellsizingtype="col">
  14. <Formats>
  15. <Format id="default">
  16. <Columns>
  17. <Column size="24"/>
  18. <Column size="182"/>
  19. <Column size="81"/>
  20. <Column size="80"/>
  21. <Column size="70"/>
  22. <Column size="105"/>
  23. </Columns>
  24. <Rows>
  25. <Row size="24" band="head"/>
  26. <Row size="24" band="head"/>
  27. <Row size="44"/>
  28. </Rows>
  29. <Band id="head">
  30. <Cell rowspan="2" taborder="undefined"/>
  31. <Cell col="1" rowspan="2" text="진료과" taborder="undefined"/>
  32. <Cell col="2" rowspan="2" text="진료의ID" taborder="undefined"/>
  33. <Cell col="3" rowspan="2" text="진료의" taborder="undefined"/>
  34. <Cell col="4" rowspan="2" text="청구년월" taborder="undefined"/>
  35. <Cell col="5" rowspan="2" text="정산금액" taborder="undefined"/>
  36. </Band>
  37. <Band id="body">
  38. <Cell celltype="head" expr="currow+1"/>
  39. <Cell col="1" text="bind:orddeptcd"/>
  40. <Cell col="2" text="bind:orddrid"/>
  41. <Cell col="3" text="bind:orddrnm"/>
  42. <Cell col="4" displaytype="date" text="bind:clamym" mask="yyyy-MM"/>
  43. <Cell col="5" displaytype="number" text="bind:cadecidifamt"/>
  44. </Band>
  45. </Format>
  46. </Formats>
  47. </Grid>
  48. <Button position="absolute 389 73 483 92" id="button7" class="btn7" text="Open Excel" anchor="top right" onclick="group3_button7_onclick"/>
  49. <Button position="absolute 279 73 332 92" id="button10" class="btn2" text="열카피" anchor="top right" onclick="group3_button10_onclick"/>
  50. <Button position="absolute 334 73 387 92" id="button11" class="btn2" text="행카피" anchor="top right" onclick="group3_button11_onclick"/>
  51. <Button position="absolute 224 73 277 92" id="button13" class="btn2" text="셀카피" anchor="top right" onclick="group3_button13_onclick"/>
  52. <Div position="absolute 0 11 563 66" align="align:center top;" id="group2" class="div_SA" anchor="left top right">
  53. <Layouts>
  54. <Layout>
  55. <Button position="absolute 480 17 536 39" id="btn_srch" class="btn1" taborder="3" text="조회" anchor="top right" onclick="group3_group2_btn_srch_onclick"/>
  56. <Shape position="absolute 464 7 470 48" linetype="vertical" id="line43" class="line_4" anchor="top right"/>
  57. <Static text="~" position="absolute 239 17 254 32" id="caption2" anchor="default"/>
  58. <Calendar position="absolute 151 15 236 34" id="ipt_fromdd" class="input_search" taborder="1" anchor="default" onkillfocus="group3_group2_ipt_fromdd_onkillfocus"/>
  59. <Calendar position="absolute 252 15 337 34" id="ipt_todd" class="input_search" taborder="2" anchor="default"/>
  60. <Static text="원외정산 도착일자 :" position="absolute 10 17 153 34" id="caption4" class="search_name" anchor="default"/>
  61. </Layout>
  62. </Layouts>
  63. </Div>
  64. </Layout>
  65. </Layouts>
  66. </Div>
  67. <Static text="의사별 원외정산내역 조회" position="absolute 1 0 217 23" id="caption6" class="tit_1"/>
  68. </Layout>
  69. </Layouts>
  70. <Objects>
  71. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  72. <ColumnInfo>
  73. <Column id="fromdd" type="STRING" size="256"/>
  74. <Column id="todd" type="STRING" size="256"/>
  75. </ColumnInfo>
  76. <Rows>
  77. <Row/>
  78. </Rows>
  79. </Dataset>
  80. <Dataset id="ds_main_list01_gridoprcdrinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  81. <ColumnInfo>
  82. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  83. <Column id="orddrid" type="STRING" size="256" sumtext="주치의"/>
  84. <Column id="orddrnm" type="STRING" size="256" sumtext="주치의이름"/>
  85. <Column id="clamym" type="STRING" size="256" sumtext="청구월"/>
  86. <Column id="cadecidifamt" type="STRING" size="256" sumtext="정산금액"/>
  87. </ColumnInfo>
  88. </Dataset>
  89. </Objects>
  90. <Bind>
  91. <BindItem id="item0" compid="group3.group2.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  92. <BindItem id="item1" compid="group3.group2.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  93. </Bind>
  94. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  95. * System Name :
  96. * Job Name :
  97. * Creator :
  98. * Make Date : 2016-05-24
  99. * Description :
  100. *---------------------------------------------------------------------------------------
  101. * Modify Date Modifier Modify Description
  102. *---------------------------------------------------------------------------------------
  103. * 2016-05-24 Live Converter TF->XP
  104. *
  105. *---------------------------------------------------------------------------------------
  106. ****************************************************************************************/
  107. include "com_commonxp::comm_main.xjs";
  108. include "pam_pamcomnxp::PAM001.xjs";
  109. include "pam_pamcomnxp::PAM.xjs";
  110. var col = "N";
  111. function SMPIF50300_oninit(obj:Form, e:InitEventInfo)
  112. {
  113. frmf_initForm(obj);
  114. }
  115. function SMPIF50300_onload(obj:Form, e:LoadEventInfo)
  116. {
  117. }
  118. function group3_group2_btn_srch_onclick(obj:Button, e:ClickEventInfo)
  119. {
  120. if(utlf_isNull(ds_send.getColumn(0, "fromdd")) || utlf_isNull(ds_send.getColumn(0, "todd")))
  121. {
  122. sysf_messageBox("도착 시작일과 종료일을","C001");
  123. group3.group2.ipt_fromdd.setFocus();
  124. return false;
  125. }
  126. ds_main_list01_gridoprcdrinfo.clearData();
  127. var oParam = {};
  128. oParam.id = "TRPIF50300";
  129. oParam.service = "clamuncoapp.ClamUnco";
  130. oParam.method = "reqGetOprcDrInfo";
  131. oParam.inds = "req=ds_send";
  132. oParam.outds = "ds_main_list01_gridoprcdrinfo=gridoprcdrinfo";
  133. oParam.async = false;
  134. //oParam.callback = "cf_TRPIF50300";
  135. tranf_submit(oParam);
  136. }
  137. function group3_button13_onclick(obj:Button, e:ClickEventInfo)
  138. {
  139. col = "N";
  140. group3.grddrinfo.selecttype = "multiarea";
  141. }
  142. function group3_button10_onclick(obj:Button, e:ClickEventInfo)
  143. {
  144. col = "Y";
  145. group3.grddrinfo.selecttype = "multiarea";
  146. }
  147. function group3_button11_onclick(obj:Button, e:ClickEventInfo)
  148. {
  149. col = "N";
  150. group3.grddrinfo.selecttype = "multirow";
  151. }
  152. function group3_button7_onclick(obj:Button, e:ClickEventInfo)
  153. {
  154. system.execShell("excel");
  155. }
  156. function group3_button12_onclick(obj:Button, e:ClickEventInfo)
  157. {
  158. var today = new Date();
  159. var yy = today.getYear()+"";
  160. var mm = today.getMonth()+1;
  161. var dd = today.getDate();
  162. if(mm < 10) { mm = "0"+mm; } else { mm = mm+""; }
  163. if(dd < 10) { dd = "0" + dd; } else { dd = dd + ""; }
  164. var tmp = yy+mm+dd;
  165. if(ds_main_list01_gridoprcdrinfo.rowcount == 0)
  166. {
  167. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  168. }
  169. else
  170. {
  171. grdf_exportExcel(group3.grddrinfo, "원외처방개인별심결내역및지급내역조회_"+tmp, "see");
  172. }
  173. }
  174. function group3_grddrinfo_oncellclick(obj:Grid, e:GridClickEventInfo)
  175. {
  176. var lv_nAreaStartRow;
  177. var lv_nAreaEndRow;
  178. var lv_nAreaStartCol;
  179. var lv_nAreaEndCol;
  180. if(col == "Y")
  181. {
  182. lv_nAreaStartRow = 0;
  183. lv_nAreaEndRow = parseInt(obj.rowcount-1);
  184. lv_nAreaStartCol = parseInt(obj.currentcol);
  185. lv_nAreaEndCol = parseInt(obj.currentcol);
  186. grdf_initGridStyle(obj);
  187. for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
  188. {
  189. for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
  190. {
  191. obj.setCellProperty("body",nCell,"background","#FFE7E5");
  192. obj.setCellProperty("body",nCell,"background2","#FFE7E5");
  193. }
  194. }
  195. }
  196. else
  197. {
  198. grdf_initGridStyle(obj);
  199. }
  200. }
  201. function group3_grddrinfo_onkeydown(obj:Grid, e:KeyEventInfo)
  202. {
  203. if(col == "Y")
  204. {
  205. var CONST_SEPARATOR = " "; //컬럼별 구분자
  206. var lv_oBindDs = eval(obj.binddataset);
  207. var lv_sColID;
  208. var lv_sVal;
  209. var lv_sClipboard = "";
  210. var lv_nAreaStartRow;
  211. var lv_nAreaEndRow;
  212. var lv_nAreaStartCol;
  213. var lv_nAreaEndCol;
  214. if(obj.selecttype == "multiarea")
  215. {
  216. lv_nAreaStartRow = 0;
  217. lv_nAreaEndRow = parseInt(obj.rowcount-1);
  218. lv_nAreaStartCol = parseInt(obj.currentcol);
  219. lv_nAreaEndCol = parseInt(obj.currentcol);
  220. }
  221. for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
  222. {
  223. for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
  224. {
  225. lv_sColID = obj.getCellProperty("body",nCell,"text");
  226. lv_sVal = obj.getCellValue(nRow,nCell);
  227. lv_sClipboard = lv_sClipboard + lv_sVal + CONST_SEPARATOR;
  228. }
  229. lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
  230. lv_sClipboard = lv_sClipboard +String.fromCharCode(10);
  231. }
  232. lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
  233. iv_sClipboard = lv_sClipboard;
  234. system.setClipboard("CF_TEXT",lv_sClipboard);
  235. }
  236. else
  237. {
  238. if (e.ctrlKey == true && e.keycode == 67 )
  239. {
  240. grdf_clipboardCopy(obj, "PAM");
  241. }
  242. }
  243. }
  244. function group3_group2_ipt_fromdd_onkillfocus(obj:Calendar, e:KillFocusEventInfo)
  245. {
  246. ds_send.setColumn(0, "todd", obj.value);
  247. }
  248. ]]></Script>
  249. </Form>
  250. </FDL>