示例#1
0
        public void TrimData()
        {
            if (Name == null)
            {
                Name = "";
            }

            if (EmailId == null)
            {
                EmailId = "";
            }

            if (EncryptedEmailId == null)
            {
                EncryptedEmailId = "";
            }

            if (MobileNo == null)
            {
                MobileNo = "";
            }

            if (EncryptedMobileNo == null)
            {
                EncryptedMobileNo = "";
            }

            if (LoginPassword == null)
            {
                LoginPassword = "";
            }

            if (EncryptedLoginPassword == null)
            {
                EncryptedLoginPassword = "";
            }

            if (PasswordResetToken == null)
            {
                PasswordResetToken = "";
            }

            if (Remarks == null)
            {
                Remarks = "";
            }


            Name              = Name.Trim();
            EmailId           = EmailId.Trim();
            EncryptedEmailId  = EncryptedEmailId.Trim();
            MobileNo          = MobileNo.Trim();
            EncryptedMobileNo = EncryptedMobileNo.Trim();

            LoginPassword          = LoginPassword.Trim();
            EncryptedLoginPassword = EncryptedLoginPassword.Trim();

            PasswordResetToken = PasswordResetToken.Trim();
            Remarks            = Remarks.Trim();
        }
示例#2
0
        public void TrimData()
        {
            if (Name == null)
            {
                Name = "";
            }

            if (Remarks == null)
            {
                Remarks = "";
            }

            if (InstituteMasterId < 0)
            {
                InstituteMasterId = 0;
            }

            if (InstituteName == null)
            {
                InstituteName = "";
            }

            Name    = Name.Trim().ToUpper();
            Remarks = Remarks.Trim().ToUpper();
        }
示例#3
0
        public void TrimData()
        {
            if (FullDocumentName == null)
            {
                FullDocumentName = "";
            }

            if (DocumentName == null)
            {
                DocumentName = "";
            }

            if (DocumentExtension == null)
            {
                DocumentExtension = "";
            }

            if (Remarks == null)
            {
                Remarks = "";
            }

            FullDocumentName  = FullDocumentName.Trim();
            DocumentName      = DocumentName.Trim();
            DocumentExtension = DocumentExtension.Trim();
            Remarks           = Remarks.Trim();
        }
示例#4
0
        public void TrimData()
        {
            if (BookingNumber == null)
            {
                BookingNumber = "";
            }

            if (SaraiMasterId < 0)
            {
                SaraiMasterId = 0;
            }

            if (CustomerMasterId < 0)
            {
                CustomerMasterId = 0;
            }

            if (NumberOfRooms < 0)
            {
                NumberOfRooms = 0;
            }

            if (AdultCount < 0)
            {
                AdultCount = 0;
            }

            if (ChildrenCount < 0)
            {
                ChildrenCount = 0;
            }

            if (ArrivalTime == null)
            {
                ArrivalTime = "";
            }

            if (ProofMasterId < 0)
            {
                ProofMasterId = 0;
            }

            if (ProofDocumentMasterId < 0)
            {
                ProofDocumentMasterId = 0;
            }

            if (ProofDocumentNumber == null)
            {
                ProofDocumentNumber = "";
            }

            if (Amount < 0)
            {
                Amount = 0;
            }

            if (Remarks == null)
            {
                Remarks = "";
            }

            if (IPAddress == null)
            {
                IPAddress = "";
            }

            if (OnlineBookingId < 0)
            {
                OnlineBookingId = 0;
            }

            if (CancelRemarks == null)
            {
                CancelRemarks = "";
            }

            BookingNumber       = BookingNumber.Trim();
            ArrivalTime         = ArrivalTime.Trim();
            ProofDocumentNumber = ProofDocumentNumber.Trim();
            Remarks             = Remarks.Trim();
            IPAddress           = IPAddress.Trim();
            CancelRemarks       = CancelRemarks.Trim();
        }
示例#5
0
        public void TrimData()
        {
            if (SessionId == null)
            {
                SessionId = "";
            }

            if (SaraiMasterId < 0)
            {
                SaraiMasterId = 0;
            }

            if (CustomerMasterId < 0)
            {
                CustomerMasterId = 0;
            }

            if (NumberOfRooms < 0)
            {
                NumberOfRooms = 0;
            }

            if (AdultCount < 0)
            {
                AdultCount = 0;
            }

            if (ChildrenCount < 0)
            {
                ChildrenCount = 0;
            }

            if (ArrivalTime == null)
            {
                ArrivalTime = "";
            }

            if (ProofMasterId < 0)
            {
                ProofMasterId = 0;
            }

            if (ProofDocumentMasterId < 0)
            {
                ProofDocumentMasterId = 0;
            }

            if (ProofDocumentNumber == null)
            {
                ProofDocumentNumber = "";
            }

            if (Amount < 0)
            {
                Amount = 0;
            }

            if (Remarks == null)
            {
                Remarks = "";
            }

            if (IPAddress == null)
            {
                IPAddress = "";
            }

            SessionId           = SessionId.Trim();
            ArrivalTime         = ArrivalTime.Trim();
            ProofDocumentNumber = ProofDocumentNumber.Trim();
            Remarks             = Remarks.Trim();
            IPAddress           = IPAddress.Trim();
        }