Beispiel #1
0
        public JsonResult GetIncidenteDetalle(string pItmLiq, long pLiqId, long pInc)
        {
            WSTercerosLiquidaciones.TercerosLiquidacionesSoapClient wsClient = new WSTercerosLiquidaciones.TercerosLiquidacionesSoapClient();
            wsClient.Open();
            DataSet dsDetalle = wsClient.GetIncidenteDetalle(pItmLiq);
            DataSet dsCalculo = wsClient.GetIncidenteCalculo(pLiqId, pInc);

            wsClient.Close();
            Models.IncidenteDetalle oIncidenteDetalle = null;
            if (dsDetalle.Tables[0].Rows.Count > 0)
            {
                oIncidenteDetalle = new IncidenteDetalle(dsDetalle.Tables[0].Rows[0], dsCalculo.Tables[0]);
            }
            return(Json(oIncidenteDetalle, JsonRequestBehavior.AllowGet));
        }