Advertisement
Advertisement
| 09.05.2008 at 11:59AM PDT, ID: 23707388 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: |
<!--- Retrieve Sales Managers reporting under VP --->
<cffunction name="ReportSmMgrList" access="public" returntype="any" output="true">
<cfargument name="Posnbr" required="true">
<!--- Set current date to todays date --->
<cfset currentDate = #DateFormat(now(),'mm/dd/yyyy')#>
<cfquery name="GetSalesManagerList" datasource="#request.datasource#">
SELECT DISTINCT a.mgrname, a.smemplid, b.cycledate, a.smposnbr, b.vpposnbr
FROM qa_salesmgr_input a, qa_vp_sales_input b
where b.vpposnbr = '#arguments.Posnbr#'
AND b.cycledate=to_date('8/31/2008','MM/DD/YYYY')
and a.vpposnbr = b.vpposnbr
and a.SMPOSNBR = b.smposnbr
and a.CYCLEDATE = b.CYCLEDATE
order by a.mgrname
</cfquery>
<cfif GetSalesManagerList.RecordCount NEQ 0>
<cfset rtnValue = GetSalesManagerList>
<cfelse>
<cfset rtnValue = "false">
</cfif>
<cfreturn rtnValue>
</cffunction>
<!--- Retrieve Sales Managers Forecast --->
<cffunction name="ReportingSMForecast" access="public" returntype="any" output="true">
<cfargument name="Posnbr" required="true">
<cfquery name="qPullID" datasource="#request.datasource#">
Select distinct a.forecast_id, b.VpPosNbr, b.cycleDate
from QA_FORECAST_QUOTA_TYPE a, QA_VP_SALES_INPUT b
Where b.VpPosNbr = '#arguments.PosNbr#'
and a.forecast_id = b.forecast_id
AND b.cycledate=to_date('8/31/2008','MM/DD/YYYY')
</cfquery>
<cfloop from="1" to="#qPullID.recordcount#" index="i">
<cfquery name="qSMForecast" datasource="#request.datasource#">
select distinct b.forecast_id, b.forecast, a.mgrname, a.smposnbr
from qa_salesmgr_input a, qa_vp_sales_input b
where b.vpposnbr = '#qPullID.VpPosNbr[i]#'
and a.SMPOSNBR = b.smposnbr
and b.forecast_id = a.forecast_id
and a.VpPosNbr = b.VpPosNbr
and a.CycleDate = b.CycleDate
AND b.cycledate=to_date('8/31/2008','MM/DD/YYYY')
and b.forecast_id = '#qPullID.forecast_id[i]#'
order by b.FORECAST_ID
</cfquery>
<cfif qSMForecast.RecordCount NEQ 0>
<cfset rtnValue = qSMForecast>
<cfelse>
<cfset rtnValue = "false">
</cfif>
<cfreturn rtnValue/>
</cffunction>
|