partial void Agregar_Execute() { ContratosItem contrato = new ContratosItem(); char pad=' ';//agrega junto con el PadRight los espacios necesarios para completar el largo de caracteres //en el insert de info. //representante contrato.RUN = Representante.RUN.PadRight(8, pad); contrato.Dig_Verificador = Representante.Dig_Verificador.PadRight(1, pad); contrato.apellido_Paterno = Representante.apellido_Paterno.PadRight(20, pad); contrato.apellido_Materno = Representante.apellido_Materno.PadRight(20, pad); contrato.Nombres = Representante.Nombres.PadRight(30, pad); //responsable contrato.RUN_respo = Responsable.RUN_respo.PadRight(8, pad); contrato.Dig_verificador_respo = Responsable.Dig_verificador_respo.PadRight(1, pad); contrato.apellido_Paterno_respo = Responsable.apellido_Paterno_respo.PadRight(20, pad); contrato.apellido_Materno_respo = Responsable.apellido_Materno_respo.PadRight(20, pad); contrato.nombres_Respo = Responsable.nombres_Respo.PadRight(30, pad); contrato.cargo_desemp_ADM = Responsable.cargo_desemp_ADM.PadRight(50, pad); //empresa contrato.RUT_emp_Contraparte = Empresa.RUT_emp_Contraparte.PadRight(8, pad); contrato.Dig_verificador_emp_subco = Empresa.Dig_verificador_emp_subco.PadRight(1, pad); contrato.razon_Social = Empresa.razon_Social.PadRight(50, pad); contrato.in_exist_pat_ADM = Empresa.in_exist_pat_ADM.PadRight(1, pad); contrato.cod_act_Eco = Empresa.cod_act_Eco.PadRight(6, pad); contrato.RUT_rep_Legal = Empresa.RUT_rep_Legal.PadRight(8, pad); contrato.Dig_verificador_reo_Legal = Empresa.Dig_verificador_reo_Legal.PadRight(1, pad); contrato.razon_social_rep_Legal = Empresa.razon_social_rep_Legal.PadRight(50, pad); contrato.ape_paterno_rep_Legal = Empresa.ape_paterno_rep_Legal.PadRight(20, pad); contrato.ape_materno_rep_Legal = Empresa.ape_materno_rep_Legal.PadRight(20, pad); contrato.nombres_rep_Legal = Empresa.nombres_rep_Legal.PadRight(30, pad); //servicios contrato.descripcion_Servicio = Servicio.descripcion_Servicio.PadRight(50, pad); contrato.categoria_Servicio = Servicio.categoria_Servicio.PadRight(1, pad); contrato.clasificacion_Servicio = Servicio.clasificacion_Servicio.PadRight(2, pad); contrato.fecha_sus_Contrato = Servicio.fecha_sus_Contrato.PadRight(8, pad); contrato.fecha_entr_Vigencia = Servicio.fecha_sus_Contrato.PadRight(8, pad); contrato.fecha_expira_Estipulada = Servicio.fecha_expira_Estipulada.PadRight(8, pad); contrato.lugar_prest_Servicio = Servicio.lugar_prest_Servicio.PadRight(50, pad); }
public void AddToContratos(ContratosItem contratosItem) { base.AddObject("Contratos", contratosItem); }
public static ContratosItem CreateContratosItem( string rUN, string dig_Verificador, string apellido_Paterno, string apellido_Materno, string nombres, string rUN_respo, string dig_verificador_respo, string apellido_Paterno_respo, string apellido_Materno_respo, string nombres_Respo, string cargo_desemp_ADM, string rUT_emp_Contraparte, string dig_verificador_emp_subco, string razon_Social, string in_exist_pat_ADM, string cod_act_Eco, string rUT_rep_Legal, string dig_verificador_reo_Legal, string ape_paterno_rep_Legal, string ape_materno_rep_Legal, string nombres_rep_Legal, string descripcion_Servicio, string categoria_Servicio, string clasificacion_Servicio, string fecha_sus_Contrato, string fecha_entr_Vigencia, string fecha_expira_Estipulada, string lugar_prest_Servicio) { ContratosItem contratosItem = new ContratosItem(); contratosItem.RUN = rUN; contratosItem.Dig_Verificador = dig_Verificador; contratosItem.apellido_Paterno = apellido_Paterno; contratosItem.apellido_Materno = apellido_Materno; contratosItem.Nombres = nombres; contratosItem.RUN_respo = rUN_respo; contratosItem.Dig_verificador_respo = dig_verificador_respo; contratosItem.apellido_Paterno_respo = apellido_Paterno_respo; contratosItem.apellido_Materno_respo = apellido_Materno_respo; contratosItem.nombres_Respo = nombres_Respo; contratosItem.cargo_desemp_ADM = cargo_desemp_ADM; contratosItem.RUT_emp_Contraparte = rUT_emp_Contraparte; contratosItem.Dig_verificador_emp_subco = dig_verificador_emp_subco; contratosItem.razon_Social = razon_Social; contratosItem.in_exist_pat_ADM = in_exist_pat_ADM; contratosItem.cod_act_Eco = cod_act_Eco; contratosItem.RUT_rep_Legal = rUT_rep_Legal; contratosItem.Dig_verificador_reo_Legal = dig_verificador_reo_Legal; contratosItem.ape_paterno_rep_Legal = ape_paterno_rep_Legal; contratosItem.ape_materno_rep_Legal = ape_materno_rep_Legal; contratosItem.nombres_rep_Legal = nombres_rep_Legal; contratosItem.descripcion_Servicio = descripcion_Servicio; contratosItem.categoria_Servicio = categoria_Servicio; contratosItem.clasificacion_Servicio = clasificacion_Servicio; contratosItem.fecha_sus_Contrato = fecha_sus_Contrato; contratosItem.fecha_entr_Vigencia = fecha_entr_Vigencia; contratosItem.fecha_expira_Estipulada = fecha_expira_Estipulada; contratosItem.lugar_prest_Servicio = lugar_prest_Servicio; return contratosItem; }