我的系统已经设定好了日期列和星期列
比如说7月份周二,周六休息在输入七月份周二或者周六的日期的时候体统发出提示这天休息
8月换到周三休息,系统提示周三休息
目前我只会根据所有的日期判断,请问如何分区间判断呢?谢谢大神
If e.DataCol.Name = "星期" Then
If e.DataRow("星期")="星期二"
MessageBox.Show("星期二休息", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information)
If e.NewValue <> e.OldValue Then
e.DataRow("da") = e.OldValue
e.DataRow("作废") = True
End If
End If
If e.DataRow("星期")="星期六"
MessageBox.Show("星期六休息", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information)
If e.NewValue <> e.OldValue Then
e.DataRow("da") = e.OldValue
e.DataRow("作废") = True
End If
End If
end if