判断两个时间在已有的区间内
来源:互联网 发布:nginx 1.0.15 漏洞 编辑:程序博客网 时间:2024/05/26 07:27
public DataTable CheckDate(string checkBeginTime,string checkEndTime,string fliter)
...{
System.Text.StringBuilder strSql = new System.Text.StringBuilder();
strSql.Append("select NoteID,NoteTitle,CreateDate,EndDate from tblNetSplitNoteData" +
" where ((CreateDate>='"+checkBeginTime+"' and CreateDate<='"+checkEndTime+"')"+
" or (EndDate>='"+checkBeginTime+"' and EndDate<='"+checkEndTime+"')"+
" or '" + checkBeginTime + "' between CreateDate and EndDate) ");
if (fliter != "")
...{
strSql.Append(fliter);
}
DataTable dt = this.DatabaseAccess.ExecuteDataset(strSql.ToString()).Tables[0];
return dt;
}
...{
System.Text.StringBuilder strSql = new System.Text.StringBuilder();
strSql.Append("select NoteID,NoteTitle,CreateDate,EndDate from tblNetSplitNoteData" +
" where ((CreateDate>='"+checkBeginTime+"' and CreateDate<='"+checkEndTime+"')"+
" or (EndDate>='"+checkBeginTime+"' and EndDate<='"+checkEndTime+"')"+
" or '" + checkBeginTime + "' between CreateDate and EndDate) ");
if (fliter != "")
...{
strSql.Append(fliter);
}
DataTable dt = this.DatabaseAccess.ExecuteDataset(strSql.ToString()).Tables[0];
return dt;
}
比如已出差为例!!如果一个人在之前的时间段内,出过差!那么新增的出差记录就不能再已有的时间段内!
- 判断两个时间在已有的区间内
- 判断已有的两个时间差
- java 判断当前时间在某个区间
- 一个算法:关于如何判断两个时间是否在允许误差内相等
- Java 实现判断时间是否在某个区间内(如是否在23点到凌晨4点之间)
- 如何判断两个日期在一周内
- 判断两个日子是否在一周内
- 判断两个时间区间是否存在交集-Java实现
- 判断时间是否在时间段内
- Javascript判断一个数字是否在一个区间内
- JS 如何判断一个数字在某一个区间内
- sql 区间时间判断
- PHP 判断时间区间
- Java时间判断:判断一个时间是否在一个时间段内
- 判断时间在不在某两个时间范围内
- 在myeclipse下,打开已有的项目
- 在已有的方法中抽取接口
- 判断区间内素数个数
- 简要描述一下SQL中的五种数据类型
- 程序读取MAC地址
- 使用C#进行SQL备份和还原
- JAVA基础知识精华总结
- Java精华积累:每个初学者都应该搞懂的问题
- 判断两个时间在已有的区间内
- Java新手入门的30个基本概念
- 程序集中的一个或多个类型无法加载
- C#中获得当前执行文件相关信息的几种方法
- HTTP响应码
- 谈谈C#中的Delegate
- 肩外的恋人
- 在BCB中如何生成一个EXE文件
- jQuery页面滑动效果实例