Beispiel #1
0
        public XmlDocument UpdateAndRenewPass(int cardHolderId, string ISRN, string title, string forename, string surname,
                                              string dateOfBirth, string gender, string disabilitycategory, string caseId)
        {
            return(CT_WSBL.getInstance().UpdateAndRenewPass(cardHolderId, ISRN, title, forename, surname,
                                                            dateOfBirth, gender, disabilitycategory, caseId));
            //if (log.IsInfoEnabled) log.Info("Updating and renewing pass details");
            //logParams(cardHolderId, ISRN, title, forename, surname, dateOfBirth, gender, disabilitycategory, caseId);
            //if (log.IsDebugEnabled) log.Debug("Checking pass number against the supplied pass number");
            //SmartCitizenCard currentSmartCitizenCard =
            //     getSmartCitizenCardForPerson(new RecordIdentifier() { CardholderID = cardHolderId });

            //if (currentSmartCitizenCard.ISRN != ISRN)
            //    throw new ScValidationException(ScValidationException.ScValidationReason.CardNotMatched);

            //if (!currentSmartCitizenCard.CanBeRenewed)
            //    throw new ScValidationException(
            //        ScValidationException.ScValidationReason.CardOutsideRenewalWindow);

            ///*if(!currentSmartCitizenCard.IsValid)
            //    throw new ScValidationException(
            //           ScValidationException.ScValidationReason.CardNotValid);*/

            //UpdatePassHolderDetails(cardHolderId, title, forename, surname, dateOfBirth, gender, disabilitycategory);
            //return ReplacePass(cardHolderId, ISRN, 17, caseId);
        }
Beispiel #2
0
 public XmlDocument issueNewPass(string CPICC, string firmstepCaseId, string title, string firstNameOrInitial, string surname, string houseOrFlatNameOrNumber,
                                 string buildingName, string street, string villageOrDistrict, string townCity, string county, string postcode,
                                 string dateOfBirth, string typeOfConcession, string disabilityPermanent, string evidenceExpiryDate, string passStartDate, string passImageString, string passPrintReason, string gender, string disabilityCategory, string UPRN, SmartCitizenConnector.Proof[] proofs, string homePhone, string mobilePhone, string emailAddress, string preferredContactMethod)
 {
     return(CT_WSBL.getInstance().IssuePass(CPICC, firmstepCaseId, firstNameOrInitial, surname, houseOrFlatNameOrNumber,
                                            buildingName, street, villageOrDistrict, townCity, county, postcode, title, dateOfBirth, typeOfConcession, disabilityPermanent, evidenceExpiryDate, passStartDate, passImageString, passPrintReason, gender, disabilityCategory, UPRN, proofs, homePhone, mobilePhone, emailAddress, preferredContactMethod.ToLower()));
 }
Beispiel #3
0
 public XmlDocument UpdatePassDetails(string ISRN, string passHolderNumber, string CPICC, string title, string firstNameOrInitial, string surname, string houseOrFlatNameOrNumber,
                                      string buildingName, string street, string villageOrDistrict, string townCity, string county, string postcode,
                                      string dateOfBirth, string typeOfConcession, string disabilityPermanant, string evidenceExpiryDate, string passStartDate, bool reissuePass, string oldCPICC, bool recalculateExpiryDate, string northgateCaseNumber, string printReason,
                                      string gender, string disabilityCategory, string UPRN)//, byte[] imageFile)
 {
     return(CT_WSBL.getInstance().updatePassDetails(ISRN, CPICC, passHolderNumber, firstNameOrInitial, surname, houseOrFlatNameOrNumber,
                                                    buildingName, street, villageOrDistrict, townCity, county, postcode, title, dateOfBirth, typeOfConcession, disabilityPermanant,
                                                    evidenceExpiryDate, passStartDate, reissuePass, oldCPICC, recalculateExpiryDate, northgateCaseNumber, printReason, gender, disabilityCategory, UPRN));
 }
Beispiel #4
0
 public XmlDocument GetPassStatus(int recordID)//record ID needed instead of cpicc and passholder number
 {
     if (log.IsErrorEnabled)
     {
         log.Error("Attempt to call GetPassStatus");
     }
     // throw new NotImplementedException();
     //return CT_WSBL.getInstance().queryPassStatus(CPICC, passHolderNumber, requestIssuedSince);
     return(CT_WSBL.getInstance().GetPassInformation(recordID));
 }
Beispiel #5
0
        public XmlDocument UpdatePassDetails(string ISRN, string passHolderNumber, string CPICC, string title, string firstNameOrInitial, string surname, string houseOrFlatNameOrNumber,
                                             string buildingName, string street, string villageOrDistrict, string townCity, string county, string postcode,
                                             string dateOfBirth, string typeOfConcession, string disabilityPermanent, string evidenceExpiryDate, string passStartDate, bool reissuePass, string oldCPICC, bool recalculateExpiryDate, string northgateCaseNumber, string printReason,
                                             string gender, string disabilityCategory, string UPRN, string homePhone, string mobilePhone, string emailAddress, string preferredContactMethod, string oldPassStatus)//, byte[] imageFile)
        {
            int?oldPassStatusInt = null;

            if (!String.IsNullOrEmpty(oldPassStatus))
            {
                oldPassStatusInt = Convert.ToInt16(oldPassStatus);
            }
            return(CT_WSBL.getInstance().updatePassDetails(ISRN, CPICC, passHolderNumber, firstNameOrInitial, surname, houseOrFlatNameOrNumber,
                                                           buildingName, street, villageOrDistrict, townCity, county, postcode, title, dateOfBirth, typeOfConcession, disabilityPermanent,
                                                           evidenceExpiryDate, passStartDate, reissuePass, oldCPICC, recalculateExpiryDate, northgateCaseNumber, printReason, gender, disabilityCategory, UPRN, homePhone, mobilePhone, emailAddress, preferredContactMethod.ToLower(), oldPassStatusInt));
        }
