📄 repwarrtid.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using property.control.warrantInfo;
using CrystalDecisions.CrystalReports.Engine;
namespace property.view.WarrantInfo.CrRepotr
{
public partial class RepWarrtID : Form
{
public RepWarrtID()
{
InitializeComponent();
}
public int P_int_report;
public RepWarrtID(int P_int_sele)
{
InitializeComponent();
P_int_report = P_int_sele;
}
private void RepWarrtID_Load(object sender, EventArgs e)
{
GetWarInfo getwar=new GetWarInfo();
if (P_int_report != 0)
{
string reportPath = Application.StartupPath.Substring(0, Application.StartupPath.Substring(0,
Application.StartupPath.LastIndexOf("\\")).LastIndexOf("\\"));
reportPath += @"\view\hinderInfo\CRsujectsum.rpt";
ReportDocument rd = new ReportDocument();
rd.Load(reportPath);
rd.SetDataSource(getwar.getWarRepot(P_int_report).Tables[0].DefaultView);
this.crystalReportViewer1.ReportSource = rd;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -