/*-----------------------------------------------------------------------------
	Name: A01_MPD_005_ClkCustomerTab.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_005_ClkCustomerTab()
{
	
	/* clk customer tab */
	
	
	
ns_start_transaction("A01_AZ_006_MPD_clkCustomerTab");

	//addDynaTraceHeader("NA=A01_AZ_006_MPD_clkCustomerTab;PC=flow_7");
	ns_web_url("General_CustomerTab",
		"URL={P_URL}/aaa-app/flow?_flowId=search-customer-flow&topTabsBar_TabSelection={Panel_sel_id}&_parentWindowId={C_windowID}", 
		"HEADER=Content-Type: text/html", 
		"REDIRECT=Yes",
		"HEADER=Referer: {P_URL}/aaa-app/flow?_flowId=policy-detail-flow&policyId={C_PolicyID}&currentProductCd=AAA_HO_SS&_parentWindowId={C_windowID}", 
		"Snapshot=t11.inf", 
		);

ns_end_transaction("A01_AZ_006_MPD_clkCustomerTab", NS_AUTO_STATUS);

//ns_start_transaction("A01_AZ_006_MPD_clkCustomerTab");
//
//	//addDynaTraceHeader("NA=A01_AZ_006_MPD_clkCustomerTab;PC=flow_7");
//	ns_web_url("General_CustomerTab",
//	     "URL={P_URL}/aaa-app/flow?_flowId=search-main-flow&_flowExecutionKey=e2s1&_windowId={C_windowID}",
//	     "METHOD=POST",
//		//"URL={P_URL}/aaa-app/flow?_flowId=search-customer-flow&topTabsBar_TabSelection={Panel_sel_id}&_parentWindowId={C_windowID}", 
//		"HEADER=Content-Type: text/html", 
//		"HEADER=sec-ch-ua-mobile: ?0",
//		"HEADER=sec-ch-ua-platform: \"Windows\"",
//		"HEADER=Sec-Fetch-Dest: document",
//		"HEADER=Sec-Fetch-Mode: navigate",
//		"HEADER=Sec-Fetch-Site: same-origin",
//		"HEADER=Sec-Fetch-User: ?1",
//		"HEADER=Upgrade-Insecure-Requests: 1",
//		//"HEADER=Referer: {P_URL}/aaa-app/flow?_flowId=policy-detail-flow&policyId={C_PolicyID}&currentProductCd=AAA_HO_SS&_parentWindowId={C_windowID}", 
//		"Snapshot=t11.inf", 
//		ITEMDATA,
//		    "Name=searchForm%3AentityTypeSelect", "Value=customer",
//		    "Name=searchForm%3AcoveragesPremiumsTable%3A0%3ApolicyNumber", "Value={P_clkPolNum}",
//		    "Name=searchForm%3AcoveragesPremiumsTable%3A0%3AfirstName", "Value=",
//		    "Name=searchForm%3AcoveragesPremiumsTable%3A0%3AcustomerNumber", "Value=",
//		    "Name=searchForm%3AcoveragesPremiumsTable%3A0%3AproductCode", "Value=",
//		    "Name=searchForm%3AcoveragesPremiumsTable%3A0%3AlastName", "Value=",
//		    "Name=searchForm%3AcoveragesPremiumsTable%3A0%3AbrokerName", "Value=",
//		    "Name=searchForm%3AcoveragesPremiumsTable%3A0%3AagentOfRecord", "Value=",
//		    "Name=searchForm%3AcoveragesPremiumsTable%3A0%3Acity", "Value=",
//		    "Name=searchForm%3AcoveragesPremiumsTable%3A0%3AbrokerNumber", "Value=",
//		    "Name=searchForm%3AcoveragesPremiumsTable%3A0%3AagentNo", "Value=",
//		    "Name=searchForm%3AcoveragesPremiumsTable%3A0%3Astate", "Value=",
//		    "Name=searchForm%3AcoveragesPremiumsTable%3A0%3AunderwritingCompanyNumber", "Value=",
//		    "Name=searchForm%3AcoveragesPremiumsTable%3A0%3AaccountNumber", "Value=",
//		    "Name=searchForm%3AcoveragesPremiumsTable%3A0%3ApostCode", "Value=",
//		    "Name=searchForm%3AcoveragesPremiumsTable%3A0%3AbillingAccountNumber", "Value=",
//		    "Name=searchForm%3AcoveragesPremiumsTable%3A0%3Aphone", "Value=",
//		    "Name=searchForm_SUBMIT", "Value=1",
//		    "Name=javax.faces.ViewState", "Value={C_VSearchPolicy}",
//		    "Name=searchForm%3A_idcl", "Value=searchForm%3AclearListBtn",
//		ITEMDATA_END
//		);
//
//ns_end_transaction("A01_AZ_006_MPD_clkCustomerTab", NS_AUTO_STATUS);




ns_page_think_time(0.0);
	/* add quote */

	
	
	
	ns_start_transaction("A01_AZ_007_MPD_AddQuote");

	//addDynaTraceHeader("NA=A01_AZ_007_MPD_AddQuote;PC=flow_8");
	ns_web_url("General_AddQuote",
		"URL={P_URL}/aaa-app/flow?_flowId=crm-customer-detail-flow&_flowExecutionKey=e3s1&_windowId={C_windowID}", 
		"Method=POST", 
		"HEADER=Origin:https://e3.pncie.com",
		"REDIRECT=Yes",
        	"HEADER=Content-Type:application/x-www-form-urlencoded",
		//"HEADER=Referer: {P_URL}/aaa-app/flow?_flowId=crm-customer-detail-flow&customerId={c_custId}&_windowId={C_windowID}", 
		"Snapshot=t12.inf", 
		ITEMDATA, 
		"Name=quotes:quotesTogglePanel-value", "Value=true",  
		"Name=quotes_SUBMIT", "Value=1",  
		"Name=javax.faces.ViewState", "Value={C_VSCustomerTab}",  
		"Name=quotes:_idcl", "Value=quotes:addPolicyBtn",  
		ITEMDATA_END
		);
	ns_end_transaction("A01_AZ_007_MPD_AddQuote", NS_AUTO_STATUS);

	
	//return 0;
}
