项目首页 项目切换下拉框事件修改
This commit is contained in:
@@ -155,27 +155,39 @@ namespace BLL
|
||||
if (getInOutRecord.WorkIn1.HasValue || getInOutRecord.OffDuty1.HasValue)
|
||||
{
|
||||
m1 = 240;
|
||||
if (getInOutRecord.WorkIn1.HasValue && getInOutRecord.OffDuty1.HasValue)
|
||||
if (getInOutRecord.WorkIn1.HasValue && getInOutRecord.OffDuty1.HasValue && getInOutRecord.OffDuty1> getInOutRecord.WorkIn1)
|
||||
{
|
||||
m1 = Convert.ToInt32((getInOutRecord.OffDuty1 - getInOutRecord.WorkIn1).Value.TotalMinutes);
|
||||
if (m1 < 0)
|
||||
{
|
||||
m1 = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
int m2 = 0;
|
||||
if (getInOutRecord.WorkIn2.HasValue || getInOutRecord.OffDuty2.HasValue)
|
||||
{
|
||||
m2 = 240;
|
||||
if (getInOutRecord.WorkIn2.HasValue && getInOutRecord.OffDuty2.HasValue)
|
||||
if (getInOutRecord.WorkIn2.HasValue && getInOutRecord.OffDuty2.HasValue && getInOutRecord.OffDuty2 > getInOutRecord.WorkIn2)
|
||||
{
|
||||
m2 = Convert.ToInt32((getInOutRecord.OffDuty2 - getInOutRecord.WorkIn2).Value.TotalMinutes);
|
||||
if (m2 < 0)
|
||||
{
|
||||
m2 =0;
|
||||
}
|
||||
}
|
||||
}
|
||||
int m3 = 0;
|
||||
if (getInOutRecord.WorkIn3.HasValue || getInOutRecord.OffDuty3.HasValue)
|
||||
{
|
||||
m3 = 240;
|
||||
if (getInOutRecord.WorkIn3.HasValue && getInOutRecord.OffDuty3.HasValue)
|
||||
if (getInOutRecord.WorkIn3.HasValue && getInOutRecord.OffDuty3.HasValue && getInOutRecord.OffDuty3 > getInOutRecord.WorkIn3)
|
||||
{
|
||||
m3 = Convert.ToInt32((getInOutRecord.OffDuty3 - getInOutRecord.WorkIn3).Value.TotalMinutes);
|
||||
if (m3 < 0)
|
||||
{
|
||||
m3 =0;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user