秦皇岛收费单
This commit is contained in:
parent
02ccc9723d
commit
4a3d284fdf
@ -1280,22 +1280,16 @@
|
|||||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
</Compile>
|
</Compile>
|
||||||
<None Include="Template\冰箱监测.xlt" />
|
<None Include="Template\冰箱监测.xlt" />
|
||||||
<None Include="Template\手术排程模板.xlt">
|
<None Include="Template\手术排程模板.xlt" />
|
||||||
|
<None Include="Template\手术间保养维修记录.xlt" />
|
||||||
|
<None Include="Template\护士收费单.xlt" />
|
||||||
|
<None Include="Template\护士收费单QHD.xlt">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Include="Template\手术间保养维修记录.xlt">
|
<None Include="Template\排班按月.xlt" />
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<None Include="Template\职工出缺勤表.xlt" />
|
||||||
</None>
|
<None Include="Template\麻醉收费单.xlt" />
|
||||||
<None Include="Template\护士收费单.xlt">
|
<None Include="Template\麻醉收费单QHD.xlt">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</None>
|
|
||||||
<None Include="Template\排班按月.xlt">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</None>
|
|
||||||
<None Include="Template\职工出缺勤表.xlt">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</None>
|
|
||||||
<None Include="Template\麻醉收费单.xlt">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Include="Template\麻醉机及心电监护仪使用消毒记录.xlt" />
|
<None Include="Template\麻醉机及心电监护仪使用消毒记录.xlt" />
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<AtuoUpdate>
|
<AtuoUpdate>
|
||||||
<ConnectionString>Data Source=.;Initial Catalog=AIMSDB_FJZPTFYY;User ID=sa;Password=Test2020;</ConnectionString>
|
<ConnectionString>Data Source=.;Initial Catalog=AIMSDB_QHDSGRYY;User ID=sa;Password=Test2020;</ConnectionString>
|
||||||
<DataConnectionString>Data Source=.;Initial Catalog=AIMSDB_DATA;User ID=sa;Password=Test2020;</DataConnectionString>
|
<DataConnectionString>Data Source=.;Initial Catalog=AIMSDB_DATA;User ID=sa;Password=Test2020;</DataConnectionString>
|
||||||
<HisConnectionStringOracel>Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.7)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl2))));Persist Security Info=True;User ID=smview;Password=i39;</HisConnectionStringOracel>
|
<HisConnectionStringOracel>Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.7)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl2))));Persist Security Info=True;User ID=smview;Password=i39;</HisConnectionStringOracel>
|
||||||
<LastLoginNo></LastLoginNo>
|
<LastLoginNo></LastLoginNo>
|
||||||
|
|||||||
@ -1482,7 +1482,18 @@ namespace AIMS.PublicUI.UI
|
|||||||
private void bynPrint_Click(object sender, EventArgs e)
|
private void bynPrint_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
btnSave_Click(null, null);
|
btnSave_Click(null, null);
|
||||||
|
if (PublicMethod.HospitalName.Contains("秦皇岛"))
|
||||||
|
{
|
||||||
|
PrintExcel2();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
PrintExcel();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PrintExcel()
|
||||||
|
{
|
||||||
GoldPrinter.ExcelAccess excel = new GoldPrinter.ExcelAccess();
|
GoldPrinter.ExcelAccess excel = new GoldPrinter.ExcelAccess();
|
||||||
string strFileName = "麻醉收费单.xlt"; //模板文件名
|
string strFileName = "麻醉收费单.xlt"; //模板文件名
|
||||||
if (FeeType == "护士") strFileName = "护士收费单.xlt";
|
if (FeeType == "护士") strFileName = "护士收费单.xlt";
|
||||||
@ -1554,6 +1565,77 @@ namespace AIMS.PublicUI.UI
|
|||||||
excel.Close();
|
excel.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void PrintExcel2()
|
||||||
|
{
|
||||||
|
GoldPrinter.ExcelAccess excel = new GoldPrinter.ExcelAccess();
|
||||||
|
string strFileName = "麻醉收费单QHD.xlt"; //模板文件名
|
||||||
|
if (FeeType == "护士") strFileName = "护士收费单QHD.xlt";
|
||||||
|
string strExcelTemplateFile = Application.StartupPath;
|
||||||
|
strExcelTemplateFile += @"\Template\" + strFileName;
|
||||||
|
excel.Open(strExcelTemplateFile); //用模板文件
|
||||||
|
|
||||||
|
excel.SetCellText(2, "A", PublicMethod.HospitalName);
|
||||||
|
excel.SetCellText(4, "B", _record.InRoomTime.Value.ToString("yyyy-MM-dd"));
|
||||||
|
excel.SetCellText(4, "E", _record.ApplyDepartmentName.ToString());
|
||||||
|
excel.SetCellText(4, "H", _record.InHospitalNo);
|
||||||
|
excel.SetCellText(5, "B", _record.Name + " (" + _record.Sex + " " + _record.Age + ")");
|
||||||
|
excel.SetCellText(5, "H", _record.Identity);
|
||||||
|
|
||||||
|
PatientRecord Patient = PatientRecord.GetPatientRecord(_record.PatientId.Value);
|
||||||
|
if (FeeType == "麻醉")
|
||||||
|
{
|
||||||
|
excel.SetCellText(5, "E", DBManage.GetDictionaryValuesById(_record.Applydiagnose, "诊断"));
|
||||||
|
excel.SetCellText(38, "B", lblDrugs.Text);
|
||||||
|
excel.SetCellText(39, "B", _worker.Name);
|
||||||
|
excel.SetCellText(39, "D", Patient.AnesthesiaDoctor);
|
||||||
|
excel.SetCellText(39, "G", DateTime.Now.ToString("yyyy-MM-dd HH:mm"));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
excel.SetCellText(5, "E", DBManage.GetDictionaryValuesById(_record.Operation, "手术"));
|
||||||
|
excel.SetCellText(27, "B", Patient.OperationDoctor);
|
||||||
|
excel.SetCellText(27, "F", Patient.InstrumentNurse + " " + Patient.TourNurse);
|
||||||
|
excel.SetCellText(27, "H", Patient.AnesthesiaDoctor);
|
||||||
|
excel.SetCellText(28, "B", lblDrugs.Text);
|
||||||
|
}
|
||||||
|
|
||||||
|
int rowNum = 7;
|
||||||
|
for (int i = 0; i < dgvDrugs.Rows.Count; i++)
|
||||||
|
{
|
||||||
|
DataGridViewRow dr = dgvDrugs.Rows[i];
|
||||||
|
if (dr.Tag == null) continue;
|
||||||
|
FeesRecord temp = dr.Tag as FeesRecord;
|
||||||
|
if (temp != null)
|
||||||
|
{
|
||||||
|
excel.GetRange(rowNum, "A", rowNum, "H").Value = new string[]{
|
||||||
|
( dr.Cells[3].EditedFormattedValue.ToString()),"","","","",
|
||||||
|
( dr.Cells[4].EditedFormattedValue.ToString()),
|
||||||
|
dr.Cells[7].EditedFormattedValue.ToString(),
|
||||||
|
( dr.Cells[6].EditedFormattedValue.ToString() ) };
|
||||||
|
rowNum++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (int i = 0; i < dgvChargsRecord.Rows.Count; i++)
|
||||||
|
{
|
||||||
|
DataGridViewRow dr = dgvChargsRecord.Rows[i];
|
||||||
|
if (dr.Tag == null) continue;
|
||||||
|
FeesRecord temp = dr.Tag as FeesRecord;
|
||||||
|
if (temp != null)
|
||||||
|
{
|
||||||
|
excel.GetRange(rowNum, "A", rowNum, "H").Value = new string[]{
|
||||||
|
( dr.Cells[3].EditedFormattedValue.ToString()),"","","","",
|
||||||
|
( temp.ChargSpec ),
|
||||||
|
dr.Cells[7].EditedFormattedValue.ToString(),
|
||||||
|
( dr.Cells[6].EditedFormattedValue.ToString() )
|
||||||
|
};
|
||||||
|
rowNum++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
excel.Print();
|
||||||
|
this.Focus();
|
||||||
|
excel.Close();
|
||||||
|
}
|
||||||
|
|
||||||
private void buttonX1_Click(object sender, EventArgs e)
|
private void buttonX1_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
FeesRecordList = BFeesRecord.Select(" FeeIsDrug =1 and FeeType='" + FeeType + "' and OperationRecordId=" + _record.Id, null, RecursiveType.None, 0);
|
FeesRecordList = BFeesRecord.Select(" FeeIsDrug =1 and FeeType='" + FeeType + "' and OperationRecordId=" + _record.Id, null, RecursiveType.None, 0);
|
||||||
|
|||||||
@ -32,7 +32,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
|
|
||||||
private void frmSelectPatientNew2_Load(object sender, EventArgs e)
|
private void frmSelectPatientNew2_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
ControlExtension.GetOperationSiteRoom(labelSite, CboOperationSite, cboRoom,"手术室");
|
ControlExtension.GetOperationSiteRoom(labelSite, CboOperationSite, cboRoom, "手术室");
|
||||||
FillDgv();
|
FillDgv();
|
||||||
|
|
||||||
this.cboRoom.SelectedIndexChanged += new System.EventHandler(this.cboRoom_SelectedIndexChanged);
|
this.cboRoom.SelectedIndexChanged += new System.EventHandler(this.cboRoom_SelectedIndexChanged);
|
||||||
@ -58,21 +58,25 @@ namespace AIMS.OperationAanesthesia
|
|||||||
panel3.Controls.Clear();
|
panel3.Controls.Clear();
|
||||||
panel2.Visible = false;
|
panel2.Visible = false;
|
||||||
|
|
||||||
|
string cboRoomStr = "";
|
||||||
|
if (cboRoom.SelectedValue != null)
|
||||||
|
cboRoomStr = cboRoom.SelectedValue.ToString();
|
||||||
|
|
||||||
DataTable dt = new DataTable();
|
DataTable dt = new DataTable();
|
||||||
if (txtquery.Text.Trim() != "")
|
if (txtquery.Text.Trim() != "")
|
||||||
dt = SelectPatient.GetSelectPatientDataTable(txtquery.Text);
|
dt = SelectPatient.GetSelectPatientDataTable(txtquery.Text);
|
||||||
else
|
else
|
||||||
dt = SelectPatient.GetSelectPatientDataTable(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoom.SelectedValue.ToString());
|
dt = SelectPatient.GetSelectPatientDataTable(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoomStr);
|
||||||
|
|
||||||
DataTable dt2 = new DataTable();
|
DataTable dt2 = new DataTable();
|
||||||
if (txtquery.Text.Trim() != "")
|
if (txtquery.Text.Trim() != "")
|
||||||
dt2 = SelectPatient.GetRelieveLockingPatientDataTable(txtquery.Text);
|
dt2 = SelectPatient.GetRelieveLockingPatientDataTable(txtquery.Text);
|
||||||
else
|
else
|
||||||
dt2 = SelectPatient.GetRelieveLockingPatientDataTable(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoom.SelectedValue.ToString());
|
dt2 = SelectPatient.GetRelieveLockingPatientDataTable(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoomStr);
|
||||||
|
|
||||||
if (CboOperationSite.Visible == true && CboOperationSite.SelectedIndex > 0)
|
if (CboOperationSite.Visible == true && CboOperationSite.SelectedIndex > 0)
|
||||||
{
|
{
|
||||||
dt = AIMSExtension.PublicMethod.GetNewDataTable(dt, " OperationSite ='" + CboOperationSite.SelectedValue + "' ", "");
|
dt = AIMSExtension.PublicMethod.GetNewDataTable(dt, " OperationSite ='" + CboOperationSite.SelectedValue + "' ", "");
|
||||||
dt2 = AIMSExtension.PublicMethod.GetNewDataTable(dt2, " OperationSite ='" + CboOperationSite.SelectedValue + "' ", "");
|
dt2 = AIMSExtension.PublicMethod.GetNewDataTable(dt2, " OperationSite ='" + CboOperationSite.SelectedValue + "' ", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
BIN
AIMS/Template/护士收费单QHD.xlt
Normal file
BIN
AIMS/Template/护士收费单QHD.xlt
Normal file
Binary file not shown.
BIN
AIMS/Template/麻醉收费单QHD.xlt
Normal file
BIN
AIMS/Template/麻醉收费单QHD.xlt
Normal file
Binary file not shown.
@ -44,6 +44,7 @@
|
|||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Drawing" />
|
||||||
|
<Reference Include="System.Printing" />
|
||||||
<Reference Include="System.Windows.Forms" />
|
<Reference Include="System.Windows.Forms" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
@ -72,6 +73,7 @@
|
|||||||
<Compile Include="MyCodeName.cs" />
|
<Compile Include="MyCodeName.cs" />
|
||||||
<Compile Include="MyNameIntValue.cs" />
|
<Compile Include="MyNameIntValue.cs" />
|
||||||
<Compile Include="NowPhysioData.cs" />
|
<Compile Include="NowPhysioData.cs" />
|
||||||
|
<Compile Include="PdfFilePrinter.cs" />
|
||||||
<Compile Include="PGDBHelper.cs" />
|
<Compile Include="PGDBHelper.cs" />
|
||||||
<Compile Include="ProgramLogService.cs" />
|
<Compile Include="ProgramLogService.cs" />
|
||||||
<Compile Include="Properties\Resources.Designer.cs">
|
<Compile Include="Properties\Resources.Designer.cs">
|
||||||
|
|||||||
@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Printing;
|
using System.Printing;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace DrawGraphManagement
|
namespace AIMSExtension
|
||||||
{
|
{
|
||||||
public class PdfFilePrinter
|
public class PdfFilePrinter
|
||||||
{
|
{
|
||||||
@ -139,7 +139,6 @@
|
|||||||
<Compile Include="MyUserControl\UCBase.cs" />
|
<Compile Include="MyUserControl\UCBase.cs" />
|
||||||
<Compile Include="MyUserControl\UCColor.cs" />
|
<Compile Include="MyUserControl\UCColor.cs" />
|
||||||
<Compile Include="MyUserControl\UCSelect.cs" />
|
<Compile Include="MyUserControl\UCSelect.cs" />
|
||||||
<Compile Include="PdfFilePrinter.cs" />
|
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<EmbeddedResource Include="AreaManageForm.resx">
|
<EmbeddedResource Include="AreaManageForm.resx">
|
||||||
|
|||||||
@ -13,6 +13,7 @@ using System.IO;
|
|||||||
using System.IO.Packaging;
|
using System.IO.Packaging;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
using System.Threading;
|
||||||
using System.Windows.Documents;
|
using System.Windows.Documents;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using System.Windows.Xps;
|
using System.Windows.Xps;
|
||||||
@ -638,6 +639,8 @@ namespace DrawGraphManagement
|
|||||||
pDoc.DefaultPageSettings.PrinterSettings.PrinterName = "Microsoft XPS Document Writer";
|
pDoc.DefaultPageSettings.PrinterSettings.PrinterName = "Microsoft XPS Document Writer";
|
||||||
pDoc.Print();
|
pDoc.Print();
|
||||||
|
|
||||||
|
Thread.Sleep(1000);
|
||||||
|
|
||||||
byte[] bytes = File.ReadAllBytes(Application.StartupPath + "\\" + DocumentName + ".xps");
|
byte[] bytes = File.ReadAllBytes(Application.StartupPath + "\\" + DocumentName + ".xps");
|
||||||
// Print to PDF
|
// Print to PDF
|
||||||
var outputFilePath = @"E:\PatientDocuments\" + DocumentName + ".pdf";
|
var outputFilePath = @"E:\PatientDocuments\" + DocumentName + ".pdf";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user