//public List<EpicIntegrator.Policy> GetPolicyFields(int CustID)
        //{

        //}

        public void TestPolicyConnect(int OldPolID)
        {
            CBLServiceReference.EpicSDK_2017_02Client EpicSDKClient = new CBLServiceReference.EpicSDK_2017_02Client();
            CBLServiceReference.PolicyGetResult       oPolicyResult = new CBLServiceReference.PolicyGetResult();
            CBLServiceReference.PolicyFilter          oPolicyFilter = new CBLServiceReference.PolicyFilter();
            CBLServiceReference.Policy oPol = new CBLServiceReference.Policy();
            oPolicyFilter.PolicyID = OldPolID;
            oPolicyResult          = EpicSDKClient.Get_Policy(oMessageHeader, oPolicyFilter, 0);
            oPol = oPolicyResult.Policies[0];

            Console.WriteLine(oPol.PolicyID);
            Console.WriteLine(oPol.PolicyNumber);

            Console.WriteLine(oPol.Description);
            //string newDesc = oPol.Description + "_x";

            oPol.Description = "Commercial General Liability";
            Console.WriteLine(oPol.Description);
            EpicSDKClient.Update_Policy(oMessageHeader, oPol);
        }
        public CBLServiceReference.Policy GetPolicy(int CustID)
        {
            CBLServiceReference.EpicSDK_2017_02Client EpicSDKClient = new CBLServiceReference.EpicSDK_2017_02Client();
            CBLServiceReference.PolicyGetResult       oPolicyResult = new CBLServiceReference.PolicyGetResult();
            CBLServiceReference.PolicyFilter          oPolicyFilter = new CBLServiceReference.PolicyFilter();
            CBLServiceReference.Policy pol = new CBLServiceReference.Policy();

            oPolicyFilter.ClientID = CustID;
            //oPolicyFilter.ExpirationDateBegins > DateTime.Now.Date;

            oPolicyResult = EpicSDKClient.Get_Policy(oMessageHeader, oPolicyFilter, 0);

            Console.WriteLine(oPolicyResult.Policies.Length);
            Console.WriteLine(oPolicyResult.Policies[0]);
            Console.WriteLine(oPolicyResult.Policies[1]);
            Console.WriteLine(oPolicyResult.Policies[2]);
            pol = oPolicyResult.Policies[0];

            return(pol);
        }