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) " //"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' " +
@@ -138,14 +138,14 @@ namespace GZTW.AyaNova.BLL
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);
}
//******************************************* //*******************************************
} }
} }