SMPAS00561_선택진료비상세현황.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPAS00561" position="absolute 0 0 1202 779" titletext="선택진료비현황" onload="SMPAS00561_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" position="absolute 0 0 1211 25" style="">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption60" class="tit_1" position="absolute 0 0 215 23" style="align:left middle;font:Dotum,9,bold;" text="선택진료비상세현황"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="group2" position="absolute 0 23 1195 63" style="" class="div_SA" anchor="left top right">
  15. <Layouts>
  16. <Layout>
  17. <Static id="caption2" class="search_name" position="absolute 11 11 65 28" style="" text="일자:"/>
  18. <Static id="caption25" position="absolute 155 14 180 28" style="align:center ;" text="~"/>
  19. <Calendar id="input_frdate" class="input_default" taborder="7" position="absolute 59 10 156 29" style="align:center ;" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true"/>
  20. <Calendar id="input_todate" class="input_default" taborder="7" position="absolute 182 11 280 30" style="align:center ;" anchor="default" dateformat="yyyy-MM-dd" autoselect="true"/>
  21. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="radio1" position="absolute 295 10 440 30" style="">
  22. <Dataset id="innerdataset">
  23. <ColumnInfo>
  24. <Column id="codecolumn"/>
  25. <Column id="datacolumn"/>
  26. </ColumnInfo>
  27. <Rows>
  28. <Row>
  29. <Col id="codecolumn">1</Col>
  30. <Col id="datacolumn">외래</Col>
  31. </Row>
  32. <Row>
  33. <Col id="codecolumn">2</Col>
  34. <Col id="datacolumn">입원</Col>
  35. </Row>
  36. <Row>
  37. <Col id="codecolumn">3</Col>
  38. <Col id="datacolumn">통합</Col>
  39. </Row>
  40. </Rows>
  41. </Dataset>
  42. </Radio>
  43. <Button id="button2" class="btn1" visible="true" position="absolute 1119 10 1175 32" text="조회" onclick="group2_button2_onclick" anchor="top right"/>
  44. <Static id="caption4" class="search_name" position="absolute 458 12 564 29" style="" text="선택의사 사번:"/>
  45. <Static id="caption5" class="search_name" position="absolute 658 12 764 29" style="" text="선택의사명:"/>
  46. <Edit id="ipt_readdrid" position="absolute 565 10 640 30" style="" anchor="default"/>
  47. <Edit id="ipt_readdrnm" position="absolute 750 10 840 30" style="" anchor="default"/>
  48. </Layout>
  49. </Layouts>
  50. </Div>
  51. <Button id="btn_init" class="btn4" position="absolute 1127 752 1195 774" text="초기화" onclick="btn_init_onclick" anchor="right bottom"/>
  52. <Shape id="line1" class="line_10" linetype="horizontal" position="absolute 0 91 489 95" style="" anchor="default"/>
  53. <Grid id="grd_specsum" binddataset="ds_main_specinfo_specsumlist" position="absolute 0 95 489 745" style="" oncelldblclick="grd_specsum_oncelldblclick" autoenter="select" cellsizingtype="col" anchor="left top bottom">
  54. <Formats>
  55. <Format id="default">
  56. <Columns>
  57. <Column size="80"/>
  58. <Column size="50"/>
  59. <Column size="100"/>
  60. <Column size="70"/>
  61. <Column size="55"/>
  62. <Column size="100"/>
  63. <Column size="0"/>
  64. </Columns>
  65. <Rows>
  66. <Row size="24" band="head"/>
  67. <Row size="24"/>
  68. </Rows>
  69. <Band id="head">
  70. <Cell text="일자"/>
  71. <Cell col="1" text="구분"/>
  72. <Cell col="2" text="부서명"/>
  73. <Cell col="3" text="선택의사명"/>
  74. <Cell col="4" text="사번"/>
  75. <Cell col="5" text="선택진료비"/>
  76. </Band>
  77. <Band id="body">
  78. <Cell displaytype="date" text="bind:earnenddd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  79. <Cell col="1" displaytype="combo" style="align:center middle;" text="bind:brateflag" combodataset="ds_init_brateflag" combocodecol="value" combodatacol="label"/>
  80. <Cell col="2" style="align:left top;padding:5 2 3 2;" text="bind:deptnm" wordwrap="word"/>
  81. <Cell col="3" style="align:left middle;" text="bind:readdrnm"/>
  82. <Cell col="4" text="bind:readdrid"/>
  83. <Cell col="5" displaytype="number" text="bind:specamt" mask="#,##0"/>
  84. <Cell col="6" text="bind:dutplcedeptcd"/>
  85. </Band>
  86. </Format>
  87. </Formats>
  88. </Grid>
  89. <Grid id="grd_speclist" binddataset="ds_main_specdtlinfo_speclist" position="absolute 495 95 1195 746" style="" autoenter="select" cellsizingtype="col" anchor="all">
  90. <Formats>
  91. <Format id="default">
  92. <Columns>
  93. <Column size="60"/>
  94. <Column size="60"/>
  95. <Column size="75"/>
  96. <Column size="70"/>
  97. <Column size="100"/>
  98. <Column size="80"/>
  99. <Column size="80"/>
  100. <Column size="90"/>
  101. <Column size="140"/>
  102. <Column size="90"/>
  103. <Column size="140"/>
  104. <Column size="100"/>
  105. </Columns>
  106. <Rows>
  107. <Row size="24" band="head"/>
  108. <Row size="24"/>
  109. </Rows>
  110. <Band id="head">
  111. <Cell text="구분"/>
  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" text="그룹수가코드"/>
  119. <Cell col="8" text="그룹수가명"/>
  120. <Cell col="9" text="싱글수가코드"/>
  121. <Cell col="10" text="싱글수가명"/>
  122. <Cell col="11" text="선택진료료"/>
  123. </Band>
  124. <Band id="body">
  125. <Cell text="bind:ordtype"/>
  126. <Cell col="1" text="bind:calcstat"/>
  127. <Cell col="2" style="align:left middle;" text="bind:pid"/>
  128. <Cell col="3" text="bind:hngnm"/>
  129. <Cell col="4" text="bind:orddeptnm"/>
  130. <Cell col="5" displaytype="date" text="bind:orddd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  131. <Cell col="6" displaytype="date" text="bind:indd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  132. <Cell col="7" text="bind:grupcalcscorcd"/>
  133. <Cell col="8" style="align:center top;padding:3 3 3 3;" text="bind:grupcalcscorcdnm" wordwrap="char"/>
  134. <Cell col="9" text="bind:snglcalcscorcd"/>
  135. <Cell col="10" style="align:center top;padding:3 3 3 3;" text="bind:snglcalcscorcdnm" wordwrap="char"/>
  136. <Cell col="11" displaytype="number" text="bind:specamt" mask="#,##0"/>
  137. </Band>
  138. </Format>
  139. </Formats>
  140. </Grid>
  141. <Shape id="line2" class="line_10" linetype="horizontal" position="absolute 495 91 1195 95" style="" anchor="left top right"/>
  142. <Static id="caption1" class="tit_2" position="absolute 0 74 145 92" style="" text="일자별 선택진료비"/>
  143. <Static id="caption3" class="tit_2" position="absolute 495 74 630 91" style="" text="상세내역"/>
  144. <Button id="button1" class="btn7" position="absolute 409 68 489 90" style="" text="엑셀출력" onclick="button1_onclick"/>
  145. <Button id="button3" class="btn7" position="absolute 1115 68 1195 90" style="" text="엑셀출력" onclick="button3_onclick" anchor="top right"/>
  146. </Layout>
  147. </Layouts>
  148. <Objects>
  149. <Dataset id="ds_main_specdtlinfo_speclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  150. <ColumnInfo/>
  151. </Dataset>
  152. <Dataset id="ds_main_specinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  153. <ColumnInfo/>
  154. </Dataset>
  155. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  156. <ColumnInfo/>
  157. </Dataset>
  158. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  159. <ColumnInfo>
  160. <Column id="init" type="STRING" size="256"/>
  161. </ColumnInfo>
  162. </Dataset>
  163. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  164. <ColumnInfo>
  165. <Column id="fromdd" type="STRING" size="256"/>
  166. <Column id="todd" type="STRING" size="256"/>
  167. <Column id="type" type="STRING" size="256"/>
  168. <Column id="readdrid" type="STRING" size="256"/>
  169. <Column id="readdrnm" type="STRING" size="256"/>
  170. <Column id="brateflag" type="STRING" size="256"/>
  171. <Column id="readdrid1" type="STRING" size="256"/>
  172. <Column id="earnenddd" type="STRING" size="256"/>
  173. </ColumnInfo>
  174. <Rows>
  175. <Row>
  176. <Col id="fromdd"/>
  177. <Col id="todd"/>
  178. <Col id="type"/>
  179. <Col id="readdrid"/>
  180. <Col id="readdrnm"/>
  181. <Col id="brateflag"/>
  182. <Col id="readdrid1"/>
  183. <Col id="earnenddd"/>
  184. </Row>
  185. </Rows>
  186. </Dataset>
  187. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  188. <ColumnInfo>
  189. <Column id="hidden" type="STRING" size="256"/>
  190. </ColumnInfo>
  191. <Rows>
  192. <Row>
  193. <Col id="hidden"/>
  194. </Row>
  195. </Rows>
  196. </Dataset>
  197. <Dataset id="ds_main_specinfo_specsumlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  198. <ColumnInfo>
  199. <Column id="earnenddd" type="STRING" size="256"/>
  200. <Column id="newElement" type="STRING" size="256"/>
  201. </ColumnInfo>
  202. <Rows>
  203. <Row>
  204. <Col id="earnenddd"/>
  205. <Col id="newElement"/>
  206. </Row>
  207. </Rows>
  208. </Dataset>
  209. <Dataset id="ds_init_brateflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  210. <ColumnInfo>
  211. <Column id="label" type="STRING" size="256"/>
  212. <Column id="value" type="STRING" size="256"/>
  213. </ColumnInfo>
  214. <Rows>
  215. <Row>
  216. <Col id="label">외래</Col>
  217. <Col id="value">O</Col>
  218. </Row>
  219. <Row>
  220. <Col id="label">입원</Col>
  221. <Col id="value">I</Col>
  222. </Row>
  223. </Rows>
  224. </Dataset>
  225. <Dataset id="ds_send2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  226. </Objects>
  227. <Bind>
  228. <BindItem id="item0" compid="group2.input_frdate" propid="value" datasetid="ds_send" columnid="fromdd"/>
  229. <BindItem id="item1" compid="group2.input_todate" propid="value" datasetid="ds_send" columnid="todd"/>
  230. <BindItem id="item2" compid="group2.radio1" propid="value" datasetid="ds_send" columnid="type"/>
  231. <BindItem id="item3" compid="group2.ipt_readdrid" propid="value" datasetid="ds_send" columnid="readdrid"/>
  232. <BindItem id="item4" compid="group2.ipt_readdrnm" propid="value" datasetid="ds_send" columnid="readdrnm"/>
  233. </Bind>
  234. <Script type="xscript4.0"><![CDATA[include 'com_commonxp::comm_main.xjs';
  235. include 'pam_pamcomnxp::PAM.xjs';
  236. function SMPAS00561_onload(obj:Form, e:LoadEventInfo) {
  237. frmf_initForm(obj);
  238. grdf_initGrid(this.grd_speclist);
  239. grdf_initGrid(this.grd_specsum);
  240. //grdf_setGridSort(grd_XXX);
  241. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  242. fInitialize();
  243. }
  244. function fInitialize() {
  245. ds_send.setColumn( 0, "fromdd", utlf_getCurrentDate() - 1);
  246. ds_send.setColumn( 0, "todd", utlf_getCurrentDate());
  247. ds_send.setColumn( 0, "type", "1");
  248. ds_send.setColumn( 0, "readdrid", "");
  249. ds_send.setColumn( 0, "readdrnm", "");
  250. ds_main_specinfo_specsumlist.clearData();
  251. ds_main_specdtlinfo_speclist.clearData();
  252. //model.refresh();
  253. }
  254. function group2_button2_onclick(obj:Button, e:ClickEventInfo) {
  255. ds_main_specdtlinfo_speclist.clearData();
  256. //submit("TRPAS00561");
  257. var oParam = {};
  258. oParam.id = "TRPAS00561";
  259. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  260. oParam.method = "reqGetSpecSumList";
  261. oParam.inds = "req=ds_send";
  262. oParam.outds = "ds_main_specinfo_specsumlist=specsumlist";
  263. oParam.async = false;
  264. tranf_submit(oParam);
  265. }
  266. function btn_init_onclick(obj:Button, e:ClickEventInfo) {
  267. fInitialize();
  268. }
  269. function grd_specsum_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  270. if(e.row >= 0 && e.col >= 0){
  271. var row = ds_main_specinfo_specsumlist.rowposition;
  272. ds_send2.copyData(ds_send);
  273. ds_send2.setColumn( 0, "readdrid", ds_main_specinfo_specsumlist.getColumn( row, "readdrid") );
  274. ds_send2.setColumn( 0, "earnenddd", ds_main_specinfo_specsumlist.getColumn( row, "earnenddd") );
  275. ds_send2.setColumn( 0, "brateflag", ds_main_specinfo_specsumlist.getColumn( row, "brateflag") );
  276. //submit("TRPAS00562");
  277. var oParam = {};
  278. oParam.id = "TRPAS00562";
  279. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  280. oParam.method = "reqGetDrSpecList";
  281. oParam.inds = "req=ds_send2";
  282. oParam.outds = "ds_main_specdtlinfo_speclist=speclist";
  283. oParam.async = false;
  284. tranf_submit(oParam);
  285. }
  286. }
  287. function button1_onclick(obj:Button, e:ClickEventInfo) {
  288. // var fileName = window.fileDialog("save", ",", false, "일자별 선택진료비", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  289. //
  290. // if (fileName != "")
  291. // {
  292. //grd_specsum.saveExcel(fileName, "SheetName", false, false, "", "", "false");
  293. grdf_exportExcel(grd_specsum, "Sheet1", "일자별 선택진료비", false, "" , 'user' , true);
  294. // }
  295. }
  296. function button3_onclick(obj:Button, e:ClickEventInfo) {
  297. // var fileName = window.fileDialog("save", ",", false, "선택진료비상세내역", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  298. //
  299. // if (fileName != "")
  300. // {
  301. //grd_speclist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
  302. grdf_exportExcel(grd_speclist, "Sheet1", "선택진료비상세내역", false, "" , 'user' , true);
  303. // }
  304. }
  305. ]]></Script>
  306. </Form>
  307. </FDL>