提交代码
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
using System.Threading;
|
||||
using System.Web;
|
||||
using BLL;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class Global : System.Web.HttpApplication
|
||||
{
|
||||
@@ -464,6 +467,88 @@
|
||||
BLL.HJGL_WelderQualifiedProjectService.UpdateWelderQualifiedProject(updateQue);
|
||||
}
|
||||
}
|
||||
|
||||
bool b = false;
|
||||
string orderTime = string.Empty;
|
||||
if (intHour == 8)
|
||||
{
|
||||
orderTime = "7:00 - 8:00";
|
||||
}
|
||||
else if (intHour == 9)
|
||||
{
|
||||
orderTime = "8:00 - 9:00";
|
||||
}
|
||||
else if (intHour == 10)
|
||||
{
|
||||
orderTime = "9:00 - 10:00";
|
||||
}
|
||||
else if (intHour == 11)
|
||||
{
|
||||
orderTime = "10:00 - 11:00";
|
||||
}
|
||||
else if (intHour == 12)
|
||||
{
|
||||
orderTime = "11:00 - 12:00";
|
||||
}
|
||||
else if (intHour == 13)
|
||||
{
|
||||
orderTime = "12:00 - 13:00";
|
||||
}
|
||||
else if (intHour == 14)
|
||||
{
|
||||
orderTime = "13:00 - 14:00";
|
||||
}
|
||||
else if (intHour == 15)
|
||||
{
|
||||
orderTime = "14:00 - 15:00";
|
||||
}
|
||||
else if (intHour == 16)
|
||||
{
|
||||
orderTime = "15:00 - 16:00";
|
||||
}
|
||||
else if (intHour == 17)
|
||||
{
|
||||
orderTime = "16:00 - 17:00";
|
||||
}
|
||||
else if (intHour == 18)
|
||||
{
|
||||
orderTime = "17:00 - 18:00";
|
||||
}
|
||||
else if (intHour == 19)
|
||||
{
|
||||
orderTime = "18:00 - 19:00";
|
||||
}
|
||||
else if (intHour == 20)
|
||||
{
|
||||
orderTime = "19:00 - 20:00";
|
||||
}
|
||||
else if (intHour == 21)
|
||||
{
|
||||
orderTime = "20:00 - 21:00";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(orderTime))
|
||||
{
|
||||
b = true;
|
||||
}
|
||||
if (b)
|
||||
{
|
||||
string lastPlan = @"SELECT p.UsingPlanId FROM dbo.Weld_UsingPlan p
|
||||
WHERE p.OrderDate<CONVERT(char(10),GetDate(),120)
|
||||
AND p.IsCancel=0 AND OrderTime=@OrderTime
|
||||
AND (SELECT COUNT(*) FROM dbo.Weld_UsingMat u WHERE u.UsingPlanId=p.UsingPlanId)=0";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@OrderTime", orderTime));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable dt = SQLHelper.GetDataTableRunText(lastPlan, parameter);
|
||||
if (dt.Rows.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < dt.Rows.Count; i++)
|
||||
{
|
||||
string usingPlanId = dt.Rows[i]["UsingPlanId"].ToString();
|
||||
BLL.UsingPlanService.UpdateIsCancel(usingPlanId, "超时未领用");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void Session_Start(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user