Correccion de errores para cambiar fechas
This commit is contained in:
@@ -158,14 +158,17 @@ public partial class OC_RepSolicitudesAnticipo : ClsPaginas
|
||||
GvSolicitudes.Columns[0].Visible = true;
|
||||
LnkGuardar.Visible = true;
|
||||
LnkCambiarFecha.Visible = false;
|
||||
|
||||
UPAcciones.Update();
|
||||
UPDatos.Update();
|
||||
}
|
||||
protected void LnkGuardar_Click(object sender, EventArgs e)
|
||||
{
|
||||
RegistraScript("$('#ModalUpload').modal('show')");
|
||||
}
|
||||
protected void BtnGuardarArchivo_Click(object sender, EventArgs e)
|
||||
{
|
||||
ActualizarFechas();
|
||||
RegistraScript("$('#ModalUpload').modal('hide')", "hidemodal1");
|
||||
RegistraScript("$('#ModalUpload').modal('hide')");
|
||||
GvSolicitudes.Columns[0].Visible = false;
|
||||
LnkGuardar.Visible = false;
|
||||
LnkCambiarFecha.Visible = true;
|
||||
@@ -195,14 +198,12 @@ public partial class OC_RepSolicitudesAnticipo : ClsPaginas
|
||||
{
|
||||
TieneError = true;
|
||||
Alert("Ocurrio un error al actulizar las fechas", TipoMensaje.MsgError);
|
||||
ObjEvento.RollBack();
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
if (TieneError == false) {
|
||||
ObjEvento.Commit();
|
||||
Alert("Las Fechas se actualizaron correctamente");
|
||||
}
|
||||
ObjEvento.Dispose();
|
||||
|
||||
Reference in New Issue
Block a user