public nodeorganizationprofileDto(Int32 i_NodeId, String v_OrganizationId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, nodeDto node, organizationDto organization)
 {
     this.i_NodeId         = i_NodeId;
     this.v_OrganizationId = v_OrganizationId;
     this.i_IsDeleted      = i_IsDeleted;
     this.i_InsertUserId   = i_InsertUserId;
     this.d_InsertDate     = d_InsertDate;
     this.i_UpdateUserId   = i_UpdateUserId;
     this.d_UpdateDate     = d_UpdateDate;
     this.node             = node;
     this.organization     = organization;
 }
 public liquidacionDto(String v_LiquidacionId, String v_NroLiquidacion, String v_OrganizationId, Nullable <Decimal> d_Monto, Nullable <DateTime> d_FechaVencimiento, String v_NroFactura, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, organizationDto organization)
 {
     this.v_LiquidacionId    = v_LiquidacionId;
     this.v_NroLiquidacion   = v_NroLiquidacion;
     this.v_OrganizationId   = v_OrganizationId;
     this.d_Monto            = d_Monto;
     this.d_FechaVencimiento = d_FechaVencimiento;
     this.v_NroFactura       = v_NroFactura;
     this.i_IsDeleted        = i_IsDeleted;
     this.i_InsertUserId     = i_InsertUserId;
     this.d_InsertDate       = d_InsertDate;
     this.i_UpdateUserId     = i_UpdateUserId;
     this.d_UpdateDate       = d_UpdateDate;
     this.organization       = organization;
 }
        /// <summary>
        /// Converts this instance of <see cref="organization"/> to an instance of <see cref="organizationDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="organization"/> to convert.</param>
        public static organizationDto ToDTO(this organization entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new organizationDto();

            dto.v_OrganizationId       = entity.v_OrganizationId;
            dto.i_OrganizationTypeId   = entity.i_OrganizationTypeId;
            dto.i_SectorTypeId         = entity.i_SectorTypeId;
            dto.v_SectorName           = entity.v_SectorName;
            dto.v_SectorCodigo         = entity.v_SectorCodigo;
            dto.v_IdentificationNumber = entity.v_IdentificationNumber;
            dto.v_Name                     = entity.v_Name;
            dto.v_Address                  = entity.v_Address;
            dto.v_PhoneNumber              = entity.v_PhoneNumber;
            dto.v_Mail                     = entity.v_Mail;
            dto.v_ContacName               = entity.v_ContacName;
            dto.v_Contacto                 = entity.v_Contacto;
            dto.v_EmailContacto            = entity.v_EmailContacto;
            dto.v_Observation              = entity.v_Observation;
            dto.i_NumberQuotasOrganization = entity.i_NumberQuotasOrganization;
            dto.i_NumberQuotasMen          = entity.i_NumberQuotasMen;
            dto.i_NumberQuotasWomen        = entity.i_NumberQuotasWomen;
            dto.i_DepartmentId             = entity.i_DepartmentId;
            dto.i_ProvinceId               = entity.i_ProvinceId;
            dto.i_DistrictId               = entity.i_DistrictId;
            dto.i_IsDeleted                = entity.i_IsDeleted;
            dto.i_InsertUserId             = entity.i_InsertUserId;
            dto.d_InsertDate               = entity.d_InsertDate;
            dto.i_UpdateUserId             = entity.i_UpdateUserId;
            dto.d_UpdateDate               = entity.d_UpdateDate;
            dto.b_Image                    = entity.b_Image;
            dto.v_ContactoMedico           = entity.v_ContactoMedico;
            dto.v_EmailMedico              = entity.v_EmailMedico;
            dto.r_Factor                   = entity.r_Factor;
            dto.r_FactorMed                = entity.r_FactorMed;

            entity.OnDTO(dto);

            return(dto);
        }
        /// <summary>
        /// Converts this instance of <see cref="organizationDto"/> to an instance of <see cref="organization"/>.
        /// </summary>
        /// <param name="dto"><see cref="organizationDto"/> to convert.</param>
        public static organization ToEntity(this organizationDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new organization();

            entity.v_OrganizationId       = dto.v_OrganizationId;
            entity.i_OrganizationTypeId   = dto.i_OrganizationTypeId;
            entity.i_SectorTypeId         = dto.i_SectorTypeId;
            entity.v_SectorName           = dto.v_SectorName;
            entity.v_SectorCodigo         = dto.v_SectorCodigo;
            entity.v_IdentificationNumber = dto.v_IdentificationNumber;
            entity.v_Name                     = dto.v_Name;
            entity.v_Address                  = dto.v_Address;
            entity.v_PhoneNumber              = dto.v_PhoneNumber;
            entity.v_Mail                     = dto.v_Mail;
            entity.v_ContacName               = dto.v_ContacName;
            entity.v_Contacto                 = dto.v_Contacto;
            entity.v_EmailContacto            = dto.v_EmailContacto;
            entity.v_Observation              = dto.v_Observation;
            entity.i_NumberQuotasOrganization = dto.i_NumberQuotasOrganization;
            entity.i_NumberQuotasMen          = dto.i_NumberQuotasMen;
            entity.i_NumberQuotasWomen        = dto.i_NumberQuotasWomen;
            entity.i_DepartmentId             = dto.i_DepartmentId;
            entity.i_ProvinceId               = dto.i_ProvinceId;
            entity.i_DistrictId               = dto.i_DistrictId;
            entity.i_IsDeleted                = dto.i_IsDeleted;
            entity.i_InsertUserId             = dto.i_InsertUserId;
            entity.d_InsertDate               = dto.d_InsertDate;
            entity.i_UpdateUserId             = dto.i_UpdateUserId;
            entity.d_UpdateDate               = dto.d_UpdateDate;
            entity.b_Image                    = dto.b_Image;
            entity.v_ContactoMedico           = dto.v_ContactoMedico;
            entity.v_EmailMedico              = dto.v_EmailMedico;

            dto.OnEntity(entity);

            return(entity);
        }
