📄 frmuserpayprint.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using PMS.PMSClass;
using System.Data.SqlClient;
namespace PMS.PrintForm
{
public partial class frmUserPayPrint : Form
{
public frmUserPayPrint()
{
InitializeComponent();
}
DBOperate operate = new DBOperate();
public string num;
private void frmUserPayPrint_Load(object sender, EventArgs e)
{
string str = "select * from tb_pay "+num;
SqlConnection conn = DBConnection.MyConnection();
SqlDataAdapter sda = new SqlDataAdapter(str, conn);
DataSet ds = new DataSet();
sda.Fill(ds);
userPay1.SetDataSource(ds.Tables[0]);
crystalReportViewer1.ReportSource = userPay1;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -