SMPAE00102_KU일일마감공통장표.xfdl 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPAE00102" position="absolute 0 0 1213 787" titletext="KU일일마감공통장표" oninit="SMPAE00102_oninit" onload="SMPAE00102_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" taborder="16" position="absolute 0 24 1195 64" class="div_SA">
  8. <Layouts>
  9. <Layout>
  10. <Button id="btn_search" taborder="0" text="조회" class="btn1" position="absolute 1115 9 1171 31" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
  11. <Static id="caption35" text="조회일자" class="search_name" position="absolute 5 11 90 28" anchor="default"/>
  12. <Calendar id="ipt_enddd" taborder="1" position="absolute 74 10 172 29" anchor="default" autoselect="true" autoskip="true"/>
  13. <Shape id="line14" linetype="vertical" class="line_4" position="absolute 1092 6 1098 36" anchor="top right"/>
  14. <Combo id="cmb_worktype" taborder="2" innerdataset="@ds_init_worktypelist_PK021" codecolumn="cdid" datacolumn="cdnm" position="absolute 621 10 721 29" anchor="default"/>
  15. <Static id="caption1" text="수납계정" class="search_name" position="absolute 540 11 625 28" anchor="default"/>
  16. <Static id="caption2" text="결제구분" class="search_name" position="absolute 755 11 840 28" anchor="default"/>
  17. <Combo id="combo2" taborder="3" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 834 10 934 29" anchor="default">
  18. <Dataset id="innerdataset">
  19. <ColumnInfo>
  20. <Column id="codecolumn"/>
  21. <Column id="datacolumn"/>
  22. </ColumnInfo>
  23. <Rows>
  24. <Row>
  25. <Col id="codecolumn">all</Col>
  26. <Col id="datacolumn">전체</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">cashamt</Col>
  30. <Col id="datacolumn">현금금액</Col>
  31. </Row>
  32. <Row>
  33. <Col id="codecolumn">cardamt</Col>
  34. <Col id="datacolumn">카드금액</Col>
  35. </Row>
  36. <Row>
  37. <Col id="codecolumn">onlineamt</Col>
  38. <Col id="datacolumn">온라인금액</Col>
  39. </Row>
  40. </Rows>
  41. </Dataset>
  42. </Combo>
  43. <Radio id="radio1" taborder="4" columncount="4" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 310 9 495 29" anchor="default">
  44. <Dataset id="innerdataset">
  45. <ColumnInfo>
  46. <Column id="codecolumn"/>
  47. <Column id="datacolumn"/>
  48. </ColumnInfo>
  49. <Rows>
  50. <Row>
  51. <Col id="codecolumn">A</Col>
  52. <Col id="datacolumn">전체</Col>
  53. </Row>
  54. <Row>
  55. <Col id="codecolumn">O</Col>
  56. <Col id="datacolumn">외래</Col>
  57. </Row>
  58. <Row>
  59. <Col id="codecolumn">I</Col>
  60. <Col id="datacolumn">입원</Col>
  61. </Row>
  62. <Row>
  63. <Col id="codecolumn">S</Col>
  64. <Col id="datacolumn">건진</Col>
  65. </Row>
  66. </Rows>
  67. </Dataset>
  68. </Radio>
  69. <Calendar id="input1" taborder="5" position="absolute 192 10 291 29" anchor="default"/>
  70. <Static id="caption3" text="~" position="absolute 175 11 190 31" anchor="default"/>
  71. </Layout>
  72. </Layouts>
  73. </Div>
  74. <Static text="KU일일마감 공통장표" position="absolute 0 0 178 24" id="caption6" class="tit_1"/>
  75. <Tab position="absolute 0 79 1195 773" id="switch1" anchor="all" onchanged="switch1_onchanged">
  76. <Tabpages>
  77. <Tabpage text="업무구분별 환자별 세부내역" position="absolute 0 0 1193 685" id="case1">
  78. <Layouts>
  79. <Layout>
  80. <Shape position="absolute 0 2 1195 8" linetype="horizontal" id="line3" class="line_10" anchor="left top right"/>
  81. <Grid position="absolute 0 7 1195 662" id="grd_rcptdetlist" binddataset="ds_main_rcptinfo_rcptinfolist" autoenter="select" cellsizingtype="col" anchor="all">
  82. <Formats>
  83. <Format id="default">
  84. <Columns>
  85. <Column size="25" band="left"/>
  86. <Column size="140"/>
  87. <Column size="30"/>
  88. <Column size="60"/>
  89. <Column size="60"/>
  90. <Column size="98"/>
  91. <Column size="55"/>
  92. <Column size="40"/>
  93. <Column size="40"/>
  94. <Column size="80"/>
  95. <Column size="80"/>
  96. <Column size="80"/>
  97. <Column size="70"/>
  98. <Column size="70"/>
  99. <Column size="70"/>
  100. <Column size="37"/>
  101. <Column size="32"/>
  102. <Column size="55"/>
  103. <Column size="60"/>
  104. </Columns>
  105. <Rows>
  106. <Row size="24" band="head"/>
  107. <Row size="24"/>
  108. <Row size="24" band="summ"/>
  109. </Rows>
  110. <Band id="head">
  111. <Cell/>
  112. <Cell col="1" text="업무구분"/>
  113. <Cell col="2" text="구분"/>
  114. <Cell col="3" text="환자번호"/>
  115. <Cell col="4" text="성명"/>
  116. <Cell col="5" text="진료과"/>
  117. <Cell col="6" text="진료의"/>
  118. <Cell col="7" colspan="2" text="보험유형" taborder="undefined"/>
  119. <Cell col="9" text="현금금액"/>
  120. <Cell col="10" text="카드금액"/>
  121. <Cell col="11" text="통장입금액"/>
  122. <Cell col="12" text="수납일자"/>
  123. <Cell col="13" text="수납시간"/>
  124. <Cell col="14" text="영수일자"/>
  125. <Cell col="15" colspan="2" text="영수번호" taborder="undefined"/>
  126. <Cell col="17" text="수납자"/>
  127. <Cell col="18" text="무인번호"/>
  128. </Band>
  129. <Band id="body">
  130. <Cell celltype="head" expr="currow+1"/>
  131. <Cell col="1" displaytype="combo" style="padding:0 0 0 3;" text="bind:worktype" combodataset="ds_init_worktypelist_PK021" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  132. <Cell col="2" text="bind:ordtype"/>
  133. <Cell col="3" text="bind:pid"/>
  134. <Cell col="4" text="bind:hngnm"/>
  135. <Cell col="5" style="align:left middle;padding:0 0 0 3;" text="bind:orddeptnm"/>
  136. <Cell col="6" text="bind:medispclnm"/>
  137. <Cell col="7" text="bind:insukind"/>
  138. <Cell col="8" text="bind:suppkind"/>
  139. <Cell col="9" displaytype="number" text="bind:cashamt"/>
  140. <Cell col="10" displaytype="number" text="bind:cardamt"/>
  141. <Cell col="11" displaytype="number" text="bind:onlineamt"/>
  142. <Cell col="12" displaytype="date" text="bind:rcptexecdd" calendardisplaynulltype="nulltext"/>
  143. <Cell col="13" displaytype="date" text="bind:rcpttm" mask="hh:mm:ss" calendardisplaynulltype="nulltext"/>
  144. <Cell col="14" displaytype="date" text="bind:rcptdd" calendardisplaynulltype="nulltext"/>
  145. <Cell col="15" displaytype="text" text="bind:rcptno"/>
  146. <Cell col="16" text="bind:rcptseqno"/>
  147. <Cell col="17" text="bind:rcptrnm"/>
  148. <Cell col="18" text="bind:ktrmnno"/>
  149. </Band>
  150. <Band id="summary">
  151. <Cell style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  152. <Cell col="1" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  153. <Cell col="2" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  154. <Cell col="3" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  155. <Cell col="4" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  156. <Cell col="5" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  157. <Cell col="6" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  158. <Cell col="7" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  159. <Cell col="8" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  160. <Cell col="9" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="expr:getSum('cashamt')"/>
  161. <Cell col="10" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="expr:getSum('cardamt')"/>
  162. <Cell col="11" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="expr:getSum('onlineamt')"/>
  163. <Cell col="12" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  164. <Cell col="13" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  165. <Cell col="14" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  166. <Cell col="15" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  167. <Cell col="16" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  168. <Cell col="17" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  169. <Cell col="18" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  170. </Band>
  171. </Format>
  172. </Formats>
  173. </Grid>
  174. </Layout>
  175. </Layouts>
  176. </Tabpage>
  177. <Tabpage text="업무구분별 합산내역" id="case2">
  178. <Layouts>
  179. <Layout>
  180. <Grid position="absolute 0 7 1195 662" id="datagrid2" binddataset="ds_main_rcptsuminfo_rcptsuminfolist" autoenter="select" cellsizingtype="col" anchor="all">
  181. <Formats>
  182. <Format id="default">
  183. <Columns>
  184. <Column size="23" band="left"/>
  185. <Column size="200"/>
  186. <Column size="180"/>
  187. <Column size="180"/>
  188. <Column size="200"/>
  189. <Column size="180"/>
  190. <Column size="200"/>
  191. </Columns>
  192. <Rows>
  193. <Row size="24" band="head"/>
  194. <Row size="24"/>
  195. <Row size="24" band="summ"/>
  196. </Rows>
  197. <Band id="head">
  198. <Cell/>
  199. <Cell col="1" text="계정"/>
  200. <Cell col="2" text="입원"/>
  201. <Cell col="3" text="외래"/>
  202. <Cell col="4" text="합계"/>
  203. <Cell col="5" text="건진"/>
  204. <Cell col="6" text="합계"/>
  205. </Band>
  206. <Band id="body">
  207. <Cell celltype="head" expr="currow+1"/>
  208. <Cell col="1" displaytype="combo" style="padding:0 0 0 5;" text="bind:worktype" combodataset="ds_init_worktypelist_PK021" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  209. <Cell col="2" displaytype="number" text="bind:rcpt1"/>
  210. <Cell col="3" displaytype="number" text="bind:rcpt2"/>
  211. <Cell col="4" displaytype="number" text="bind:sum1"/>
  212. <Cell col="5" displaytype="number" text="bind:rcpt3"/>
  213. <Cell col="6" displaytype="number" text="bind:sum2"/>
  214. </Band>
  215. <Band id="summary">
  216. <Cell style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  217. <Cell col="1" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;"/>
  218. <Cell col="2" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="expr:getSum('rcpt1')"/>
  219. <Cell col="3" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="expr:getSum('rcpt2')"/>
  220. <Cell col="4" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="expr:getSum('sum1')"/>
  221. <Cell col="5" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="expr:getSum('rcpt3')"/>
  222. <Cell col="6" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="expr:getSum('sum2')"/>
  223. </Band>
  224. </Format>
  225. </Formats>
  226. </Grid>
  227. <Shape position="absolute 0 2 1195 8" linetype="horizontal" id="line4" class="line_10" anchor="left top right"/>
  228. </Layout>
  229. </Layouts>
  230. </Tabpage>
  231. </Tabpages>
  232. </Tab>
  233. </Layout>
  234. </Layouts>
  235. <Objects>
  236. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  237. <ColumnInfo>
  238. <Column id="fromdd" type="STRING" size="256"/>
  239. <Column id="todd" type="STRING" size="256"/>
  240. <Column id="worktype" type="STRING" size="256"/>
  241. <Column id="rcpttype" type="STRING" size="256"/>
  242. <Column id="ioflag" type="STRING" size="256"/>
  243. </ColumnInfo>
  244. <Rows>
  245. <Row>
  246. <Col id="fromdd"/>
  247. <Col id="todd"/>
  248. <Col id="worktype"/>
  249. <Col id="rcpttype"/>
  250. <Col id="ioflag">A</Col>
  251. </Row>
  252. </Rows>
  253. </Dataset>
  254. <Dataset id="ds_init_worktypelist_PK021" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  255. <ColumnInfo>
  256. <Column id="cdnm" type="STRING" size="256"/>
  257. <Column id="cdid" type="STRING" size="256"/>
  258. </ColumnInfo>
  259. </Dataset>
  260. <Dataset id="ds_main_rcptinfo_rcptinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  261. <ColumnInfo>
  262. <Column id="worktype" type="STRING" size="256" sumtext="마감상태"/>
  263. <Column id="ordtype" type="STRING" size="256" sumtext="구분"/>
  264. <Column id="pid" type="STRING" size="256" sumtext="마감상태"/>
  265. <Column id="hngnm" type="STRING" size="256" sumtext="마감상태"/>
  266. <Column id="orddeptnm" type="STRING" size="256" sumtext="마감상태"/>
  267. <Column id="medispclnm" type="STRING" size="256" sumtext="마감상태"/>
  268. <Column id="insukind" type="STRING" size="256" sumtext="마감상태"/>
  269. <Column id="suppkind" type="STRING" size="256" sumtext="마감상태"/>
  270. <Column id="cashamt" type="STRING" size="256" sumtext="마감상태"/>
  271. <Column id="cardamt" type="STRING" size="256" sumtext="마감상태"/>
  272. <Column id="onlineamt" type="STRING" size="256" sumtext="마감상태"/>
  273. <Column id="rcptexecdd" type="STRING" size="256" sumtext="마감상태"/>
  274. <Column id="rcptdd" type="STRING" size="256" sumtext="마감상태"/>
  275. <Column id="rcpttm" type="STRING" size="256" sumtext="마감상태"/>
  276. <Column id="rcptno" type="STRING" size="256" sumtext="마감상태"/>
  277. <Column id="rcptseqno" type="STRING" size="256" sumtext="마감상태"/>
  278. <Column id="rcptrnm" type="STRING" size="256" sumtext="마감상태"/>
  279. <Column id="ktrmnno" type="STRING" size="256" sumtext="마감상태"/>
  280. </ColumnInfo>
  281. </Dataset>
  282. <Dataset id="ds_main_rcptsuminfo_rcptsuminfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  283. <ColumnInfo>
  284. <Column id="worktype" type="STRING" size="256" sumtext="업무계정"/>
  285. <Column id="rcpt1" type="STRING" size="256" sumtext="입원수납"/>
  286. <Column id="rcpt2" type="STRING" size="256" sumtext="외래수납"/>
  287. <Column id="sum1" type="STRING" size="256" sumtext="합계1"/>
  288. <Column id="rcpt3" type="STRING" size="256" sumtext="건진수납"/>
  289. <Column id="sum2" type="STRING" size="256" sumtext="합계2"/>
  290. </ColumnInfo>
  291. </Dataset>
  292. </Objects>
  293. <Bind>
  294. <BindItem id="item0" compid="grp_sea.ipt_enddd" propid="value" datasetid="ds_send_search" columnid="fromdd"/>
  295. <BindItem id="item1" compid="grp_sea.input1" propid="value" datasetid="ds_send_search" columnid="todd"/>
  296. <BindItem id="item2" compid="grp_sea.radio1" propid="value" datasetid="ds_send_search" columnid="ioflag"/>
  297. <BindItem id="item3" compid="grp_sea.cmb_worktype" propid="value" datasetid="ds_send_search" columnid="worktype"/>
  298. <BindItem id="item4" compid="grp_sea.combo2" propid="value" datasetid="ds_send_search" columnid="rcpttype"/>
  299. </Bind>
  300. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  301. * System Name :
  302. * Job Name :
  303. * Creator :
  304. * Make Date : 2016-05-24
  305. * Description :
  306. *---------------------------------------------------------------------------------------
  307. * Modify Date Modifier Modify Description
  308. *---------------------------------------------------------------------------------------
  309. * 2016-05-24 Live Converter TF->XP
  310. *
  311. *---------------------------------------------------------------------------------------
  312. ****************************************************************************************/
  313. include "com_commonxp::comm_main.xjs";
  314. include "pam_pamcomnxp::PAM001.xjs";
  315. var arErrorCode = new HashArray();
  316. function SMPAE00102_oninit(obj:Form, e:InitEventInfo)
  317. {
  318. frmf_initForm(obj);
  319. }
  320. function SMPAE00102_onload(obj:Form, e:LoadEventInfo)
  321. {
  322. grdf_initGrid(switch1.case1.grd_rcptdetlist);
  323. grdf_initGrid(switch1.case2.datagrid2);
  324. var worktype = "";
  325. var rcpttype = "all";
  326. var ioflag = "A";
  327. var fromdd = utlf_getCurrentDate();
  328. var todd = utlf_getCurrentDate();
  329. // 부모창 검증
  330. if (!frmf_checkOpener())
  331. {
  332. sysf_messageBox("상위화면이 존재하지 않습니다.", "C000");
  333. }
  334. else
  335. {
  336. // 부모창에서 올라온 조건으로 업데이트
  337. worktype = opener.frmf_getParameter("SMPAE00102_WORKTYPE");
  338. rcpttype = opener.frmf_getParameter("SMPAE00102_RCPTTYPE");
  339. ioflag = opener.frmf_getParameter("SMPAE00102_IOFLAG");
  340. fromdd = opener.frmf_getParameter("SMPAE00102_FROMDD");
  341. todd = opener.frmf_getParameter("SMPAE00102_TODD");
  342. }
  343. fGetBaseInfo(); //기본코드 조회
  344. ds_send_search.setColumn(0, "fromdd", fromdd);
  345. ds_send_search.setColumn(0, "todd", todd);
  346. ds_send_search.setColumn(0, "worktype", worktype);
  347. ds_send_search.setColumn(0, "rcpttype", rcpttype);
  348. ds_send_search.setColumn(0, "ioflag", ioflag);
  349. // 조회 실행
  350. grp_sea.btn_search.click();
  351. }
  352. function fGetBaseInfo()
  353. {
  354. /*
  355. * PK021 - 마감프로그램_업무구분
  356. */
  357. var arrParam = new Array();
  358. arrParam = [{dsNm: "ds_init_worktypelist_PK021", cdGrpId: "PK021", showValue: false}];
  359. pamfGetCodeList(arrParam, false, "");
  360. frmf_addComboItem("grp_sea.cmb_worktype","전체","all","above");
  361. ds_send_search.setColumn(0, "worktype", "all");
  362. ds_send_search.setColumn(0, "rcpttype", "all");
  363. }
  364. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  365. {
  366. if (switch1.tabindex == 0)
  367. {
  368. // 업무구분별 환자별 수납내역 조회
  369. var oParam = {};
  370. oParam.id = "TRPAE00105";
  371. oParam.service = "pamendstatsapp.PamEndStats";
  372. oParam.method = "reqGetComnRcptDetInfoList";
  373. oParam.inds = "req=ds_send_search";
  374. oParam.outds = "ds_main_rcptinfo_rcptinfolist=rcptdetinfo";
  375. oParam.async = false;
  376. //oParam.callback = "cf_TRPAE00105";
  377. tranf_submit(oParam);
  378. }
  379. else
  380. {
  381. // 업무구분별 수납내역 조회
  382. var oParam = {};
  383. oParam.id = "TRPAE00106";
  384. oParam.service = "pamendstatsapp.PamEndStats";
  385. oParam.method = "reqGetComnRcptSumInfoList";
  386. oParam.inds = "req=ds_send_search";
  387. oParam.outds = "ds_main_rcptsuminfo_rcptsuminfolist=rcptsuminfo";
  388. oParam.async = false;
  389. //oParam.callback = "cf_TRPAE00106";
  390. tranf_submit(oParam);
  391. }
  392. }
  393. function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  394. {
  395. if(obj.tabindex == 0)
  396. {
  397. grp_sea.radio1.enable = true;
  398. grp_sea.cmb_worktype.enable = true;
  399. grp_sea.combo2.enable = true;
  400. }
  401. else if(obj.tabindex == 1)
  402. {
  403. grp_sea.radio1.enable = false;
  404. grp_sea.cmb_worktype.enable = false;
  405. grp_sea.combo2.enable = false;
  406. }
  407. }
  408. ]]></Script>
  409. </Form>
  410. </FDL>