SMPAS00600_토요진료실적.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPAS00600" position="absolute 0 0 1211 784" titletext="토요진료실적" onload="SMPAS00600_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 183 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 10 12 75 29" style="" text="기간 :" anchor="default"/>
  18. <Shape id="line2" class="line_4" linetype="vertical" position="absolute 1119 10 1122 32" style="border: solid #ffe4bb #ffe4bb;" anchor="top right"/>
  19. <Button id="btn_search" class="btn1" position="absolute 1126 10 1182 32" style="" text="조회" onclick="group2_btn_search_onclick" anchor="top right"/>
  20. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="combo1" visible="false" position="absolute 760 11 860 30" style="" anchor="default">
  21. <Dataset id="innerdataset">
  22. <ColumnInfo>
  23. <Column id="codecolumn"/>
  24. <Column id="datacolumn"/>
  25. </ColumnInfo>
  26. <Rows>
  27. <Row>
  28. <Col id="codecolumn">ALL</Col>
  29. <Col id="datacolumn">전체</Col>
  30. </Row>
  31. <Row>
  32. <Col id="codecolumn">IN</Col>
  33. <Col id="datacolumn">입원</Col>
  34. </Row>
  35. <Row>
  36. <Col id="codecolumn">OUT</Col>
  37. <Col id="datacolumn">외래</Col>
  38. </Row>
  39. </Rows>
  40. </Dataset>
  41. </Combo>
  42. <Button id="button1" class="btn6" visible="false" position="absolute 967 10 1023 32" style="" text="출력" onclick="group2_button1_onclick" anchor="top right"/>
  43. <Shape id="line3" class="line_4" linetype="vertical" position="absolute 1027 10 1030 32" style="border: solid #ffe4bb #ffe4bb;" anchor="top right"/>
  44. <Button id="button2" class="btn7" position="absolute 1033 10 1113 32" style="" text="엑셀저장" onclick="group2_button2_onclick" anchor="top right"/>
  45. <Static id="caption1" class="search_name" position="absolute 665 13 755 30" style="" text="진료구분 :" visible="false" anchor="default"/>
  46. <Calendar id="ipt_fromdd" class="input_default" taborder="7" position="absolute 75 11 170 30" style="align:center ;" anchor="default" onkeydown="group2_ipt_fromdd_onkeydown" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true"/>
  47. <Calendar id="ipt_todd" class="input_default" taborder="7" position="absolute 195 11 295 30" style="align:center ;" anchor="default" onkeydown="group2_ipt_todd_onkeydown" dateformat="yyyy-MM-dd" autoselect="true"/>
  48. <Static id="caption3" position="absolute 173 14 193 29" style="align:center ;" text="~" anchor="default"/>
  49. <Static id="caption4" class="search_name" position="absolute 345 12 425 29" style="" text="진료과 :" anchor="default"/>
  50. <Combo innerdataset="ds_hidden_init_orddeptcd" datacolumn="nm" codecolumn="cd" columncount="-1" rowcount="-1" id="cmb_orddeptcd" position="absolute 425 11 570 30" style="" anchor="default"/>
  51. </Layout>
  52. </Layouts>
  53. </Div>
  54. <Grid id="datagrid1" binddataset="ds_main_h_opmi_opmi" position="absolute 0 78 1195 778" style="" ontextchanged="datagrid1_ontextchanged" autoenter="none" anchor="all">
  55. <Formats>
  56. <Format id="default">
  57. <Columns>
  58. <Column size="35"/>
  59. <Column size="80"/>
  60. <Column size="120"/>
  61. <Column size="80"/>
  62. <Column size="80"/>
  63. <Column size="80"/>
  64. <Column size="130"/>
  65. <Column size="80"/>
  66. <Column size="80"/>
  67. <Column size="130"/>
  68. <Column size="130"/>
  69. </Columns>
  70. <Rows>
  71. <Row size="24" band="head"/>
  72. <Row size="24"/>
  73. <Row size="24" band="summ"/>
  74. </Rows>
  75. <Band id="head">
  76. <Cell/>
  77. <Cell col="1" text="진료일자"/>
  78. <Cell col="2" text="진료과"/>
  79. <Cell col="3" text="진료의사"/>
  80. <Cell col="4" text="구분"/>
  81. <Cell col="5" text="진료건수"/>
  82. <Cell col="6" text="금액"/>
  83. <Cell col="7" text="토요근무"/>
  84. <Cell col="8" text="적용"/>
  85. <Cell col="9" text="단가"/>
  86. <Cell col="10" text="지급액"/>
  87. <Cell col="11"/>
  88. </Band>
  89. <Band id="body">
  90. <Cell celltype="head" expr="currow+ 1"/>
  91. <Cell col="1" displaytype="expr:getRowLevel(currow) == 1 ? 'TEXT' : 'date'" style="background:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');font:EXPR(getRowLevel(currow)==1 ? 'arial,9,bold' : '');" text="bind:orddd" subsumtext="합계" mask="expr:getRowLevel(currow) == 1 ? '' : 'yyyy-MM-dd'" suppress="0" suppressalign="first" calendardisplaynulltype="nulltext"/>
  92. <Cell col="2" style="align:left middle;background:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');font:EXPR(getRowLevel(currow)==1 ? 'arial,9,bold' : '');" text="bind:orddeptcdnm"/>
  93. <Cell col="3" style="align:left middle;background:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');font:EXPR(getRowLevel(currow)==1 ? 'arial,9,bold' : '');" text="bind:orddridnm"/>
  94. <Cell col="4" style="align:left middle;background:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');font:EXPR(getRowLevel(currow)==1 ? 'arial,9,bold' : '');" text="bind:jobposcd"/>
  95. <Cell col="5" displaytype="number" style="background:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');font:EXPR(getRowLevel(currow)==1 ? 'arial,9,bold' : '');" text="bind:cnt"/>
  96. <Cell col="6" displaytype="number" style="background:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');font:EXPR(getRowLevel(currow)==1 ? 'arial,9,bold' : '');" text="bind:rcptamt"/>
  97. <Cell col="7" style="background:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');font:EXPR(getRowLevel(currow)==1 ? 'arial,9,bold' : '');" text="bind:satord"/>
  98. <Cell col="8" displaytype="number" edittype="masknumber" style="background:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');font:EXPR(getRowLevel(currow)==1 ? 'arial,9,bold' : '');" text="bind:apply"/>
  99. <Cell col="9" displaytype="number" edittype="masknumber" style="background:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');font:EXPR(getRowLevel(currow)==1 ? 'arial,9,bold' : '');" text="bind:costamt"/>
  100. <Cell col="10" displaytype="number" edittype="masknumber" style="background:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');background2:EXPR(getRowLevel(currow)==1 ? '#ccffcc' : 'white');font:EXPR(getRowLevel(currow)==1 ? 'arial,9,bold' : '');" text="bind:payment"/>
  101. </Band>
  102. <Band id="summary">
  103. <Cell style="background:#99ccffff;background2:#99ccffff;"/>
  104. <Cell col="1" style="background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="총합계"/>
  105. <Cell col="2" style="background:#99ccffff;background2:#99ccffff;font:arial,9,bold;"/>
  106. <Cell col="3" style="background:#99ccffff;background2:#99ccffff;font:arial,9,bold;"/>
  107. <Cell col="4" style="background:#99ccffff;background2:#99ccffff;font:arial,9,bold;"/>
  108. <Cell col="5" displaytype="number" style="background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" expr="getSum('cnt')"/>
  109. <Cell col="6" displaytype="number" style="background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" expr="getSum('rcptamt')"/>
  110. <Cell col="7" style="background:#99ccffff;background2:#99ccffff;font:arial,9,bold;"/>
  111. <Cell col="8" style="background:#99ccffff;background2:#99ccffff;font:arial,9,bold;"/>
  112. <Cell col="9" displaytype="number" style="background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" expr="getSum('costamt')"/>
  113. <Cell col="10" displaytype="number" style="background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" expr="getSum('payment')"/>
  114. </Band>
  115. </Format>
  116. </Formats>
  117. </Grid>
  118. </Layout>
  119. </Layouts>
  120. <Objects>
  121. <Dataset id="ds_main_h_opmi" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  122. <ColumnInfo/>
  123. </Dataset>
  124. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  125. <ColumnInfo/>
  126. </Dataset>
  127. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  128. <ColumnInfo>
  129. <Column id="fromdd" type="STRING" size="256"/>
  130. <Column id="todd" type="STRING" size="256"/>
  131. <Column id="ioflag" type="STRING" size="256"/>
  132. <Column id="orddeptcd" type="STRING" size="256"/>
  133. </ColumnInfo>
  134. <Rows>
  135. <Row>
  136. <Col id="fromdd"/>
  137. <Col id="todd"/>
  138. <Col id="ioflag"/>
  139. <Col id="orddeptcd"/>
  140. </Row>
  141. </Rows>
  142. </Dataset>
  143. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  144. <ColumnInfo>
  145. <Column id="init" type="STRING" size="256"/>
  146. </ColumnInfo>
  147. </Dataset>
  148. <Dataset id="ds_main_h_opmi_opmi" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  149. <ColumnInfo>
  150. <Column id="orddd" type="STRING" size="256" prop="TEXT" sumtext="합계"/>
  151. <Column id="orddeptcdnm" type="STRING" size="256"/>
  152. <Column id="orddridnm" type="STRING" size="256"/>
  153. <Column id="jobposcd" type="STRING" size="256"/>
  154. <Column id="cnt" type="BIGDECIMAL" size="256" prop="SUM"/>
  155. <Column id="rcptamt" type="BIGDECIMAL" size="256" prop="SUM"/>
  156. <Column id="satord" type="STRING" size="256"/>
  157. <Column id="apply" type="STRING" size="256"/>
  158. <Column id="costamt" type="BIGDECIMAL" size="256" prop="SUM"/>
  159. <Column id="payment" type="BIGDECIMAL" size="256" prop="SUM"/>
  160. </ColumnInfo>
  161. <Rows>
  162. <Row>
  163. <Col id="orddd"/>
  164. <Col id="orddeptcdnm"/>
  165. <Col id="orddridnm"/>
  166. <Col id="jobposcd"/>
  167. <Col id="cnt"/>
  168. <Col id="rcptamt"/>
  169. <Col id="satord"/>
  170. <Col id="apply"/>
  171. <Col id="costamt"/>
  172. <Col id="payment"/>
  173. </Row>
  174. </Rows>
  175. </Dataset>
  176. <Dataset id="ds_hidden_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  177. <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  178. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  179. <ColumnInfo/>
  180. </Dataset>
  181. </Objects>
  182. <Bind>
  183. <BindItem id="item0" compid="group2.combo1" propid="value" datasetid="ds_send" columnid="ioflag"/>
  184. <BindItem id="item1" compid="group2.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  185. <BindItem id="item2" compid="group2.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  186. <BindItem id="item3" compid="group2.cmb_orddeptcd" propid="value" datasetid="ds_send" columnid="orddeptcd"/>
  187. </Bind>
  188. <Script type="xscript4.0"><![CDATA[include 'com_commonxp::comm_main.xjs';
  189. include 'com_basiccodexp::ZBC001.xjs';
  190. include 'com_zipcodexp::ZBP001.xjs';
  191. function SMPAS00600_onload(obj:Form, e:LoadEventInfo) {
  192. frmf_initForm(obj);
  193. grdf_initGrid(this.datagrid1);
  194. //grdf_setGridSort(grd_XXX);
  195. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  196. dsf_makeValue(ds_init, "sess_posinstcd", "string", sysf_getUserInfo("dutplceinstcd"));
  197. var oParam = {};
  198. oParam.id = "TRPAMCOM01";
  199. oParam.service = "pamcomnapp.PamComn";
  200. oParam.method = "reqGetComCD";
  201. oParam.inds = "req=ds_init";
  202. oParam.outds = "ds_init_disccd=disccd ds_init_insukind=insukind ds_init_suppkind=suppkind ds_init_orddeptcd=orddeptcd ds_init_orddrid=orddrid ds_init_reducd=reducd ds_init_uncocd=uncocd ds_init_proccd=proccd ds_init_subjno=subjno ds_init_rcptflag=rcptflag";
  203. oParam.async = false;
  204. //oParam.callback = "cf_TRPAMCOM01";
  205. tranf_submit(oParam);
  206. ds_hidden_init_orddeptcd.copyData(ds_init_orddeptcd);
  207. frmf_addComboItem("group2.cmb_orddeptcd","전체","%","above");
  208. ds_send.setColumn( 0, "orddeptcd" , "%");
  209. ds_send.setColumn( 0, "fromdd" , utlf_getCurrentDate());
  210. ds_send.setColumn( 0, "todd" , utlf_getCurrentDate());
  211. //ds_send.setColumn( 0, "fromdd" , "20090720");
  212. //ds_send.setColumn( 0, "todd" , "20090720");
  213. //model.refresh();
  214. }
  215. function fSubTotal() {
  216. //datagrid1.rebuild();
  217. // 이후에 추가 해야 함.
  218. // datagrid1.subtotalposition = "below";
  219. // datagrid1.multitotals = true;
  220. //getRowLevel(currow)==1 ? '#ccffcc' : 'white'
  221. // datagrid1.subtotal("sum", 1, 5 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ccffcc; color:#0000; font-weight:bold; ", 1, "합계 ", false);
  222. // datagrid1.subtotal("sum", 1, 6 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ccffcc; color:#0000; font-weight:bold; ", 1, "합계 ", false);
  223. // datagrid1.subtotal("sum", 1, 9 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ccffcc; color:#0000; font-weight:bold; ", 1, "합계 ", false);
  224. // datagrid1.subtotal("sum", 1, 10, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ccffcc; color:#0000; font-weight:bold; ", 1, "합계 ", false);
  225. //
  226. // datagrid1.subtotal("sum", -1, 5 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#99ccff; color:#0000; font-weight:bold; ", 1, "총합계 ", false);
  227. // datagrid1.subtotal("sum", -1, 6 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#99ccff; color:#0000; font-weight:bold; ", 1, "총합계 ", false);
  228. // datagrid1.subtotal("sum", -1, 9 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#99ccff; color:#0000; font-weight:bold; ", 1, "총합계 ", false);
  229. // datagrid1.subtotal("sum", -1, 10, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#99ccff; color:#0000; font-weight:bold; ", 1, "총합계 ", false);
  230. }
  231. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  232. var fromdd = ds_send.getColumn(0, "fromdd");
  233. var todd = ds_send.getColumn(0, "todd");
  234. var tempdd = todd.toDate().getAddDate(-62,"D").getDateFormat("YYYYMMDD");
  235. if(fromdd < tempdd) {
  236. sysf_messageBox("60일 이내만 조회 가능합니다.","I999","");
  237. return;
  238. }
  239. //submit("TRPAS00600");
  240. var oParam = {};
  241. oParam.id = "TRPAS00600";
  242. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  243. oParam.method = "reqGetSatDayEarn";
  244. oParam.inds = "req=ds_send";
  245. oParam.outds = "ds_main_h_opmi_opmi=opmi";
  246. oParam.async = false;
  247. tranf_submit(oParam);
  248. ds_main_h_opmi_opmi.keystring = "G:orddd";
  249. ds_main_h_opmi_opmi.reversesubsum = "false";
  250. fSubTotal();
  251. }
  252. function group2_button1_onclick(obj:Button, e:ClickEventInfo) {
  253. }
  254. function group2_button2_onclick(obj:Button, e:ClickEventInfo) {
  255. // var fileName = window.fileDialog("save", ",", false, "토요진료실적" + utlf_getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  256. // datagrid1.saveExcel(fileName, "sheet");
  257. // window.exec(fileName);
  258. grdf_exportExcel(datagrid1, "토요진료실적" + utlf_getCurrentDate(),"Sheet1", true, "" , 'user' , true);
  259. }
  260. function group2_ipt_fromdd_onkeydown(obj:Calendar, e:KeyEventInfo) {
  261. }
  262. function group2_ipt_todd_onkeydown(obj:Calendar, e:KeyEventInfo) {
  263. }
  264. function datagrid1_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo) {
  265. var payment = 0;
  266. var cnt = datagrid1.rows -1;
  267. for(var a=1; a < datagrid1.rows; a++) {
  268. payment = parseInt(ds_main_h_opmi_opmi.getColumn(a, "apply")) * parseInt(ds_main_h_opmi_opmi.getColumn(a, "costamt")) ;
  269. if(ds_main_h_opmi_opmi.getColumn(a, "orddd") =="") continue;
  270. ds_main_h_opmi.setColumn( a , "payment" , payment);
  271. }
  272. fSubTotal();
  273. }
  274. ]]></Script>
  275. </Form>
  276. </FDL>