1、费用统计模板调整

dhzzyy
lsm 10 months ago
parent 9584a0f7b4
commit a3da93cda9
  1. 4
      PEIS/App.config
  2. 3
      PEIS/PEIS.csproj
  3. 117
      PEIS/ReportFiles/CostCount.frx

@ -15,9 +15,9 @@
<!-- <add name="ConnString" connectionString="10C598E364BCAFCF71617738597417B368D095FA1A37D76CC4755C411E5B6E792E0D4950863434F9B242AA9F134426A2922569235322E2342030D4AE0170168D8F1BC9B44D56F367DE9614CDCCBB6CDAEF20B4992B3758AD9FF39A400D08CC48"/> --> <!-- <add name="ConnString" connectionString="10C598E364BCAFCF71617738597417B368D095FA1A37D76CC4755C411E5B6E792E0D4950863434F9B242AA9F134426A2922569235322E2342030D4AE0170168D8F1BC9B44D56F367DE9614CDCCBB6CDAEF20B4992B3758AD9FF39A400D08CC48"/> -->
<!-- 德宏州中医院 peisdb--> <!-- 德宏州中医院 peisdb-->
<!-- <add name="ConnString" connectionString="10C598E364BCAFCF71617738597417B368D095FA1A37D76CC4755C411E5B6E792E0D4950863434F9B242AA9F134426A27810AC34D6EDC4F6ABFC4BE6027BB990824DB7092BFDA15709314FEBC2C3C9E312752DFBDF33BC1BF3C0FC84EAA83A4F"/> --> <add name="ConnString" connectionString="10C598E364BCAFCF71617738597417B368D095FA1A37D76CC4755C411E5B6E792E0D4950863434F9B242AA9F134426A27810AC34D6EDC4F6ABFC4BE6027BB990824DB7092BFDA15709314FEBC2C3C9E312752DFBDF33BC1BF3C0FC84EAA83A4F"/>
<!-- 192.168.12.188 --> <!-- 192.168.12.188 -->
<add name="ConnString" connectionString="10C598E364BCAFCFDC6960B18CB026C75BD46245729DFD1D3D78E221B3E0300765B697A8C044694AA8A0575480464D83E79206ED689FE4A1CE0C479D02BC880B7FDEDDC464EE6B74BDB082FD5B1B9EFC"/> <!--<add name="ConnString" connectionString="10C598E364BCAFCFDC6960B18CB026C75BD46245729DFD1D3D78E221B3E0300765B697A8C044694AA8A0575480464D83E79206ED689FE4A1CE0C479D02BC880B7FDEDDC464EE6B74BDB082FD5B1B9EFC"/>-->
<!-- 盈江妇幼YJFY --> <!-- 盈江妇幼YJFY -->
<!--<add name="ConnString" connectionString="10C598E364BCAFCF5A016EA6C7463FAC7D75379F63924F4F82C1749BDA88D9414EC0303E1ECC3E76895E07FCFC13332D1D79643A2AD3AA60507FD3EAF9A41761B30F4FDE900F983F1FE6ED6F0245E5BF8BFCFC5F0A2C03E4"/>--> <!--<add name="ConnString" connectionString="10C598E364BCAFCF5A016EA6C7463FAC7D75379F63924F4F82C1749BDA88D9414EC0303E1ECC3E76895E07FCFC13332D1D79643A2AD3AA60507FD3EAF9A41761B30F4FDE900F983F1FE6ED6F0245E5BF8BFCFC5F0A2C03E4"/>-->
<!-- 芒市妇幼MSFY --> <!-- 芒市妇幼MSFY -->

