This commit is contained in:
2019-10-08 21:38:16 +00:00
parent bf869d7843
commit 34968ea1f8

View File

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