Example #1
0
 protected BaseWebEngine(string name)
 {
     m_serviceName = name;
     m_webTimeout  = 30;
     m_call        = null;
     m_rqId        = String.Empty;
     m_config      = null;
 }
Example #2
0
        /// <summary>
        /// Gets the request rquid from the call if it exists.
        /// Otherwise it creates and sets it.
        /// </summary>
        static public string GetRequestRquId(FnsInterfaces.ICall call)
        {
            var results = call.GetValue(BaseWebEngine.RequestRquidAttribute);

            if (!string.IsNullOrEmpty(results))
            {
                return(results);
            }
            results = GetRquId(call.lCallId.ToString(CultureInfo.InvariantCulture));
            call.SetValue(BaseWebEngine.RequestRquidAttribute, results);
            return(results);
        }
Example #3
0
        /// <summary>
        /// extract the POLICY_NUMBER attribute wherever it may reside...
        /// </summary>
        /// <param name="call"></param>
        /// <returns></returns>
        public static string GetPolicyNumber(ICall call)
        {
            if (null == call)
            {
                return(string.Empty);
            }
            var results = call.GetValue("LU_POLICY_NUMBER").Trim(); // lookup first

            if (!string.IsNullOrEmpty(results))
            {
                return(results);
            }
            var sql = call.GetValue(LookupSql);

            if (!string.IsNullOrEmpty(sql))
            {
                results = ExtractParmFromLookupFrameSQL(sql, "POLICY_NUMBER").Trim();
            }

            return(string.IsNullOrEmpty(results)
              ? call.GetValue("CLAIM:POLICY:POLICY_NUMBER").Trim()
              : results);
        }