public static PasoAge AgenteTOwsAgente(SISEAge_Result entAgente) { PasoAge wsAgente = new PasoAge(); wsAgente.Id_pv = entAgente.id_pv.ToString(); wsAgente.Cod_suc = entAgente.cod_suc.ToString(); wsAgente.Cod_ramo = entAgente.cod_ramo.ToString(); wsAgente.Cod_tipo_agente = entAgente.cod_tipo_agente.ToString(); wsAgente.Cod_agente = entAgente.cod_agente.ToString(); wsAgente.Pje_comis_normal = entAgente.Pje_comis_normal.ToString(); wsAgente.Pje_comis_extra = entAgente.Pje_comis_extra.ToString(); wsAgente.Imp_comis_normal_me = Math.Round(entAgente.imp_comis_normal_me.Value, 2).ToString(); return(wsAgente); }
public string GrabarCotizacion(SISEPol_Result poliza, SISEAge_Result agente, List <SISECob_Result> cob, List <SISEInc_Result> inc, SISETransporte_Result transporte, List <SISEObs_Result> obs, List <SISEEquipoDetalle_Result> detalle, List <SISEClausula_Result> clausula, List <SelectTextosPrimaPresentacion_Result> textos) { try { TRObs obsObject = new TRObs(); List <PasoObs> texto; if (transporte == null) { texto = obsObject.ObsTOwsObs(obs, textos); } else { texto = obsObject.ObsTOwsObsTR(obs); } return(dt.insertarCamposIntegracion(null, new List <wsPoliza.PasoAge>() { TRAgente.AgenteTOwsAgente(agente) }, null, TRCob.CobTOwsCob(cob), null, transporte == null ? null : new List <wsPoliza.PasoTRANSPORTE>() { TRTransporte.TransporteTOwstransporte(transporte) }, null, new List <wsPoliza.PasoPol>() { TRPoliza.PolizaTOwsPoliza(poliza) }, texto, null, TRInc.IncTOwsInc(inc), null, TRDetalle.DetalleTOwsDetalle(detalle), TRClausula.ClausulaTOwsAne(clausula))); //return "001_7_00000197_01_0"; } catch (Exception ex) { return(ex.Message); } }