示例#1
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();
        }
示例#2
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();
        }