<cfcomponent displayname="QA Functions" hint="I Return QA Information" output="false">

	<cfset client.Loc_ID = #session.agencyid# />
	
   <cffunction name="init" displayname="Initialize Component" access="public" returntype="QA" hint="I initialize and return the QA object.">
		<cfreturn this>
	</cffunction>

	<cffunction name="approveupdate"  access="remote" output="Yes" returnformat="plain" returntype="string">   
		 <cfargument name="QA_ID" required="yes" default="0">
		 <cfargument name="Approved" required="yes" default="0">

			<cfquery  name="updatepOASIS_QA" datasource="#Application.DataSrc#">
			    UPDATE #Request.prefix_db_agency#.pOASIS_QA SET 
			    	Approved = <cfqueryparam value="#arguments.Approved#"  cfsqltype="CF_SQL_INTEGER">,
			    	Emp_ID	= <cfqueryparam value = "#session.employeeid#" CFSQLType ="CF_SQL_INTEGER"> 
				WHERE QA_ID =  <cfqueryparam CFSQLType="CF_SQL_INTEGER"value="#arguments.QA_ID#"  >
			</cfquery>
			<cfreturn 'Success' />     
	</cffunction>	


</cfcomponent>