SPPAS00721_기간별미수조회.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPAS00721" position="absolute 0 0 900 784" titletext="미수금 조회 및 출력" onload="SPPAS00721_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group2" position="absolute 0 23 895 90" style="" class="div_SA">
  8. <Layouts>
  9. <Layout>
  10. <Button id="btn_search" class="btn1" position="absolute 825 9 881 31" style="" text="조회" onclick="group2_btn_search_onclick"/>
  11. <Shape id="line1" class="line_4" linetype="vertical" position="absolute 815 9 818 31" style="border: solid #ffe4bb #ffe4bb;" anchor="default"/>
  12. <Static id="caption4" class="search_name" position="absolute 10 12 85 29" style="" text="미수기간 :"/>
  13. <Calendar id="input1" position="absolute 102 11 207 30" style="" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd " value="null"/>
  14. <Static id="caption1" position="absolute 208 13 228 28" style="align:center ;" text="~"/>
  15. <Calendar id="input2" position="absolute 229 11 334 30" style="" anchor="default" autoselect="true" dateformat="yyyy-MM-dd "/>
  16. <Static id="caption3" class="search_name" position="absolute 10 37 85 54" style="" text="미수구분 :"/>
  17. <Combo innerdataset="ds_init_uncocd" datacolumn="nm" codecolumn="cd" columncount="-1" rowcount="-1" id="cmd_uncocd" position="absolute 102 37 197 56" style=""/>
  18. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="radio1" visible="true" position="absolute 203 38 352 54" style="textpadding:0 3 0 3;">
  19. <Dataset id="innerdataset">
  20. <ColumnInfo>
  21. <Column id="codecolumn"/>
  22. <Column id="datacolumn"/>
  23. </ColumnInfo>
  24. <Rows>
  25. <Row>
  26. <Col id="codecolumn">N</Col>
  27. <Col id="datacolumn">전체</Col>
  28. </Row>
  29. <Row>
  30. <Col id="codecolumn">Y</Col>
  31. <Col id="datacolumn">0이 아닌것</Col>
  32. </Row>
  33. </Rows>
  34. </Dataset>
  35. </Radio>
  36. <Static id="caption5" class="search_name" position="absolute 368 38 442 55" style="" text="조회범위 :"/>
  37. <Combo innerdataset="ds_listcount_listcnt" datacolumn="rowcount" codecolumn="seq" columncount="-1" rowcount="-1" id="combo1" position="absolute 460 38 560 57" style="" onitemchanged="group2_combo1_onitemchanged"/>
  38. <Static id="caption6" class="search_name" position="absolute 600 12 664 29" style="" text="기준일 :"/>
  39. <Calendar id="input3" position="absolute 675 12 765 31" style="" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd "/>
  40. <Button id="button1" class="btn2" position="absolute 570 38 634 57" style="" text="범위조회" onclick="group2_button1_onclick"/>
  41. <Static id="caption7" class="search_name" position="absolute 368 12 439 29" style="" text="조회구분 :"/>
  42. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="combo2" position="absolute 460 12 560 31" style="">
  43. <Dataset id="innerdataset">
  44. <ColumnInfo>
  45. <Column id="codecolumn"/>
  46. <Column id="datacolumn"/>
  47. </ColumnInfo>
  48. <Rows>
  49. <Row>
  50. <Col id="codecolumn">R</Col>
  51. <Col id="datacolumn">수납일자</Col>
  52. </Row>
  53. <Row>
  54. <Col id="codecolumn">O</Col>
  55. <Col id="datacolumn">진료일자</Col>
  56. </Row>
  57. </Rows>
  58. </Dataset>
  59. </Combo>
  60. </Layout>
  61. </Layouts>
  62. </Div>
  63. <Static id="caption2" class="tit_2" position="absolute 0 96 119 114" style="" text="미수조회"/>
  64. <Grid id="grd_uncolist" binddataset="ds_list_uncolist" position="absolute 0 115 895 760" style="align:center ;" oncelldblclick="grd_uncolist_oncelldblclick">
  65. <Formats>
  66. <Format id="default">
  67. <Columns>
  68. <Column size="80"/>
  69. <Column size="100"/>
  70. <Column size="85"/>
  71. <Column size="100"/>
  72. <Column size="85"/>
  73. <Column size="80"/>
  74. <Column size="100"/>
  75. <Column size="70"/>
  76. <Column size="0"/>
  77. <Column size="80"/>
  78. <Column size="80"/>
  79. <Column size="80"/>
  80. <Column size="100"/>
  81. <Column size="0"/>
  82. <Column size="0"/>
  83. <Column size="0"/>
  84. <Column size="0"/>
  85. </Columns>
  86. <Rows>
  87. <Row size="24" band="head"/>
  88. <Row size="24"/>
  89. </Rows>
  90. <Band id="head">
  91. <Cell text="미수번호"/>
  92. <Cell col="1" text="미수구분"/>
  93. <Cell col="2" text="진료일자"/>
  94. <Cell col="3" text="수납일자"/>
  95. <Cell col="4" text="발생일자"/>
  96. <Cell col="5" text="등록번호"/>
  97. <Cell col="6" text="주민번호"/>
  98. <Cell col="7" text="성명"/>
  99. <Cell col="8" text="성별"/>
  100. <Cell col="9" text="미수금"/>
  101. <Cell col="10" text="미수입금"/>
  102. <Cell col="11" text="미납금"/>
  103. <Cell col="12" text="비고"/>
  104. <Cell col="13" text="rcptdd"/>
  105. <Cell col="14" text="rcptno"/>
  106. <Cell col="15" text="rcptseqno"/>
  107. <Cell col="16" text="seqno"/>
  108. </Band>
  109. <Band id="body">
  110. <Cell style="background:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');" text="bind:uncono"/>
  111. <Cell col="1" style="align:center top;padding:5 2 3 2;background:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');" text="bind:unconm" wordwrap="word"/>
  112. <Cell col="2" displaytype="date" style="background:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');" text="bind:orddd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  113. <Cell col="3" displaytype="date" style="background:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');" text="bind:rcptdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  114. <Cell col="4" displaytype="date" style="background:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');" text="bind:orgrcptdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  115. <Cell col="5" style="background:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');" text="bind:pid"/>
  116. <Cell col="6" style="background:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');" text="bind:rrgstno" expr="expr:getRowLevel(currow) == 1 ? '소계' : rrgstno"/>
  117. <Cell col="7" style="background:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');" text="bind:hngnm"/>
  118. <Cell col="8" style="background:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');" text="bind:sex"/>
  119. <Cell col="9" displaytype="number" style="background:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');" text="bind:uncoamt" mask="9,999"/>
  120. <Cell col="10" displaytype="number" style="background:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');" text="bind:rcptamt" mask="9,999"/>
  121. <Cell col="11" displaytype="number" style="background:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');" text="bind:uncorem" mask="9,999"/>
  122. <Cell col="12" style="background:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#99ff99' : '');" text="bind:remfact"/>
  123. <Cell col="13" text="bind:rcptdd"/>
  124. <Cell col="14" text="bind:rcptno"/>
  125. <Cell col="15" text="bind:rcptseqno"/>
  126. <Cell col="16" text="bind:seqno"/>
  127. </Band>
  128. </Format>
  129. </Formats>
  130. </Grid>
  131. <Button id="button2" class="btn7" position="absolute 815 94 895 113" style="" text="엑셀저장" onclick="button2_onclick"/>
  132. <Edit id="input4" visible="false" position="absolute 135 94 155 113" style="" anchor="default"/>
  133. <Edit id="input5" visible="false" position="absolute 160 94 185 113" style="" anchor="default"/>
  134. <Static id="caption60" text="미수 조회및 출력" class="tit_1" position="absolute 0 0 140 23" style="align:left middle;font:Dotum,9,bold;"/>
  135. </Layout>
  136. </Layouts>
  137. <Objects>
  138. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  139. <ColumnInfo>
  140. <Column id="fromdd" type="STRING" size="256"/>
  141. <Column id="todd" type="STRING" size="256"/>
  142. <Column id="uncocd" type="STRING" size="256"/>
  143. <Column id="endyn" type="STRING" size="256"/>
  144. <Column id="save" type="STRING" size="256"/>
  145. <Column id="condd" type="STRING" size="256"/>
  146. <Column id="fromst" type="STRING" size="256"/>
  147. <Column id="tost" type="STRING" size="256"/>
  148. <Column id="srchtype" type="STRING" size="256"/>
  149. </ColumnInfo>
  150. <Rows>
  151. <Row>
  152. <Col id="fromdd"/>
  153. <Col id="todd"/>
  154. <Col id="uncocd"/>
  155. <Col id="endyn">all</Col>
  156. <Col id="save"/>
  157. <Col id="condd"/>
  158. <Col id="fromst"/>
  159. <Col id="tost"/>
  160. <Col id="srchtype">R</Col>
  161. </Row>
  162. </Rows>
  163. </Dataset>
  164. <Dataset id="ds_init_uncocd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  165. <Dataset id="ds_listcount_listcnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  166. <Dataset id="ds_list_uncolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  167. <Dataset id="ds_init_com_comncdlist_P0072list_P0072" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  168. <Dataset id="ds_init_com_comncdlist_P0001list_P0001" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  169. <Dataset id="ds_init_com_comncdlist_P0311list_P0311" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  170. </Objects>
  171. <Bind>
  172. <BindItem id="item0" compid="group2.input1" propid="value" datasetid="ds_send" columnid="fromdd"/>
  173. <BindItem id="item1" compid="group2.input2" propid="value" datasetid="ds_send" columnid="todd"/>
  174. <BindItem id="item2" compid="group2.cmd_uncocd" propid="value" datasetid="ds_send" columnid="uncocd"/>
  175. <BindItem id="item3" compid="group2.radio1" propid="value" datasetid="ds_send" columnid="endyn"/>
  176. <BindItem id="item4" compid="group2.combo1" propid="value" datasetid="ds_hidden" columnid="seq"/>
  177. <BindItem id="item5" compid="group2.input3" propid="value" datasetid="ds_send" columnid="condd"/>
  178. <BindItem id="item6" compid="group2.combo2" propid="value" datasetid="ds_send" columnid="srchtype"/>
  179. <BindItem id="item7" compid="input4" propid="value" datasetid="ds_send" columnid="fromst"/>
  180. <BindItem id="item8" compid="input5" propid="value" datasetid="ds_send" columnid="tost"/>
  181. </Bind>
  182. <Script type="xscript4.0"><![CDATA[include 'com_commonxp::comm_main.xjs';
  183. //include 'pam_pamcomnxp::PAM001.xjs';
  184. var arErrorCode = new HashArray();
  185. function SPPAS00721_onload(obj: Form, e: LoadEventInfo)
  186. {
  187. frmf_initForm(obj);
  188. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  189. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  190. ds_send.setColumn(0, "condd", utlf_getCurrentDate());
  191. var arrParam = [{dsNm: "ds_init_com_comncdlist_P0072list_P0072", cdGrpId: "P0072" }, //미수분류(개인,계약처)
  192. {dsNm: "ds_init_com_comncdlist_P0001list_P0001", cdGrpId: "P0001" }, //진료형태(입원,외래,응급)
  193. {dsNm: "ds_init_com_comncdlist_P0311list_P0311", cdGrpId: "P0311" }]; //납부자정보
  194. appf_getCodeList(arrParam);
  195. if (ds_init_com_comncdlist_P0072list_P0072.rowcount > 0)
  196. {
  197. ds_init_com_comncdlist_P0072list_P0072.insertRow(0);
  198. ds_init_com_comncdlist_P0072list_P0072.setColumn(0, "cdnm", "-");
  199. ds_init_com_comncdlist_P0072list_P0072.setColumn(0, "cdid", "-");
  200. }
  201. if (ds_init_com_comncdlist_P0001list_P0001.rowcount > 0)
  202. {
  203. ds_init_com_comncdlist_P0001list_P0001.insertRow(0);
  204. ds_init_com_comncdlist_P0001list_P0001.setColumn(0, "cdnm", "전체");
  205. ds_init_com_comncdlist_P0001list_P0001.setColumn(0, "cdid", "-");
  206. }
  207. dsf_createDsRow('ds_TRPAMCOM01', [{ col: 'sess_posinstcd', type: 'string', size: 256, val: '' }], false);
  208. var oParam = {};
  209. oParam.id = "TRPAMCOM01";
  210. oParam.service = "pamcomnapp.PamComn";
  211. oParam.method = "reqGetComCD";
  212. oParam.inds = "req=ds_TRPAMCOM01";
  213. oParam.outds = "ds_init_uncocd=uncocd";
  214. oParam.async = false;
  215. tranf_submit(oParam);
  216. frmf_addComboItem("group2.cmd_uncocd", "- 전 체 -", "", "above");
  217. group2.cmd_uncocd.index = 0;
  218. }
  219. function group2_btn_search_onclick(obj: Button, e: ClickEventInfo)
  220. {
  221. var oParam = {};
  222. oParam.id = "TRPAS00811";
  223. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  224. oParam.method = "reqGetUncoTotalList";
  225. oParam.inds = "req=ds_send";
  226. oParam.outds = "ds_list_uncolist=uncolist";
  227. oParam.async = false;
  228. tranf_submit(oParam);
  229. ds_list_uncolist.keystring = "G:uncocd";
  230. }
  231. function group2_combo1_onitemchanged(obj: Combo, e: ItemChangeEventInfo)
  232. {
  233. var seqv = obj.value
  234. var fromst = ds_listcount_listcnt.getColumn(seqv, "fromst");
  235. var tost = ds_listcount_listcnt.getColumn(seqv, "tost");
  236. ds_send.setColumn(0, "fromst", fromst);
  237. ds_send.setColumn(0, "tost", tost);
  238. }
  239. function group2_button1_onclick(obj: Button, e: ClickEventInfo) {
  240. var oParam = {};
  241. oParam.id = "TRPAS00812";
  242. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  243. oParam.method = "reqGetUncoListCount";
  244. oParam.inds = "req=ds_send";
  245. oParam.outds = "ds_listcount_listcnt=listcnt";
  246. oParam.async = false;
  247. oParam.callback = "cf_TRPAS00812";
  248. tranf_submit(oParam);
  249. if (arErrorCode.pop("TRPAS00812") > -1)
  250. {
  251. sysf_messageBox("범위조회가 완료되었습니다. 조회범위를 선택하십시오.", "I");
  252. }
  253. }
  254. function cf_TRPAS00812(sSvcId, nErrorCode, sErrorMsg) {
  255. arErrorCode.push(sSvcId, nErrorCode);
  256. }
  257. function grd_uncolist_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
  258. var row = ds_list_uncolist.rowposition;
  259. opener.frmf_setParameter("SMPAS00700_PID", ds_list_uncolist.getColumn(row, "pid"));
  260. this.close();
  261. }
  262. function button2_onclick(obj: Button, e: ClickEventInfo) {
  263. grdf_exportExcel(grd_uncolist, "excel", "Sheet1", true, "", 'user', true);
  264. }]]></Script>
  265. </Form>
  266. </FDL>