Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
If (Date800 <> '' or Date800 IS NOT NULL)
THEN
PlanYrEnd <= #CreateODBCDate(DateAdd("d",75,Back5Months))#
ELSE
PlanYrEnd <= #CreateODBCDate(Back5Months)#
End
<CFQUERY datasource="PGI" name="GetWorkflow">
SELECT ClientDB.CustNum,
PlanDB.PlanName,
PlanDB.PlanCodeId,
ClientDB.Company,
AnnualDB.RecNum,
AnnualDB.ClientId,
AnnualDB.PlanId,
AnnualDB.PlanYrEnd,
AnnualDB.Date100,
AnnualDB.Date101,
AnnualDB.Date102,
AnnualDB.Date103,
AnnualDB.Date104,
AnnualDB.Chk100,
AnnualDB.Chk101,
AnnualDB.Chk102,
AnnualDB.Chk103,
AnnualDB.Chk104,
AnnualDB.Date200,
AnnualDB.Date201,
AnnualDB.Date202,
AnnualDB.Date203,
AnnualDB.Date204,
AnnualDB.Chk200,
AnnualDB.Chk201,
AnnualDB.Chk202,
AnnualDB.Chk203,
AnnualDB.Chk204,
AnnualDB.Date300,
AnnualDB.Date301,
AnnualDB.Date302,
AnnualDB.Date303,
AnnualDB.Date304,
AnnualDB.Date305,
AnnualDB.Date306,
AnnualDB.Chk300,
AnnualDB.Chk301,
AnnualDB.Chk302,
AnnualDB.Chk303,
AnnualDB.Chk304,
AnnualDB.Chk305,
AnnualDB.Chk306,
AnnualDB.Date400,
AnnualDB.Date401,
AnnualDB.Date402,
AnnualDB.Date403,
AnnualDB.Date404,
AnnualDB.Date405,
AnnualDB.Date406,
AnnualDB.Chk400,
AnnualDB.Chk401,
AnnualDB.Chk402,
AnnualDB.Chk403,
AnnualDB.Chk404,
AnnualDB.Chk405,
AnnualDB.Chk406,
AnnualDB.Date500,
AnnualDB.Date501,
AnnualDB.Date502,
AnnualDB.Date503,
AnnualDB.Date504,
AnnualDB.Chk500,
AnnualDB.Chk501,
AnnualDB.Chk502,
AnnualDB.Chk503,
AnnualDB.Chk504,
AnnualDB.Date600,
AnnualDB.Date601,
AnnualDB.Date602,
AnnualDB.Date603,
AnnualDB.Date604,
AnnualDB.Date605,
AnnualDB.Chk600,
AnnualDB.Chk601,
AnnualDB.Chk602,
AnnualDB.Chk603,
AnnualDB.Chk604,
AnnualDB.Chk605,
AnnualDB.Date700,
AnnualDB.Date701,
AnnualDB.Date702,
AnnualDB.Date703,
AnnualDB.Date704,
AnnualDB.Date705,
AnnualDB.Chk700,
AnnualDB.Chk701,
AnnualDB.Chk702,
AnnualDB.Chk703,
AnnualDB.Chk704,
AnnualDB.Chk705,
AnnualDB.Date800,
AnnualDB.Date801,
AnnualDB.Date802,
AnnualDB.Date803,
AnnualDB.Date804,
AnnualDB.Date805,
AnnualDB.Date806,
AnnualDB.Date807,
AnnualDB.Chk800,
AnnualDB.Chk801,
AnnualDB.Chk802,
AnnualDB.Chk803,
AnnualDB.Chk804,
AnnualDB.Chk805,
AnnualDB.Chk806,
AnnualDB.Chk807,
AnnualDB.Date850,
AnnualDB.Date851,
AnnualDB.Date852,
AnnualDB.Date853,
AnnualDB.Chk850,
AnnualDB.Chk851,
AnnualDB.Chk852,
AnnualDB.Chk853,
AnnualDB.Date900,
AnnualDB.Date901,
AnnualDB.Date902,
AnnualDB.Date903,
AnnualDB.Date904,
AnnualDB.Chk900,
AnnualDB.Chk901,
AnnualDB.Chk902,
AnnualDB.Chk903,
AnnualDB.Chk904,
AnnualDB.TopHvy,
AnnualDB.Pbgc,
AnnualDB.SafeHarborYr,
AnnualDB.OnExt,
AnnualDB.ChkTopHvy,
AnnualDB.ChkPbgc,
AnnualDB.ChkSafeHarborYr,
AnnualDB.ChkOnExt,
AnnualDB.EmpNumID,
AnnualDB.Note,
AnnualDB.LastModified
FROM PGI.dbo.AnnualDB AnnualDB,
PGI.dbo.ClientDB ClientDB,
PGI.dbo.PlanDB PlanDB
WHERE ClientDB.RecNum = AnnualDB.ClientId
AND PlanDB.ClientId = AnnualDB.ClientId
AND PlanDB.RecNum = AnnualDB.PlanId
AND PlanStatusId < '3'
AND (((Date805 IS NULL OR Date806 = '') AND (Chk805 = '0' OR Chk805 IS NULL OR Chk805 = '')) OR ((Date806 IS NULL OR Date806 = '') AND (Chk806 = '0' OR Chk806 IS NULL OR Chk806 = '')))
AND PlanYrEnd <= #CreateODBCDate(EndOfThisMonth)#
AND PlanYrEnd >= #CreateODBCDate(Back11Months)#
AND PlanYrEnd <= #CreateODBCDate(Back5Months)#
******************************
* IF (Date800 = '' or Date800 IS NULL)
* PlanYrEnd <= #CreateODBCDate(DateAdd("d",75,Back5Months))#
* ELSE
* PlanYrEnd <= #CreateODBCDate(Back5Months)#
* END
******************************
Order by Month(PlanYrEnd), CustNum asc
</CFQUERY>