SPPAS01441_미수금세부리스트.xfdl 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SPPAS01441" position="absolute 0 0 900 800" titletext="미수환자세부리스트" onload="SPPAS01441_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" position="absolute 0 0 895 13" style="">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption6" class="tit_1" position="absolute 0 0 189 14" style="" text="미수환자세부 리스트" />
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Shape id="roundrect8" anchor="default" class="roundrect_search" type="roundrectangle" position="absolute 0 25 895 60" style="" />
  15. <Shape id="line11" class="line_1" linetype="horizontal" position="absolute 5 15 895 18" style="" anchor="default" />
  16. <Button id="btn_excel" class="btn1_letter4" visible="true" position="absolute 715 30 795 52" style="background:_gradation URL(../../.._com_commonweb_images_btn1_letter4.gif) ;" text="EXCEL" onclick="btn_excel_onclick" />
  17. <Button id="button2" class="btn6_letter4" taborder="3" position="absolute 805 30 885 52" style="" text="화면닫기" onclick="button2_onclick" />
  18. <Static id="caption13" class="search_name" position="absolute 5 34 365 51" style="" />
  19. <Grid id="datagrid1" binddataset="ds_main_result_resultlist" position="absolute 7 85 895 785" style="">
  20. <Formats>
  21. <Format id="default">
  22. <Columns>
  23. <Column size="47" />
  24. <Column size="82" />
  25. <Column size="87" />
  26. <Column size="80" />
  27. <Column size="100" />
  28. <Column size="100" />
  29. <Column size="100" />
  30. <Column size="102" />
  31. <Column size="167" />
  32. </Columns>
  33. <Rows>
  34. <Row size="24" band="head" />
  35. <Row size="24" />
  36. </Rows>
  37. <Band id="head">
  38. <Cell text="번호" />
  39. <Cell col="1" text="등록번호" />
  40. <Cell col="2" text="환자명" />
  41. <Cell col="3" text="보험유형" />
  42. <Cell col="4" text="전월말" />
  43. <Cell col="5" text="발생" />
  44. <Cell col="6" text="입금" />
  45. <Cell col="7" text="미수금잔액" />
  46. <Cell col="8" text="계정명" />
  47. </Band>
  48. <Band id="body">
  49. <Cell text="bind:ordnum" />
  50. <Cell col="1" text="bind:pid" />
  51. <Cell col="2" text="bind:hngnm" />
  52. <Cell col="3" text="bind:insukind" />
  53. <Cell col="4" text="bind:preamt" />
  54. <Cell col="5" text="bind:addamt" />
  55. <Cell col="6" text="bind:subamt" />
  56. <Cell col="7" text="bind:totamt" />
  57. <Cell col="8" text="bind:unconm" />
  58. </Band>
  59. </Format>
  60. </Formats>
  61. </Grid>
  62. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 5 65 895 68" style="" anchor="default" />
  63. <Static id="caption1" position="absolute 440 35 705 50" style="" text="조회되는 데이타가 많을시 조회되지 않을수 있음" />
  64. </Layout>
  65. </Layouts>
  66. <Objects>
  67. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  68. <ColumnInfo>
  69. <Column id="monthdd" type="STRING" size="256" />
  70. <Column id="insukind" type="STRING" size="256" />
  71. <Column id="ordtype" type="STRING" size="256" />
  72. <Column id="monthgubun" type="STRING" size="256" />
  73. </ColumnInfo>
  74. </Dataset>
  75. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  76. <ColumnInfo>
  77. <Column id="header" type="STRING" size="256" />
  78. </ColumnInfo>
  79. </Dataset>
  80. <Dataset id="ds_main_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  81. <ColumnInfo>
  82. <Column id="resultlist" type="STRING" size="256" />
  83. </ColumnInfo>
  84. <Rows>
  85. <Row>
  86. <Col id="resultlist"></Col>
  87. </Row>
  88. </Rows>
  89. </Dataset>
  90. <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  91. <ColumnInfo>
  92. <Column id="monthdd" type="STRING" size="256" />
  93. <Column id="insukind" type="STRING" size="256" />
  94. <Column id="ordtype" type="STRING" size="256" />
  95. </ColumnInfo>
  96. <Rows>
  97. <Row>
  98. <Col id="monthdd"></Col>
  99. <Col id="insukind"></Col>
  100. <Col id="ordtype"></Col>
  101. </Row>
  102. </Rows>
  103. </Dataset>
  104. </Objects>
  105. <Bind>
  106. <BindItem id="item0" compid="caption13" propid="value" datasetid="ds_main" columnid="header" />
  107. </Bind>
  108. <Script type="xscript4.0"><![CDATA[function SPPAS01441_onload(obj:Form, e:LoadEventInfo) {
  109. frmf_initForm(obj);
  110. //grdf_initGrid(grd_XXX);
  111. //grdf_setGridSort(grd_XXX);
  112. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  113. if (frmf_checkOpener()){ //팝업화면으로 사용될 때
  114. var strmonthdd = ds_source.getColumn(0, "monthdd");
  115. var strinsukind = ds_source.getColumn(0, "insukind");
  116. var strordtype = ds_source.getColumn(0, "ordtype");
  117. var strmonthgubun=ds_source.getColumn(0, "monthgubun");
  118. if((strmonthdd !="") && (strinsukind!="") && (strordtype!=""))
  119. {
  120. fSearch(strmonthdd,strinsukind,strordtype,strmonthgubun);
  121. }
  122. }
  123. }
  124. function fSearch(monthdd,insukind,ordtype,monthgubun){
  125. var strmonthdd=monthdd;
  126. var strinsukind=insukind;
  127. var strordtype=ordtype;
  128. var strmonthgubun=monthgubun;
  129. var strheader="";
  130. ds_send.setColumn( 0, "monthdd",strmonthdd);
  131. ds_send.setColumn( 0, "insukind",strinsukind);
  132. ds_send.setColumn( 0, "ordtype",strordtype);
  133. ds_send.setColumn( 0, "monthgubun",strmonthgubun);
  134. ds_main_result_resultlist.clearData(); ds_main_result_resultlist.addRow();
  135. // if(submit("TRPAS01444")){
  136. var oParam = {};
  137. oParam.id = "TRPAS01444";
  138. oParam.service = "planteamstatsapp.planTeamOrdStats";
  139. oParam.method = "reqGetOwnUncoDetailList";
  140. oParam.inds = "req=ds_";
  141. oParam.outds = "ds_=resultlist";
  142. oParam.async = false;
  143. oParam.callback = "cf_TRPAS01444";
  144. tranf_submit(oParam);
  145. /*
  146. function cf_TRPAS01444(sSvcId, nErrorCode, sErrorMsg) {
  147. if(nErrorCode < 0) return;
  148. }
  149. function cf_TRPAS01444(sSvcId, nErrorCode, sErrorMsg) {
  150. arErrorCode.push(sSvcId, nErrorCode);
  151. }
  152. arErrorCode.pop("TRPAS01444") > -1
  153. arErrorCode.pop("TRPAS01444") < 0
  154. */
  155. if( ds_main_result_resultlist_pid.rowcount;> 0 ){
  156. //
  157. //model.refresh();
  158. }else{
  159. ds_main_resultlist.clearData(); ds_main_resultlist.addRow();
  160. sysf_messageBox("데이타가 존재하지 않습니다.", "E999", "");
  161. }
  162. if(strmonthgubun=="K")
  163. {
  164. strheader= strmonthdd.substr(0,6) +" 당월말";
  165. }else if( strmonthgubun=="T")
  166. {
  167. strheader= strmonthdd.substr(0,6) + " 당월증가_감소";
  168. }else
  169. {
  170. strheader= strmonthdd.substr(0,6) +" 전월말";
  171. }
  172. ds_main.setColumn( 0, "header",strheader);
  173. //model.refresh();
  174. }
  175. }
  176. include '../../.._com_commonweb_js_common.js'
  177. include '../../.._com_commonweb_js_tfHelper.js'
  178. include '../../.._com_commonweb_js_utilHelper.js'
  179. include '../../.._com_commonweb_js_dateHelper.js'
  180. include '../../.._com_basiccodeweb_js_ZBC001.js'
  181. include '../../.._pam_pamcomnweb_js_PAM.js'
  182. include '../../.._pam_opatmngtweb_js_PMOCOM.js'
  183. function btn_excel_onclick(obj:Button, e:ClickEventInfo) {
  184. if (ds_main_result_resultlist_pid.rowcount;> 0)
  185. {
  186. var strtitle= ds_main.getColumn(0, "header");
  187. var fileName = window.fileDialog("save", ",", false, "의료미수금세부환자현황("+strtitle+")", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  188. datagrid1.saveExcel(fileName, "의료미수금세부환자현황(("+strtitle+")", false, false, "", "", false);
  189. }
  190. // var fileName = window.fileDialog("save", ",", false, "본인부담 의료미수금 현황_발생년도별("+year+")", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  191. // grd_year.saveExcel(fileName, "본인부담 의료미수금 현황_발생년도별("+year+")", false, false, "", "", false);
  192. }
  193. function button2_onclick(obj:Button, e:ClickEventInfo) {
  194. model.close();
  195. }
  196. ]]></Script>
  197. </Form>
  198. </FDL>