SMPIF71100_청구및입금내역조회(산재장부).xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPIF71100" position="absolute 0 0 1205 761" titletext="청구및입금내역조회(산재장부)" oninit="SMPIF71100_oninit" onload="SMPIF71100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 1 13 1197 757" id="grp_biz" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Button position="absolute 966 52 1019 71" id="button3" class="btn2" text="행카피" anchor="top right" onclick="grp_biz_button3_onclick"/>
  11. <Button position="absolute 1020 52 1114 71" id="button4" class="btn7" text="Open Excel" anchor="top right" onclick="grp_biz_button4_onclick"/>
  12. <Button position="absolute 912 52 965 71" id="button5" class="btn2" text="열카피" anchor="top right" onclick="grp_biz_button5_onclick"/>
  13. <Shape position="absolute 0 71 1195 77" linetype="horizontal" id="line27" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  14. <Div position="absolute 0 11 1194 46" align="align:center top;" id="group5" class="div_SA" anchor="left top right">
  15. <Layouts>
  16. <Layout>
  17. <Button position="absolute 1123 7 1179 29" id="button1" class="btn1" text="조회" anchor="top right" onclick="grp_biz_group5_button1_onclick"/>
  18. <Shape position="absolute 1105 7 1111 28" linetype="vertical" id="line26" class="line_4" anchor="top right"/>
  19. <Static text="~" position="absolute 294 10 309 25" id="caption31" anchor="default"/>
  20. <Radio position="absolute 78 8 193 25" id="rdo_termflag" columncount="3" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" onitemchanged="grp_biz_group5_rdo_termflag_onitemchanged">
  21. <Dataset id="innerdataset">
  22. <ColumnInfo>
  23. <Column id="codecolumn"/>
  24. <Column id="datacolumn"/>
  25. </ColumnInfo>
  26. <Rows>
  27. <Row>
  28. <Col id="codecolumn">clamym</Col>
  29. <Col id="datacolumn">청구월</Col>
  30. </Row>
  31. <Row>
  32. <Col id="codecolumn">uncoym</Col>
  33. <Col id="datacolumn">미수월</Col>
  34. </Row>
  35. </Rows>
  36. </Dataset>
  37. </Radio>
  38. <Static text="내원유형 :" position="absolute 465 9 555 26" id="caption67" class="search_name" anchor="default"/>
  39. <Static text="구분 :" position="absolute 20 9 80 26" id="caption38" class="search_name" anchor="default"/>
  40. <Radio position="absolute 548 7 683 24" id="rdo_ioflag" columncount="3" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  41. <Dataset id="innerdataset">
  42. <ColumnInfo>
  43. <Column id="codecolumn"/>
  44. <Column id="datacolumn"/>
  45. </ColumnInfo>
  46. <Rows>
  47. <Row>
  48. <Col id="codecolumn">A</Col>
  49. <Col id="datacolumn">전체</Col>
  50. </Row>
  51. <Row>
  52. <Col id="codecolumn">I</Col>
  53. <Col id="datacolumn">입원</Col>
  54. </Row>
  55. <Row>
  56. <Col id="codecolumn">O</Col>
  57. <Col id="datacolumn">외래</Col>
  58. </Row>
  59. </Rows>
  60. </Dataset>
  61. </Radio>
  62. <cp_monthCal id="ipt_fromdd" titletext="monthCalendar" taborder="1" text="cp_monthCal00" scrollbars="none" position="absolute 209 6 287 32" anchor="default"/>
  63. <cp_monthCal id="ipt_todd" titletext="monthCalendar" taborder="2" text="cp_monthCal00" scrollbars="none" position="absolute 310 7 388 33" anchor="default"/>
  64. </Layout>
  65. </Layouts>
  66. </Div>
  67. <Static text="청구 및 입금 내역 목록" position="absolute 0 55 162 77" id="cap_title" class="tit_2" anchor="default"/>
  68. <Grid position="absolute 0 76 1195 741" id="grd_clamdepospeclist" class="datagrid2" binddataset="ds_main_clamdepospeclist" anchor="all" oncellclick="grp_biz_grd_clamdepospeclist_oncellclick" onkeydown="grp_biz_grd_clamdepospeclist_onkeydown" cellsizingtype="col">
  69. <Formats>
  70. <Format id="default">
  71. <Columns>
  72. <Column size="22"/>
  73. <Column size="60"/>
  74. <Column size="60"/>
  75. <Column size="62"/>
  76. <Column size="62"/>
  77. <Column size="70"/>
  78. <Column size="50"/>
  79. <Column size="70"/>
  80. <Column size="100"/>
  81. <Column size="50"/>
  82. <Column size="100"/>
  83. <Column size="70"/>
  84. <Column size="100"/>
  85. <Column size="80"/>
  86. <Column size="78"/>
  87. <Column size="60"/>
  88. <Column size="100"/>
  89. <Column size="100"/>
  90. <Column size="100"/>
  91. <Column size="70"/>
  92. <Column size="100"/>
  93. <Column size="100"/>
  94. <Column size="100"/>
  95. <Column size="100"/>
  96. <Column size="61"/>
  97. <Column size="100"/>
  98. <Column size="66"/>
  99. <Column size="100"/>
  100. <Column size="100"/>
  101. </Columns>
  102. <Rows>
  103. <Row size="33" band="head"/>
  104. <Row size="24"/>
  105. </Rows>
  106. <Band id="head">
  107. <Cell/>
  108. <Cell col="1" text="청구월"/>
  109. <Cell col="2" text="미수월"/>
  110. <Cell col="3" text="내원&#10;유형"/>
  111. <Cell col="4" text="산재&#10;유형"/>
  112. <Cell col="5" text="청구&#10;형태"/>
  113. <Cell col="6" text="차수"/>
  114. <Cell col="7" text="접수번호"/>
  115. <Cell col="8" text="접수일자"/>
  116. <Cell col="9" text="건수"/>
  117. <Cell col="10" text="청구액"/>
  118. <Cell col="11" text="심사&#10;차수"/>
  119. <Cell col="12" text="입금일자"/>
  120. <Cell col="13" text="입금액"/>
  121. <Cell col="14" text="입금구분"/>
  122. <Cell col="15" text="심결&#10;건수"/>
  123. <Cell col="16" text="심사결정액"/>
  124. <Cell col="17" text="환수예정액"/>
  125. <Cell col="18" text="환수금"/>
  126. <Cell col="19" text="실건수"/>
  127. <Cell col="20" text="실청구액"/>
  128. <Cell col="21" text="실삭감액"/>
  129. <Cell col="22" text="삭감율"/>
  130. <Cell col="23" text="결손액"/>
  131. <Cell col="24" text="반송&#10;건수"/>
  132. <Cell col="25" text="반송액"/>
  133. <Cell col="26" text="미보완&#10;건수"/>
  134. <Cell col="27" text="미보완&#10;청구액"/>
  135. <Cell col="28" text="미수금"/>
  136. </Band>
  137. <Band id="body">
  138. <Cell celltype="head" expr="currow+1"/>
  139. <Cell col="1" displaytype="expr:utlf_isNull(clamym) ? 'normal' : 'date'" text="bind:clamym" mask="expr:utlf_isNull(clamym) ? '' : 'yyyy-MM'"/>
  140. <Cell col="2" displaytype="expr:utlf_isNull(uncoym) ? 'normal' : 'date'" text="bind:uncoym" mask="expr:utlf_isNull(uncoym) ? '' : 'yyyy-MM'"/>
  141. <Cell col="3" text="bind:ioflag"/>
  142. <Cell col="4" text="bind:insukind"/>
  143. <Cell col="5" text="bind:clamflag"/>
  144. <Cell col="6" text="bind:clamdg"/>
  145. <Cell col="7" text="bind:acptno"/>
  146. <Cell col="8" style="align:left middle;" text="bind:acptdd"/>
  147. <Cell col="9" displaytype="number" text="bind:clcnt"/>
  148. <Cell col="10" displaytype="number" style="align:left middle;" text="bind:clclamamt"/>
  149. <Cell col="11" text="bind:judgdg"/>
  150. <Cell col="12" style="align:left middle;" text="bind:depodd"/>
  151. <Cell col="13" displaytype="number" style="align:left middle;" text="bind:depoamt"/>
  152. <Cell col="14" style="align:left middle;" text="bind:jrdecicnt"/>
  153. <Cell col="15" displaytype="number" text="bind:jrdeciamt"/>
  154. <Cell col="16" displaytype="number" style="align:left middle;" text="bind:rtnscheamt"/>
  155. <Cell col="17" displaytype="number" style="align:left middle;" text="bind:rtnamt"/>
  156. <Cell col="18" displaytype="number" style="align:left middle;" text="bind:realcnt"/>
  157. <Cell col="19" displaytype="number" style="align:left middle;" text="bind:realclamamt"/>
  158. <Cell col="20" displaytype="number" style="align:left middle;" text="bind:realcutamt"/>
  159. <Cell col="21" displaytype="number" style="align:left middle;" text="bind:realcutrate"/>
  160. <Cell col="22" displaytype="number" style="align:left middle;" text="bind:lostamt"/>
  161. <Cell col="23" displaytype="number" style="align:left middle;" text="bind:sendcnt"/>
  162. <Cell col="24" displaytype="number" style="align:left middle;" text="bind:sendclamamt"/>
  163. <Cell col="25" displaytype="number" style="align:left middle;" text="bind:unclamcnt"/>
  164. <Cell col="26" displaytype="number" style="align:left middle;" text="bind:unclamamt"/>
  165. <Cell col="27" displaytype="number" style="align:left middle;" text="bind:uncoamt"/>
  166. <Cell col="28" displaytype="number" style="align:left middle;"/>
  167. </Band>
  168. </Format>
  169. </Formats>
  170. </Grid>
  171. <Button position="absolute 858 52 911 71" id="button10" class="btn2" text="셀카피" anchor="top right" onclick="grp_biz_button10_onclick"/>
  172. <Button position="absolute 1115 52 1195 71" id="button12" class="btn7" text="엑셀저장" anchor="top right" onclick="grp_biz_button12_onclick"/>
  173. </Layout>
  174. </Layouts>
  175. </Div>
  176. <Static id="caption6" text="청구 및 입금 내역 조회(산재장부)" class="tit_1" position="absolute 1 0 249 23"/>
  177. </Layout>
  178. </Layouts>
  179. <Objects>
  180. <Dataset id="ds_main_clamdepospeclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  181. <ColumnInfo>
  182. <Column id="clamym" type="STRING"/>
  183. <Column id="uncoym" type="STRING"/>
  184. <Column id="ioflag" type="STRING"/>
  185. <Column id="insukind" type="STRING"/>
  186. <Column id="clamflag" type="STRING"/>
  187. <Column id="clamdg" type="STRING"/>
  188. <Column id="acptno" type="STRING"/>
  189. <Column id="acptdd" type="STRING"/>
  190. <Column id="clcnt" type="STRING"/>
  191. <Column id="clclamamt" type="STRING"/>
  192. <Column id="judgdg" type="STRING"/>
  193. <Column id="depodd" type="STRING"/>
  194. <Column id="depoamt" type="STRING"/>
  195. <Column id="jrdecicnt" type="STRING"/>
  196. <Column id="jrdeciamt" type="STRING"/>
  197. <Column id="rtnscheamt" type="STRING"/>
  198. <Column id="rtnamt" type="STRING"/>
  199. <Column id="realcnt" type="STRING"/>
  200. <Column id="realclamamt" type="STRING"/>
  201. <Column id="realcutamt" type="STRING"/>
  202. <Column id="realcutrate" type="STRING"/>
  203. <Column id="lostamt" type="STRING"/>
  204. <Column id="sendcnt" type="STRING"/>
  205. <Column id="sendclamamt" type="STRING"/>
  206. <Column id="unclamcnt" type="STRING"/>
  207. <Column id="unclamamt" type="STRING"/>
  208. <Column id="uncoamt" type="STRING"/>
  209. </ColumnInfo>
  210. </Dataset>
  211. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  212. <ColumnInfo>
  213. <Column id="termflag" type="STRING" size="256"/>
  214. <Column id="fromdd" type="STRING" size="256"/>
  215. <Column id="todd" type="STRING" size="256"/>
  216. <Column id="ioflag" type="STRING" size="256"/>
  217. </ColumnInfo>
  218. <Rows>
  219. <Row>
  220. <Col id="termflag">clamym</Col>
  221. <Col id="fromdd"/>
  222. <Col id="todd"/>
  223. <Col id="ioflag">A</Col>
  224. </Row>
  225. </Rows>
  226. </Dataset>
  227. </Objects>
  228. <Bind>
  229. <BindItem id="item0" compid="grp_biz.group5.rdo_termflag" propid="value" datasetid="ds_send" columnid="termflag"/>
  230. <BindItem id="item1" compid="grp_biz.group5.rdo_ioflag" propid="value" datasetid="ds_send" columnid="ioflag"/>
  231. </Bind>
  232. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  233. * System Name :
  234. * Job Name :
  235. * Creator :
  236. * Make Date : 2016-05-24
  237. * Description :
  238. *---------------------------------------------------------------------------------------
  239. * Modify Date Modifier Modify Description
  240. *---------------------------------------------------------------------------------------
  241. * 2016-05-24 Live Converter TF->XP
  242. *
  243. *---------------------------------------------------------------------------------------
  244. ****************************************************************************************/
  245. include "com_commonxp::comm_main.xjs";
  246. include "pam_pamcomnxp::PAM001.xjs";
  247. include "pam_pamcomnxp::PAM.xjs";
  248. var col = "N";
  249. function SMPIF71100_oninit(obj:Form, e:InitEventInfo)
  250. {
  251. frmf_initForm(obj);
  252. }
  253. function SMPIF71100_onload(obj:Form, e:LoadEventInfo)
  254. {
  255. grp_biz.group5.ipt_fromdd.setCallEvent("fn_cp_monthCal00");
  256. grp_biz.group5.ipt_todd.setCallEvent("fn_cp_monthCal01");
  257. fInitialize();
  258. }
  259. function fInitialize()
  260. {
  261. ds_send.setColumn(0, "todd", utlf_getCurrentDate().toDate().getDateFormat("YYYYMM"));
  262. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate().toDate().getAddDate(-90).getDateFormat("YYYYMM"));
  263. grp_biz.group5.ipt_todd.setData(utlf_getCurrentDate().toDate().getDateFormat("YYYYMM"));
  264. grp_biz.group5.ipt_fromdd.setData(utlf_getCurrentDate().toDate().getAddDate(-90).getDateFormat("YYYYMM"));
  265. ds_main_clamdepospeclist.clearData();
  266. }
  267. function fn_cp_monthCal00()
  268. {
  269. var month = grp_biz.group5.ipt_fromdd.getData();
  270. ds_send.setColumn(0, "fromdd", month);
  271. ds_send.setColumn(0, "todd", month);
  272. grp_biz.group5.ipt_todd.setData(month);
  273. }
  274. function fn_cp_monthCal01()
  275. {
  276. var month = grp_biz.group5.ipt_todd.getData();
  277. ds_send.setColumn(0, "todd", month);
  278. }
  279. function grp_biz_group5_button1_onclick(obj:Button, e:ClickEventInfo)
  280. {
  281. var oParam = {};
  282. oParam.id = "TRPIF71101";
  283. oParam.service = "clamuncoapp.ClamUnco";
  284. oParam.method = "reqGetClamDepoSpecSanJaeBooks";
  285. oParam.inds = "req=ds_send";
  286. oParam.outds = "ds_main_clamdepospeclist=gridclamdepospeclist";
  287. oParam.async = false;
  288. //oParam.callback = "cf_TRPIF71101";
  289. tranf_submit(oParam);
  290. }
  291. function grp_biz_button10_onclick(obj:Button, e:ClickEventInfo)
  292. {
  293. col = "N";
  294. grp_biz.grd_clamdepospeclist.selecttype = "multiarea";
  295. }
  296. function grp_biz_button5_onclick(obj:Button, e:ClickEventInfo)
  297. {
  298. col = "Y";
  299. grp_biz.grd_clamdepospeclist.selecttype = "multiarea";
  300. }
  301. function grp_biz_button3_onclick(obj:Button, e:ClickEventInfo)
  302. {
  303. col = "N";
  304. grp_biz.grd_clamdepospeclist.selecttype = "multirow";
  305. }
  306. function grp_biz_button4_onclick(obj:Button, e:ClickEventInfo)
  307. {
  308. system.execShell("excel");
  309. }
  310. function grp_biz_button12_onclick(obj:Button, e:ClickEventInfo)
  311. {
  312. var today = new Date();
  313. var yy = today.getYear()+"";
  314. var mm = today.getMonth()+1;
  315. var dd = today.getDate();
  316. var title = "";
  317. if(mm < 10)
  318. {
  319. mm = "0" + mm;
  320. }
  321. else
  322. {
  323. mm = mm + "";
  324. }
  325. if(dd < 10)
  326. {
  327. dd = "0" + dd;
  328. }
  329. else
  330. {
  331. dd = dd + "";
  332. }
  333. var tmp = yy + mm + dd;
  334. var title = "반송재청구장부(자보)_"+tmp;
  335. if (ds_main_clamdepospeclist.rowcount < 1)
  336. {
  337. return;
  338. }
  339. else
  340. {
  341. grdf_exportExcel(grp_biz.grd_clamdepospeclist, title, "see");
  342. }
  343. }
  344. function grp_biz_group5_rdo_termflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  345. {
  346. ds_send.setColumn(0, "fromdd", "");
  347. ds_send.setColumn(0, "todd", "");
  348. grp_biz.group5.ipt_fromdd.setData("");
  349. grp_biz.group5.ipt_todd.setData("");
  350. grp_biz.group5.ipt_fromdd.setFocus();
  351. }
  352. function grp_biz_grd_clamdepospeclist_oncellclick(obj:Grid, e:GridClickEventInfo)
  353. {
  354. var lv_nAreaStartRow;
  355. var lv_nAreaEndRow;
  356. var lv_nAreaStartCol;
  357. var lv_nAreaEndCol;
  358. if(col == "Y")
  359. {
  360. lv_nAreaStartRow = 0;
  361. lv_nAreaEndRow = parseInt(obj.rowcount-1);
  362. lv_nAreaStartCol = parseInt(obj.currentcol);
  363. lv_nAreaEndCol = parseInt(obj.currentcol);
  364. grdf_initGridStyle(obj);
  365. for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
  366. {
  367. for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
  368. {
  369. obj.setCellProperty("body",nCell,"background","#FFE7E5");
  370. obj.setCellProperty("body",nCell,"background2","#FFE7E5");
  371. }
  372. }
  373. }
  374. else
  375. {
  376. grdf_initGridStyle(obj);
  377. }
  378. }
  379. function grp_biz_grd_clamdepospeclist_onkeydown(obj:Grid, e:KeyEventInfo)
  380. {
  381. if(col == "Y")
  382. {
  383. var CONST_SEPARATOR = " "; //컬럼별 구분자
  384. var lv_oBindDs = eval(obj.binddataset);
  385. var lv_sColID;
  386. var lv_sVal;
  387. var lv_sClipboard = "";
  388. var lv_nAreaStartRow;
  389. var lv_nAreaEndRow;
  390. var lv_nAreaStartCol;
  391. var lv_nAreaEndCol;
  392. if(obj.selecttype == "multiarea")
  393. {
  394. lv_nAreaStartRow = 0;
  395. lv_nAreaEndRow = parseInt(obj.rowcount-1);
  396. lv_nAreaStartCol = parseInt(obj.currentcol);
  397. lv_nAreaEndCol = parseInt(obj.currentcol);
  398. }
  399. for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
  400. {
  401. for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
  402. {
  403. lv_sColID = obj.getCellProperty("body",nCell,"text");
  404. lv_sVal = obj.getCellValue(nRow,nCell);
  405. lv_sClipboard = lv_sClipboard + lv_sVal + CONST_SEPARATOR;
  406. }
  407. lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
  408. lv_sClipboard = lv_sClipboard +String.fromCharCode(10);
  409. }
  410. lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
  411. iv_sClipboard = lv_sClipboard;
  412. system.setClipboard("CF_TEXT",lv_sClipboard);
  413. }
  414. else
  415. {
  416. if (e.ctrlKey == true && e.keycode == 67 )
  417. {
  418. grdf_clipboardCopy(obj, "PAM");
  419. }
  420. }
  421. }
  422. ]]></Script>
  423. </Form>
  424. </FDL>