Admin/Products/FrmSaleStat.cs
(完整代码) 1KBusing BLL;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Admin
{
public partial class FrmSaleStat : Form
{
private ProductManager objProductManager = new ProductManager();
public FrmSaleStat()
{
InitializeComponent();
this.dtpStart.Value = DateTime.Now.AddDays(-30.0);
this.dtpEnd.Value = DateTime.Now;
btnStat_Click(null, null);
}
//开始统计
private void btnStat_Click(object sender, EventArgs e)
{
string beginTime = this.dtpStart.Value.ToShortDateString();
string endTime = this.dtpEnd.Value.AddDays(1.0).ToShortDateString();
this.dgvProductStat.DataSource = objProductManager.QuerySaleData(beginTime,endTime);
}
//显示行号
private void dgvProductStat_RowPostPaint(object sender,
DataGridViewRowPostPaintEventArgs e)
{
}
//关闭窗口
private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
}
private void FrmSaleStat_FormClosing(object sender, FormClosingEventArgs e)
{
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