Example #5
0
 public warehouseDto(String v_WarehouseId, String v_OrganizationId, String v_LocationId, String v_Name, String v_AdditionalInformation, Nullable <Int32> i_CostCenterId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, List <movementDto> movement, List <movementdetailDto> movementdetail, List <nodeorganizationlocationwarehouseprofileDto> nodeorganizationlocationwarehouseprofile, List <productwarehouseDto> productwarehouse, List <restrictedwarehouseprofileDto> restrictedwarehouseprofile, locationDto location, organizationDto organization)
 {
     this.v_WarehouseId           = v_WarehouseId;
     this.v_OrganizationId        = v_OrganizationId;
     this.v_LocationId            = v_LocationId;
     this.v_Name                  = v_Name;
     this.v_AdditionalInformation = v_AdditionalInformation;
     this.i_CostCenterId          = i_CostCenterId;
     this.i_IsDeleted             = i_IsDeleted;
     this.i_InsertUserId          = i_InsertUserId;
     this.d_InsertDate            = d_InsertDate;
     this.i_UpdateUserId          = i_UpdateUserId;
     this.d_UpdateDate            = d_UpdateDate;
     this.movement                = movement;
     this.movementdetail          = movementdetail;
     this.nodeorganizationlocationwarehouseprofile = nodeorganizationlocationwarehouseprofile;
     this.productwarehouse           = productwarehouse;
     this.restrictedwarehouseprofile = restrictedwarehouseprofile;
     this.location     = location;
     this.organization = organization;
 }
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="organization"/> converted from <see cref="organizationDto"/>.</param>
 static partial void OnEntity(this organizationDto dto, organization entity);
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="organizationDto"/> converted from <see cref="organization"/>.</param>
 static partial void OnDTO(this organization entity, organizationDto dto);
 public nodeorganizationlocationwarehouseprofileDto(Int32 i_NodeId, String v_OrganizationId, String v_LocationId, String v_WarehouseId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, nodeDto node, organizationDto organization, locationDto location, warehouseDto warehouse)
 {
     this.i_NodeId         = i_NodeId;
     this.v_OrganizationId = v_OrganizationId;
     this.v_LocationId     = v_LocationId;
     this.v_WarehouseId    = v_WarehouseId;
     this.i_IsDeleted      = i_IsDeleted;
     this.i_InsertUserId   = i_InsertUserId;
     this.d_InsertDate     = d_InsertDate;
     this.i_UpdateUserId   = i_UpdateUserId;
     this.d_UpdateDate     = d_UpdateDate;
     this.node             = node;
     this.organization     = organization;
     this.location         = location;
     this.warehouse        = warehouse;
 }
Example #9
0
 public locationDto(String v_LocationId, String v_OrganizationId, String v_Name, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, List <areaDto> area, List <groupoccupationDto> groupoccupation, organizationDto organization, List <nodeorganizationlocationprofileDto> nodeorganizationlocationprofile, List <nodeorganizationlocationwarehouseprofileDto> nodeorganizationlocationwarehouseprofile, List <warehouseDto> warehouse)
 {
     this.v_LocationId     = v_LocationId;
     this.v_OrganizationId = v_OrganizationId;
     this.v_Name           = v_Name;
     this.i_IsDeleted      = i_IsDeleted;
     this.i_InsertUserId   = i_InsertUserId;
     this.d_InsertDate     = d_InsertDate;
     this.i_UpdateUserId   = i_UpdateUserId;
     this.d_UpdateDate     = d_UpdateDate;
     this.area             = area;
     this.groupoccupation  = groupoccupation;
     this.organization     = organization;
     this.nodeorganizationlocationprofile          = nodeorganizationlocationprofile;
     this.nodeorganizationlocationwarehouseprofile = nodeorganizationlocationwarehouseprofile;
     this.warehouse = warehouse;
 }