This commit is contained in:
@@ -122,7 +122,7 @@ namespace GZTW.AyaNova.BLL
|
|||||||
//"AND (aStopGeneratingDate IS NULL OR aStopGeneratingDate > @aNow) "
|
//"AND (aStopGeneratingDate IS NULL OR aStopGeneratingDate > @aNow) "
|
||||||
|
|
||||||
//CASE 789 ignore pm templates
|
//CASE 789 ignore pm templates
|
||||||
"SELECT AWORKORDERID from AWORKORDERPREVENTIVEMAINTENANCE " +
|
"SELECT AWORKORDERID, ACLIENTID from AWORKORDERPREVENTIVEMAINTENANCE " +
|
||||||
"LEFT OUTER JOIN AWORKORDER " +
|
"LEFT OUTER JOIN AWORKORDER " +
|
||||||
"ON (AWORKORDERPREVENTIVEMAINTENANCE.AWORKORDERID=AWORKORDER.AID) " +
|
"ON (AWORKORDERPREVENTIVEMAINTENANCE.AWORKORDERID=AWORKORDER.AID) " +
|
||||||
"WHERE AWORKORDER.AWORKORDERTYPE='2' " +
|
"WHERE AWORKORDER.AWORKORDERTYPE='2' " +
|
||||||
@@ -136,18 +136,18 @@ namespace GZTW.AyaNova.BLL
|
|||||||
cm.AddInParameter("@aNow", DbType.DateTime, DBUtil.ToUTC(DBUtil.CurrentWorkingDateTime));//case 957
|
cm.AddInParameter("@aNow", DbType.DateTime, DBUtil.ToUTC(DBUtil.CurrentWorkingDateTime));//case 957
|
||||||
dr=new SafeDataReader(DBUtil.DB.ExecuteReader(cm));
|
dr=new SafeDataReader(DBUtil.DB.ExecuteReader(cm));
|
||||||
|
|
||||||
while(dr.Read())
|
while(dr.Read())
|
||||||
{
|
{
|
||||||
|
//*******************************************
|
||||||
//*******************************************
|
//case 3701 - check if client for this pm is active or not and only process for an active client
|
||||||
//case 3701 - check if client for this pm is active or not and only process for an active client
|
if (ClientActiveChecker.ClientActive(dr.GetGuid("ACLIENTID")))
|
||||||
|
{
|
||||||
WorkorderPMReadyForServiceListInfo info=new WorkorderPMReadyForServiceListInfo();
|
WorkorderPMReadyForServiceListInfo info = new WorkorderPMReadyForServiceListInfo();
|
||||||
info._PMWorkorderID=dr.GetGuid("aWorkorderID");
|
info._PMWorkorderID = dr.GetGuid("aWorkorderID");
|
||||||
|
InnerList.Add(info);
|
||||||
InnerList.Add(info);
|
}
|
||||||
//*******************************************
|
//*******************************************
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user