This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private IList<CotizacionModel> BuscaBitacoraCotizacion(BitacoraCotizacionHogarViewModel model) | |
{ | |
IList<CotizacionModel> listadoBitacora = new List<CotizacionModel>(); | |
if (model.FechaTermino != null) | |
model.FechaTermino = model.FechaTermino.Value.AddDays(1); | |
CotizacionModel cotizacionModel = new CotizacionModel(); | |
cotizacionModel.CodigoCanal = GetUser().CodigoCanal; | |
cotizacionModel.CodigoEstado = model.Estado; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HttpPost] | |
public JsonResult LlamarJson(BitacoraCotizacionHogarViewModel model) | |
{ | |
IList<CotizacionModel> listadoBitacora = new List<CotizacionModel>(); | |
//listadoBitacora = BuscaBitacoraCotizacion(model); | |
//var cotizacionesList = result.ToDataSourceResult(request); | |
foreach (var item in BuscaBitacoraCotizacion(model)) | |
{ | |
CotizacionModel laCotizacion = new CotizacionModel(); | |
laCotizacion = item; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!---ajax para traer listado bitacora--> | |
<script type="text/javascript"> | |
$(function () { | |
$("#btnGet").click(function () { | |
var NumeroCotizacion = $("#NumeroCotizacion").val(); | |
var NumeroPoliza = $("#NumeroPoliza").val(); | |
var FechaInicio = $("#NumeroPoliza").val(); | |
var FechaTermino = $("#NumeroPoliza").val(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function convertToUtc(str) { | |
if (str != null) { | |
var date = new Date(str); | |
var year = date.getUTCFullYear(); | |
var month = date.getUTCMonth() + 1; | |
var dd = date.getUTCDate(); | |
var hh = date.getUTCHours(); | |
var mi = date.getUTCMinutes(); | |
var sec = date.getUTCSeconds(); | |
theDate = year + "-" + pad(month, 2) + "-" + pad(dd, 2); |