/*-----------------------------------------------------------------------------
	Name: A01_MPD_006_PhNum_CreateNewQuote.c
	Recorded By: Converted via tool
	Date of recording:
	Flow details:
	Build details:
	Modification History:
-----------------------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ns_string.h"

void A01_MPD_006_PhNum_CreateNewQuote()
{
	/* create new quopte */
	

	ns_start_transaction("A01_AZ_008_MPD_CreateNewQuote");

	//addDynaTraceHeader("NA=A01_AZ_008_MPD_CreateNewQuote;PC=flow_9");
	ns_web_url("PhNum_CreateNewquote",
		"URL={P_URL}/aaa-app/flow?_flowId=quote-main-flow&_flowExecutionKey=e4s1&_windowId={C_windowID}", 
		"Method=POST", 
		"HEADER=Faces-Request:partial/ajax",
		"HEADER=Origin:{P_URL}",
        	"HEADER=Content-Type:application/x-www-form-urlencoded",
		"HEADER=Referer: {P_URL}/aaa-app/flow?_flowId=quote-main-flow&customerNumber={c_custNum_04}&_windowId={C_windowID}", 
		"Snapshot=t13.inf", 
		ITEMDATA,
		"Name=quoteForm:j_id__v_1_bls-input","Value=",
		"Name=quoteForm:quoteCreationPopupMultiEdit_blob","Value=",
		"Name=quoteForm:quoteCreationPopupMultiEdit_productCd","Value=",
		"Name=quoteForm:quoteCreationPopupMultiEdit_currencyCd","Value=",
		"Name=quoteForm_SUBMIT","Value=1",
		"Name=javax.faces.ViewState","Value={C_VSCreateNewQuoteBtn_04}",
		"Name=org.richfaces.ajax.component","Value=quoteForm:newQuoteButton",
		"Name=quoteForm:newQuoteButton","Value=quoteForm:newQuoteButton",
		"Name=AJAX:EVENTS_COUNT","Value=1",
		"Name=javax.faces.partial.event","Value=click",
		"Name=javax.faces.source","Value=quoteForm:newQuoteButton",
		"Name=javax.faces.partial.ajax","Value=true",
		"Name=javax.faces.partial.execute","Value=@component quoteForm:newQuoteButton",
		"Name=javax.faces.partial.render","Value=@component",
		"Name=quoteForm","Value=quoteForm",
		ITEMDATA_END
		);
	ns_end_transaction("A01_AZ_008_MPD_CreateNewQuote", NS_AUTO_STATUS);

//ns_page_think_time(think_time);
	/* select prod */

	ns_start_transaction("A01_AZ_009_MPD_selectProduct");

	//addDynaTraceHeader("NA=A01_AZ_009_MPD_selectProduct;PC=flow_10");
	ns_web_url("PhNum_SelProd",
		"URL={P_URL}/aaa-app/flow?_flowId=quote-main-flow&_flowExecutionKey=e4s1&_windowId={C_windowID}", 
		"Method=POST", 
		"HEADER=Faces-Request:partial/ajax",
		"HEADER=Origin:{P_URL}",
        	"HEADER=Content-Type:application/x-www-form-urlencoded",
		"HEADER=Referer: {P_URL}/aaa-app/flow?_flowId=quote-main-flow&customerNumber={c_custNum_04}&_windowId={C_windowID}", 
		"Snapshot=t14.inf", 
		ITEMDATA, 
		"Name=quoteForm_SUBMIT", "Value=1",  
		"Name=javax.faces.ViewState", "Value={C_VSCreateNewQuoteBtn_04}",  
		"Name=quoteForm:j_id__v_1_bls-input", "Value=",  
		"Name=quoteForm:quoteCreationPopupMultiEdit_blob", "Value=P",  
		"Name=quoteForm:quoteCreationPopupMultiEdit_productCd", "Value=AAA_SS",  
		"Name=quoteForm:quoteCreationPopupMultiEdit_currencyCd", "Value=",  
		"Name=javax.faces.behavior.event", "Value=change",  
		"Name=AJAX:EVENTS_COUNT", "Value=1",  
		"Name=javax.faces.partial.event", "Value=change",  
		"Name=javax.faces.source", "Value=quoteForm:quoteCreationPopupMultiEdit_productCd",  
		"Name=javax.faces.partial.ajax", "Value=true",  
		"Name=javax.faces.partial.execute", "Value=quoteForm:quoteCreationPopupMultiEdit_productCd",  
		"Name=javax.faces.partial.render", "Value=quoteForm:quoteCreationPopupContents",  
		"Name=quoteForm", "Value=quoteForm",  
		ITEMDATA_END
		);
	ns_end_transaction("A01_AZ_009_MPD_selectProduct", NS_AUTO_STATUS);
