📄 frmwarrantlsun.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 property.view.WarrantInfo.CrRepotr;
namespace property.view.WarrantInfo
{
public partial class frmWarrantlSun : Form
{
public frmWarrantlSun()
{
InitializeComponent();
}
public int P_int_report;
public int P_int_report1;
private void groupBox1_Enter(object sender, EventArgs e)
{
GetWarInfo getWinfo = new GetWarInfo();
getWinfo.GetWarrPrint(this.dataGridView1);//调用方法
}
private void button4_Click(object sender, EventArgs e)
{
DialogResult a = MessageBox.Show("是否要退出?", "退出", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (Convert.ToString(a) == "Yes")
{
this.Close();
}// end block
}
private void button3_Click(object sender, EventArgs e)
{
if (P_int_report == 4)
{
RepfrmWarrantinfo frmsum = new RepfrmWarrantinfo(P_int_report1);
frmsum.Show();
}//end block if
else
{
MessageBox.Show("请先查找数据,再报表打印");
}// end block
}
private void frmWarrantlSun_Load(object sender, EventArgs e)
{
}
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
}
private void dataGridView1_Click(object sender, EventArgs e)
{
this.P_int_report1 = Convert.ToInt32(this.dataGridView1.SelectedCells[0].Value);
P_int_report = 4;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -