SMAHS03000_초진재진현황.xfdl 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHS03000" position="absolute 0 0 1201 791" titletext="월별초진재진현황" oninit="SMAHS03000_oninit" onload="SMAHS03000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 1195 65" id="group2" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static text="기간 ~" position="absolute 23 9 237 34" id="caption2" class="search_name" anchor="default"/>
  11. <Shape position="absolute 1121 9 1127 31" linetype="vertical" id="line2" class="line_4" anchor="top right"/>
  12. <Calendar position="absolute 66 11 186 30" id="ipt_ftodd" class="input_default" taborder="1" mask="yyyy-mm" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" style="align:center middle;" onchanged="group2_ipt_ftodd_onchanged"/>
  13. <Calendar position="absolute 211 11 331 30" id="ipt_fromdd" class="input_default" taborder="2" mask="yyyy-mm" anchor="default" dateformat="yyyy-MM" editformat="yyyy-MM" style="align:center middle;" onchanged="group2_ipt_fromdd_onchanged"/>
  14. <Button position="absolute 978 9 1058 31" id="btn_excelsave" class="btn7" text="엑셀저장" anchor="top right" onclick="group2_btn_excelsave_onclick"/>
  15. <Button position="absolute 1062 9 1118 31" id="btn_prt" class="btn6" text="출력" anchor="top right" onclick="group2_btn_prt_onclick"/>
  16. <Button position="absolute 1131 9 1187 31" id="btn_search" class="btn1" taborder="3" text="조회" anchor="top right" onclick="group2_btn_search_onclick"/>
  17. </Layout>
  18. </Layouts>
  19. </Div>
  20. <Grid position="absolute 0 79 1195 786" align="align:center middle;" id="grd_earncntlist" binddataset="ds_main_earncntlist_item" autoenter="select" cellsizingtype="col" anchor="all">
  21. <Formats>
  22. <Format id="default">
  23. <Columns>
  24. <Column size="29"/>
  25. <Column size="130"/>
  26. <Column size="100"/>
  27. <Column size="100"/>
  28. <Column size="100"/>
  29. </Columns>
  30. <Rows>
  31. <Row size="24" band="head"/>
  32. <Row size="24"/>
  33. <Row size="24" band="summ"/>
  34. </Rows>
  35. <Band id="head">
  36. <Cell/>
  37. <Cell col="1" text="일자"/>
  38. <Cell col="2" text="초진"/>
  39. <Cell col="3" text="재진"/>
  40. <Cell col="4" text="합계"/>
  41. </Band>
  42. <Band id="body">
  43. <Cell celltype="head" expr="currow+1"/>
  44. <Cell col="1" displaytype="date" text="bind:hopedd" mask="yyyy-MM" calendardisplaynulltype="nulltext"/>
  45. <Cell col="2" displaytype="number" text="bind:cnt1"/>
  46. <Cell col="3" displaytype="number" text="bind:cnt2"/>
  47. <Cell col="4" displaytype="number" text="bind:cnt3"/>
  48. </Band>
  49. <Band id="summary">
  50. <Cell style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;"/>
  51. <Cell col="1" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="총계"/>
  52. <Cell col="2" displaytype="number" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="expr:getSum('cnt1')"/>
  53. <Cell col="3" displaytype="number" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="expr:getSum('cnt2')"/>
  54. <Cell col="4" displaytype="number" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="expr:getSum('cnt3')"/>
  55. </Band>
  56. </Format>
  57. </Formats>
  58. </Grid>
  59. <Static id="caption60" text="월별초진재진현황" class="tit_1" position="absolute 0 0 246 25"/>
  60. </Layout>
  61. </Layouts>
  62. <Objects>
  63. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  64. <ColumnInfo>
  65. <Column id="healexamflag" type="STRING" size="256"/>
  66. <Column id="srchtodd" type="STRING" size="256"/>
  67. <Column id="srchfromdd" type="STRING" size="256"/>
  68. </ColumnInfo>
  69. <Rows>
  70. <Row>
  71. <Col id="healexamflag"/>
  72. <Col id="srchtodd"/>
  73. <Col id="srchfromdd"/>
  74. </Row>
  75. </Rows>
  76. </Dataset>
  77. <Dataset id="ds_main_earncntlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  78. <ColumnInfo>
  79. <Column id="hopedd" type="STRING" size="256" sumtext="진료일자"/>
  80. <Column id="cnt1" type="STRING" size="256" sumtext="초진"/>
  81. <Column id="cnt2" type="STRING" size="256" sumtext="재진"/>
  82. <Column id="cnt3" type="STRING" size="256" sumtext="합계"/>
  83. </ColumnInfo>
  84. </Dataset>
  85. </Objects>
  86. <Bind>
  87. <BindItem id="item0" compid="group2.ipt_ftodd" propid="value" datasetid="ds_send" columnid="srchtodd"/>
  88. <BindItem id="item1" compid="group2.ipt_fromdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
  89. </Bind>
  90. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  91. * System Name :
  92. * Job Name :
  93. * Creator :
  94. * Make Date : 2015-11-13
  95. * Description :
  96. *---------------------------------------------------------------------------------------
  97. * Modify Date Modifier Modify Description
  98. *---------------------------------------------------------------------------------------
  99. * 2015-11-13 Live Converter TF->XP
  100. *
  101. *---------------------------------------------------------------------------------------
  102. ****************************************************************************************/
  103. include "com_commonxp::comm_main.xjs";
  104. function SMAHS03000_oninit(obj:Form, e:InitEventInfo)
  105. {
  106. frmf_initForm(obj);
  107. }
  108. function SMAHS03000_onload(obj:Form, e:LoadEventInfo)
  109. {
  110. grdf_initGrid(grd_earncntlist);
  111. ds_send.setColumn(0, "srchtodd", String(utlf_getCurrentDate()).substring(0, 6));
  112. ds_send.setColumn(0, "srchfromdd", String(utlf_getCurrentDate()).substring(0, 6));
  113. group2.ipt_ftodd.setFocus();
  114. }
  115. function group2_ipt_ftodd_onchanged(obj:Calendar, e:ChangeEventInfo)
  116. {
  117. ds_send.setColumn(0, "srchtodd", String(obj.value).substring(0, 6));
  118. }
  119. function group2_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  120. {
  121. ds_send.setColumn(0, "srchfromdd", String(obj.value).substring(0, 6));
  122. }
  123. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  124. {
  125. ds_send.setColumn(0, "healexamflag", "C");
  126. var oParam = {};
  127. oParam.id = "TRAHS03000";
  128. oParam.service = "healexamstatapp.StatRef";
  129. oParam.method = "reqGetEarnCnt";
  130. oParam.inds = "req=ds_send";
  131. oParam.outds = "ds_main_earncntlist_item=item";
  132. oParam.async = false;
  133. //oParam.callback = "cf_TRAHS03000";
  134. tranf_submit(oParam);
  135. }
  136. function group2_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  137. {
  138. grdf_exportExcel(grd_earncntlist, "excel", "SheetName", "true", "", "");
  139. }
  140. function group2_btn_prt_onclick(obj:Button, e:ClickEventInfo)
  141. {
  142. var objDOM = rptf_createDOM();
  143. rptf_setNodeListToDOM(objDOM, "/root/main/earncntlist/item", ds_main_earncntlist_item);
  144. var objParam = new Object();
  145. objParam.xml_data_XML1 = objDOM.documentElement.source;
  146. var option = "";
  147. rptf_exeReportPreview30(["RPAHS03000"],[objParam], option);
  148. }
  149. ]]></Script>
  150. </Form>
  151. </FDL>