CREATE PROC INBOUND_PROC_DROPDOWNLISTS
     @flag			VARCHAR(200)  
    ,@param			VARCHAR(200)  = NULL  
    ,@searchBy		VARCHAR(50)   = NULL  
    ,@sCountryId	VARCHAR(20)   = NULL  
    ,@rCountryId	VARCHAR(20)   = NULL   
    ,@user			VARCHAR(30)   = NULL  
    ,@userType		VARCHAR(5)    = NULL  
      
AS
SET NOCOUNT ON;
IF @flag='s-country-list'
BEGIN
	SELECT countryId, countryName FROM countryMaster CM(NOLOCK)
	WHERE ISNULL(isOperativeCountry, 'N') = 'Y'
	AND operationType IN ('S', 'B')
	AND  ISNULL(isDeleted, 'N') = 'N'
	AND ISNULL(isActive, 'Y') = 'Y'
	AND CM.countryName<>'South Korea'
	RETURN
END
ELSE IF @flag='agent-list'
BEGIN
	SELECT agentId, agentName FROM agentMaster (NOLOCK)
	WHERE agentid=601358
	AND ISNULL(isActive, 'Y') = 'Y'
	AND ISNULL(isDeleted, 'N') = 'N'
	RETURN
END