frmuserpayprint.cs

来自「随着我国市场经济的快速发展」· CS 代码 · 共 31 行

CS
31
字号
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 + =
减小字号Ctrl + -
显示快捷键?