SMPAS00540_입원수입통계.xfdl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SMPAS00540" position="absolute 0 0 1211 784" titletext="입원수입통계" onload="SMPAS00540_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" position="absolute 0 0 1211 13" style="">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption60" class="tit_1" position="absolute 0 0 215 14" style="font:돋움,,돋움;align: middle;" text="입원수입통계" />
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="group2" position="absolute 4 23 1207 58" style="">
  15. <Layouts>
  16. <Layout>
  17. <Shape id="roundrect1" anchor="default" class="roundrect_search" type="roundrectangle" position="absolute 0 0 1202 35" style="border: solid #ffd799 #ffd799;background:#fffbf2 ;" />
  18. <Static id="caption2" class="search_name" position="absolute 15 9 213 26" style="" text="일자:" />
  19. <Shape id="line2" class="line_4" linetype="vertical" position="absolute 1132 7 1135 29" style="border: solid #ffe4bb #ffe4bb;" anchor="default" />
  20. <Button id="btn_search" class="btn1_letter2" position="absolute 1139 7 1195 29" style="" text="조회" onclick="group2_btn_search_onclick" />
  21. <Calendar id="input7" class="input_default" taborder="7" position="absolute 75 8 160 27" style="align:center ;" anchor="default" />
  22. <Button id="button95" class="btn6_letter4" position="absolute 976 7 1056 29" style="" text="액셀저장" onclick="group2_button95_onclick" />
  23. <Shape id="line1" class="line_4" linetype="vertical" position="absolute 1063 7 1066 29" style="border: solid #ffe4bb #ffe4bb;" anchor="default" />
  24. <Button id="btn_print" class="btn6_letter2" position="absolute 1070 7 1126 29" style="" text="출력" onclick="group2_btn_print_onclick" />
  25. <MaskEdit id="input1" mask="hh:nn" position="absolute 170 8 224 27" style="align:center ;" anchor="default" />
  26. <MaskEdit id="input15" mask="hh:nn" position="absolute 245 8 299 27" style="align:center ;" anchor="default" />
  27. <Static id="caption25" position="absolute 222 10 247 24" style="align:center ;" text="~" />
  28. <Edit id="input2" visible="false" position="absolute 384 8 470 27" style="" anchor="default" />
  29. <Static id="caption1" position="absolute 311 9 375 29" style="font:,,bold;" text="수납자ID :" />
  30. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="radio1" position="absolute 480 10 715 30" style="align:center middle;">
  31. <Dataset id="innerdataset">
  32. <ColumnInfo>
  33. <Column id="codecolumn" />
  34. <Column id="datacolumn" />
  35. </ColumnInfo>
  36. <Rows>
  37. <Row>
  38. <Col id="codecolumn">%</Col>
  39. <Col id="datacolumn">전체</Col>
  40. </Row>
  41. <Row>
  42. <Col id="codecolumn">I%</Col>
  43. <Col id="datacolumn">입원</Col>
  44. </Row>
  45. <Row>
  46. <Col id="codecolumn">E%</Col>
  47. <Col id="datacolumn">응급</Col>
  48. </Row>
  49. <Row>
  50. <Col id="codecolumn">D%</Col>
  51. <Col id="datacolumn">DSC_CHEMO</Col>
  52. </Row>
  53. </Rows>
  54. </Dataset>
  55. </Radio>
  56. </Layout>
  57. </Layouts>
  58. </Div>
  59. <Div id="grp_btn" scrollbars="autoboth" position="absolute 19 757 1199 784" style="" />
  60. <Button id="btn_init" class="btn4_letter3" position="absolute 1129 760 1197 782" style="" text="초기화" onclick="btn_init_onclick" />
  61. <Tab id="switch1" position="absolute 5 87 1205 742" style="" anchor="default">
  62. <Tabpages>
  63. <Tabpage id="case1" anchor="default" text="1.전체 입원 수입통계">
  64. <Layouts>
  65. <Layout>
  66. <Grid id="grd_rcpt" binddataset="ds_main_h_rcpt_rcpt" position="absolute 5 5 1190 640" style="" oncelldblclick="switch1_case1_grd_rcpt_oncelldblclick">
  67. <Formats>
  68. <Format id="default">
  69. <Columns>
  70. <Column size="100" />
  71. <Column size="150" />
  72. <Column size="150" />
  73. <Column size="130" />
  74. <Column size="130" />
  75. <Column size="133" />
  76. <Column size="130" />
  77. <Column size="140" />
  78. <Column size="95" />
  79. </Columns>
  80. <Rows>
  81. <Row size="24" band="head" />
  82. <Row size="24" />
  83. </Rows>
  84. <Band id="head">
  85. <Cell text="수납자" />
  86. <Cell col="1" text="퇴원금" />
  87. <Cell col="2" text="퇴원금" />
  88. <Cell col="3" text="중간금" />
  89. <Cell col="4" text="미수금" />
  90. <Cell col="5" text="미수입금" />
  91. <Cell col="6" text="보관금" />
  92. <Cell col="7" text="합계" />
  93. <Cell col="8" text="처리건수|수납자" />
  94. <Cell col="9" text="현금" />
  95. <Cell col="10" text="신용카드" />
  96. <Cell col="11" text="중간금" />
  97. <Cell col="12" text="미수금" />
  98. <Cell col="13" text="미수입금" />
  99. <Cell col="14" text="보관금" />
  100. <Cell col="15" text="합계" />
  101. <Cell col="16" text="처리건수" />
  102. </Band>
  103. <Band id="body">
  104. <Cell text="bind:rcpt_rcptnm" />
  105. <Cell col="1" text="bind:rcpt_outamt_cash" />
  106. <Cell col="2" text="bind:rcpt_outamt_card" />
  107. <Cell col="3" text="bind:rcpt_mid" />
  108. <Cell col="4" text="bind:rcpt_unco" />
  109. <Cell col="5" text="bind:rcpt_uncr" />
  110. <Cell col="6" text="bind:rcpt_keep" />
  111. <Cell col="7" text="bind:rcpt_total" />
  112. <Cell col="8" text="bind:rcpt_cnt" />
  113. </Band>
  114. </Format>
  115. </Formats>
  116. </Grid>
  117. </Layout>
  118. </Layouts>
  119. </Tabpage>
  120. <Tabpage id="case2" selected="true" anchor="default" text="2.수납자별 입원 수입통계">
  121. <Layouts>
  122. <Layout>
  123. <Grid id="grd_rcpt1" binddataset="ds_main_h_rcpt2_rcpt2" position="absolute 5 7 295 648" style="" ontextchanged="switch1_case2_grd_rcpt1_ontextchanged" oncelldblclick="switch1_case2_grd_rcpt1_oncelldblclick">
  124. <Formats>
  125. <Format id="default">
  126. <Columns>
  127. <Column size="109" />
  128. <Column size="60" />
  129. <Column size="117" />
  130. </Columns>
  131. <Rows>
  132. <Row size="24" band="head" />
  133. <Row size="24" />
  134. </Rows>
  135. <Band id="head">
  136. <Cell text="항목" />
  137. <Cell col="1" text="건수" />
  138. <Cell col="2" text="금액" />
  139. </Band>
  140. <Band id="body">
  141. <Cell text="bind:col1" />
  142. <Cell col="1" text="bind:col2" />
  143. <Cell col="2" text="bind:col3" />
  144. </Band>
  145. </Format>
  146. </Formats>
  147. </Grid>
  148. </Layout>
  149. </Layouts>
  150. </Tabpage>
  151. <Tabpage id="case3" anchor="default" />
  152. </Tabpages>
  153. </Tab>
  154. <Button id="btn_rcptid" class="btn_sw" position="absolute 165 65 325 87" style="" text="2.수납자별 입원 수입통계" onclick="btn_rcptid_onclick" />
  155. <Button id="btn_all" class="btn_sw" position="absolute 5 65 165 87" style="" text="1.전체 입원 수입통계" onclick="btn_all_onclick" />
  156. </Layout>
  157. </Layouts>
  158. <Objects>
  159. <Dataset id="ds_main_h_rcpt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  160. <ColumnInfo />
  161. </Dataset>
  162. <Dataset id="ds_main_h_rcptnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  163. <ColumnInfo />
  164. </Dataset>
  165. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  166. <ColumnInfo />
  167. </Dataset>
  168. <Dataset id="ds_main_h_rcpt2_rcpt2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  169. <ColumnInfo>
  170. <Column id="col1" type="STRING" size="256" />
  171. <Column id="col2" type="STRING" size="256" />
  172. <Column id="col3" type="STRING" size="256" />
  173. </ColumnInfo>
  174. <Rows>
  175. <Row>
  176. <Col id="col1"></Col>
  177. <Col id="col2"></Col>
  178. <Col id="col3"></Col>
  179. </Row>
  180. </Rows>
  181. </Dataset>
  182. <Dataset id="ds_main_h_rcpt2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  183. <ColumnInfo />
  184. </Dataset>
  185. <Dataset id="ds_main_h_rcpt_rcpt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  186. <ColumnInfo>
  187. <Column id="rcpt_rcptid" type="STRING" size="256" />
  188. <Column id="rcpt_rcptnm" type="STRING" size="256" />
  189. <Column id="rcpt_outamt_cash" type="STRING" size="256" />
  190. <Column id="rcpt_outamt_card" type="STRING" size="256" />
  191. <Column id="rcpt_mid" type="STRING" size="256" />
  192. <Column id="rcpt_unco" type="STRING" size="256" />
  193. <Column id="rcpt_uncr" type="STRING" size="256" />
  194. <Column id="rcpt_keep" type="STRING" size="256" />
  195. <Column id="rcpt_total" type="STRING" size="256" />
  196. <Column id="rcpt_cnt" type="STRING" size="256" />
  197. </ColumnInfo>
  198. <Rows>
  199. <Row>
  200. <Col id="rcpt_rcptid"></Col>
  201. <Col id="rcpt_rcptnm"></Col>
  202. <Col id="rcpt_outamt_cash"></Col>
  203. <Col id="rcpt_outamt_card"></Col>
  204. <Col id="rcpt_mid"></Col>
  205. <Col id="rcpt_unco"></Col>
  206. <Col id="rcpt_uncr"></Col>
  207. <Col id="rcpt_keep"></Col>
  208. <Col id="rcpt_total"></Col>
  209. <Col id="rcpt_cnt"></Col>
  210. </Row>
  211. </Rows>
  212. </Dataset>
  213. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  214. <ColumnInfo>
  215. <Column id="fromdd" type="STRING" size="256" />
  216. <Column id="tm_from" type="STRING" size="256" />
  217. <Column id="tm_to" type="STRING" size="256" />
  218. <Column id="rcpt_id" type="STRING" size="256" />
  219. <Column id="ordtype" type="STRING" size="256" />
  220. <Column id="rcpt_flag" type="STRING" size="256" />
  221. </ColumnInfo>
  222. <Rows>
  223. <Row>
  224. <Col id="fromdd"></Col>
  225. <Col id="tm_from"></Col>
  226. <Col id="tm_to"></Col>
  227. <Col id="rcpt_id"></Col>
  228. <Col id="ordtype"></Col>
  229. <Col id="rcpt_flag"></Col>
  230. </Row>
  231. </Rows>
  232. </Dataset>
  233. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  234. <ColumnInfo />
  235. </Dataset>
  236. <Dataset id="ds_main_h_rcptnm_rcptnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  237. <ColumnInfo>
  238. <Column id="rcptnm" type="STRING" size="256" />
  239. </ColumnInfo>
  240. <Rows>
  241. <Row>
  242. <Col id="rcptnm"></Col>
  243. </Row>
  244. </Rows>
  245. </Dataset>
  246. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  247. <ColumnInfo />
  248. </Dataset>
  249. <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  250. <ColumnInfo>
  251. <Column id="userid" type="STRING" size="256" />
  252. <Column id="usernm" type="STRING" size="256" />
  253. <Column id="posinstcd" type="STRING" size="256" />
  254. <Column id="posinstnm" type="STRING" size="256" />
  255. <Column id="dutplcecd" type="STRING" size="256" />
  256. <Column id="dutplcenm" type="STRING" size="256" />
  257. <Column id="dutinstnm" type="STRING" size="256" />
  258. </ColumnInfo>
  259. </Dataset>
  260. </Objects>
  261. <Bind>
  262. <BindItem id="item0" compid="group2.input7" propid="value" datasetid="ds_send_data1" columnid="fromdd" />
  263. <BindItem id="item1" compid="group2.input1" propid="value" datasetid="ds_send_data1" columnid="tm_from" />
  264. <BindItem id="item2" compid="group2.input15" propid="value" datasetid="ds_send_data1" columnid="tm_to" />
  265. <BindItem id="item3" compid="group2.input2" propid="value" datasetid="ds_send_data1" columnid="rcpt_id" />
  266. <BindItem id="item4" compid="group2.radio1" propid="value" datasetid="ds_send_data1" columnid="ordtype" />
  267. </Bind>
  268. <Script type="xscript4.0"><![CDATA[function SMPAS00540_onload(obj:Form, e:LoadEventInfo) {
  269. frmf_initForm(obj);
  270. //grdf_initGrid(grd_XXX);
  271. //grdf_setGridSort(grd_XXX);
  272. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  273. makeReportPreview(300,0,893,648,"switch1.case2");
  274. fInitialize();
  275. fGetUserInfo2();
  276. btn_all.selected = "true"; //입원전체수익통계로 기본세팅
  277. model.toggle("switch1.case1");
  278. //exeReportPreview("RPPAS01722", "XMLSTR", "", "", "false", "", "", "", "", "","", "switch1.case2", "", "", "", "1", "75");
  279. }
  280. include '../../.._com_commonweb_js_common.js'
  281. include '../../.._com_commonweb_js_utilHelper.js'
  282. include '../../.._com_commonweb_js_tfHelper.js'
  283. include '../../.._com_commonweb_js_dateHelper.js'
  284. include '../../.._com_commonweb_js_numericHelper.js'
  285. include '../../.._com_commonweb_js_stringHelper.js'
  286. include '../../.._com_basiccodeweb_js_ZBC001.js'
  287. include '../../.._com_zipcodeweb_js_ZBP001.js'
  288. //로그인한 사용자 정보조회
  289. function fGetUserInfo2(){
  290. var sUserInfosS = getUserInfos();
  291. sUserInfosS = sUserInfosS + "|";
  292. //alert("sUserInfosS : " + sUserInfosS);
  293. var UserInfosS_Array = sUserInfosS.split("|");
  294. var userid = UserInfosS_Array[0]; //사용자번호
  295. var usernm = UserInfosS_Array[1]; //사용자이름
  296. var posinstcd = UserInfosS_Array[2]; //소속기관코드
  297. var posinstnm = UserInfosS_Array[3]; //소속기관명
  298. var dutplcecd = UserInfosS_Array[4]; //근무지부서코드
  299. var dutplcenm = UserInfosS_Array[5]; //근무지부서명
  300. var dutinstnm = UserInfosS_Array[7]; //근무지기관명
  301. /*
  302. model.makeNode("ds_hidden_session/" + "userid");
  303. model.makeNode("ds_hidden_session/" + "usernm");
  304. model.makeNode("ds_hidden_session/" + "posinstcd");
  305. model.makeNode("ds_hidden_session/" + "posinstnm");
  306. model.makeNode("ds_hidden_session/" + "dutplcecd");
  307. model.makeNode("ds_hidden_session/" + "dutplcenm");
  308. model.makeNode("ds_hidden_session/" + "dutinstnm");
  309. */
  310. ds_hidden_session.setColumn( 0, "userid",userid);
  311. ds_hidden_session.setColumn( 0, "usernm",usernm);
  312. ds_hidden_session.setColumn( 0, "posinstcd",posinstcd);
  313. ds_hidden_session.setColumn( 0, "posinstnm",posinstnm);
  314. ds_hidden_session.setColumn( 0, "dutplcecd",dutplcecd);
  315. ds_hidden_session.setColumn( 0, "dutplcenm",dutplcenm);
  316. ds_hidden_session.setColumn( 0, "dutinstnm",dutinstnm);
  317. }
  318. function fInitialize() {
  319. ds_main_h_rcpt_rcpt.clearData();
  320. ds_main_h_rcpt2_rcpt2.clearData();
  321. ds_send_data1.setColumn( 0, "fromdd", utlf_getCurrentDate()); // common.js에서 제공하는 함수를 사용하여 오늘 날짜를 구한다.
  322. ds_send_data1.setColumn( 0, "tm_from", "0000");
  323. ds_send_data1.setColumn( 0, "tm_to", "2400");
  324. ds_send_data1.setColumn( 0, "rcpt_id", "");
  325. ds_send_data1.setColumn( 0, "ordtype", "%");
  326. ds_send_data1.setColumn( 0, "rcpt_flag", "");
  327. exeReportPreview("RPPAS00542", "XMLSTR", "", "", "false", "", "", "", "", "","", "switch1.case2", "", "", "", "1", "75");
  328. //model.refresh();
  329. }
  330. function fSearch() {
  331. //입원전체수입통계
  332. if(switch1.selectedIndex == "0") {
  333. // submit("TRPAS00541");
  334. exeReportPreview("RPPAS00541", "XMLSTR", "", "", "false", "", "", "", "", "","", "switch1.case1", "", "", "", "1", "75");
  335. switch1.case1.grd_rcpt.subtotalPosition = "below";
  336. switch1.case1.grd_rcpt.subtotal("sum", -1, 1, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
  337. switch1.case1.grd_rcpt.subtotal("sum", -1, 2, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
  338. switch1.case1.grd_rcpt.subtotal("sum", -1, 3, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
  339. switch1.case1.grd_rcpt.subtotal("sum", -1, 4, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
  340. switch1.case1.grd_rcpt.subtotal("sum", -1, 5, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
  341. switch1.case1.grd_rcpt.subtotal("sum", -1, 6, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
  342. switch1.case1.grd_rcpt.subtotal("sum", -1, 7, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
  343. }
  344. //수납자별입원수입통계
  345. if(switch1.selectedIndex == "1") {
  346. // submit("TRPAS00542");
  347. // submit("TRPAS00543");
  348. switch1.case2.grd_rcpt1.rebuildStyle();
  349. setRowStyle("switch1.case2.grd_rcpt1" , "0" , "총계" , "col1", "equal" ); //총계 색깔 표시
  350. exeReportPreview("RPPAS00542", "XMLSTR", "", "", "false", "", "", "", "", "","", "switch1.case2", "", "", "", "0", "75");
  351. }
  352. //model.refresh();
  353. }
  354. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  355. fSearch();
  356. }
  357. function group2_button95_onclick(obj:Button, e:ClickEventInfo) {
  358. var vToday = new Date();
  359. var tmpYear = vToday.getYear();
  360. var tmpMonth = vToday.getMonth()+1;
  361. var tmpDate = vToday.getDate();
  362. //
  363. // ds_documenttitle.setColumn( 0, "title",document.title);
  364. //
  365. //model.refresh();
  366. // var subjectTitle = ds_documenttitle.getColumn(0, "title");
  367. if(switch1.selectedIndex == "0") {
  368. //엑셀저장 여부(타이틀별)
  369. var fileName = window.fileDialog("save", "", false, "입원전체수입통계"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  370. if (fileName != "")
  371. {
  372. grd_rcpt2.saveExcel(fileName, "입원전체수입통계"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  373. }
  374. }
  375. if(switch1.selectedIndex == "1") {
  376. //엑셀저장 여부(타이틀별)
  377. var fileName = window.fileDialog("save", "", false, "수납자별입원수입통계"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  378. if (fileName != "")
  379. {
  380. switch1.case2.grd_rcpt1.saveExcel(fileName, "수납자별입원수입통계"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  381. }
  382. }
  383. }
  384. function group2_btn_print_onclick(obj:Button, e:ClickEventInfo) {
  385. if(switch1.selectedIndex == "0") {
  386. exeReportPreview("RPPAS00541", "XMLSTR", "", "", "true", "", "", "", "", "","", "switch1.case2", "", "", "", "1", "75");
  387. }
  388. if(switch1.selectedIndex == "1") {
  389. exeReportPreview("RPPAS00542", "XMLSTR", "", "", "true", "", "", "", "", "","", "switch1.case2", "", "", "", "1", "75");
  390. }
  391. }
  392. function btn_init_onclick(obj:Button, e:ClickEventInfo) {
  393. fInitialize();
  394. }
  395. function switch1_case1_grd_rcpt_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  396. if (isDataCell() == true) {
  397. var temp = switch1.case1.grd_rcpt.row -1;
  398. ds_send_data1.setColumn( 0, "rcpt_id", ds_main_h_rcpt_rcpt.getColumn(temp, "rcpt_rcptid")) );
  399. //group2.input2.refresh();
  400. btn_rcptid.dispatch("onclick");
  401. fSearch();
  402. }
  403. }
  404. function switch1_case2_grd_rcpt1_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo) {
  405. //if(switch1.case2.grd_rcpt1.col=="1" && switch1.case2.grd_rcpt1.row=="4" ){
  406. var temp = 0;
  407. for(var a=1; a < 7 ; a++) {
  408. if(a!=7) {
  409. temp = parseInt(ds_main_h_rcpt2_rcpt2.getColumn(a, "col2")) + temp;
  410. }
  411. }
  412. ds_main_h_rcpt2.setColumn( 0, "rcpt2[7]_col2" , temp);
  413. //}
  414. //if(switch1.case2.grd_rcpt1.col=="2" && switch1.case2.grd_rcpt1.row=="4" ){
  415. var temp = 0;
  416. for(var a=1; a < 7 ; a++) {
  417. if(a!=7) {
  418. temp = parseInt(ds_main_h_rcpt2_rcpt2.getColumn(a, "col3")) + temp;
  419. }
  420. }
  421. ds_main_h_rcpt2.setColumn( 0, "rcpt2[7]_col3" , temp);
  422. //}
  423. exeReportPreview("RPPAS00542", "XMLSTR", "", "", "false", "", "", "", "", "","", "switch1.case2", "", "", "", "1", "75");
  424. }
  425. function switch1_case2_grd_rcpt1_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  426. if (isDataCell() == true) {
  427. if(switch1.case2.grd_rcpt1.col=="0" ) {
  428. if(switch1.case2.grd_rcpt1.row != "5" && switch1.case2.grd_rcpt1.row != "9" && switch1.case2.grd_rcpt1.row != "10" ){
  429. ds_send_data1.setColumn( 0, "rcpt_flag", ds_main_h_rcpt2_rcpt2.getColumn(switch1.case2.grd_rcpt1.row, "col1"));
  430. frmf_open("SMPAO00500", "", "ds_send_data1" "-"ds_temp_rcpt_data1"", "", "", "", "", "", "", "", "", "", "M");
  431. }
  432. }
  433. }
  434. }
  435. function btn_rcptid_onclick(obj:Button, e:ClickEventInfo) {
  436. group2.caption1.visible = true;
  437. group2.input2.visible = true;
  438. exeReportPreview("RPPAS00542", "XMLSTR", "", "", "false", "", "", "", "", "","", "switch1.case2", "", "", "", "1", "75");
  439. }
  440. function btn_all_onclick(obj:Button, e:ClickEventInfo) {
  441. group2.caption1.visible = false;
  442. group2.input2.visible = false;
  443. }
  444. ]]></Script>
  445. </Form>
  446. </FDL>