Beispiel #6
0
 public XmlDocument issuePass(string CPICC, string northgateCaseID, string title, string firstNameOrInitial, string surname, string houseOrFlatNameOrNumber,
                              string buildingName, string street, string villageOrDistrict, string townCity, string county, string postcode,
                              string dateOfBirth, string typeOfConcession, string disabilityPermanant, string evidenceExpiryDate, string passStartDate, string passImageString, string passPrintReason, string gender, string disabilityCategory, string UPRN, string addressProofId, string addressProofDate, string addressProofReference, string ageProofId, string ageProofDate, string ageProofReference, string disabilityProofId, string disabilityProofDate, string disabilityProofReference)
 {
     SmartCitizenConnector.Proof addressProof = new SmartCitizenConnector.Proof(Convert.ToInt32(addressProofId), addressProofReference, null, DateTime.Parse(addressProofDate));
     SmartCitizenConnector.Proof ageProof     = null;
     if (!String.IsNullOrEmpty(ageProofReference))
     {
         ageProof = new SmartCitizenConnector.Proof(Convert.ToInt32(ageProofId), ageProofReference, DateTime.Parse(ageProofDate), DateTime.Now);
     }
     SmartCitizenConnector.Proof disabilityProof = null;
     if (!String.IsNullOrEmpty(disabilityProofReference))
     {
         disabilityProof = new SmartCitizenConnector.Proof(Convert.ToInt32(disabilityProofId), disabilityProofReference, DateTime.Parse(evidenceExpiryDate), DateTime.Parse(disabilityProofDate));
     }
     return(CT_WSBL.getInstance().IssuePass(CPICC, northgateCaseID, firstNameOrInitial, surname, houseOrFlatNameOrNumber,
                                            buildingName, street, villageOrDistrict, townCity, county, postcode, title, dateOfBirth, typeOfConcession, disabilityPermanant, evidenceExpiryDate, passStartDate, passImageString, passPrintReason, gender, disabilityCategory, UPRN, addressProof, ageProof, disabilityProof));
 }
Beispiel #7
0
 public XmlDocument issuePass(string CPICC, string northgateCaseID, string title, string firstNameOrInitial, string surname, string houseOrFlatNameOrNumber,
                              string buildingName, string street, string villageOrDistrict, string townCity, string county, string postcode,
                              string dateOfBirth, string typeOfConcession, string disabilityPermanant, string evidenceExpiryDate, string passStartDate, string passImageString, string passPrintReason, string gender, string disabilityCategory, string UPRN, string addressProofId, string addressProofDate, string addressProofReference, string ageProofId, string ageProofDate, string ageProofReference, string disabilityProofId, string disabilityProofDate, string disabilityProofReference, string homePhone, string mobilePhone, string emailAddress, string preferredContactMethod)
 {
     if (log.IsWarnEnabled)
     {
         log.Warn("Firmstep Case reference " + northgateCaseID + " is calling an obsolete method. Please update to use the new method.");
     }
     SmartCitizenConnector.Proof addressProof = new SmartCitizenConnector.Proof(Convert.ToInt32(addressProofId), addressProofReference, null, DateTime.Parse(addressProofDate));
     SmartCitizenConnector.Proof ageProof     = null;
     if (!String.IsNullOrEmpty(ageProofReference))
     {
         ageProof = new SmartCitizenConnector.Proof(Convert.ToInt32(ageProofId), ageProofReference, DateTime.Parse(ageProofDate), DateTime.Now);
     }
     SmartCitizenConnector.Proof disabilityProof = null;
     if (!String.IsNullOrEmpty(disabilityProofReference))
     {
         disabilityProof = new SmartCitizenConnector.Proof(Convert.ToInt32(disabilityProofId), disabilityProofReference, DateTime.Parse(evidenceExpiryDate), DateTime.Parse(disabilityProofDate));
     }
     return(CT_WSBL.getInstance().IssuePass(CPICC, northgateCaseID, firstNameOrInitial, surname, houseOrFlatNameOrNumber,
                                            buildingName, street, villageOrDistrict, townCity, county, postcode, title, dateOfBirth, typeOfConcession, disabilityPermanant, evidenceExpiryDate, passStartDate, passImageString, passPrintReason, gender, disabilityCategory, UPRN, addressProof, ageProof, disabilityProof, homePhone, mobilePhone, emailAddress, preferredContactMethod.ToLower()));
 }
Beispiel #8
0
 public XmlDocument CancelPass(string ISRN, string delay)
 {
     return(CT_WSBL.getInstance().cancelPass(ISRN, delay));
 }
Beispiel #9
0
 public XmlDocument QueryPassFromPassHolderNumber(string CPICC, string passHolderNumber)
 {
     return(CT_WSBL.getInstance().queryPassFromPassholderNumber(CPICC, passHolderNumber));
 }
Beispiel #10
0
 public XmlDocument QueryPass(string forename, string Surname, string postcode, string passNo)
 {
     return(CT_WSBL.getInstance().queryPass(forename, Surname, postcode, String.Empty, passNo));
 }
Beispiel #11
0
 public XmlDocument FlagPass(string CPICC, string PassHolderNumber, string FlagDescription)
 {
     return(CT_WSBL.getInstance().flagPass(CPICC, PassHolderNumber, FlagDescription));
 }
Beispiel #12
0
 public XmlDocument UpdateImage(string passHolderNumber, string CPICC, string passImageString)
 {
     return(CT_WSBL.getInstance().updatePassImage(CPICC, passHolderNumber, passImageString));
 }