@ -699,9 +699,6 @@
<None Include="ReportFiles\TCheckCost.frx"> <None Include="ReportFiles\TCheckCost.frx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None> </None>
<None Include="ReportFiles\体检基本信息登记表.xls">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Resources\Excel.png" /> <None Include="Resources\Excel.png" />
<None Include="Resources\excelDown.png" /> <None Include="Resources\excelDown.png" />
<None Include="Resources\menuItem.png" /> <None Include="Resources\menuItem.png" />

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="06/27/2023 00:02:11" ReportInfo.Modified="07/12/2024 16:33:36" ReportInfo.CreatorVersion="2022.1.0.0"> <Report ScriptLanguage="CSharp" ReportInfo.Created="06/27/2023 00:02:11" ReportInfo.Modified="07/15/2024 13:22:11" ReportInfo.CreatorVersion="2022.1.0.0">
<ScriptText>using System; <ScriptText>using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
@ -19,45 +19,80 @@ namespace FastReport
public class ReportScript public class ReportScript
{ {
public double totalSum = 0; public double itemTotal = 0;
public double totalHisSum = 0; public double itemPrice = 0;
public double deptSum = 0; public double deptTotal= 0;
public double deptHisSum = 0; public double deptPrice = 0;
public string deptName = &quot;科室&quot;; public string deptName = &quot;科室&quot;;
public string feeItem = &quot;项目&quot;;
private void CostCount_AfterData(object sender, EventArgs e) private void CostCount_AfterData(object sender, EventArgs e)
{ {
DataSourceBase rowData = Report.GetDataSource(&quot;P&quot;); DataSourceBase rowData = Report.GetDataSource(&quot;P&quot;);
// if(deptName.Equals(rowData[&quot;DeptName&quot;].ToString())) #region 科室
// { if(deptName.Equals(rowData[&quot;DeptName&quot;].ToString()))
// deptSum += Convert.ToDouble(rowData[&quot;SettleFee&quot;].ToString()); {
// deptHisSum += Convert.ToDouble(rowData[&quot;Fee&quot;].ToString()); deptTotal += Convert.ToDouble(rowData[&quot;Quantity&quot;].ToString());
// deptPrice += Convert.ToDouble(rowData[&quot;Fee&quot;].ToString());
// Cell38.Text = deptSum.ToString();
// Cell50.Text = deptHisSum.ToString(); Cell181.Text = deptTotal.ToString();
// }else{ Cell186.Text = deptPrice.ToString();
// }else{
// if(deptName == &quot;科室&quot;){
// if(deptName == &quot;科室&quot;){
// deptSum = Convert.ToDouble(rowData[&quot;SettleFee&quot;].ToString());
// deptHisSum = Convert.ToDouble(rowData[&quot;Fee&quot;].ToString()); deptTotal = Convert.ToDouble(rowData[&quot;Quantity&quot;].ToString());
// deptPrice = Convert.ToDouble(rowData[&quot;Fee&quot;].ToString());
// Cell38.Text = rowData[&quot;SettleFee&quot;].ToString();
// Cell50.Text = rowData[&quot;Fee&quot;].ToString(); Cell181.Text = deptTotal.ToString();
// Cell186.Text = deptPrice.ToString();
// }else{
// }else{
// deptSum = Convert.ToDouble(rowData[&quot;SettleFee&quot;].ToString());
// deptHisSum = Convert.ToDouble(rowData[&quot;Fee&quot;].ToString()); deptTotal = Convert.ToDouble(rowData[&quot;Quantity&quot;].ToString());
// deptPrice = Convert.ToDouble(rowData[&quot;Fee&quot;].ToString());
// Cell38.Text = deptSum.ToString();
// Cell50.Text = deptHisSum.ToString(); Cell181.Text = deptTotal.ToString();
// } Cell186.Text = deptPrice.ToString();
// }
// deptName = rowData[&quot;DeptName&quot;].ToString();
// } deptName = rowData[&quot;DeptName&quot;].ToString();
}
#endregion
#region 项目
if(feeItem.Equals(rowData[&quot;FeeItemName&quot;].ToString()))
{
itemTotal += Convert.ToDouble(rowData[&quot;Quantity&quot;].ToString());
itemPrice += Convert.ToDouble(rowData[&quot;Fee&quot;].ToString());
Cell172.Text = itemTotal.ToString();
Cell177.Text = itemPrice.ToString();
}else{
if(feeItem == &quot;项目&quot;){
itemTotal = Convert.ToDouble(rowData[&quot;Quantity&quot;].ToString());
itemPrice = Convert.ToDouble(rowData[&quot;Fee&quot;].ToString());
Cell172.Text = itemTotal.ToString();
Cell177.Text = itemPrice.ToString();
}else{
itemTotal = Convert.ToDouble(rowData[&quot;Quantity&quot;].ToString());
itemPrice = Convert.ToDouble(rowData[&quot;Fee&quot;].ToString());
Cell172.Text = itemTotal.ToString();
Cell177.Text = itemPrice.ToString();
}
feeItem = rowData[&quot;FeeItemName&quot;].ToString();
}
#endregion
} }
} }
} }
@ -83,7 +118,7 @@ namespace FastReport
<TextObject Name="Text6" Left="500.85" Top="56.7" Width="66.15" Height="18.9" Text="统计科室:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 9pt"/> <TextObject Name="Text6" Left="500.85" Top="56.7" Width="66.15" Height="18.9" Text="统计科室:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 9pt"/>
<TextObject Name="Text7" Left="567" Top="56.7" Width="151.2" Height="18.9" CanBreak="false" Text="[DeptName]" AutoShrink="FontWidth" VertAlign="Center" WordWrap="false" Font="微软雅黑, 9pt"/> <TextObject Name="Text7" Left="567" Top="56.7" Width="151.2" Height="18.9" CanBreak="false" Text="[DeptName]" AutoShrink="FontWidth" VertAlign="Center" WordWrap="false" Font="微软雅黑, 9pt"/>
</ColumnHeaderBand> </ColumnHeaderBand>
<GroupHeaderBand Name="GroupHeader1" Top="79.6" Width="718.2" Height="47.25" Condition="[P.DeptName]" SortOrder="None"> <GroupHeaderBand Name="GroupHeader1" Top="77.6" Width="718.2" Height="47.25" Condition="[P.DeptName]" SortOrder="None">
<TableObject Name="Table38" Top="18.9" Width="718.2" Height="28.35" Border.Lines="All"> <TableObject Name="Table38" Top="18.9" Width="718.2" Height="28.35" Border.Lines="All">
<TableColumn Name="Column114" Width="359.1"/> <TableColumn Name="Column114" Width="359.1"/>
<TableColumn Name="Column115" Width="359.1"/> <TableColumn Name="Column115" Width="359.1"/>
@ -92,7 +127,7 @@ namespace FastReport
<TableCell Name="Cell159" Font="宋体, 9pt"/> <TableCell Name="Cell159" Font="宋体, 9pt"/>
</TableRow> </TableRow>
</TableObject> </TableObject>
<GroupHeaderBand Name="GroupHeader2" Top="130.85" Width="718.2" Height="28.35" Condition="[P.FeeItemName]" SortOrder="None"> <GroupHeaderBand Name="GroupHeader2" Top="126.85" Width="718.2" Height="28.35" Condition="[P.FeeItemName]" SortOrder="None">
<TableObject Name="Table39" Width="718.2" Height="28.35" Fill.Color="Silver"> <TableObject Name="Table39" Width="718.2" Height="28.35" Fill.Color="Silver">
<TableColumn Name="Column116" Width="123.95"/> <TableColumn Name="Column116" Width="123.95"/>
<TableColumn Name="Column117" Width="265.7"/> <TableColumn Name="Column117" Width="265.7"/>
@ -115,7 +150,7 @@ namespace FastReport
<TableCell Name="Cell168" Border.Lines="All" Text="折后金额" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/> <TableCell Name="Cell168" Border.Lines="All" Text="折后金额" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
</TableRow> </TableRow>
</TableObject> </TableObject>
<DataBand Name="CostCount" Top="163.2" Width="718.2" Height="28.35" CanGrow="true" CanShrink="true" AfterDataEvent="CostCount_AfterData" KeepTogether="true"> <DataBand Name="CostCount" Top="157.2" Width="718.2" Height="28.35" CanGrow="true" CanShrink="true" AfterDataEvent="CostCount_AfterData" KeepTogether="true">
<TableObject Name="Table6" Width="718.2" Height="28.35"> <TableObject Name="Table6" Width="718.2" Height="28.35">
<TableColumn Name="Column43" Width="123.95"/> <TableColumn Name="Column43" Width="123.95"/>
<TableColumn Name="Column44" Width="265.7"/> <TableColumn Name="Column44" Width="265.7"/>
@ -139,7 +174,7 @@ namespace FastReport
</TableRow> </TableRow>
</TableObject> </TableObject>
</DataBand> </DataBand>
<GroupFooterBand Name="GroupFooter2" Top="195.55" Width="718.2" Height="28.35" CanGrow="true" CanShrink="true"> <GroupFooterBand Name="GroupFooter2" Top="187.55" Width="718.2" Height="28.35" CanGrow="true" CanShrink="true">
<TableObject Name="Table40" Width="718.2" Height="28.35"> <TableObject Name="Table40" Width="718.2" Height="28.35">
<TableColumn Name="Column125" Width="123.95"/> <TableColumn Name="Column125" Width="123.95"/>
<TableColumn Name="Column126" Width="265.7"/> <TableColumn Name="Column126" Width="265.7"/>
@ -156,7 +191,7 @@ namespace FastReport
<TableCell Name="Cell171" Border.Lines="All" Fill.Color="InactiveBorder" VertAlign="Center" Font="微软雅黑, 10pt"/> <TableCell Name="Cell171" Border.Lines="All" Fill.Color="InactiveBorder" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell172" Border.Lines="All" Fill.Color="InactiveBorder" VertAlign="Center" Font="微软雅黑, 10pt" ColSpan="2"/> <TableCell Name="Cell172" Border.Lines="All" Fill.Color="InactiveBorder" VertAlign="Center" Font="微软雅黑, 10pt" ColSpan="2"/>
<TableCell Name="Cell173" Border.Lines="All" Fill.Color="InactiveBorder" VertAlign="Center" Font="微软雅黑, 10pt"/> <TableCell Name="Cell173" Border.Lines="All" Fill.Color="InactiveBorder" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell174" Border.Lines="All" Fill.Color="InactiveBorder" VertAlign="Center" Font="微软雅黑, 10pt" ColSpan="3"/> <TableCell Name="Cell174" Border.Lines="All" Fill.Color="InactiveBorder" Text="[P.Price]" VertAlign="Center" Font="微软雅黑, 10pt" ColSpan="3"/>
<TableCell Name="Cell175" Border.Lines="All" Fill.Color="InactiveBorder" VertAlign="Center" Font="微软雅黑, 10pt"/> <TableCell Name="Cell175" Border.Lines="All" Fill.Color="InactiveBorder" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell176" Border.Lines="All" Fill.Color="InactiveBorder" VertAlign="Center" Font="微软雅黑, 10pt"/> <TableCell Name="Cell176" Border.Lines="All" Fill.Color="InactiveBorder" VertAlign="Center" Font="微软雅黑, 10pt"/>
<TableCell Name="Cell177" Border.Lines="All" Fill.Color="InactiveBorder" VertAlign="Center" Font="微软雅黑, 10pt"/> <TableCell Name="Cell177" Border.Lines="All" Fill.Color="InactiveBorder" VertAlign="Center" Font="微软雅黑, 10pt"/>
@ -164,7 +199,7 @@ namespace FastReport
</TableObject> </TableObject>
</GroupFooterBand> </GroupFooterBand>
</GroupHeaderBand> </GroupHeaderBand>
<GroupFooterBand Name="GroupFooter1" Top="227.9" Width="718.2" Height="28.35" CanGrow="true" CanShrink="true" KeepWithData="true"> <GroupFooterBand Name="GroupFooter1" Top="217.9" Width="718.2" Height="28.35" CanGrow="true" CanShrink="true" KeepWithData="true">
<TableObject Name="Table41" Width="718.2" Height="28.35"> <TableObject Name="Table41" Width="718.2" Height="28.35">
<TableColumn Name="Column134" Width="123.95"/> <TableColumn Name="Column134" Width="123.95"/>
<TableColumn Name="Column135" Width="265.7"/> <TableColumn Name="Column135" Width="265.7"/>
@ -188,7 +223,7 @@ namespace FastReport
</TableRow> </TableRow>
</TableObject> </TableObject>
</GroupFooterBand> </GroupFooterBand>
<DataFooterBand Name="DataFooter1" Top="260.25" Width="718.2" Height="28.35"> <DataFooterBand Name="DataFooter1" Top="248.25" Width="718.2" Height="28.35">
<TableObject Name="Table42" Width="718.2" Height="28.35"> <TableObject Name="Table42" Width="718.2" Height="28.35">
<TableColumn Name="Column143" Width="123.95"/> <TableColumn Name="Column143" Width="123.95"/>
<TableColumn Name="Column144" Width="265.7"/> <TableColumn Name="Column144" Width="265.7"/>
@ -213,7 +248,7 @@ namespace FastReport
</TableObject> </TableObject>
</DataFooterBand> </DataFooterBand>
</GroupHeaderBand> </GroupHeaderBand>
<PageFooterBand Name="PageFooter1" Printable="false" Top="292.6" Width="718.2" Height="37.8"> <PageFooterBand Name="PageFooter1" Printable="false" Top="278.6" Width="718.2" Height="37.8">
<TextObject Name="Text8" Width="718.2" Height="37.8" Text="第[Page#]页,共[TotalPages#]页" HorzAlign="Center" Font="微软雅黑, 10pt"/> <TextObject Name="Text8" Width="718.2" Height="37.8" Text="第[Page#]页,共[TotalPages#]页" HorzAlign="Center" Font="微软雅黑, 10pt"/>
</PageFooterBand> </PageFooterBand>
</ReportPage> </ReportPage>

Loading…
Cancel
Save