Limpieza masiva ClsPaginas
-RegistraScript se unifica en una sola clase static/shared y se simplica el código -Alert se vuelve estático -Random() no se manda a crear cada vez que se registra un script (esto tenía un costo alto) -Se corrigieron unos errores en los nombres de funciones -Las clases que ya heredan de Clspaginas, se les quita el this a RegistraScript y a Alert puesto que era innecesario (y además al haberlos vuelto métodos estáticos, NO pueden llamarse de un this)
This commit is contained in:
@@ -402,7 +402,7 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
ruta = string.Format("{0}{1}", ruta, archivoname);//, ArchivoExtencion);
|
||||
System.IO.File.Move(rutaarchivoOri, ruta);
|
||||
}
|
||||
this.Alert("Se ha agregadó la nueva minuta", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/MinutaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
||||
Alert("Se ha agregadó la nueva minuta", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/MinutaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -562,12 +562,12 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
System.IO.File.Move(rutaarchivoOri, ruta);
|
||||
}
|
||||
cargarAgenda();
|
||||
this.Alert("Se ha agregadó la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
Alert("Se ha agregadó la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
TxtTareaAsunto.Text = "";
|
||||
TxtTareaDescripcion.Text = "";
|
||||
txtTareaFechaI.Text = "";
|
||||
txtTareaFechaF.Text = "";
|
||||
//this.Alert("Se ha agregadó la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("window.open(\"/OI/TareaDetalle.aspx?CveEvento={0}\", \"_blank\");", CveEvento));
|
||||
//Alert("Se ha agregadó la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("window.open(\"/OI/TareaDetalle.aspx?CveEvento={0}\", \"_blank\");", CveEvento));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -685,13 +685,13 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
ruta = string.Format("{0}{1}", ruta, archivoname);//, ArchivoExtencion);
|
||||
System.IO.File.Move(rutaarchivoOri, ruta);
|
||||
}
|
||||
this.Alert("Se ha agregadó la nueva agenda");
|
||||
Alert("Se ha agregadó la nueva agenda");
|
||||
TxtAgendaAsunto.Text = "";
|
||||
TxtAgendaDescripcion.Text = "";
|
||||
txtAgendaFechaI.Text = "";
|
||||
txtAgendaFechaF.Text = "";
|
||||
cargarAgenda();
|
||||
//this.Alert("Se ha agregadó la nueva agenda", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("window.open(\"/OI/TareaDetalle.aspx?CveEvento={0}\", \"_blank\");", CveEvento));
|
||||
//Alert("Se ha agregadó la nueva agenda", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("window.open(\"/OI/TareaDetalle.aspx?CveEvento={0}\", \"_blank\");", CveEvento));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -735,9 +735,9 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
ruta = string.Format("{0}{1}{2}", ruta, CveComentario, archivoname);//, ArchivoExtencion);
|
||||
System.IO.File.Move(rutaarchivoOri, ruta);
|
||||
}
|
||||
//this.RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregar));
|
||||
this.Alert("Comentario agregadó", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
//this.Alert("Se ha agregado la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/TareaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
||||
//RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregar));
|
||||
Alert("Comentario agregadó", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
//Alert("Se ha agregado la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/TareaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
||||
}
|
||||
TxtComentario.Text = "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user