SMPIF31100_통보월별정산지급내역조회.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPIF31100" position="absolute 0 0 1204 758" titletext="Untitle" oninit="SMPIF31100_oninit" onload="SMPIF31100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 13 1195 757" id="group3" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Static text="정산지급내역" position="absolute 1 55 112 77" id="caption3" class="tit_2"/>
  11. <Shape position="absolute 1 71 1195 77" linetype="horizontal" id="line1" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  12. <Button position="absolute 1115 51 1195 70" id="button12" class="btn7" text="엑셀저장" anchor="top right" onclick="group3_button12_onclick"/>
  13. <Div position="absolute 1 11 1195 46" align="align:center top;" id="grp_sea" class="div_SA" anchor="left top right">
  14. <Layouts>
  15. <Layout>
  16. <Button position="absolute 1123 7 1179 29" id="button2" class="btn1" text="조회" anchor="top right" onclick="group3_grp_sea_button2_onclick"/>
  17. <Shape position="absolute 1104 7 1110 29" linetype="vertical" id="line2" class="line_4" anchor="top right"/>
  18. <CheckBox position="absolute 610 7 735 27" id="checkbox2" class="checkbox_search" anchor="default" text="원외처방정산포함" truevalue="Y" falsevalue="N"/>
  19. <Static text="보험유형 :" position="absolute 285 9 371 26" id="caption4" class="search_name" anchor="default"/>
  20. <Static text="통보월 :" position="absolute 15 9 90 26" id="caption5" class="search_name" anchor="default"/>
  21. <Radio position="absolute 371 4 506 29" id="rdo_insukind" class="radio_search" columncount="3" codecolumn="value" datacolumn="label" anchor="default" innerdataset="@ds_rdo_insukind"/>
  22. <Calendar position="absolute 91 8 166 27" align="align:center middle;" id="ipt_fromdd" class="input_search" mask="yyyy-mm" anchor="default" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" ontextchanged="group3_grp_sea_ipt_fromdd_ontextchanged" onchanged="group3_grp_sea_ipt_fromdd_onchanged"/>
  23. <Static text="~" position="absolute 168 11 183 26" id="caption1" anchor="default"/>
  24. <Calendar position="absolute 181 8 260 27" align="align:center middle;" id="ipt_todd" class="input_search" mask="yyyy-mm" anchor="default" dateformat="yyyy-MM" value="null" editformat="yyyy-MM"/>
  25. </Layout>
  26. </Layouts>
  27. </Div>
  28. <Grid position="absolute 1 76 1195 736" id="grd_calcpayspec" class="datagrid2" binddataset="ds_main_calcpayspec" autofittype="col" anchor="all" onkeydown="group3_grd_calcpayspec_onkeydown" onselectchanged="group3_grd_calcpayspec_onselectchanged" onmouseup="group3_grd_calcpayspec_onmouseup" oncellclick="group3_grd_calcpayspec_oncellclick" cellsizingtype="col">
  29. <Formats>
  30. <Format id="default">
  31. <Columns>
  32. <Column size="23"/>
  33. <Column size="60"/>
  34. <Column size="45"/>
  35. <Column size="60"/>
  36. <Column size="70"/>
  37. <Column size="60"/>
  38. <Column size="60"/>
  39. <Column size="40"/>
  40. <Column size="65"/>
  41. <Column size="75"/>
  42. <Column size="50"/>
  43. <Column size="80"/>
  44. <Column size="50"/>
  45. <Column size="80"/>
  46. <Column size="50"/>
  47. <Column size="80"/>
  48. <Column size="60"/>
  49. <Column size="80"/>
  50. <Column size="80"/>
  51. </Columns>
  52. <Rows>
  53. <Row size="36" band="head"/>
  54. <Row size="24"/>
  55. </Rows>
  56. <Band id="head">
  57. <Cell/>
  58. <Cell col="1" text="정산구분"/>
  59. <Cell col="2" text="구분"/>
  60. <Cell col="3" text="통보월"/>
  61. <Cell col="4" text="정산차수"/>
  62. <Cell col="5" text="미수월"/>
  63. <Cell col="6" text="청구월"/>
  64. <Cell col="7" text="내원&#10;유형"/>
  65. <Cell col="8" text="접수번호"/>
  66. <Cell col="9" text="심사차수"/>
  67. <Cell col="10" text="진료과"/>
  68. <Cell col="11" text="입금일자"/>
  69. <Cell col="12" text="입금&#10;건수"/>
  70. <Cell col="13" text="입금액"/>
  71. <Cell col="14" text="삭감&#10;건수"/>
  72. <Cell col="15" text="삭감액"/>
  73. <Cell col="16" text="이의신청&#10;건수"/>
  74. <Cell col="17" text="이의신청액"/>
  75. <Cell col="18" text="이의신청&#10;결정액"/>
  76. </Band>
  77. <Band id="body">
  78. <Cell celltype="head" expr="currow+1"/>
  79. <Cell col="1" text="bind:calcflag"/>
  80. <Cell col="2" text="bind:verflag"/>
  81. <Cell col="3" displaytype="date" text="bind:notimm" mask="yyyy-MM"/>
  82. <Cell col="4" text="bind:calcdg"/>
  83. <Cell col="5" displaytype="date" text="bind:uncoym" mask="yyyy-MM"/>
  84. <Cell col="6" displaytype="date" text="bind:clamym" mask="yyyy-MM"/>
  85. <Cell col="7" text="bind:ioflag"/>
  86. <Cell col="8" text="bind:acptno"/>
  87. <Cell col="9" text="bind:judgdg"/>
  88. <Cell col="10" text="bind:ordfildcd"/>
  89. <Cell col="11" displaytype="date" text="bind:depodd" mask="yyyy-MM-dd"/>
  90. <Cell col="12" displaytype="number" text="bind:depocnt"/>
  91. <Cell col="13" displaytype="number" text="bind:depoamt"/>
  92. <Cell col="14" displaytype="number" text="bind:cutcnt"/>
  93. <Cell col="15" displaytype="number" text="bind:cutamt"/>
  94. <Cell col="16" displaytype="number" text="bind:obtappcnt"/>
  95. <Cell col="17" displaytype="number" text="bind:obtappamt"/>
  96. <Cell col="18" displaytype="number" text="bind:obtappdeciamt"/>
  97. </Band>
  98. </Format>
  99. </Formats>
  100. </Grid>
  101. <Button position="absolute 1019 51 1113 70" id="button7" class="btn7" text="Open Excel" anchor="top right" onclick="group3_button7_onclick"/>
  102. <Button position="absolute 911 51 964 70" id="button10" class="btn2" text="열카피" anchor="top right" onclick="group3_button10_onclick"/>
  103. <Button position="absolute 965 51 1018 70" id="button11" class="btn2" text="행카피" anchor="top right" onclick="group3_button11_onclick"/>
  104. <Button position="absolute 857 51 910 70" id="button13" class="btn2" text="셀카피" anchor="top right" onclick="group3_button13_onclick"/>
  105. </Layout>
  106. </Layouts>
  107. </Div>
  108. <Static id="caption6" text="통보월별 정산지급내역 조회" class="tit_1" position="absolute 1 0 225 23"/>
  109. </Layout>
  110. </Layouts>
  111. <Objects>
  112. <Dataset id="ds_main_calcpayspec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  113. <ColumnInfo>
  114. <Column id="calcflag" type="STRING" size="256" sumtext="정산구분"/>
  115. <Column id="verflag" type="STRING" size="256" sumtext="버전구분"/>
  116. <Column id="notimm" type="STRING" size="256" sumtext="통보월"/>
  117. <Column id="calcdg" type="STRING" size="256" sumtext="정산차수"/>
  118. <Column id="uncoym" type="STRING" size="256" sumtext="미수월"/>
  119. <Column id="clamym" type="STRING" size="256" sumtext="청구월"/>
  120. <Column id="ioflag" type="STRING" size="256" sumtext="내원유형"/>
  121. <Column id="acptno" type="STRING" size="256" sumtext="접수번호"/>
  122. <Column id="judgdg" type="STRING" size="256" sumtext="심사차수"/>
  123. <Column id="ordfildcd" type="STRING" size="256" sumtext="진료과"/>
  124. <Column id="depodd" type="STRING" size="256" sumtext="입금일자"/>
  125. <Column id="depocnt" type="STRING" size="256" sumtext="입금건수"/>
  126. <Column id="depoamt" type="STRING" size="256" sumtext="입금액"/>
  127. <Column id="cutcnt" type="STRING" size="256" sumtext="삭감건수"/>
  128. <Column id="cutamt" type="STRING" size="256" sumtext="삭감액"/>
  129. <Column id="obtappcnt" type="STRING" size="256" sumtext="이신건수"/>
  130. <Column id="obtappamt" type="STRING" size="256" sumtext="이신액"/>
  131. <Column id="obtappdeciamt" type="STRING" size="256" sumtext="이신결정액"/>
  132. </ColumnInfo>
  133. </Dataset>
  134. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  135. <ColumnInfo>
  136. <Column id="fromdd" type="STRING" size="6"/>
  137. <Column id="todd" type="STRING" size="6"/>
  138. <Column id="insukind" type="STRING" size="256"/>
  139. <Column id="oprcpcalcyn" type="STRING" size="256"/>
  140. </ColumnInfo>
  141. <Rows>
  142. <Row/>
  143. </Rows>
  144. </Dataset>
  145. <Dataset id="ds_rdo_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  146. <ColumnInfo>
  147. <Column id="label" type="STRING" size="256"/>
  148. <Column id="value" type="STRING" size="256"/>
  149. </ColumnInfo>
  150. <Rows>
  151. <Row>
  152. <Col id="label">보험</Col>
  153. <Col id="value">11</Col>
  154. </Row>
  155. <Row>
  156. <Col id="label">보호</Col>
  157. <Col id="value">21</Col>
  158. </Row>
  159. <Row>
  160. <Col id="label">산재</Col>
  161. <Col id="value">41</Col>
  162. </Row>
  163. </Rows>
  164. </Dataset>
  165. </Objects>
  166. <Bind>
  167. <BindItem id="item0" compid="group3.grp_sea.checkbox2" propid="value" datasetid="ds_send" columnid="oprcpcalcyn"/>
  168. <BindItem id="item1" compid="group3.grp_sea.rdo_insukind" propid="value" datasetid="ds_send" columnid="insukind"/>
  169. <BindItem id="item2" compid="group3.grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  170. <BindItem id="item3" compid="group3.grp_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  171. </Bind>
  172. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  173. * System Name :
  174. * Job Name :
  175. * Creator :
  176. * Make Date : 2016-05-24
  177. * Description :
  178. *---------------------------------------------------------------------------------------
  179. * Modify Date Modifier Modify Description
  180. *---------------------------------------------------------------------------------------
  181. * 2016-05-24 Live Converter TF->XP
  182. *
  183. *---------------------------------------------------------------------------------------
  184. ****************************************************************************************/
  185. include "com_commonxp::comm_main.xjs";
  186. include "pam_pamcomnxp::PAM001.xjs";
  187. include "pam_pamcomnxp::PAM.xjs";
  188. var col = "N";
  189. function SMPIF31100_oninit(obj:Form, e:InitEventInfo)
  190. {
  191. frmf_initForm(obj);
  192. }
  193. function SMPIF31100_onload(obj:Form, e:LoadEventInfo)
  194. {
  195. ds_send.setColumn(0, "fromdd", "");
  196. ds_send.setColumn(0, "todd", "");
  197. group3.grp_sea.ipt_fromdd.setFocus();
  198. group3.grp_sea.rdo_insukind.index = 0;
  199. }
  200. function group3_grp_sea_button2_onclick(obj:Button, e:ClickEventInfo)
  201. {
  202. if(utlf_isNull(group3.grp_sea.ipt_fromdd.value))
  203. {
  204. sysf_messageBox("통보월 시작일을","C001");
  205. }
  206. else
  207. {
  208. var oParam = {};
  209. oParam.id = "TRPIF31101";
  210. oParam.service = "clamuncoapp.ClamUnco";
  211. oParam.method = "reqGetCalcPaySpec";
  212. oParam.inds = "req=ds_send";
  213. oParam.outds = "ds_main_calcpayspec=gridcalcpayspec";
  214. oParam.async = false;
  215. //oParam.callback = "cf_TRPIF31101";
  216. tranf_submit(oParam);
  217. }
  218. }
  219. function group3_grp_sea_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  220. {
  221. var value = obj.value;
  222. ds_send.setColumn(0, "fromdd", String(value).substr(0, 6));
  223. ds_send.setColumn(0, "todd", String(value).substr(0, 6));
  224. }
  225. function group3_button13_onclick(obj:Button, e:ClickEventInfo)
  226. {
  227. col = "N";
  228. group3.grd_calcpayspec.selecttype = "multiarea";
  229. }
  230. function group3_button10_onclick(obj:Button, e:ClickEventInfo)
  231. {
  232. col = "Y";
  233. group3.grd_calcpayspec.selecttype = "multiarea";
  234. }
  235. function group3_button11_onclick(obj:Button, e:ClickEventInfo)
  236. {
  237. col = "N";
  238. group3.grd_calcpayspec.setCellPos = "multirow";
  239. }
  240. function group3_button7_onclick(obj:Button, e:ClickEventInfo)
  241. {
  242. system.execShell("excel");
  243. }
  244. function group3_button12_onclick(obj:Button, e:ClickEventInfo)
  245. {
  246. if (ds_main_calcpayspec.rowcount > 0)
  247. {
  248. var today = new Date();
  249. var yy = today.getYear()+"";
  250. var mm = today.getMonth()+1;
  251. var dd = today.getDate();
  252. if(mm < 10)
  253. {
  254. mm = "0" + mm;
  255. }
  256. else
  257. {
  258. mm = mm + "";
  259. }
  260. if(dd < 10)
  261. {
  262. dd = "0" + dd;
  263. }
  264. else
  265. {
  266. dd = dd + "";
  267. }
  268. var tmp = yy+mm+dd;
  269. var titlename = "";
  270. if(ds_send.getColumn(0, "insukind") == "11")
  271. {
  272. titlename = "통보월별정산지급내역조회(보험)_"+tmp;
  273. }
  274. else if(ds_send.getColumn(0, "insukind") == "21")
  275. {
  276. titlename = "통보월별정산지급내역조회(보호)_"+tmp;
  277. }
  278. grdf_exportExcel(group3.grd_calcpayspec, titlename, "see");
  279. }
  280. else
  281. {
  282. sysf_messageBox("엑셀저장할 내역이", "I004");
  283. }
  284. }
  285. function group3_grd_calcpayspec_onkeydown(obj:Grid, e:KeyEventInfo)
  286. {
  287. if(col == "Y")
  288. {
  289. var CONST_SEPARATOR = " "; //컬럼별 구분자
  290. var lv_oBindDs = eval(obj.binddataset);
  291. var lv_sColID;
  292. var lv_sVal;
  293. var lv_sClipboard = "";
  294. var lv_nAreaStartRow;
  295. var lv_nAreaEndRow;
  296. var lv_nAreaStartCol;
  297. var lv_nAreaEndCol;
  298. if(obj.selecttype == "multiarea")
  299. {
  300. lv_nAreaStartRow = 0;
  301. lv_nAreaEndRow = parseInt(obj.rowcount-1);
  302. lv_nAreaStartCol = parseInt(obj.currentcol);
  303. lv_nAreaEndCol = parseInt(obj.currentcol);
  304. }
  305. for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
  306. {
  307. for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
  308. {
  309. lv_sColID = obj.getCellProperty("body",nCell,"text");
  310. lv_sVal = obj.getCellValue(nRow,nCell);
  311. lv_sClipboard = lv_sClipboard + lv_sVal + CONST_SEPARATOR;
  312. }
  313. lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
  314. lv_sClipboard = lv_sClipboard +String.fromCharCode(10);
  315. }
  316. lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
  317. iv_sClipboard = lv_sClipboard;
  318. system.setClipboard("CF_TEXT",lv_sClipboard);
  319. }
  320. else
  321. {
  322. if (e.ctrlKey == true && e.keycode == 67 )
  323. {
  324. grdf_clipboardCopy(obj, "PAM");
  325. }
  326. }
  327. }
  328. function group3_grd_calcpayspec_oncellclick(obj:Grid, e:GridClickEventInfo)
  329. {
  330. var lv_nAreaStartRow;
  331. var lv_nAreaEndRow;
  332. var lv_nAreaStartCol;
  333. var lv_nAreaEndCol;
  334. if(col == "Y")
  335. {
  336. lv_nAreaStartRow = 0;
  337. lv_nAreaEndRow = parseInt(obj.rowcount-1);
  338. lv_nAreaStartCol = parseInt(obj.currentcol);
  339. lv_nAreaEndCol = parseInt(obj.currentcol);
  340. grdf_initGridStyle(obj);
  341. for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
  342. {
  343. for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
  344. {
  345. obj.setCellProperty("body",nCell,"background","#FFE7E5");
  346. obj.setCellProperty("body",nCell,"background2","#FFE7E5");
  347. }
  348. }
  349. }
  350. else
  351. {
  352. grdf_initGridStyle(obj);
  353. }
  354. }
  355. ]]></Script>
  356. </Form>
  357. </FDL>