Ejemplo n.º 1
0
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="tblConsignmentNote"/> converted from <see cref="tblConsignmentNoteDTO"/>.</param>
 static partial void OnEntity(this tblConsignmentNoteDTO dto, tblConsignmentNote entity);
Ejemplo n.º 2
0
        /// <summary>
        /// Converts this instance of <see cref="tblConsignmentNoteDTO"/> to an instance of <see cref="tblConsignmentNote"/>.
        /// </summary>
        /// <param name="dto"><see cref="tblConsignmentNoteDTO"/> to convert.</param>
        public static tblConsignmentNote ToEntity(this tblConsignmentNoteDTO dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new tblConsignmentNote();

            entity.ConsignmentId            = dto.ConsignmentId;
            entity.ConsignmentNoteNo        = dto.ConsignmentNoteNo;
            entity.CompanyName              = dto.CompanyName;
            entity.PolicyNo                 = dto.PolicyNo;
            entity.CompanyDate              = dto.CompanyDate;
            entity.CompanyAmount            = dto.CompanyAmount;
            entity.CompanyPhone             = dto.CompanyPhone;
            entity.ConsigneeId              = dto.ConsigneeId;
            entity.ConsignorId              = dto.ConsignorId;
            entity.ConsigneeInvoiceNo       = dto.ConsigneeInvoiceNo;
            entity.ConsigneeServiceTaxRegNo = dto.ConsigneeServiceTaxRegNo;
            entity.ConsignorPurchaseOrderNo = dto.ConsignorPurchaseOrderNo;
            entity.ConsignorServiceTaxRegNo = dto.ConsignorServiceTaxRegNo;
            entity.FromCode                 = dto.FromCode;
            entity.ToCode                          = dto.ToCode;
            entity.NoofPackages                    = dto.NoofPackages;
            entity.MethodOfPacking                 = dto.MethodOfPacking;
            entity.ActualWtInKGS                   = dto.ActualWtInKGS;
            entity.CategoryOfLoad                  = dto.CategoryOfLoad;
            entity.Rate                            = dto.Rate;
            entity.LoadType                        = dto.LoadType;
            entity.Distance                        = dto.Distance;
            entity.KMS                             = dto.KMS;
            entity.DescriptionSaidToContain        = dto.DescriptionSaidToContain;
            entity.PrivateMarketOtherIdentificaion = dto.PrivateMarketOtherIdentificaion;
            entity.BusinessType                    = dto.BusinessType;
            entity.AdvancedPaymentMRNo             = dto.AdvancedPaymentMRNo;
            entity.AdvancedPaymentDate             = dto.AdvancedPaymentDate;
            entity.AdvancedPaymentAmount           = dto.AdvancedPaymentAmount;
            entity.DimensionLength                 = dto.DimensionLength;
            entity.DimensionWidth                  = dto.DimensionWidth;
            entity.DimensionHeight                 = dto.DimensionHeight;
            entity.DimensionNoOfPKGS               = dto.DimensionNoOfPKGS;
            entity.DimensionTotalCFTCMT            = dto.DimensionTotalCFTCMT;
            entity.DimensionSinglePieceWeight      = dto.DimensionSinglePieceWeight;
            entity.DeclarationNo                   = dto.DeclarationNo;
            entity.ValidUpto                       = dto.ValidUpto;
            entity.DeclaredValueOfGoods            = dto.DeclaredValueOfGoods;
            entity.BasicOfBooking                  = dto.BasicOfBooking;
            entity.BilledWithMs                    = dto.BilledWithMs;
            entity.BranchCode                      = dto.BranchCode;
            entity.ToPay                           = dto.ToPay;
            entity.Rebooking                       = dto.Rebooking;
            entity.MainConsignmentNo               = dto.MainConsignmentNo;
            entity.GoodRecievedDetails             = dto.GoodRecievedDetails;
            entity.Charges1                        = dto.Charges1;
            entity.Amount1                         = dto.Amount1;
            entity.Charges2                        = dto.Charges2;
            entity.Amount2                         = dto.Amount2;
            entity.Charges3                        = dto.Charges3;
            entity.Amount3                         = dto.Amount3;
            entity.Charges4                        = dto.Charges4;
            entity.Amount4                         = dto.Amount4;
            entity.Charges5                        = dto.Charges5;
            entity.Amount5                         = dto.Amount5;
            entity.FinalAmount                     = dto.FinalAmount;
            entity.ServiceTaxisPayableBy           = dto.ServiceTaxisPayableBy;
            entity.PanNo                           = dto.PanNo;
            entity.PartyCode                       = dto.PartyCode;
            entity.ServicetaxThrough               = dto.ServicetaxThrough;
            entity.ValidType                       = dto.ValidType;
            entity.PhoneNo                         = dto.PhoneNo;
            entity.AddressofIssuing                = dto.AddressofIssuing;
            entity.ConsignmentDate                 = dto.ConsignmentDate;
            entity.CentralisedServiceTaxRegnNo     = dto.CentralisedServiceTaxRegnNo;

            dto.OnEntity(entity);

            return(entity);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="tblConsignmentNoteDTO"/> converted from <see cref="tblConsignmentNote"/>.</param>
 static partial void OnDTO(this tblConsignmentNote entity, tblConsignmentNoteDTO dto);