UNKNOWN //************************************** // Name: sss // Description:sss // By: sconci // // // Inputs:None // // Returns:None // //Assumes:None // //Side Effects:None //This code is copyrighted and has limited warranties. //Please see http://www.Planet-Source-Code.com/xq/ASP/txtCodeId.9099/lngWId.10/qx/vb/scripts/ShowCode.htm //for details. //************************************** var config = Utilities.GetConfiguration(); var parameters = new List<CaseServices.ExternalSourceQueryParameter> { new CaseServices.ExternalSourceQueryParameter {Parameter = "vin", Value = request.CaseCreationInfo.Vehicle.Vin} }; var externalSourceQueryDTO = new ExternalSourceQuery { ServiceProvider = config.SearchPolicyConfiguration.ServiceProvider, //DataSources = , // OPTIONAL! Operation = Constants.QueryExternalSourceOperationForSearchPolicy, Parameters = parameters, FilterDataXPath = GetFilterDataXPath(request.CaseCreationInfo.CoverageInfo) }; var thirds = new List<ThirdCriteria>(); if (request.CaseCreationInfo.Vehicle != null) thirds.Add(GetVehicleThird(request.CaseCreationInfo.Vehicle)); var beneficiary = GetBeneficiary(request.CaseCreationInfo.Beneficiary); if (!request.CaseCreationInfo.IsBeneficiaryAssisted && request.CaseCreationInfo.Assisted != null) thirds.Add(GetAssisted(request.CaseCreationInfo.Assisted)); else beneficiary.Roles.Add(new RoleInfo { RoleType = Constants.CONST_ROLE_CODE_CUSTOMER }); thirds.Add(beneficiary); var incidentDate = request.CaseCreationInfo.IncidentInfo.Date; if (!string.IsNullOrEmpty(request.CaseCreationInfo.IncidentInfo.Time)) { // TODO CGAT2 : Check the format of the time. var timeparts = request.CaseCreationInfo.IncidentInfo.Time.Split(',', ':', '.'); incidentDate.AddHours(Convert.ToDouble(timeparts[0])); incidentDate.AddMinutes(Convert.ToDouble(timeparts[1])); if (timeparts.Length > 2) incidentDate.AddSeconds(Convert.ToDouble(timeparts[2])); }