//ns_page_think_time(think_time);

	/* next */

	ns_start_transaction("A01_AZ_010_MPD_clkNext");

ns_start_transaction("A01_AZ_010_MPD_clkNext_01");

	//addDynaTraceHeader("NA=A01_AZ_010_MPD_clkNext;PC=flow_11");
	ns_web_url("PhNum_QuoteNext",
		"URL={P_URL}/aaa-app/flow?_flowId=quote-main-flow&_flowExecutionKey=e4s1&_windowId={C_windowID}", 
		"Method=POST", 
		"HEADER=Faces-Request:partial/ajax",
		"HEADER=Origin:{P_URL}",
        	"HEADER=Content-Type:application/x-www-form-urlencoded",
		"HEADER=Referer: {P_URL}/aaa-app/flow?_flowId=quote-main-flow&customerNumber={c_custNum_04}&_windowId={C_windowID}", 
		"Snapshot=t15.inf", 
		ITEMDATA,
		"Name=quoteForm_SUBMIT","Value=1",
		"Name=javax.faces.ViewState","Value={C_VSCreateNewQuoteBtn_04}",
		"Name=quoteForm:j_id__v_1_bls-input","Value=",
		"Name=quoteForm:quoteCreationPopupMultiEdit_blob","Value=P",
		"Name=quoteForm:quoteCreationPopupMultiEdit_productCd","Value=AAA_SS",
		"Name=quoteForm:quoteCreationPopupMultiEdit_currencyCd","Value=USD",
		"Name=org.richfaces.ajax.component","Value=quoteForm:createQuoteButton",
		"Name=quoteForm:createQuoteButton","Value=quoteForm:createQuoteButton",
		"Name=AJAX:EVENTS_COUNT","Value=1",
		"Name=javax.faces.partial.event","Value=click",
		"Name=javax.faces.source","Value=quoteForm:createQuoteButton",
		"Name=javax.faces.partial.ajax","Value=true",
		"Name=javax.faces.partial.execute","Value=@component quoteForm:createQuoteButton",
		"Name=javax.faces.partial.render","Value=@component",
		"Name=quoteForm","Value=quoteForm",
		ITEMDATA_END
		);

	ns_end_transaction("A01_AZ_010_MPD_clkNext_01", NS_AUTO_STATUS);


	
	
	//City
	//name="policyDataGatherForm:choicePointPrefillRequest_edit_address_city" type="text" value="{C_City}" onchange="var valid = validate_policyDataGatherForm_choicePointPrefillRequest_edit_address_city();
	
	
	
	//address
	 //name="policyDataGatherForm:choicePointPrefillRequest_edit_address_addressLine1" type="text" value="2117 n 164th ave " onchange
	
	 
	//dobinput ciurr date
	//name="policyDataGatherForm:choicePointPrefillRequest_edit_dateOfBirthInputCurrentDate" style="display:none" type="hidden" value="{C_DOBInpCurrDate}" />
	
	
	ns_start_transaction("A01_AZ_010_MPD_clkNext_02");

	//addDynaTraceHeader("NA=A01_AZ_010_MPD_clkNext;PC=flow_12");
	ns_web_url("PhNum_SubmitValue",
		"URL={P_URL}/aaa-app/flow?_flowId=quote-main-flow&_flowExecutionKey=e4s1&_windowId={C_windowID}", 
		"Method=POST", 
		//"HEADER=Faces-Request:partial/ajax",
		"HEADER=Origin:{P_URL}",
        	"HEADER=Content-Type:application/x-www-form-urlencoded",
		"HEADER=Referer: {P_URL}/aaa-app/flow?_flowId=quote-main-flow&customerNumber={c_custNum_04}&_windowId={C_windowID}", 
		"Snapshot=t16.inf", 
		ITEMDATA, 
		"Name=quoteForm_SUBMIT", "Value=1",  
		"Name=javax.faces.ViewState", "Value={C_VSCreateNewQuoteBtn_04}",  
		"Name=quoteForm:j_id__v_1_bls-input", "Value=",  
		"Name=quoteForm:quoteCreationPopupMultiEdit_blob", "Value=P",  
		"Name=quoteForm:quoteCreationPopupMultiEdit_productCd", "Value=AAA_SS",  
		"Name=quoteForm:quoteCreationPopupMultiEdit_currencyCd", "Value=USD",  
		"Name=quoteForm:actualCreateQuoteButton", "Value=Submit",  
		ITEMDATA_END
		);
	
	ns_end_transaction("A01_AZ_010_MPD_clkNext_02", NS_AUTO_STATUS);

	
	ns_end_transaction("A01_AZ_010_MPD_clkNext", NS_AUTO_STATUS);
	
	
}