选定时间范围,显示信息
下篇的需求是选择一个时间段之间的数据

代码如下:
<1>Entity
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Entity
{
/// <summary>
/// 退卡表实体类
/// </summary>
public class CancelCardEntity
{
//卡号
private int cardNo;
public int CardNo
{
get { return cardNo; }
set { cardNo = value; }
}
//学号
private int studentNo;
public int StudentNo
{
get { return studentNo; }
set { studentNo = value; }
}
//学生姓名
private string studentName;
public string StudentName
{
get { return studentName; }
set { studentName = value; }
}
//退卡金额
private double cancelCash;
public double CancelCash
{
get { return cancelCash; }
set { cancelCash = value; }
}
//退卡日期
private string date;
public string Date
{
get { return date; }
set { date = value; }
}
//开始日期
private string dtStart;
public string DtStart
{
get { return dtStart; }

本文介绍如何在C#中使用DateTimePicker控件选取时间范围,并展示数据库中相应时间段的数据。在实现功能后,发现界面上显示了不必要的时间属性,通过代码调整隐藏了这些字段,达到理想效果。
最低0.47元/天 解锁文章
262

被折叠的 条评论
为什么被折叠?



