employeesellreport.cs
来自「C# 进销存报表系统 C#数据库精选案例光碟」· CS 代码 · 共 38 行
CS
38 行
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using GoodsReportManage.ItemClass; //添加引用
namespace GoodsReportManage.CrystalReport
{
public partial class EmployeeSellReport : Form
{
public EmployeeSellReport()
{
InitializeComponent();
}
WinOperationClass G_OperationWinForm = new WinOperationClass();
private void EmployeeSellReport_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
string P_select = " {v_UserSell.Name} like '*" + this.txtEmployeeName.Text + "*'";
P_select += " and {v_UserSell.Sex} like '*" + this.txtEmployeeSex.Text + "*'";
P_select += " and {v_UserSell.GoodsID} like '*" + this.txtGoodsID.Text + "*'";
P_select += " and {v_UserSell.SellID} like '*" + this.txtSellID.Text + "*'";
this.crystalReportViewer1.ReportSource = G_OperationWinForm.CrystalReports("CrystalEmployeeSellReport.rpt", P_select);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?