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:
@@ -51,7 +51,7 @@ Partial Class AIMMGM_Ventas
|
||||
End Sub
|
||||
|
||||
Protected Sub ImgExcel_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles ImgExcel.Click
|
||||
Gv.ExportToExcelx("ListadoVentas")
|
||||
Gv.ExportToExcelX("ListadoVentas")
|
||||
End Sub
|
||||
|
||||
Protected Sub DdlTipo_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DdlTipo.SelectedIndexChanged
|
||||
|
||||
@@ -247,7 +247,7 @@ Partial Class Acumuladores_CatFoliosGarantia
|
||||
|
||||
Protected Sub BtnExportarExcel_Click(sender As Object, e As EventArgs)
|
||||
GvGarantiasDetalle.ExportToExcelG(LblFolio.Text, "Ajustes de Garantía", UsuarioActual)
|
||||
'GvGarantiasDetalle.ExportToExcelx(LblFolio.Text)
|
||||
'GvGarantiasDetalle.ExportToExcelX(LblFolio.Text)
|
||||
End Sub
|
||||
|
||||
Public Overrides Sub VerifyRenderingInServerForm(ByVal control As Control)
|
||||
|
||||
@@ -46,6 +46,7 @@ Public Class ClsPaginas
|
||||
End Property
|
||||
|
||||
#Region "Propiedades"
|
||||
Private Shared ReadOnly Property Rand As New Random()
|
||||
|
||||
Private Property SubReportData As Modelos.MSubReportData
|
||||
Get
|
||||
@@ -1443,12 +1444,12 @@ Public Class ClsPaginas
|
||||
Application(AppNombre) = value
|
||||
End Set
|
||||
End Property
|
||||
Property GlobalDTSubProyectosUsuarios(CveUsuario As Integer, CveProyecto As Integer, CveEmpresa As Integer, Optional CveSubProyecto As Integer = -1, Optional CveEstatus As Integer = -1) As DataTable
|
||||
Public Shared Property GlobalDTSubProyectosUsuarios(CveUsuario As Integer, CveProyecto As Integer, CveEmpresa As Integer, Optional CveSubProyecto As Integer = -1, Optional CveEstatus As Integer = -1) As DataTable
|
||||
Get
|
||||
Dim AppNombre As String = String.Format("GlobalDTSubProyectosUsuarios-{0}", CveEmpresa)
|
||||
If Application(AppNombre) Is Nothing Then
|
||||
If HttpContext.Current.Application(AppNombre) Is Nothing Then
|
||||
Dim ObjSubProyectos As New ClsSubProyectos()
|
||||
If ObjSubProyectos.GetSubProyectosUsuarios(CveEmpresa:=CveEmpresa) Then Application(AppNombre) = ObjSubProyectos.DtResultados Else Alert("Ocurrió un error al cargar los SubProyectos. Por favor comuniquese con sistemas.", TipoMensaje.MsgError)
|
||||
If ObjSubProyectos.GetSubProyectosUsuarios(CveEmpresa:=CveEmpresa) Then HttpContext.Current.Application(AppNombre) = ObjSubProyectos.DtResultados Else Alert("Ocurrió un error al cargar los SubProyectos. Por favor comuniquese con sistemas.", TipoMensaje.MsgError)
|
||||
ObjSubProyectos.Dispose()
|
||||
End If
|
||||
|
||||
@@ -1460,7 +1461,7 @@ Public Class ClsPaginas
|
||||
If CveUsuario <> -1 Then StrSQL.AppendFormat(" AND CveUsuario = {0}", CveUsuario)
|
||||
If CveEstatus <> -1 Then StrSQL.AppendFormat(" AND CveEstatus = {0}", CveEstatus)
|
||||
|
||||
Dim Dv As New DataView(DirectCast(Application(AppNombre), DataTable), StrSQL.ToString.Trim.TrimStart("A"c, "N"c, "D"c), "", DataViewRowState.CurrentRows)
|
||||
Dim Dv As New DataView(DirectCast(HttpContext.Current.Application(AppNombre), DataTable), StrSQL.ToString.Trim.TrimStart("A"c, "N"c, "D"c), "", DataViewRowState.CurrentRows)
|
||||
GlobalDTSubProyectosUsuarios = Dv.ToTable
|
||||
Dv.Dispose()
|
||||
|
||||
@@ -1473,21 +1474,21 @@ Public Class ClsPaginas
|
||||
'ObjSubProyectos.Dispose()
|
||||
|
||||
Else
|
||||
GlobalDTSubProyectosUsuarios = DirectCast(Application(AppNombre), DataTable)
|
||||
GlobalDTSubProyectosUsuarios = DirectCast(HttpContext.Current.Application(AppNombre), DataTable)
|
||||
End If
|
||||
|
||||
End Get
|
||||
Set(ByVal value As DataTable)
|
||||
Dim AppNombre As String = String.Format("GlobalDTSubProyectosUsuarios-{0}", CveEmpresa)
|
||||
Application(AppNombre) = value
|
||||
HttpContext.Current.Application(AppNombre) = value
|
||||
End Set
|
||||
End Property
|
||||
Property GlobalDTProyectosUsuarios(CveUsuario As Integer, CveProyecto As Integer, CveEmpresa As Integer, CveEstatus As Integer) As DataTable
|
||||
Public Shared Property GlobalDTProyectosUsuarios(CveUsuario As Integer, CveProyecto As Integer, CveEmpresa As Integer, CveEstatus As Integer) As DataTable
|
||||
Get
|
||||
Dim AppNombre As String = String.Format("GlobalDTProyectosUsuarios-{0}", CveEmpresa)
|
||||
If Application(AppNombre) Is Nothing Then
|
||||
If HttpContext.Current.Application(AppNombre) Is Nothing Then
|
||||
Dim ObjSubProyectos As New ClsSubProyectos()
|
||||
If ObjSubProyectos.GetSubProyectosUsuarios(CveEmpresa:=CveEmpresa) Then Application(AppNombre) = ObjSubProyectos.DtResultados.FiltraParametros("", "", {"Proyecto", "CveProyecto", "CveUsuario", "CveEmpresa", "CveEstatusProyecto"}) Else Alert("Ocurrió un error al cargar los Proyectos. Por favor comuniquese con sistemas.", TipoMensaje.MsgError)
|
||||
If ObjSubProyectos.GetSubProyectosUsuarios(CveEmpresa:=CveEmpresa) Then HttpContext.Current.Application(AppNombre) = ObjSubProyectos.DtResultados.FiltraParametros("", "", {"Proyecto", "CveProyecto", "CveUsuario", "CveEmpresa", "CveEstatusProyecto"}) Else Alert("Ocurrió un error al cargar los Proyectos. Por favor comuniquese con sistemas.", TipoMensaje.MsgError)
|
||||
ObjSubProyectos.Dispose()
|
||||
End If
|
||||
|
||||
@@ -1498,18 +1499,18 @@ Public Class ClsPaginas
|
||||
If CveUsuario <> -1 Then StrSQL.AppendFormat(" AND CveUsuario = {0}", CveUsuario)
|
||||
If CveEstatus <> -1 Then StrSQL.AppendFormat(" AND CveEstatusProyecto = {0}", CveEstatus)
|
||||
|
||||
Dim Dv As New DataView(DirectCast(Application(AppNombre), DataTable), StrSQL.ToString.Trim.TrimStart("A"c, "N"c, "D"c), "", DataViewRowState.CurrentRows)
|
||||
Dim Dv As New DataView(DirectCast(HttpContext.Current.Application(AppNombre), DataTable), StrSQL.ToString.Trim.TrimStart("A"c, "N"c, "D"c), "", DataViewRowState.CurrentRows)
|
||||
GlobalDTProyectosUsuarios = Dv.ToTable
|
||||
Dv.Dispose()
|
||||
|
||||
Else
|
||||
GlobalDTProyectosUsuarios = DirectCast(Application(AppNombre), DataTable)
|
||||
GlobalDTProyectosUsuarios = DirectCast(HttpContext.Current.Application(AppNombre), DataTable)
|
||||
End If
|
||||
|
||||
End Get
|
||||
Set(ByVal value As DataTable)
|
||||
Dim AppNombre As String = String.Format("GlobalDTProyectosUsuarios-{0}", CveEmpresa)
|
||||
Application(AppNombre) = value
|
||||
HttpContext.Current.Application(AppNombre) = value
|
||||
End Set
|
||||
End Property
|
||||
Public Shared Property GlobalDTPrecioListas(CveEmpresa As Integer) As DataTable
|
||||
@@ -6084,23 +6085,26 @@ Public Class ClsPaginas
|
||||
End If
|
||||
|
||||
Return Retorno
|
||||
|
||||
End Function
|
||||
Public Sub CerrarSession()
|
||||
|
||||
Public Sub CerrarSession()
|
||||
Usuario.CerrarSession()
|
||||
End Sub
|
||||
Public Sub Alert(Mensaje As String, Optional pOpcion As TipoMensaje = TipoMensaje.MsgInformacion, Optional JSBtnAceptar As String = "", Optional timeout As Integer = 5, Optional ShowCloseButton As Boolean = True, Optional TextoConfirmacion As String = "", Optional TextoSegundoBoton As String = "", Optional JSBtn2 As String = "")
|
||||
|
||||
Private Shared Function GetCurrentPageViewState() As System.Web.UI.StateBag
|
||||
Dim page As Page = TryCast(HttpContext.Current.CurrentHandler, Page)
|
||||
Dim viewStateProp = page?.[GetType]().GetProperty("ViewState", Reflection.BindingFlags.FlattenHierarchy Or Reflection.BindingFlags.Instance Or Reflection.BindingFlags.NonPublic)
|
||||
Return CType(viewStateProp?.GetValue(page), System.Web.UI.StateBag)
|
||||
End Function
|
||||
Public Shared Sub Alert(Mensaje As String, Optional pOpcion As TipoMensaje = TipoMensaje.MsgInformacion, Optional JSBtnAceptar As String = "", Optional timeout As Integer = 5, Optional ShowCloseButton As Boolean = True, Optional TextoConfirmacion As String = "", Optional TextoSegundoBoton As String = "", Optional JSBtn2 As String = "")
|
||||
If DirectCast(pOpcion, Integer).Contiene(5, 7, 6, 8) Then
|
||||
Mensaje = Mensaje.Replace("'"c, "\'").Replace(vbCrLf, "").Replace("""", "\'").Replace(vbLf, " ")
|
||||
JSBtnAceptar = JSBtnAceptar.Replace("'"c, "\'")
|
||||
Dim toastscript As String = String.Format("alertatoast({3},'{0}',function(){{{1}}},{2});", Mensaje, JSBtnAceptar, timeout, DirectCast(pOpcion, Integer))
|
||||
ViewState("strToastMsglargonoreplace") = String.Format("{0}{1}", If(Not IsNothing(ViewState("strToastMsglargonoreplace")) AndAlso ViewState("strToastMsglargonoreplace").ToString().Length > 0, ViewState("strToastMsglargonoreplace").ToString(), ""), toastscript)
|
||||
GetCurrentPageViewState()("strToastMsglargonoreplace") = String.Format("{0}{1}", If(Not IsNothing(GetCurrentPageViewState()("strToastMsglargonoreplace")) AndAlso GetCurrentPageViewState()("strToastMsglargonoreplace").ToString().Length > 0, GetCurrentPageViewState()("strToastMsglargonoreplace").ToString(), ""), toastscript)
|
||||
Else
|
||||
Mensaje.Alert(Mensaje, pOpcion, JSBtnAceptar, TimeoutToast:=timeout, ShowCloseButton:=ShowCloseButton, TextoConfirmacion:=TextoConfirmacion, TextoSegundoBoton:=TextoSegundoBoton, JSBtn2:=JSBtn2)
|
||||
End If
|
||||
|
||||
End Sub
|
||||
Protected Overridable Sub Page_PreRender(sender As Object, e As EventArgs) Handles Me.PreRender
|
||||
If sw IsNot Nothing AndAlso Not (Not User.Identity.IsAuthenticated OrElse UsuarioActual Is Nothing) Then
|
||||
@@ -6117,7 +6121,6 @@ Public Class ClsPaginas
|
||||
RegistraScript(ViewState("strToastMsglargonoreplace").ToString(), "esteseraunticklargoparaquenosesobrescribaconotro")
|
||||
ViewState("strToastMsglargonoreplace") = Nothing
|
||||
End If
|
||||
|
||||
End Sub
|
||||
Protected Overrides Sub SavePageStateToPersistenceMedium(pviewState As Object)
|
||||
'If Request.Form("__VIEWSTATE_KEY") IsNot Nothing Then Cache.Remove(Request.Form("__VIEWSTATE_KEY")) 'elimino la cachado anteriormente
|
||||
@@ -6125,10 +6128,8 @@ Public Class ClsPaginas
|
||||
Cache.Add(VSKey, pviewState, Nothing, Date.Now.AddMinutes(40), Cache.NoSlidingExpiration, CacheItemPriority.Default, Nothing) 'Store the ViewState on Cache
|
||||
'Session.Add(VSKey, pviewState) 'Store the ViewState on Cache
|
||||
ClientScript.RegisterHiddenField("__VIEWSTATE_KEY", VSKey)
|
||||
|
||||
End Sub
|
||||
Protected Overrides Function LoadPageStateFromPersistenceMedium() As Object
|
||||
|
||||
Dim VSKey As String = Request.Form("__VIEWSTATE_KEY")
|
||||
If Not VSKey.StartsWith("VIEWSTATE_") Then 'Request the Key from the page and validade it.
|
||||
Throw New Exception(String.Format("Invalid VIEWSTATE Key: {0}", VSKey))
|
||||
@@ -6139,7 +6140,6 @@ Public Class ClsPaginas
|
||||
Else
|
||||
Return Cache(VSKey)
|
||||
End If
|
||||
|
||||
End Function
|
||||
Public Shared Sub CargaParametros(Parametros As String)
|
||||
Dim P1() As String = Parametros.Split("&"c)
|
||||
@@ -6152,17 +6152,14 @@ Public Class ClsPaginas
|
||||
P2 = Tmp.Split("="c)
|
||||
UrlParametros.Add(P2(0).ToString.ToUpper(), P2(1))
|
||||
Next
|
||||
|
||||
End Sub
|
||||
Shared Sub RegeneraImagen(ByVal Ruta As String)
|
||||
|
||||
Dim BM As New Drawing.Bitmap(Ruta)
|
||||
Dim Width As Integer = BM.Width
|
||||
Dim Height As Integer = BM.Height
|
||||
Dim Thumb As New Drawing.Bitmap(Width, Height)
|
||||
Dim G As Drawing.Graphics = Drawing.Graphics.FromImage(Thumb)
|
||||
|
||||
|
||||
G.InterpolationMode = Drawing.Drawing2D.InterpolationMode.HighQualityBicubic
|
||||
G.DrawImage(BM, New Drawing.Rectangle(0, 0, Width, Height), New Drawing.Rectangle(0, 0, BM.Width, BM.Height), Drawing.GraphicsUnit.Pixel)
|
||||
|
||||
@@ -6173,9 +6170,10 @@ Public Class ClsPaginas
|
||||
Thumb.Save(Ruta, Drawing.Imaging.ImageFormat.Jpeg) 'can use any image format
|
||||
Thumb.Dispose()
|
||||
End Sub
|
||||
Public Sub RegistraScript(Script As String, Optional valuetick As String = "")
|
||||
Dim Rdm As Random = New Random()
|
||||
ScriptManager.RegisterStartupScript(Page, Me.GetType(), String.Format("{0}{1}{2}", (DateTime.Now.Ticks + 1), Rdm.Next(), valuetick), String.Format("<script type='text/javascript' language='javascript'>{0}</script>", Script), False)
|
||||
Public Shared Sub RegistraScript(Script As String, Optional valuetick As String = "")
|
||||
Dim page As Page = TryCast(HttpContext.Current.CurrentHandler, Page)
|
||||
Script = $"{Script.TrimEnd(";"c)};" 'sino trae ";" al final, se lo agregamos
|
||||
ScriptManager.RegisterStartupScript(page, page.GetType(), $"{DateTime.Now.Ticks + 1}{Rand.Next()}{valuetick}", Script, True)
|
||||
End Sub
|
||||
Public Sub TabEnabled(Tab As System.Web.UI.HtmlControls.HtmlAnchor, Valor As Boolean)
|
||||
If Valor Then
|
||||
@@ -6192,9 +6190,6 @@ Public Class ClsPaginas
|
||||
Public Sub TabActive(Tab As System.Web.UI.HtmlControls.HtmlAnchor)
|
||||
RegistraScript(String.Format("$( ""#{0}"" ).Click( );", Tab.ClientID))
|
||||
End Sub
|
||||
'''<summary>
|
||||
'''
|
||||
'''</summary>
|
||||
Public Sub Alerta(Mensaje As String, Tipo As String, Funcion As String)
|
||||
RegistraScript(String.Format("bootbox.alert('{0}', function() {{{2}}} );", Mensaje, Tipo, Funcion))
|
||||
End Sub
|
||||
|
||||
@@ -64,7 +64,6 @@ Namespace Extensiones
|
||||
Private Const SEncryptionKeyAES As String = "$Ap7+5&z$Ap7+5&z$Ap7+5&z$Ap7+5&z"
|
||||
#End Region
|
||||
|
||||
|
||||
Public Function ReadExcelFile(ByVal flatFilePath As String, ByVal firstRowHasHeaders As Boolean, Optional curRow As Integer = 0) As DataTable
|
||||
GemBox.Spreadsheet.SpreadsheetInfo.SetLicense(ModExtensiones.SerialGemBoxSpreadsheet)
|
||||
Dim excelFile As GemBox.Spreadsheet.ExcelFile = GemBox.Spreadsheet.ExcelFile.Load(flatFilePath)
|
||||
@@ -125,7 +124,6 @@ Namespace Extensiones
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
Public Function IfNull(Valor As Object, Predeterminado As Object, Optional IfNotNull As Object = Nothing) As Object
|
||||
|
||||
If Valor Is Nothing OrElse IsDBNull(Valor) Then ' si es nulo, manda el valor predeterminado
|
||||
@@ -188,7 +186,6 @@ Namespace Extensiones
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
<Runtime.CompilerServices.Extension()>
|
||||
Public Sub GuardaLog(Str As String)
|
||||
Dim ArchivoW As StreamWriter
|
||||
@@ -337,8 +334,7 @@ Namespace Extensiones
|
||||
End Sub
|
||||
#End Region
|
||||
|
||||
#Region "Alertas y notificaciones"
|
||||
|
||||
#Region "Alertas y notificaciones"
|
||||
Public Enum TipoUpdate As Integer
|
||||
|
||||
NoGuardar = 0
|
||||
@@ -362,7 +358,7 @@ Namespace Extensiones
|
||||
End Enum
|
||||
<Runtime.CompilerServices.Extension()>
|
||||
Public Sub Alert(Obj As Object, Mensaje As String, pOpcion As TipoMensaje, Optional JSBtnAceptar As String = "", Optional TextoConfirmacion As String = "Aceptar", Optional TextoCancelacion As String = "Cancelar", Optional TimeoutToast As Integer = 5, Optional ShowCloseButton As Boolean = True, Optional TextoSegundoBoton As String = "", Optional JSBtn2 As String = "")
|
||||
If System.Web.HttpContext.Current IsNot Nothing AndAlso System.Web.HttpContext.Current.Handler IsNot Nothing AndAlso System.Web.HttpContext.Current.Handler.GetType().IsSubclassOf(GetType(Page)) Then
|
||||
If System.Web.HttpContext.Current IsNot Nothing AndAlso System.Web.HttpContext.Current.CurrentHandler IsNot Nothing AndAlso System.Web.HttpContext.Current.CurrentHandler.GetType().IsSubclassOf(GetType(Page)) Then
|
||||
|
||||
Dim Titulo As String = ""
|
||||
Dim Plus As String = DateTime.Now.Ticks.ToString
|
||||
@@ -441,7 +437,7 @@ Namespace Extensiones
|
||||
closeButtonOption = "backdrop : ""static"", keyboard : false, closeButton: false,"
|
||||
End If
|
||||
|
||||
Dim Pag As Page = DirectCast(System.Web.HttpContext.Current.Handler, Page)
|
||||
Dim Pag As Page = DirectCast(System.Web.HttpContext.Current.CurrentHandler, Page)
|
||||
Dim script As String = ""
|
||||
If showalert Then
|
||||
script = String.Format("bootbox.dialog({{message: ""{0} "", className: ""{11}"", {13} onEscape: function() {{ {12} }},title: ""{1}"",buttons: {{ success: {{ label: ""{2}"", className: "" {3}""," &
|
||||
@@ -465,7 +461,7 @@ Namespace Extensiones
|
||||
<Runtime.CompilerServices.Extension()>
|
||||
Public Sub Alert2(Obj As Object, Mensaje As String, pOpcion As TipoMensaje, Optional JSBtnAceptar As String = "")
|
||||
|
||||
If System.Web.HttpContext.Current IsNot Nothing AndAlso System.Web.HttpContext.Current.Handler IsNot Nothing Then
|
||||
If System.Web.HttpContext.Current IsNot Nothing AndAlso System.Web.HttpContext.Current.CurrentHandler IsNot Nothing Then
|
||||
Dim Img, Botones As String
|
||||
Dim Titulo As String
|
||||
Dim Plus As String = DateTime.Now.Ticks.ToString
|
||||
@@ -503,7 +499,7 @@ Namespace Extensiones
|
||||
Try
|
||||
|
||||
|
||||
Dim Pag As Page = DirectCast(System.Web.HttpContext.Current.Handler, Page)
|
||||
Dim Pag As Page = DirectCast(System.Web.HttpContext.Current.CurrentHandler, Page)
|
||||
'ScriptManager.RegisterStartupScript(Pag, Pag.GetType(), (DateTime.Now.Ticks + 1).ToString(), "MuestraAlert('" & Alerta.ToString() & "', '" & Plus & "');", True)
|
||||
ScriptManager.RegisterStartupScript(Pag, Pag.GetType(), (DateTime.Now.Ticks + 1).ToString(), String.Format("MuestraAlerta('{0}','{1}','{2}','{3}','{4}');", Titulo, Mensaje, Img, Botones, JSBtnAceptar), True)
|
||||
Pag = Nothing
|
||||
@@ -555,7 +551,7 @@ Namespace Extensiones
|
||||
|
||||
'<Runtime.CompilerServices.Extension()>
|
||||
'Public Sub updateindicador(Obj As Object, script As String)
|
||||
' Dim Pag As Page = DirectCast(System.Web.HttpContext.Current.Handler, Page)
|
||||
' Dim Pag As Page = DirectCast(System.Web.HttpContext.Current.CurrentHandler, Page)
|
||||
' ScriptManager.RegisterStartupScript(Pag, Pag.GetType(), (DateTime.Now.Ticks + 1).ToString(), script, True)
|
||||
' Pag = Nothing
|
||||
'End Sub
|
||||
@@ -3643,16 +3639,7 @@ Namespace Extensiones
|
||||
|
||||
<Runtime.CompilerServices.Extension()>
|
||||
Public Sub RegistraScript(Obj As Object, Script As String)
|
||||
RegistraScript(Script)
|
||||
End Sub
|
||||
|
||||
<Runtime.CompilerServices.Extension()>
|
||||
Public Sub RegistraScript(Script As String)
|
||||
Dim Pag As Page = DirectCast(System.Web.HttpContext.Current.Handler, Page)
|
||||
Script = String.Format("{0};", Script.TrimEnd(";"c)) ' sino trae ";" al final, se lo agregamos
|
||||
ScriptManager.RegisterStartupScript(Pag, Pag.GetType(), Guid.NewGuid().ToString(), Script, True)
|
||||
Pag = Nothing
|
||||
|
||||
ClsPaginas.RegistraScript(Script)
|
||||
End Sub
|
||||
|
||||
<Runtime.CompilerServices.Extension()>
|
||||
@@ -3667,7 +3654,7 @@ Namespace Extensiones
|
||||
|
||||
Private ReadOnly Property ObjClsPaginas As ClsPaginas
|
||||
Get
|
||||
Return DirectCast(System.Web.HttpContext.Current.Handler, ClsPaginas)
|
||||
Return DirectCast(System.Web.HttpContext.Current.CurrentHandler, ClsPaginas)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
|
||||
@@ -447,7 +447,7 @@ Partial Class Bancos_RepComplementoPago
|
||||
Protected Sub LnkExcel_Click(sender As Object, e As EventArgs)
|
||||
|
||||
' GvD.ExportToExcelG("ReporteComplementos", "Reporte Complementos", UsuarioActual)
|
||||
'GvD.ExportToExcelx("ReporteComplementos.xlsx")
|
||||
'GvD.ExportToExcelX("ReporteComplementos.xlsx")
|
||||
' GvD.ExportToExcel("ReporteComplementos.xlsx")
|
||||
|
||||
|
||||
|
||||
@@ -97,11 +97,11 @@ Partial Class Temporal_RepVotos
|
||||
End Sub
|
||||
|
||||
Private Sub ImgExcelHombres_Click(sender As Object, e As EventArgs) Handles ImgExcelHombres.Click
|
||||
GvMasculino.ExportToExcelx("Reporte de Hombres")
|
||||
GvMasculino.ExportToExcelX("Reporte de Hombres")
|
||||
End Sub
|
||||
|
||||
Private Sub ImgExcelMujeres_Click(sender As Object, e As EventArgs) Handles ImgExcelMujeres.Click
|
||||
GvFemenino.ExportToExcelx("Reporte de Mujeres")
|
||||
GvFemenino.ExportToExcelX("Reporte de Mujeres")
|
||||
End Sub
|
||||
#End Region
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ public partial class CGame_CatCargosFijos : ClsPaginas
|
||||
|
||||
protected void LnkAgregarCargoFijo_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript("$('#ModalAgregarCargoFijo').modal();");
|
||||
RegistraScript("$('#ModalAgregarCargoFijo').modal();");
|
||||
LimpiaModal();
|
||||
BtnAddCargoFijo.Text = "Agregar";
|
||||
Modalidad = "A";
|
||||
@@ -70,7 +70,7 @@ public partial class CGame_CatCargosFijos : ClsPaginas
|
||||
ClsCGame ObjCGame = new ClsCGame();
|
||||
if (ObjCGame.RemoveCargoFijo(CveCargoFijo))
|
||||
{
|
||||
this.RegistraScript("$('#ModalAgregarCargoFijo').modal('hide');");
|
||||
RegistraScript("$('#ModalAgregarCargoFijo').modal('hide');");
|
||||
CargaCargosFijos();
|
||||
Alert("Eliminado Correctamente.");
|
||||
}
|
||||
@@ -90,7 +90,7 @@ public partial class CGame_CatCargosFijos : ClsPaginas
|
||||
DdlMoneda.SelectedValueExist(gvRow.DataKey("CveMoneda"));
|
||||
ChkEstatus.Checked = Convert.ToBoolean(gvRow.DataKey("Estatus"));
|
||||
CambioTipo();
|
||||
this.RegistraScript("$('#ModalAgregarCargoFijo').modal();");
|
||||
RegistraScript("$('#ModalAgregarCargoFijo').modal();");
|
||||
DivEstatus.Visible = true;
|
||||
BtnAddCargoFijo.Text = "Actualizar";
|
||||
UpModalCargoFijo.Update();
|
||||
@@ -148,7 +148,7 @@ public partial class CGame_CatCargosFijos : ClsPaginas
|
||||
}
|
||||
if (!Error)
|
||||
{
|
||||
this.RegistraScript("$('#ModalAgregarCargoFijo').modal('hide');");
|
||||
RegistraScript("$('#ModalAgregarCargoFijo').modal('hide');");
|
||||
CargaCargosFijos();
|
||||
if (Modalidad=="A") { Alert("Agregado Correctamente."); } else if (Modalidad == "U") { Alert("Actualizado Correctamente."); }
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ public partial class CGame_CatConceptoGastoCorte : ClsPaginas
|
||||
}
|
||||
}
|
||||
protected void CargaConcepto()
|
||||
{
|
||||
{
|
||||
ClsCGame ObjCGame = new ClsCGame();
|
||||
if (ObjCGame.GetConceptoGastoCorte(UsuarioActual.CveEmpresa))
|
||||
{
|
||||
@@ -58,16 +58,16 @@ public partial class CGame_CatConceptoGastoCorte : ClsPaginas
|
||||
protected void GvConcepto_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
{
|
||||
|
||||
if (Convert.ToBoolean(e.Row.DBCampo("Estatus")) == true)
|
||||
{
|
||||
e.Row.FCLabel("lblestatus").Text = "Activo";
|
||||
e.Row.FCLabel("lblestatus").ForeColor = System.Drawing.Color.Green;
|
||||
e.Row.FCLabel("lblestatus").ForeColor = System.Drawing.Color.Green;
|
||||
}
|
||||
else
|
||||
{
|
||||
e.Row.FCLabel("lblestatus").Text = "Inactivo";
|
||||
e.Row.FCLabel("lblestatus").ForeColor = System.Drawing.Color.Red;
|
||||
e.Row.FCLabel("lblestatus").ForeColor = System.Drawing.Color.Red;
|
||||
}
|
||||
}
|
||||
@@ -8,13 +8,13 @@
|
||||
|
||||
public partial class CATHuerta :ClsPaginas
|
||||
{
|
||||
|
||||
|
||||
#region Propiedades
|
||||
private int CveHuerta
|
||||
{
|
||||
get{return (ViewState["CveHuerta"] == null) ? 0 : Convert.ToInt32(ViewState["CveHuerta"]);}
|
||||
set{ViewState["CveHuerta"] =value;}
|
||||
}
|
||||
set{ViewState["CveHuerta"] =value;}
|
||||
}
|
||||
|
||||
#endregion
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI.WebControls;
|
||||
using Extensiones;
|
||||
|
||||
using Extensiones;
|
||||
|
||||
public partial class CATMotivosMerma :ClsPaginas
|
||||
{
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ public partial class CATProductos : ClsPaginas
|
||||
CvePS = gvRow.DataKey("CvePS").ToEntero();
|
||||
TxtProdpS.Text = gvRow.DataKey("PS");
|
||||
ChkProdestatus.Checked = Convert.ToBoolean(gvRow.DataKey("Estatus"));
|
||||
this.RegistraScript("$('#DModalProductos').modal();");
|
||||
RegistraScript("$('#DModalProductos').modal();");
|
||||
BtnProdADD.Visible = false;
|
||||
BtnProdEdit.Visible = true;
|
||||
DivEstatus.Visible = true;
|
||||
@@ -56,7 +56,7 @@ public partial class CATProductos : ClsPaginas
|
||||
}
|
||||
protected void LnkAgregarProd_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript("$('#DModalProductos').modal();");
|
||||
RegistraScript("$('#DModalProductos').modal();");
|
||||
LimpiaProductos();
|
||||
BtnProdADD.Visible=true;
|
||||
BtnProdEdit.Visible=false;
|
||||
@@ -71,7 +71,7 @@ public partial class CATProductos : ClsPaginas
|
||||
ObjCGame.Dispose();
|
||||
if (Continuar)
|
||||
{
|
||||
this.RegistraScript("$('#DModalProductos').modal('hide');");
|
||||
RegistraScript("$('#DModalProductos').modal('hide');");
|
||||
LimpiaProductos();
|
||||
UPModalProd.Update();
|
||||
Alert("El Producto se ha agregado");
|
||||
@@ -86,7 +86,7 @@ public partial class CATProductos : ClsPaginas
|
||||
ObjCGame.Dispose();
|
||||
if (Continuar)
|
||||
{
|
||||
this.RegistraScript("$('#DModalProductos').modal('hide');");
|
||||
RegistraScript("$('#DModalProductos').modal('hide');");
|
||||
LimpiaProductos();
|
||||
UPModalProd.Update();
|
||||
Alert("El Producto se ha actualizado");
|
||||
|
||||
@@ -26,7 +26,7 @@ private int CveScat
|
||||
}
|
||||
}
|
||||
protected void CargaScat()
|
||||
{
|
||||
{
|
||||
ClsCGame ObjCGame = new ClsCGame();
|
||||
if (ObjCGame.GetScat(UsuarioActual.CveEmpresa))
|
||||
{
|
||||
@@ -51,7 +51,7 @@ private int CveScat
|
||||
BtnScatEdit.Visible = false;
|
||||
DivEstatus.Visible = false;
|
||||
UpModal.Update();
|
||||
}
|
||||
}
|
||||
|
||||
protected void GvScat_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
@@ -61,11 +61,11 @@ private int CveScat
|
||||
if (Convert.ToBoolean(e.Row.DBCampo("Estatus")) == true)
|
||||
{
|
||||
e.Row.FCLabel("lblestatus").Text = "Activo";
|
||||
e.Row.FCLabel("lblestatus").ForeColor = System.Drawing.Color.Green;
|
||||
e.Row.FCLabel("lblestatus").ForeColor = System.Drawing.Color.Green;
|
||||
}
|
||||
else
|
||||
{
|
||||
e.Row.FCLabel("lblestatus").Text = "Inactivo";
|
||||
e.Row.FCLabel("lblestatus").ForeColor = System.Drawing.Color.Red;
|
||||
e.Row.FCLabel("lblestatus").ForeColor = System.Drawing.Color.Red;
|
||||
}
|
||||
}
|
||||
@@ -7,13 +7,13 @@
|
||||
|
||||
public partial class CATTipoProducto : ClsPaginas
|
||||
{
|
||||
|
||||
|
||||
#region Propiedades
|
||||
|
||||
private int CveTipoProducto
|
||||
{
|
||||
{
|
||||
get{return (ViewState["CveTipoProducto"] == null) ? 0 : Convert.ToInt32(ViewState["CveTipoProducto"]);}
|
||||
set{ViewState["CveTipoProducto"] =value;}
|
||||
set{ViewState["CveTipoProducto"] =value;}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -819,12 +819,12 @@ public partial class Empaque : ClsPaginas
|
||||
CargaGvResultado();
|
||||
UpModalAdd.Update();
|
||||
UpResultado.Update();
|
||||
this.RegistraScript("$('#DivResultado').modal();");
|
||||
RegistraScript("$('#DivResultado').modal();");
|
||||
}
|
||||
protected void LnkAgregarResultado_Click(object sender, EventArgs e)
|
||||
{
|
||||
Modalidad = "A";
|
||||
this.RegistraScript("$('#DivResultado').modal();");
|
||||
RegistraScript("$('#DivResultado').modal();");
|
||||
LimpiaModal();
|
||||
BtnOPADD.Text = "Agregar";
|
||||
CargaGvResultado();
|
||||
@@ -904,7 +904,7 @@ public partial class Empaque : ClsPaginas
|
||||
ChkTipoEtiqueta.Checked, DdlCalidad.SelectedValue.ToEntero(), DdlTipoCaja.SelectedValue.ToEntero(), TxtPeso.Text.ToDouble(),
|
||||
DdlPS.SelectedItem.Text, DdlTamaño.SelectedItem.Text, DdlCalidad.SelectedItem.Text, DdlTipoCaja.SelectedItem.Text, DdlTipoEmpaque.SelectedItem.Text, DdlTipoEmpaque.SelectedValue.ToEntero(), DdlTipoMaduracion.SelectedValue.ToEntero(), DdlTipoProducto.SelectedValue.ToEntero(), DdlTipoMaduracion.SelectedItem.Text, DdlTipoProducto.SelectedItem.Text);
|
||||
}
|
||||
this.RegistraScript("$('#DivResultado').modal('hide');");
|
||||
RegistraScript("$('#DivResultado').modal('hide');");
|
||||
GvResultado.DataSource = DtResultado;
|
||||
GvResultado.DataBind();
|
||||
UpResultado.Update();
|
||||
|
||||
@@ -156,11 +156,11 @@ public partial class CATCorte : ClsPaginas
{
|
||||
{
|
||||
ClsCGame ObjCGame = new ClsCGame();
|
||||
if (ObjCGame.GetFlete(UsuarioActual.CveEmpresa, CveOrdenCorte: DdlOrdenCorte.SelectedValue.ToEntero()))
|
||||
{
|
||||
{
|
||||
if (CveFlete < 1)
|
||||
{
|
||||
DdlFlete.DataSource = ObjCGame.DtResultados.FiltraParametros("Peso IS NULL");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DdlFlete.DataSource = ObjCGame.DtResultados.FiltraParametros(String.Format("Peso IS NULL OR CveFlete = {0}", CveFlete));
|
||||
@@ -168,7 +168,7 @@ public partial class CATCorte : ClsPaginas
{
|
||||
}
|
||||
|
||||
ObjCGame.Dispose();
|
||||
}
|
||||
}
|
||||
DdlFlete.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
||||
DdlFlete.DataBind();
|
||||
}
|
||||
@@ -192,7 +192,7 @@ public partial class CATCorte : ClsPaginas
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
@@ -228,7 +228,7 @@ public partial class CATCorte : ClsPaginas
{
|
||||
Agregar();
|
||||
}
|
||||
|
||||
protected void Agregar()
|
||||
protected void Agregar()
|
||||
{
|
||||
RegistraScript("$('#DModalCorte').modal();");
|
||||
LimpiaCorte();
|
||||
@@ -276,7 +276,7 @@ public partial class CATCorte : ClsPaginas
{
|
||||
CargaCorte();
|
||||
Alert("La entrada de materia prima se ha agregado correctamente");
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ObjCort.RollBack();
|
||||
|
||||
@@ -393,7 +393,7 @@ public partial class CGame_Fletes : ClsPaginas
|
||||
if (gvRow.DataKey("Adjunto").ToString() != "-1") { LnkDescargar.Visible = true; }
|
||||
Modalidad = "U";
|
||||
BtnAddFlete.Text = "Actualizar";
|
||||
this.RegistraScript("$('#DModalFlete').modal();","asd");
|
||||
RegistraScript("$('#DModalFlete').modal();","asd");
|
||||
UpModalFleteAdd.Update();
|
||||
}
|
||||
|
||||
@@ -409,7 +409,7 @@ public partial class CGame_Fletes : ClsPaginas
|
||||
BtnAddFlete.Text = "Agregar";
|
||||
if (CveOrdenCorteOpcion > 0) { DdlOrdenCorte.SelectedValueExist(CveOrdenCorteOpcion); CargaFleteHuertaEmpaque(); DdlTipo.SelectedValue = "1"; }
|
||||
if (CveOrdenProduccionOpcion > 0) { DdlOrdenProduccion.SelectedValueExist(CveOrdenProduccionOpcion); DdlTipo.SelectedValue = "2"; }
|
||||
this.RegistraScript("$('#DModalFlete').modal();");
|
||||
RegistraScript("$('#DModalFlete').modal();");
|
||||
UpModalFleteAdd.Update();
|
||||
}
|
||||
protected void BtnAddFlete_Click(object sender, EventArgs e)
|
||||
@@ -465,7 +465,7 @@ public partial class CGame_Fletes : ClsPaginas
|
||||
{
|
||||
_CveFlete = ObjCGame.CveFlete;
|
||||
GuardarAdjunto();
|
||||
this.RegistraScript("$('#DModalFlete').modal('hide');");
|
||||
RegistraScript("$('#DModalFlete').modal('hide');");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -538,7 +538,7 @@ public partial class CGame_Fletes : ClsPaginas
|
||||
_CveFlete = CveFlete;
|
||||
Alert("El Flete fue actualizado correctamente");
|
||||
GuardarAdjunto();
|
||||
this.RegistraScript("$('#DModalFlete').modal('hide');");
|
||||
RegistraScript("$('#DModalFlete').modal('hide');");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -917,7 +917,7 @@ public partial class CGame_Fletes : ClsPaginas
|
||||
{
|
||||
try
|
||||
{
|
||||
//GvFlete.ExportToExcelx("Fletes");
|
||||
//GvFlete.ExportToExcelX("Fletes");
|
||||
ExportToExcelG(GvFlete,"Fletes", "Fletes", UsuarioActual);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
@@ -137,8 +137,8 @@ public partial class CGame_GenerarOrdenCorte : ClsPaginas
|
||||
}
|
||||
if (SiSelecciono || RblTipoOC.SelectedValue.ToEntero()==2)
|
||||
{
|
||||
this.RegistraScript("recorreGrilla();", "recorre");
|
||||
this.RegistraScript("$('#DivModalOC').modal();");
|
||||
RegistraScript("recorreGrilla();", "recorre");
|
||||
RegistraScript("$('#DivModalOC').modal();");
|
||||
LimpiaModal();
|
||||
UpAccion.Update();
|
||||
}
|
||||
@@ -187,9 +187,9 @@ public partial class CGame_GenerarOrdenCorte : ClsPaginas
|
||||
ObjCGame.Commit();
|
||||
EnviarCorreo(CveOrdenCorte);
|
||||
Alert("Se genero la orden de corte correctamente con el folio <b>" + Folio + "</b>.", TipoMensaje.MsgInformacion);
|
||||
this.RegistraScript("$('#DivModalOC').modal('hide');");
|
||||
RegistraScript("$('#DivModalOC').modal('hide');");
|
||||
CargaOrdenProduccionDetalle();
|
||||
this.RegistraScript("recorreGrilla();", "recorre");
|
||||
RegistraScript("recorreGrilla();", "recorre");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -276,7 +276,7 @@ public partial class CGame_GenerarOrdenCorte : ClsPaginas
|
||||
GvRow.FCCheckBox("ChkOC").Checked = true;
|
||||
}
|
||||
}
|
||||
this.RegistraScript("recorreGrilla();");
|
||||
RegistraScript("recorreGrilla();");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1046,7 +1046,7 @@ public partial class CRM_Acercamiento : ClsPaginas
|
||||
BtnRegistrarCierreCancelacion.Text = "Actualizar";
|
||||
}
|
||||
|
||||
this.RegistraScript("$('#ModalCierreMotivoRechazo').modal();");
|
||||
RegistraScript("$('#ModalCierreMotivoRechazo').modal();");
|
||||
UpCierreMotivoRechazo.Update();
|
||||
}
|
||||
protected void EliminarFile(object sender, EventArgs e)
|
||||
@@ -1103,7 +1103,7 @@ public partial class CRM_Acercamiento : ClsPaginas
|
||||
CargaDatos();
|
||||
CargaEtapasBitacora();
|
||||
|
||||
this.RegistraScript("$('#ModalCierreMotivoRechazo').modal('hide');");
|
||||
RegistraScript("$('#ModalCierreMotivoRechazo').modal('hide');");
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -1726,7 +1726,7 @@ public partial class CRM_Acercamiento : ClsPaginas
|
||||
GridViewRow GvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||
string Lat = GvRow.DataKey("Lat");
|
||||
string Long = GvRow.DataKey("Long");
|
||||
this.RegistraScript(String.Format("initMap(); CreaMarcador({0}, {1}, '{2}', '{3}'); $('#ModalVerUbicacion').modal();", Lat, Long, "0", "Info"));
|
||||
RegistraScript(String.Format("initMap(); CreaMarcador({0}, {1}, '{2}', '{3}'); $('#ModalVerUbicacion').modal();", Lat, Long, "0", "Info"));
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -210,7 +210,7 @@ public partial class CRM_CatEtapasProceso : ClsPaginas
|
||||
|
||||
UPModal.Update();
|
||||
|
||||
this.RegistraScript("$('#DivModal').modal();");
|
||||
RegistraScript("$('#DivModal').modal();");
|
||||
}
|
||||
|
||||
protected void LnkEditar_Click(object sender, EventArgs e)
|
||||
@@ -244,7 +244,7 @@ public partial class CRM_CatEtapasProceso : ClsPaginas
|
||||
|
||||
UPModal.Update();
|
||||
|
||||
this.RegistraScript("$('#DivModal').modal();");
|
||||
RegistraScript("$('#DivModal').modal();");
|
||||
}
|
||||
|
||||
private void bloquearEtapasAnteriores(int CveTipoEtapa)
|
||||
@@ -323,7 +323,7 @@ public partial class CRM_CatEtapasProceso : ClsPaginas
|
||||
|
||||
ObjCRM.Dispose();
|
||||
limpiarCamposModal();
|
||||
this.RegistraScript("$('#DivModal').modal('hide');");
|
||||
RegistraScript("$('#DivModal').modal('hide');");
|
||||
CargaDatos(-1);
|
||||
DdlFiltroProceso.SelectedValueExist("-1");
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ public partial class CRM_CatMediosCaptacion : ClsPaginas
|
||||
limpiarCamposModal();
|
||||
UPModal.Update();
|
||||
|
||||
this.RegistraScript("$('#DivModal').modal();");
|
||||
RegistraScript("$('#DivModal').modal();");
|
||||
}
|
||||
|
||||
protected void GVDatos_RowDeleting(object sender, GridViewDeleteEventArgs e)
|
||||
@@ -189,7 +189,7 @@ public partial class CRM_CatMediosCaptacion : ClsPaginas
|
||||
DdlTipoProceso.SelectedValue = GvRow.DataKey("CveTipoProceso").ToString();
|
||||
UPModal.Update();
|
||||
|
||||
this.RegistraScript("$('#DivModal').modal();");
|
||||
RegistraScript("$('#DivModal').modal();");
|
||||
}
|
||||
|
||||
protected void BtnGuardar_Click(object sender, EventArgs e)
|
||||
@@ -219,7 +219,7 @@ public partial class CRM_CatMediosCaptacion : ClsPaginas
|
||||
|
||||
ObjCRM.Dispose();
|
||||
limpiarCamposModal();
|
||||
this.RegistraScript("$('#DivModal').modal('hide');");
|
||||
RegistraScript("$('#DivModal').modal('hide');");
|
||||
CargaDatos();
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -129,7 +129,7 @@ public partial class CRM_CatProbabilidadAcercamiento : ClsPaginas
|
||||
limpiarCamposModal();
|
||||
UPModal.Update();
|
||||
|
||||
this.RegistraScript("$('#DivModal').modal();");
|
||||
RegistraScript("$('#DivModal').modal();");
|
||||
}
|
||||
|
||||
protected void LnkEditar_Click(object sender, EventArgs e)
|
||||
@@ -146,7 +146,7 @@ public partial class CRM_CatProbabilidadAcercamiento : ClsPaginas
|
||||
DdlTipoProceso.SelectedValue = GvRow.DataKey("CveTipoProceso").ToString();
|
||||
UPModal.Update();
|
||||
|
||||
this.RegistraScript("$('#DivModal').modal();");
|
||||
RegistraScript("$('#DivModal').modal();");
|
||||
}
|
||||
|
||||
protected void BtnGuardar_Click(object sender, EventArgs e)
|
||||
@@ -176,7 +176,7 @@ public partial class CRM_CatProbabilidadAcercamiento : ClsPaginas
|
||||
|
||||
ObjCRM.Dispose();
|
||||
limpiarCamposModal();
|
||||
this.RegistraScript("$('#DivModal').modal('hide');");
|
||||
RegistraScript("$('#DivModal').modal('hide');");
|
||||
CargaDatos();
|
||||
}
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ public partial class CRM_CatRechazoMotivo : ClsPaginas
|
||||
limpiarCamposModal();
|
||||
UPModal.Update();
|
||||
|
||||
this.RegistraScript("$('#DivModal').modal();");
|
||||
RegistraScript("$('#DivModal').modal();");
|
||||
}
|
||||
protected void LnkEditar_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -145,7 +145,7 @@ public partial class CRM_CatRechazoMotivo : ClsPaginas
|
||||
|
||||
UPModal.Update();
|
||||
|
||||
this.RegistraScript("$('#DivModal').modal();");
|
||||
RegistraScript("$('#DivModal').modal();");
|
||||
}
|
||||
|
||||
protected void BtnGuardar_Click(object sender, EventArgs e)
|
||||
@@ -176,7 +176,7 @@ public partial class CRM_CatRechazoMotivo : ClsPaginas
|
||||
|
||||
ObjCRM.Dispose();
|
||||
limpiarCamposModal();
|
||||
this.RegistraScript("$('#DivModal').modal('hide');");
|
||||
RegistraScript("$('#DivModal').modal('hide');");
|
||||
CargaDatos();
|
||||
}
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@ public partial class CRM_CatTipoProceso : ClsPaginas
|
||||
limpiarCamposModal();
|
||||
UPModalTipoProceso.Update();
|
||||
|
||||
this.RegistraScript("$('#DivModalTipoProceso').modal();");
|
||||
RegistraScript("$('#DivModalTipoProceso').modal();");
|
||||
}
|
||||
|
||||
protected void LnkEditar_Click(object sender, EventArgs e)
|
||||
@@ -228,7 +228,7 @@ public partial class CRM_CatTipoProceso : ClsPaginas
|
||||
|
||||
UPModalTipoProceso.Update();
|
||||
|
||||
this.RegistraScript("$('#DivModalTipoProceso').modal();");
|
||||
RegistraScript("$('#DivModalTipoProceso').modal();");
|
||||
}
|
||||
|
||||
protected void BtnGuardar_Click(object sender, EventArgs e)
|
||||
@@ -260,7 +260,7 @@ public partial class CRM_CatTipoProceso : ClsPaginas
|
||||
|
||||
ObjCRM.Dispose();
|
||||
limpiarCamposModal();
|
||||
this.RegistraScript("$('#DivModalTipoProceso').modal('hide');");
|
||||
RegistraScript("$('#DivModalTipoProceso').modal('hide');");
|
||||
CargaDatos();
|
||||
}
|
||||
|
||||
|
||||
@@ -1082,7 +1082,7 @@ public partial class CRM_EmpresaCRM : ClsPaginas
|
||||
CargaGridTipoContacto();
|
||||
CargaContactoSuperior(-1);
|
||||
|
||||
this.RegistraScript("$('#DivModalContacto').modal();");
|
||||
RegistraScript("$('#DivModalContacto').modal();");
|
||||
}
|
||||
|
||||
protected void LnkEditarContacto_Click(object sender, EventArgs e)
|
||||
@@ -1111,7 +1111,7 @@ public partial class CRM_EmpresaCRM : ClsPaginas
|
||||
UPModalContacto.Update();
|
||||
|
||||
|
||||
this.RegistraScript("$('#DivModalContacto').modal();");
|
||||
RegistraScript("$('#DivModalContacto').modal();");
|
||||
}
|
||||
|
||||
protected void BtnGuardarContacto_Click(object sender, EventArgs e)
|
||||
@@ -1235,7 +1235,7 @@ public partial class CRM_EmpresaCRM : ClsPaginas
|
||||
}
|
||||
|
||||
limpiarCamposModalContato();
|
||||
this.RegistraScript("$('#DivModalContacto').modal('hide');");
|
||||
RegistraScript("$('#DivModalContacto').modal('hide');");
|
||||
UpContactos.Update();
|
||||
}
|
||||
|
||||
@@ -1465,7 +1465,7 @@ public partial class CRM_EmpresaCRM : ClsPaginas
|
||||
|
||||
//protected void LnkAgregarEvento_Click(object sender, EventArgs e)
|
||||
//{
|
||||
// this.RegistraScript(String.Format("AbrirVentana('/OI/PopUpAgenda.aspx?CveTipoEvento=2&CveEmpresaCRM={0}&TB_iframe=true&height=370&width=600');", CveEmpresaCRM));
|
||||
// RegistraScript(String.Format("AbrirVentana('/OI/PopUpAgenda.aspx?CveTipoEvento=2&CveEmpresaCRM={0}&TB_iframe=true&height=370&width=600');", CveEmpresaCRM));
|
||||
//}
|
||||
#endregion
|
||||
|
||||
@@ -1740,7 +1740,7 @@ public partial class CRM_EmpresaCRM : ClsPaginas
|
||||
CargaMetodosCaptacion();
|
||||
InicializaAcercamientos();
|
||||
limpiarCamposModalAcercamiento();
|
||||
this.RegistraScript("$('#DivModalAltaAcercamiento').modal();");
|
||||
RegistraScript("$('#DivModalAltaAcercamiento').modal();");
|
||||
UpAltaAcercamiento.Update();
|
||||
//Confirmacion("Se le redireccionara para realizar el Registro del Acercamiento, ¿Desea continuar?", "", "document.location.href=\"/CRM/Acercamiento.aspx\"", "");
|
||||
}
|
||||
@@ -1844,7 +1844,7 @@ public partial class CRM_EmpresaCRM : ClsPaginas
|
||||
ObjCRM.Dispose();
|
||||
ObjBitacora.Dispose();
|
||||
|
||||
this.RegistraScript("$('#DivModalAltaAcercamiento').modal('hide');");
|
||||
RegistraScript("$('#DivModalAltaAcercamiento').modal('hide');");
|
||||
|
||||
UPAcercamientos.Update();
|
||||
|
||||
|
||||
@@ -2394,7 +2394,7 @@ Partial Class Compras_Proveedores
|
||||
End If
|
||||
|
||||
UPPSucursales.Update()
|
||||
Me.RegistraScript("$('#divAgregarSucursal').modal('hide');")
|
||||
RegistraScript("$('#divAgregarSucursal').modal('hide');")
|
||||
LimpiaModalAgregarSucursal()
|
||||
End Sub
|
||||
Private Sub OcultaDiv()
|
||||
@@ -2528,7 +2528,7 @@ Partial Class Compras_Proveedores
|
||||
DivPContactosSucursal.Visible = True
|
||||
UpAgregarSucursal.Update()
|
||||
|
||||
Me.RegistraScript("$('#divAgregarSucursal').modal('show');")
|
||||
RegistraScript("$('#divAgregarSucursal').modal('show');")
|
||||
End Sub
|
||||
|
||||
Protected Sub LnkAgregarSucursal_Click(sender As Object, e As EventArgs)
|
||||
@@ -2540,7 +2540,7 @@ Partial Class Compras_Proveedores
|
||||
End If
|
||||
DivPContactosSucursal.Visible = False
|
||||
LimpiaModalAgregarSucursal()
|
||||
Me.RegistraScript("$('#divAgregarSucursal').modal('show');")
|
||||
RegistraScript("$('#divAgregarSucursal').modal('show');")
|
||||
End Sub
|
||||
|
||||
Protected Sub LimpiaModalAgregarSucursal()
|
||||
@@ -3876,7 +3876,7 @@ Partial Class Compras_Proveedores
|
||||
lista.Add(New CrystalParametro("SaldoDisponible", (TxtLimiteCredito.Text.ToDouble - dr("Saldo").ToString.ToDouble).ToString.FormatoNumero))
|
||||
lista.Add(New CrystalParametro("UsuarioImprimio", UsuarioActual.Nombre))
|
||||
lista.Add(New CrystalParametro("LogoPath", If(Imagen.Exists, $"file://{Imagen.FullName}", "")))
|
||||
|
||||
|
||||
'Dim params As New List(Of ReportParameter)
|
||||
Dim dtnc As New DataTable
|
||||
Dim ObjCompra As New ClsCompras()
|
||||
@@ -4908,7 +4908,7 @@ Partial Class Compras_Proveedores
|
||||
EsEditar = 0
|
||||
|
||||
limpiarCamposModalAgregarContacto()
|
||||
Me.RegistraScript("$('#DivAgregarContactoProveedor').modal();")
|
||||
RegistraScript("$('#DivAgregarContactoProveedor').modal();")
|
||||
End Sub
|
||||
|
||||
Protected Sub imgEditarContactoProv_Click(sender As Object, e As EventArgs)
|
||||
@@ -4931,7 +4931,7 @@ Partial Class Compras_Proveedores
|
||||
|
||||
UpAgregarContatoProveedor.Update()
|
||||
|
||||
Me.RegistraScript("$('#DivAgregarContactoProveedor').modal('show');")
|
||||
RegistraScript("$('#DivAgregarContactoProveedor').modal('show');")
|
||||
|
||||
End Sub
|
||||
|
||||
@@ -4977,7 +4977,7 @@ Partial Class Compras_Proveedores
|
||||
EsContactoSucursal = 1
|
||||
EsEditar = 0
|
||||
limpiarCamposModalAgregarContacto()
|
||||
Me.RegistraScript("$('#DivAgregarContactoProveedor').modal('show');")
|
||||
RegistraScript("$('#DivAgregarContactoProveedor').modal('show');")
|
||||
End Sub
|
||||
|
||||
Protected Sub imgEditarContactoProvSuc_Click(sender As Object, e As EventArgs)
|
||||
@@ -5001,7 +5001,7 @@ Partial Class Compras_Proveedores
|
||||
|
||||
UpAgregarContatoProveedor.Update()
|
||||
|
||||
Me.RegistraScript("$('#DivAgregarContactoProveedor').modal('show');")
|
||||
RegistraScript("$('#DivAgregarContactoProveedor').modal('show');")
|
||||
End Sub
|
||||
|
||||
Protected Sub GVContactosProveedorSucursal_RowDeleting(sender As Object, e As GridViewDeleteEventArgs)
|
||||
@@ -5130,7 +5130,7 @@ Partial Class Compras_Proveedores
|
||||
|
||||
End If
|
||||
|
||||
Me.RegistraScript("$('#DivAgregarContactoProveedor').modal('hide');")
|
||||
RegistraScript("$('#DivAgregarContactoProveedor').modal('hide');")
|
||||
limpiarCamposModalAgregarContacto()
|
||||
|
||||
End Sub
|
||||
|
||||
@@ -145,7 +145,7 @@ public partial class Compras_RepGastosFijos : ClsPaginas
|
||||
RecurrenciaTipo: RecurrenciaTipo, Frecuencia: Frecuencia, Mes: Mes, RecurrenciaFin: RecurrenciaFin.ToString(), CveTipoEvento: CveTipoEvento, Importe: Importe))
|
||||
{
|
||||
LimpiaModal();
|
||||
this.RegistraScript("$('#DvModalGasto').modal('hide');");
|
||||
RegistraScript("$('#DvModalGasto').modal('hide');");
|
||||
Alert("El Evento Gasto Mensual se guardó correctamente", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
}
|
||||
}
|
||||
@@ -155,7 +155,7 @@ public partial class Compras_RepGastosFijos : ClsPaginas
|
||||
RecurrenciaTipo: RecurrenciaTipo, Frecuencia: Frecuencia, Mes: Mes, RecurrenciaFin: RecurrenciaFin.ToString(), Importe: Importe))
|
||||
{
|
||||
LimpiaModal();
|
||||
this.RegistraScript("$('#DvModalGasto').modal('hide');");
|
||||
RegistraScript("$('#DvModalGasto').modal('hide');");
|
||||
Alert("El Evento Gasto Mensual se ha Actualizado correctamente", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
}
|
||||
}
|
||||
@@ -179,7 +179,7 @@ public partial class Compras_RepGastosFijos : ClsPaginas
|
||||
{
|
||||
LimpiaModal();
|
||||
UPModalGasto.Update();
|
||||
this.RegistraScript("$('#DvModalGasto').modal();");
|
||||
RegistraScript("$('#DvModalGasto').modal();");
|
||||
}
|
||||
|
||||
protected void LnkEditar_Click(object sender, EventArgs e)
|
||||
@@ -201,7 +201,7 @@ public partial class Compras_RepGastosFijos : ClsPaginas
|
||||
|
||||
UPModalGasto.Update();
|
||||
|
||||
this.RegistraScript("$('#DvModalGasto').modal();");
|
||||
RegistraScript("$('#DvModalGasto').modal();");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -2528,7 +2528,7 @@ Partial Class Compras_eFacturas
|
||||
|
||||
TabPanel.ActiveTabIndex = 0
|
||||
cargasolicitudes()
|
||||
Me.RegistraScript("$('#ModalViewSolicitudes').modal();")
|
||||
RegistraScript("$('#ModalViewSolicitudes').modal();")
|
||||
|
||||
End Sub
|
||||
|
||||
@@ -2553,9 +2553,9 @@ Partial Class Compras_eFacturas
|
||||
' 'If Continuar Then
|
||||
' ' txtFechaIAdd.Text = ""
|
||||
' ' txtFechaFAdd.Text = ""
|
||||
' ' Me.RegistraScript("$('#DModalSolicitudesNominas').modal('hide');")
|
||||
' ' RegistraScript("$('#DModalSolicitudesNominas').modal('hide');")
|
||||
' ' cargasolicitudes()
|
||||
' ' Me.Alert("se a envia la solicitud al sat, le enviaremos un correo en cuanto tengamos una respuesta", ModExtensiones.TipoMensaje.ToastInformacion)
|
||||
' ' Alert("se a envia la solicitud al sat, le enviaremos un correo en cuanto tengamos una respuesta", ModExtensiones.TipoMensaje.ToastInformacion)
|
||||
' 'End If
|
||||
|
||||
' Dim idSolicitudCFDI As Integer = 0
|
||||
@@ -2640,7 +2640,7 @@ Partial Class Compras_eFacturas
|
||||
' If Continuar Then
|
||||
' txtFechaIAdd.Text = ""
|
||||
' txtFechaFAdd.Text = ""
|
||||
' Me.RegistraScript("$('#ModalViewSolicitudes').modal('hide');")
|
||||
' RegistraScript("$('#ModalViewSolicitudes').modal('hide');")
|
||||
' cargasolicitudes()
|
||||
' End If
|
||||
|
||||
@@ -2705,7 +2705,7 @@ Partial Class Compras_eFacturas
|
||||
txtFechaIAdd.Text = ""
|
||||
txtFechaFAdd.Text = ""
|
||||
ChkMetaDatos.Checked = False
|
||||
Me.RegistraScript("$('#ModalAgregarSolicitud').modal('hide');")
|
||||
RegistraScript("$('#ModalAgregarSolicitud').modal('hide');")
|
||||
cargasolicitudes()
|
||||
End If
|
||||
End Sub
|
||||
@@ -2869,7 +2869,7 @@ Partial Class Compras_eFacturas
|
||||
txtFechaFAdd.Text = ""
|
||||
ChkMetaDatos.Checked = False
|
||||
UPModalViewSolicitudesAgregar.Update()
|
||||
Me.RegistraScript("$('#ModalAgregarSolicitud').modal('show');")
|
||||
RegistraScript("$('#ModalAgregarSolicitud').modal('show');")
|
||||
End Sub
|
||||
|
||||
Protected Sub GVSolicitudesNominas_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs)
|
||||
|
||||
@@ -339,7 +339,7 @@ Partial Class AC_RepAnexoCatalogoSegmento
|
||||
|
||||
Protected Sub LnkExcel_Click(sender As Object, e As EventArgs) Handles LnkExcel.Click
|
||||
'GvDatos.ExportToExcelG("RepAnexoCatalogoSegmento", "RepAnexoCatalogoSegmento", UsuarioActual)
|
||||
GvDatos.ExportToExcelx("RepAnexoCatalogoSegmento")
|
||||
GvDatos.ExportToExcelX("RepAnexoCatalogoSegmento")
|
||||
End Sub
|
||||
'Private Sub ImprimirReporte(Optional Formato As String = "PDF")
|
||||
' Dim Imagen As New System.IO.FileInfo($"{UsuarioActual.Empresa.Ruta}/Logo.png")
|
||||
|
||||
@@ -321,7 +321,7 @@ public partial class Contratos_CatRefrendos : ClsPaginas
|
||||
|
||||
UPModalRefrendo.Update();
|
||||
|
||||
this.RegistraScript("$('#DvModalRefrendo').modal();");
|
||||
RegistraScript("$('#DvModalRefrendo').modal();");
|
||||
}
|
||||
|
||||
protected void imgE_Click(object sender, EventArgs e)
|
||||
@@ -382,7 +382,7 @@ public partial class Contratos_CatRefrendos : ClsPaginas
|
||||
|
||||
UPModalRefrendo.Update();
|
||||
|
||||
this.RegistraScript("$('#DvModalRefrendo').modal();");
|
||||
RegistraScript("$('#DvModalRefrendo').modal();");
|
||||
}
|
||||
|
||||
protected void BtnGuardarRefrendo_Click(object sender, EventArgs e)
|
||||
@@ -445,7 +445,7 @@ public partial class Contratos_CatRefrendos : ClsPaginas
|
||||
|
||||
ObjContrato.Dispose();
|
||||
limpiarCamposModal();
|
||||
this.RegistraScript("$('#DvModalRefrendo').modal('hide');");
|
||||
RegistraScript("$('#DvModalRefrendo').modal('hide');");
|
||||
CargaDatos();
|
||||
|
||||
}
|
||||
|
||||
@@ -4212,7 +4212,7 @@ Partial Class Contratos_Default
|
||||
LnkDescargar.Visible = False
|
||||
BtnGuardarFianza.Text = "Guardar"
|
||||
UPModalFianza.Update()
|
||||
Me.RegistraScript("$('#DvModalFianza').modal();")
|
||||
RegistraScript("$('#DvModalFianza').modal();")
|
||||
GvFianzas.DataSource = DtTmpFianzas
|
||||
GvFianzas.DataBind()
|
||||
UpGvFianzas.Update()
|
||||
@@ -4259,7 +4259,7 @@ Partial Class Contratos_Default
|
||||
UpGvFianzas.Update()
|
||||
|
||||
LimpiarCamposModalFianzas()
|
||||
Me.RegistraScript("$('#DvModalFianza').modal('hide');")
|
||||
RegistraScript("$('#DvModalFianza').modal('hide');")
|
||||
|
||||
End Sub
|
||||
|
||||
@@ -4335,7 +4335,7 @@ Partial Class Contratos_Default
|
||||
txth4Fianza.InnerText = "Editar Fianza"
|
||||
BtnGuardarFianza.Text = "Actualizar"
|
||||
UPModalFianza.Update()
|
||||
Me.RegistraScript("$('#DvModalFianza').modal();")
|
||||
RegistraScript("$('#DvModalFianza').modal();")
|
||||
GvFianzas.DataSource = DtTmpFianzas
|
||||
GvFianzas.DataBind()
|
||||
UpGvFianzas.Update()
|
||||
|
||||
@@ -3945,7 +3945,7 @@ Partial Class Contratos_ContratoObra
|
||||
LnkDescargar.Visible = False
|
||||
'BtnGuardarFianza.Text = "Guardar"
|
||||
UPModalFianza.Update()
|
||||
Me.RegistraScript("$('#DvModalFianza').modal();")
|
||||
RegistraScript("$('#DvModalFianza').modal();")
|
||||
|
||||
End Sub
|
||||
|
||||
@@ -3995,7 +3995,7 @@ Partial Class Contratos_ContratoObra
|
||||
txth4Fianza.InnerText = "Editar Fianza"
|
||||
|
||||
UPModalFianza.Update()
|
||||
Me.RegistraScript("$('#DvModalFianza').modal();")
|
||||
RegistraScript("$('#DvModalFianza').modal();")
|
||||
|
||||
End Sub
|
||||
Protected Sub CreaDtTmpFianzas()
|
||||
|
||||
@@ -81,7 +81,7 @@ public partial class GPS_CatEstatusTrayectos : ClsPaginas
|
||||
int NoEstatusInicio = DtEstatus.COUNT("CveEstatusTrayecto", "EsInicio = True");
|
||||
if (NoEstatusInicio > 0)
|
||||
{
|
||||
this.Alert("Ya existe un estatus de inicio.", TipoMensaje.MsgAdvertencia);
|
||||
Alert("Ya existe un estatus de inicio.", TipoMensaje.MsgAdvertencia);
|
||||
ObjGPS.Dispose();
|
||||
return;
|
||||
}
|
||||
@@ -97,7 +97,7 @@ public partial class GPS_CatEstatusTrayectos : ClsPaginas
|
||||
int NoEstatusFin = DtEstatus.COUNT("CveEstatusTrayecto", "EsFin = True");
|
||||
if (NoEstatusFin > 0)
|
||||
{
|
||||
this.Alert("Ya existe un estatus de final.", TipoMensaje.MsgAdvertencia);
|
||||
Alert("Ya existe un estatus de final.", TipoMensaje.MsgAdvertencia);
|
||||
ObjGPS.Dispose();
|
||||
return;
|
||||
}
|
||||
@@ -108,7 +108,7 @@ public partial class GPS_CatEstatusTrayectos : ClsPaginas
|
||||
|
||||
if (RblInicioFin.SelectedValue == "2" && CveEstatusAnterior <= 0)
|
||||
{
|
||||
this.Alert("No se puede agregar el estatus. Debe seleccionar un estatus anterior.", ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||
Alert("No se puede agregar el estatus. Debe seleccionar un estatus anterior.", ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||
ObjGPS.Dispose();
|
||||
return;
|
||||
}
|
||||
@@ -122,18 +122,18 @@ public partial class GPS_CatEstatusTrayectos : ClsPaginas
|
||||
{
|
||||
if (ObjGPS.UpdateEstatusTrayectos(CveEstatusSiguiente,"",false,false, CveEstatusNuevo, UsuarioActual.CveCliente))
|
||||
{
|
||||
this.Alert("El estatus se actualizo correctamente.", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
Alert("El estatus se actualizo correctamente.", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Alert("Ocurrió un error al actualizar el estatus.", ModExtensiones.TipoMensaje.MsgError);
|
||||
Alert("Ocurrió un error al actualizar el estatus.", ModExtensiones.TipoMensaje.MsgError);
|
||||
}
|
||||
}
|
||||
this.Alert("El estatus se agrego correctamente.", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
Alert("El estatus se agrego correctamente.", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Alert("Ocurrió un error al agregar el estatus.", ModExtensiones.TipoMensaje.MsgError);
|
||||
Alert("Ocurrió un error al agregar el estatus.", ModExtensiones.TipoMensaje.MsgError);
|
||||
}
|
||||
|
||||
|
||||
@@ -221,7 +221,7 @@ public partial class GPS_CatEstatusTrayectos : ClsPaginas
|
||||
{
|
||||
if (ObjGPS.UpdateEstatusTrayectos(CveEstatusSiguiente,"",false,false, CveEstatusAnterior, UsuarioActual.CveCliente))
|
||||
{
|
||||
this.Alert("El estatus se eliminó correctamente.", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
Alert("El estatus se eliminó correctamente.", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ public partial class GPS_CatGrupos : ClsPaginas
|
||||
BtnGuardar.Text = "Guardar";
|
||||
UPConsulta.Update();
|
||||
|
||||
this.RegistraScript("$('#DvModalGrupo').modal();");
|
||||
RegistraScript("$('#DvModalGrupo').modal();");
|
||||
|
||||
}
|
||||
|
||||
@@ -269,7 +269,7 @@ public partial class GPS_CatGrupos : ClsPaginas
|
||||
|
||||
ObjGPS.Dispose();
|
||||
limpiarCamposModal();
|
||||
this.RegistraScript("$('#DvModalGrupo').modal('hide');");
|
||||
RegistraScript("$('#DvModalGrupo').modal('hide');");
|
||||
CargaDatos();
|
||||
}
|
||||
|
||||
@@ -363,7 +363,7 @@ public partial class GPS_CatGrupos : ClsPaginas
|
||||
BtnGuardar.Text = "Actualizar";
|
||||
UPConsulta.Update();
|
||||
|
||||
this.RegistraScript("$('#DvModalGrupo').modal('show');");
|
||||
RegistraScript("$('#DvModalGrupo').modal('show');");
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -197,6 +197,6 @@ public partial class GPS_RepParardas : ClsPaginas
|
||||
{
|
||||
//var table = new System.Web.UI.HtmlControls.HtmlTable();
|
||||
// table.InnerHtml = DivIndicadores.InnerHtml;
|
||||
GvDatos.ExportToExcel("ReporteRutas");
|
||||
GvDatos.ExportToExcelX("ReporteRutas");
|
||||
}
|
||||
}
|
||||
@@ -145,12 +145,12 @@ public partial class GPS_Shipments : ClsPaginas
|
||||
{
|
||||
IniciaDTStops();
|
||||
LimpiarModal();
|
||||
this.RegistraScript("$('#DivShipment').modal({backdrop: 'static', keyboard: false});");
|
||||
RegistraScript("$('#DivShipment').modal({backdrop: 'static', keyboard: false});");
|
||||
}
|
||||
protected void LnkAddNewStop_Click(object sender, EventArgs e)
|
||||
{
|
||||
LimpiarModalStop();
|
||||
this.RegistraScript("$('#DivStop').modal({backdrop: 'static', keyboard: false});");
|
||||
RegistraScript("$('#DivStop').modal({backdrop: 'static', keyboard: false});");
|
||||
}
|
||||
protected void LnkAddStop_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -190,7 +190,7 @@ public partial class GPS_Shipments : ClsPaginas
|
||||
this.OnError("Ocurrió un error al registrar la parada (stop)", ex);
|
||||
}
|
||||
|
||||
this.RegistraScript("$('#DivStop').modal('hide');");
|
||||
RegistraScript("$('#DivStop').modal('hide');");
|
||||
}
|
||||
protected void LimpiarModal()
|
||||
{
|
||||
@@ -623,13 +623,13 @@ public partial class GPS_Shipments : ClsPaginas
|
||||
if (TieneError)
|
||||
{
|
||||
ObjGPS.RollBack();
|
||||
this.Alert("No se pudo guardar el shipment.", TipoMensaje.MsgError);
|
||||
Alert("No se pudo guardar el shipment.", TipoMensaje.MsgError);
|
||||
}
|
||||
else
|
||||
{
|
||||
ObjGPS.Commit();
|
||||
this.Alert("El shipment se envió correctamente a FreightVerify.", TipoMensaje.MsgInformacion);
|
||||
this.RegistraScript("$('#DivShipment').modal('hide');");
|
||||
Alert("El shipment se envió correctamente a FreightVerify.", TipoMensaje.MsgInformacion);
|
||||
RegistraScript("$('#DivShipment').modal('hide');");
|
||||
}
|
||||
ObjGPS.Dispose();
|
||||
|
||||
@@ -639,7 +639,7 @@ public partial class GPS_Shipments : ClsPaginas
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Alert("No se pudo enviar el shipment a FreightVerify.", TipoMensaje.MsgError);
|
||||
Alert("No se pudo enviar el shipment a FreightVerify.", TipoMensaje.MsgError);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -650,7 +650,7 @@ public partial class GPS_Shipments : ClsPaginas
|
||||
|
||||
CargaStops(CveShipment);
|
||||
|
||||
this.RegistraScript("$('#DivEvent').modal({backdrop: 'static', keyboard: false});", "1");
|
||||
RegistraScript("$('#DivEvent').modal({backdrop: 'static', keyboard: false});", "1");
|
||||
CargaPosicionStop(DdlStops.SelectedValue.ToEntero());
|
||||
UpEvent.Update();
|
||||
}
|
||||
@@ -662,7 +662,7 @@ public partial class GPS_Shipments : ClsPaginas
|
||||
TxtLatLongEvent.Text = string.Format("{0},{1}", row["Lat"].ToString(), row["Lon"].ToString());
|
||||
TxtLatLongEvent.Text = string.Format("{0},{1}", row["Lat"].ToString(), row["Lon"].ToString());
|
||||
|
||||
this.RegistraScript($"cargapin('{row["Lat"].ToString()}','{row["Lon"].ToString()}');", "2"); ;
|
||||
RegistraScript($"cargapin('{row["Lat"].ToString()}','{row["Lon"].ToString()}');", "2"); ;
|
||||
}
|
||||
private void CargaStops(int CveShipment)
|
||||
{
|
||||
@@ -693,7 +693,7 @@ public partial class GPS_Shipments : ClsPaginas
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Alert("No se pudo eliminar el shipment.", TipoMensaje.MsgError);
|
||||
Alert("No se pudo eliminar el shipment.", TipoMensaje.MsgError);
|
||||
}
|
||||
CargaDatos();
|
||||
UpDatos.Update();
|
||||
@@ -727,16 +727,16 @@ public partial class GPS_Shipments : ClsPaginas
|
||||
if (envio)
|
||||
{
|
||||
Alert("Se envio el evento correctamente.");
|
||||
this.RegistraScript("$('#DivEvent').modal('hide');");
|
||||
RegistraScript("$('#DivEvent').modal('hide');");
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Alert("No se pudo eliminar el shipment.", TipoMensaje.MsgError);
|
||||
Alert("No se pudo eliminar el shipment.", TipoMensaje.MsgError);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Alert("No se pudo eliminar el shipment.", TipoMensaje.MsgError);
|
||||
Alert("No se pudo eliminar el shipment.", TipoMensaje.MsgError);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ public partial class General_CatTipoCambio : ClsPaginas
|
||||
BtnGuardarTC.Text = "Guardar";
|
||||
UPModalTipoCambio.Update();
|
||||
|
||||
this.RegistraScript("$('#DvModalTipoCambio').modal('show');");
|
||||
RegistraScript("$('#DvModalTipoCambio').modal('show');");
|
||||
}
|
||||
|
||||
protected void limpiarCamposModal()
|
||||
@@ -136,7 +136,7 @@ public partial class General_CatTipoCambio : ClsPaginas
|
||||
|
||||
UPModalTipoCambio.Update();
|
||||
|
||||
this.RegistraScript("$('#DvModalTipoCambio').modal('show');");
|
||||
RegistraScript("$('#DvModalTipoCambio').modal('show');");
|
||||
|
||||
}
|
||||
|
||||
@@ -200,7 +200,7 @@ public partial class General_CatTipoCambio : ClsPaginas
|
||||
ObjGeneral.Dispose();
|
||||
limpiarCamposModal();
|
||||
|
||||
this.RegistraScript("$('#DvModalTipoCambio').modal('hide');");
|
||||
RegistraScript("$('#DvModalTipoCambio').modal('hide');");
|
||||
CargaDatos();
|
||||
}
|
||||
|
||||
|
||||
@@ -146,13 +146,13 @@ public partial class General_ExcelToBD : System.Web.UI.Page
|
||||
{
|
||||
if (objbase.ExcelToBD(xml))
|
||||
{
|
||||
this.Alert("Información capturada", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
Alert("Información capturada", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
}
|
||||
}
|
||||
GVDatos.DataSource = dt;
|
||||
GVDatos.DataBind();
|
||||
|
||||
//this.Alert(string.Format("<div style=\"width:700px;\"><pre><xmp>{0}</xmp>\n</pre></br></div>", xml), ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
//Alert(string.Format("<div style=\"width:700px;\"><pre><xmp>{0}</xmp>\n</pre></br></div>", xml), ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
|
||||
}
|
||||
public string validtitle(string Valor)
|
||||
|
||||
@@ -408,7 +408,7 @@ public partial class General_RepPaqueteriasGuias : ClsPaginas
|
||||
}
|
||||
|
||||
}
|
||||
this.RegistraScript("$('#DivEditarGuia').modal('hide');");
|
||||
RegistraScript("$('#DivEditarGuia').modal('hide');");
|
||||
ObjGeneral.Dispose();
|
||||
}
|
||||
|
||||
@@ -542,7 +542,7 @@ public partial class General_RepPaqueteriasGuias : ClsPaginas
|
||||
UPEditarGuia.Update();
|
||||
|
||||
|
||||
this.RegistraScript("$('#DivEditarGuia').modal('show');");
|
||||
RegistraScript("$('#DivEditarGuia').modal('show');");
|
||||
}
|
||||
|
||||
protected void BtGuardarGuia_Click(object sender, EventArgs e)
|
||||
@@ -554,7 +554,7 @@ public partial class General_RepPaqueteriasGuias : ClsPaginas
|
||||
protected void BtnEliminarGuia_Click(object sender, EventArgs e)
|
||||
{
|
||||
EliminaGuia();
|
||||
this.RegistraScript("$('#DivEditarGuia').modal('hide');");
|
||||
RegistraScript("$('#DivEditarGuia').modal('hide');");
|
||||
CargaDatos();
|
||||
}
|
||||
|
||||
@@ -638,7 +638,7 @@ public partial class General_RepPaqueteriasGuias : ClsPaginas
|
||||
protected void LnkAgregarGuia_Click(object sender, EventArgs e)
|
||||
{
|
||||
//Agregamos guia sin vincular
|
||||
this.RegistraScript(String.Format("AbrirVentana('/General/PopUpPaqueteriasGuias.aspx',800,480);"));
|
||||
RegistraScript(String.Format("AbrirVentana('/General/PopUpPaqueteriasGuias.aspx',800,480);"));
|
||||
}
|
||||
|
||||
protected void LnkImprimirPDF_Click(object sender, EventArgs e)
|
||||
@@ -686,7 +686,7 @@ public partial class General_RepPaqueteriasGuias : ClsPaginas
|
||||
|
||||
UpModalUploadGuiaDocumento.Update();
|
||||
|
||||
this.RegistraScript("$('#ModalUploadGuiaDocumento').modal({ backdrop: 'static', keyboard: false});");
|
||||
RegistraScript("$('#ModalUploadGuiaDocumento').modal({ backdrop: 'static', keyboard: false});");
|
||||
}
|
||||
|
||||
protected void BtnModalGuiaDocumentoUpload_Click(object sender, EventArgs e)
|
||||
@@ -769,7 +769,7 @@ public partial class General_RepPaqueteriasGuias : ClsPaginas
|
||||
}
|
||||
}
|
||||
|
||||
this.RegistraScript("$('#ModalUploadGuiaDocumento').modal('hide')", "hidemodal3");
|
||||
RegistraScript("$('#ModalUploadGuiaDocumento').modal('hide')", "hidemodal3");
|
||||
|
||||
}
|
||||
|
||||
@@ -1064,7 +1064,7 @@ public partial class General_RepPaqueteriasGuias : ClsPaginas
|
||||
|
||||
protected void Reasignar_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript("$('#ModalMotivoReasignacion').modal('show')", "hidemodal3");
|
||||
RegistraScript("$('#ModalMotivoReasignacion').modal('show')", "hidemodal3");
|
||||
GridViewRow GvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||
CvePaqueteriaGuiaReasignar = GvRow.DataKey("CvePaqueteriaGuia").ToEntero();
|
||||
CveVenta = GvRow.DataKey("CveAgrupador").ToString().ToEntero();
|
||||
@@ -1083,7 +1083,7 @@ public partial class General_RepPaqueteriasGuias : ClsPaginas
|
||||
UPDatos.Update();
|
||||
CvePaqueteriaGuiaReasignar = -1;
|
||||
EnviarCorreoNotificacionEntrega(3, Folio, "", "", "", "", "", -1, null);
|
||||
this.RegistraScript("$('#ModalMotivoReasignacion').modal('hide')", "hidemodal3");
|
||||
RegistraScript("$('#ModalMotivoReasignacion').modal('hide')", "hidemodal3");
|
||||
}
|
||||
|
||||
private string DocumentoEntregaInterna(int CveVenta)
|
||||
|
||||
24
Global.asax
24
Global.asax
@@ -405,18 +405,18 @@
|
||||
'------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
'S U B P R O Y E C T O S
|
||||
|
||||
Using ObjSubProyectos As New ClsSubProyectos
|
||||
'If ObjSubProyectos.GetSubProyectos Then Application("GlobalDTSubProyectos") = ObjSubProyectos.DtResultados Else Application("GlobalDTSubProyectos") = Nothing
|
||||
If ObjSubProyectos.GetSubProyectosUsuarios Then
|
||||
Application("GlobalDTProyectosUsuarios") = ObjSubProyectos.DtResultados.FiltraParametros("", "", {"Proyecto", "CveProyecto", "CveUsuario", "CveEmpresa", "CveEstatusProyecto"})
|
||||
Application("GlobalDTSubProyectosUsuarios") = ObjSubProyectos.DtResultados
|
||||
Else
|
||||
Application("GlobalDTProyectosUsuarios") = Nothing
|
||||
Application("GlobalDTSubProyectosUsuarios") = Nothing
|
||||
End If
|
||||
'Else Application("GlobalDTProyectosUsuarios") = Nothing
|
||||
End Using
|
||||
GuardaLogAsax(String.Format("Globalasax 26:{0}", DateTime.Now))
|
||||
'Using ObjSubProyectos As New ClsSubProyectos
|
||||
' 'If ObjSubProyectos.GetSubProyectos Then Application("GlobalDTSubProyectos") = ObjSubProyectos.DtResultados Else Application("GlobalDTSubProyectos") = Nothing
|
||||
' If ObjSubProyectos.GetSubProyectosUsuarios Then
|
||||
' Application("GlobalDTProyectosUsuarios") = ObjSubProyectos.DtResultados.FiltraParametros("", "", {"Proyecto", "CveProyecto", "CveUsuario", "CveEmpresa", "CveEstatusProyecto"})
|
||||
' Application("GlobalDTSubProyectosUsuarios") = ObjSubProyectos.DtResultados
|
||||
' Else
|
||||
' Application("GlobalDTProyectosUsuarios") = Nothing
|
||||
' Application("GlobalDTSubProyectosUsuarios") = Nothing
|
||||
' End If
|
||||
' 'Else Application("GlobalDTProyectosUsuarios") = Nothing
|
||||
'End Using
|
||||
'GuardaLogAsax(String.Format("Globalasax 26:{0}", DateTime.Now))
|
||||
|
||||
'------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
'T I P O S - D E - E V E N T O S
|
||||
|
||||
@@ -1074,7 +1074,7 @@ Partial Class Inicio
|
||||
Private Sub CargaDirectorioTelefonico()
|
||||
Dim ObjPersonal As New ClsRH
|
||||
|
||||
Me.RegistraScript("$get('DivActualizarEvento').style.display = 'true';")
|
||||
RegistraScript("$get('DivActualizarEvento').style.display = 'true';")
|
||||
'$get('DivActualizarEvento').style.display = 'none';
|
||||
|
||||
If ObjPersonal.DirectorioTelefonicoGet(UsuarioActual.CveEmpresa) Then
|
||||
|
||||
@@ -92,7 +92,7 @@ public partial class Inventarios_CatGrupoPSaspx : ClsPaginas
|
||||
DtGrupoPSDetalle.Rows.Clear();
|
||||
UpModal.Update();
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected void LnkAddGrupoPS_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -129,7 +129,7 @@ public partial class Inventarios_CatGrupoPSaspx : ClsPaginas
|
||||
}
|
||||
ObjInv.Dispose();
|
||||
CargaGrupoPS();
|
||||
}
|
||||
}
|
||||
|
||||
protected void LnkEditar_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -211,7 +211,7 @@ public partial class Inventarios_CatGrupoPSaspx : ClsPaginas
|
||||
if (!ObjInv.RemoveGrupoPSDetalle(Dr["CveGrupoPSDetalle"].ToEntero()))
|
||||
{
|
||||
Error = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!Error)
|
||||
|
||||
@@ -4115,7 +4115,7 @@ Partial Class Inventarios_EntregaAlmacen
|
||||
' CargaModalCombosDirecciones(CveCliente, CveDireccion);
|
||||
|
||||
' UpModalEditarentrega.Update();
|
||||
' this.RegistraScript("$('#DivEditarEntrega').modal('show');");
|
||||
' RegistraScript("$('#DivEditarEntrega').modal('show');");
|
||||
'}
|
||||
|
||||
|
||||
|
||||
@@ -1000,7 +1000,7 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
||||
CargaModalCombosDirecciones(CveCliente, CveDireccion);
|
||||
|
||||
UpModalEditarentrega.Update();
|
||||
this.RegistraScript("$('#DivEditarEntrega').modal('show');");
|
||||
RegistraScript("$('#DivEditarEntrega').modal('show');");
|
||||
}
|
||||
|
||||
protected void BtnModalEditarentrega_Click(object sender, EventArgs e)
|
||||
@@ -1017,7 +1017,7 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
||||
|
||||
if (ProcesoOK)
|
||||
{
|
||||
this.RegistraScript("$('#DivEditarEntrega').modal('hide');");
|
||||
RegistraScript("$('#DivEditarEntrega').modal('hide');");
|
||||
Alert("Dirección Actualizada correctamente.", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
CargaDatos();
|
||||
}
|
||||
|
||||
@@ -401,7 +401,7 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
||||
|
||||
|
||||
UpModalEditarentrega.Update();
|
||||
this.RegistraScript("$('#DivEditarEntrega').modal({ backdrop: 'static', keyboard: false });");
|
||||
RegistraScript("$('#DivEditarEntrega').modal({ backdrop: 'static', keyboard: false });");
|
||||
|
||||
|
||||
}
|
||||
@@ -601,7 +601,7 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
||||
|
||||
if (ProcesoOK)
|
||||
{
|
||||
this.RegistraScript("$('#DivEditarEntrega').modal('hide');");
|
||||
RegistraScript("$('#DivEditarEntrega').modal('hide');");
|
||||
Alert("Entrega Actualizada correctamente.");
|
||||
CargaDatos();
|
||||
}
|
||||
@@ -611,7 +611,7 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
||||
protected void BtnEliminarGuia_Click(object sender, EventArgs e)
|
||||
{
|
||||
//EliminaGuia();
|
||||
//this.RegistraScript("$('#DivEditarGuia').modal('hide');");
|
||||
//RegistraScript("$('#DivEditarGuia').modal('hide');");
|
||||
//CargaDatos();
|
||||
}
|
||||
|
||||
|
||||
@@ -64,14 +64,14 @@ public partial class Nomina_Acumulados : ClsPaginas
|
||||
|
||||
DdlTipoAcumulado .SelectedValueExist(cveTipoAcumulado.ToString());
|
||||
TxtAcumacumulado.Text = acumulado.ToString();
|
||||
this.RegistraScript("$('#DModalAcumulados').modal();");
|
||||
RegistraScript("$('#DModalAcumulados').modal();");
|
||||
BtnAcumADD.Visible = false;
|
||||
BtnAcumEdit.Visible = true;
|
||||
UPModalAcum.Update();
|
||||
}
|
||||
protected void LnkAgregarAcum_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript("$('#DModalAcumulados').modal();");
|
||||
RegistraScript("$('#DModalAcumulados').modal();");
|
||||
LimpiaAcumulados();
|
||||
BtnAcumADD.Visible = true;
|
||||
BtnAcumEdit.Visible = false;
|
||||
@@ -92,11 +92,11 @@ public partial class Nomina_Acumulados : ClsPaginas
|
||||
}
|
||||
if (Continuar)
|
||||
{
|
||||
this.RegistraScript("$('#DModalAcumulados').modal('hide');");
|
||||
RegistraScript("$('#DModalAcumulados').modal('hide');");
|
||||
LimpiaAcumulados();
|
||||
CargaAcumulados();
|
||||
UPModalAcum.Update();
|
||||
this.Alert("El Acumulados Se ha agregado");
|
||||
Alert("El Acumulados Se ha agregado");
|
||||
}
|
||||
}
|
||||
protected void BtnAcumEdit_Click(object sender, EventArgs e)
|
||||
@@ -112,11 +112,11 @@ public partial class Nomina_Acumulados : ClsPaginas
|
||||
}
|
||||
if (Continuar)
|
||||
{
|
||||
this.RegistraScript("$('#DModalAcumulados').modal('hide');");
|
||||
RegistraScript("$('#DModalAcumulados').modal('hide');");
|
||||
LimpiaAcumulados();
|
||||
UPModalAcum.Update();
|
||||
CargaAcumulados();
|
||||
this.Alert("El Acumulados Se ha actualizado");
|
||||
Alert("El Acumulados Se ha actualizado");
|
||||
}
|
||||
}
|
||||
protected void LnkEliminarAcum_Click(object sender, EventArgs e)
|
||||
@@ -132,7 +132,7 @@ public partial class Nomina_Acumulados : ClsPaginas
|
||||
if (Continuar)
|
||||
{
|
||||
CargaAcumulados();
|
||||
this.Alert("El Acumulados Se ha Eliminado");
|
||||
Alert("El Acumulados Se ha Eliminado");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -551,7 +551,7 @@ public partial class Nomina_Aguinaldo : ClsPaginas
|
||||
|
||||
protected void LnkDownExcel_Click(object sender, EventArgs e)
|
||||
{
|
||||
// GVCalcularAguinaldo.ExportToExcelx(string.Format("Aguinaldo {0}", DdlEjercicios.SelectedItem.Text));
|
||||
// GVCalcularAguinaldo.ExportToExcelX(string.Format("Aguinaldo {0}", DdlEjercicios.SelectedItem.Text));
|
||||
|
||||
|
||||
ClosedXML.Excel.XLWorkbook wb = new ClosedXML.Excel.XLWorkbook();
|
||||
|
||||
@@ -112,7 +112,7 @@ public partial class Nomina_CargaArchivosNomina : System.Web.UI.Page
|
||||
{
|
||||
if (objbase.ExcelToBD(xml))
|
||||
{
|
||||
this.Alert("Información capturada", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
Alert("Información capturada", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
}
|
||||
}
|
||||
GVDatos.DataSource = dt;
|
||||
|
||||
@@ -795,7 +795,7 @@ public partial class Nomina_Finiquito : ClsPaginas
|
||||
protected void LnkCambiarEmpleado_Click(object sender, EventArgs e)
|
||||
{
|
||||
CargaDdlPersonal();
|
||||
this.RegistraScript("$('#ModalEmpleados').modal();");
|
||||
RegistraScript("$('#ModalEmpleados').modal();");
|
||||
UpModalEmpleados.Update();
|
||||
}
|
||||
|
||||
|
||||
@@ -1449,18 +1449,18 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
objrh.NomBitacoraCorreoAdd(CvePeriodoSeleccionado, CvePersonal, Correo.Trim(), UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario);
|
||||
}
|
||||
|
||||
this.Alert(string.Format("se envio el correo a '{0}'.", Correo), TipoMensaje.MsgInformacion);
|
||||
Alert(string.Format("se envio el correo a '{0}'.", Correo), TipoMensaje.MsgInformacion);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Alert("No se pudo generar el PDF para enviar el correo.", TipoMensaje.MsgAdvertencia);
|
||||
Alert("No se pudo generar el PDF para enviar el correo.", TipoMensaje.MsgAdvertencia);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
this.Alert("No se tiene un correo registrado.", TipoMensaje.MsgAdvertencia);
|
||||
Alert("No se tiene un correo registrado.", TipoMensaje.MsgAdvertencia);
|
||||
}
|
||||
}
|
||||
protected void LnkTimbrar_Click(object sender, EventArgs e)
|
||||
@@ -6309,10 +6309,10 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
if (Continuar)
|
||||
{
|
||||
this.RegistraScript("$('#DModalMovtoPermanente').modal('hide');");
|
||||
RegistraScript("$('#DModalMovtoPermanente').modal('hide');");
|
||||
CargaMovtoPermanente();
|
||||
UpMovtosPermanentes.Update();
|
||||
this.Alert("Se ha agregado el movimiento permanente");
|
||||
Alert("Se ha agregado el movimiento permanente");
|
||||
}
|
||||
RegistraScript("$('#ModalMovtoPermanente').modal('hide')");
|
||||
|
||||
@@ -6337,10 +6337,10 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
if (Continuar)
|
||||
{
|
||||
this.RegistraScript("$('#ModalMovtoPermanente').modal('hide');");
|
||||
RegistraScript("$('#ModalMovtoPermanente').modal('hide');");
|
||||
CargaMovtoPermanente();
|
||||
UpMovtosPermanentes.Update();
|
||||
this.Alert("Se ha actualizado el movimiento permanente");
|
||||
Alert("Se ha actualizado el movimiento permanente");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -6364,10 +6364,10 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
if (Continuar)
|
||||
{
|
||||
this.RegistraScript("$('#ModalMovtoPermanente').modal('hide');");
|
||||
RegistraScript("$('#ModalMovtoPermanente').modal('hide');");
|
||||
CargaMovtoPermanente();
|
||||
UpMovtosPermanentes.Update();
|
||||
this.Alert("Se ha eliminadó el movimiento permanente");
|
||||
Alert("Se ha eliminadó el movimiento permanente");
|
||||
}
|
||||
}
|
||||
protected void LnkEditarMovtoPermanente_Click(object sender, EventArgs e)
|
||||
@@ -7734,7 +7734,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
{
|
||||
CargaPersonalIncapacidad();
|
||||
UpsrIncapacidadpersonal.Update();
|
||||
this.Alert("La incapacidad se ha agregado.", TipoMensaje.ToastInformacion);
|
||||
Alert("La incapacidad se ha agregado.", TipoMensaje.ToastInformacion);
|
||||
RegistraScript("$('#ModalSRIncapacidad').modal('hide')");
|
||||
}
|
||||
}
|
||||
@@ -7762,7 +7762,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
{
|
||||
CargaPersonalIncapacidad();
|
||||
UpsrIncapacidadpersonal.Update();
|
||||
this.Alert("La incapacidad se ha actualizado.", TipoMensaje.ToastInformacion);
|
||||
Alert("La incapacidad se ha actualizado.", TipoMensaje.ToastInformacion);
|
||||
RegistraScript("$('#ModalSRIncapacidad').modal('hide')");
|
||||
}
|
||||
}
|
||||
@@ -8968,10 +8968,10 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
if (Continuar)
|
||||
{
|
||||
this.RegistraScript("$('#DModalVacacionesEmpresas').modal('hide');");
|
||||
RegistraScript("$('#DModalVacacionesEmpresas').modal('hide');");
|
||||
CargaVacacionesEmpresas();
|
||||
upDatosVacaEmpre.Update();
|
||||
this.Alert("El Vacaciones_Empresas Se ha agregado");
|
||||
Alert("El Vacaciones_Empresas Se ha agregado");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8989,7 +8989,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
if (Continuar)
|
||||
{
|
||||
CargaVacacionesEmpresas();
|
||||
this.Alert("El Vacaciones_Empresas Se ha Eliminado");
|
||||
Alert("El Vacaciones_Empresas Se ha Eliminado");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9047,7 +9047,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
DivModalLayoutBancosFecha.Visible = false;
|
||||
TxtModalLayoutBancosFecha.Text = "";
|
||||
|
||||
this.RegistraScript("$('#ModalLayoutBancos').modal('show');");
|
||||
RegistraScript("$('#ModalLayoutBancos').modal('show');");
|
||||
UpModalBancosLayout.Update();
|
||||
}
|
||||
|
||||
@@ -9218,7 +9218,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
//Response.AppendHeader("Content-Disposition", $"attachment;filename=\"Nomina{DateTime.Now.ToString("yyyyMMddhhmmss").ToString()}.txt\"");
|
||||
Response.AppendHeader("Content-Disposition", $"attachment;filename=\"Nomina {DdlPeriodo.SelectedItem.Text}.txt\"");
|
||||
Response.Write(sb.ToString());
|
||||
this.RegistraScript("$('#ModalLayoutBancos').modal('hide');");
|
||||
RegistraScript("$('#ModalLayoutBancos').modal('hide');");
|
||||
Response.Flush();
|
||||
Response.End();
|
||||
}
|
||||
@@ -9347,13 +9347,13 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
Response.ContentType = "text/plain";
|
||||
Response.AppendHeader("Content-Disposition", $"attachment;filename=\"NI{Emisora.PadLeft(5, Cero)}{Consecutivo.ToString("00")}.PAG\"");
|
||||
Response.Write(sb.ToString());
|
||||
this.RegistraScript("$('#ModalLayoutBancos').modal('hide');");
|
||||
RegistraScript("$('#ModalLayoutBancos').modal('hide');");
|
||||
Response.Flush();
|
||||
Response.End();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Alert($"Errores {SbErrores.ToString()}", TipoMensaje.ToastAdventencia);
|
||||
Alert($"Errores {SbErrores.ToString()}", TipoMensaje.ToastAdventencia);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -266,7 +266,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
||||
|
||||
protected void LnkAgregar_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarPara));
|
||||
RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarPara));
|
||||
ResetCombos();
|
||||
ConsultaCorreos();
|
||||
UpModalSeleccionCorreos.Update();
|
||||
|
||||
@@ -200,7 +200,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
|
||||
protected void LnkUpUsuarios_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarMiembros));
|
||||
RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarMiembros));
|
||||
LtlTituloUsuarios.Text = "Actualizar miembros";
|
||||
BtnUpMiembros.Visible = true;
|
||||
DdlModera.SelectedValueExist(CveUsuarioDe.ToString());
|
||||
@@ -264,12 +264,12 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
//Setpermisos();
|
||||
}
|
||||
UpContenido.Update();
|
||||
this.RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarMiembros));
|
||||
RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarMiembros));
|
||||
}
|
||||
|
||||
protected void LnkAddTtemaModal_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarTema));
|
||||
RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarTema));
|
||||
}
|
||||
|
||||
|
||||
@@ -401,7 +401,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
ruta = string.Format("{0}{1}", ruta, archivoname);//, ArchivoExtencion);
|
||||
System.IO.File.Move(rutaarchivoOri, ruta);
|
||||
}
|
||||
this.Alert(string.Format("Se ha agregadó la nueva convocatoria.<br/><a href=\"data:text/plain;charset=utf-8,{0}\" download=\"Agendar.ics\" class=\"btn btn-default\">⏰ Agendar</a>", HttpUtility.UrlEncode(ICString)), ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/ConvocatoriaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
||||
Alert(string.Format("Se ha agregadó la nueva convocatoria.<br/><a href=\"data:text/plain;charset=utf-8,{0}\" download=\"Agendar.ics\" class=\"btn btn-default\">⏰ Agendar</a>", HttpUtility.UrlEncode(ICString)), ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/ConvocatoriaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -434,7 +434,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
|
||||
if (errorMessage.Length > 0)
|
||||
{
|
||||
this.Alert(errorMessage, ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||
Alert(errorMessage, ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -446,7 +446,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
if (objoi.AddRevisionesEventos(TxtTema.Text.Trim(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
||||
{
|
||||
Alert(string.Format("El Tema \"{0}\" fue agregada con éxito.", TxtTema.Text.Trim()), ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
this.RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarTema));
|
||||
RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarTema));
|
||||
TxtTema.Text = "";
|
||||
set_GlobalDTOIRevision(-1, objoi.DtResultados);
|
||||
CargaTemas();
|
||||
@@ -519,7 +519,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
||||
CveEventoMinuta = CveEvento;
|
||||
LnkOpenModalAsistencia.Visible = true;
|
||||
UpAcciones.Update();
|
||||
this.Alert(string.Format("Se ha iniciado la minuta, si desea ir a la minuta <a href=\"/OI/MinutaDetalle.aspx?CveEvento={0}\">Click Aquí</a>.", CveEvento), ModExtensiones.TipoMensaje.ToastInformacion, "", 0);
|
||||
Alert(string.Format("Se ha iniciado la minuta, si desea ir a la minuta <a href=\"/OI/MinutaDetalle.aspx?CveEvento={0}\">Click Aquí</a>.", CveEvento), ModExtensiones.TipoMensaje.ToastInformacion, "", 0);
|
||||
LnkOpenModalAsistencia_Click(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 = "";
|
||||
}
|
||||
|
||||
@@ -70,14 +70,14 @@ public partial class OI_Proyecto : ClsPaginas
|
||||
}
|
||||
}
|
||||
str.AppendLine("];loadGant();");
|
||||
this.RegistraScript(str.ToString());
|
||||
RegistraScript(str.ToString());
|
||||
UpContenido.Update();
|
||||
//{ id: 2, text: "Direccion: evaluación de mercado", start_date: "2020/04/29 00:00", end_date: "2020/05/02 00:00",/*duration: 3,*/ parent: 1, progress: 0.25 }
|
||||
}
|
||||
|
||||
protected void LnkNewProyecto_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarProyecto));
|
||||
RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarProyecto));
|
||||
RCveEventoB = RCveEvento;
|
||||
}
|
||||
|
||||
@@ -201,7 +201,7 @@ public partial class OI_Proyecto : ClsPaginas
|
||||
ruta = string.Format("{0}{1}", ruta, archivoname);//, ArchivoExtencion);
|
||||
System.IO.File.Move(rutaarchivoOri, ruta);
|
||||
}
|
||||
//this.Alert("Se ha agregadó la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/Proyecto.aspx?CveEvento={0}\");", CveEvento));
|
||||
//Alert("Se ha agregadó la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/Proyecto.aspx?CveEvento={0}\");", CveEvento));
|
||||
loadEvento();
|
||||
TxtAsunto.Text = "";
|
||||
TxtDescripcion.Text = "";
|
||||
@@ -217,7 +217,7 @@ public partial class OI_Proyecto : ClsPaginas
|
||||
protected void BtnopenmodalClickGant_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarProyecto));
|
||||
RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarProyecto));
|
||||
RCveEventoB = txtCveEvento.Text.ToEntero();
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ public partial class OI_RepProyectos : ClsPaginas
|
||||
}
|
||||
protected void LnkNewProyecto_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarProyecto));
|
||||
RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarProyecto));
|
||||
}
|
||||
|
||||
protected void btnguardarProyecto_Click(object sender, EventArgs e)
|
||||
@@ -167,8 +167,8 @@ public partial class OI_RepProyectos : ClsPaginas
|
||||
ruta = string.Format("{0}{1}", ruta, archivoname);//, ArchivoExtencion);
|
||||
System.IO.File.Move(rutaarchivoOri, ruta);
|
||||
}
|
||||
//this.Alert("Se ha agregadó la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/Proyecto.aspx?CveEvento={0}\");", CveEvento));
|
||||
this.Alert("Se ha agregadó la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
//Alert("Se ha agregadó la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/Proyecto.aspx?CveEvento={0}\");", CveEvento));
|
||||
Alert("Se ha agregadó la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
|
||||
cargar();
|
||||
TxtAsunto.Text = "";
|
||||
|
||||
@@ -196,7 +196,7 @@ public partial class OI_RepReuniones : ClsPaginas
|
||||
if (Continuar)
|
||||
{
|
||||
BtnCargarReunion_Click(null, null);
|
||||
this.Alert(string.Format("Se ha iniciado la minuta<br /> para ir a la minuta <a href=\"/OI/MinutaDetalle.aspx?CveEvento={0}\">click aquí</a>", CveEvento), ModExtensiones.TipoMensaje.ToastInformacion, "", 0);
|
||||
Alert(string.Format("Se ha iniciado la minuta<br /> para ir a la minuta <a href=\"/OI/MinutaDetalle.aspx?CveEvento={0}\">click aquí</a>", CveEvento), ModExtensiones.TipoMensaje.ToastInformacion, "", 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -200,7 +200,7 @@ Partial Class OI_RepSoporteADS
|
||||
CargaDatosOIEventosTareasAsignaron()
|
||||
|
||||
UPDatosOIEventosTareasAsignaron.Update()
|
||||
Me.RegistraScript("UpperBound = " & GvDatosOIEventosTareasAsignaron.Rows.Count - 1 & ";")
|
||||
RegistraScript("UpperBound = " & GvDatosOIEventosTareasAsignaron.Rows.Count - 1 & ";")
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
|
||||
@@ -325,7 +325,7 @@ Partial Class OI_RepTareas
|
||||
CargaDatosOIEventosTareasAsigne()
|
||||
CargaDatosOIEventosTareasCCP()
|
||||
UPDatosOIEventosTareasAsignaron.Update()
|
||||
Me.RegistraScript("UpperBound = " & GvDatosOIEventosTareasAsignaron.Rows.Count - 1 & ";")
|
||||
RegistraScript("UpperBound = " & GvDatosOIEventosTareasAsignaron.Rows.Count - 1 & ";")
|
||||
End Sub
|
||||
#End Region
|
||||
|
||||
|
||||
@@ -17,6 +17,6 @@ public partial class OI_RepTareas3 : System.Web.UI.Page
|
||||
protected void LnkAddEvento_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregar));
|
||||
RegistraScript(string.Format("$('#{0}').modal()", iddivAgregar));
|
||||
}
|
||||
}
|
||||
@@ -70,7 +70,7 @@ public partial class OI_Tablero : ClsPaginas
|
||||
|
||||
TxtTabltablero.Text = tablero.ToString();
|
||||
DdlTablusuario.SelectedValueExist(cveUsuario.ToString());
|
||||
this.RegistraScript("$('#DModalTablero').modal();");
|
||||
RegistraScript("$('#DModalTablero').modal();");
|
||||
BtnTablADD.Visible = false;
|
||||
BtnTablEdit.Visible = true;
|
||||
UPModalTabl.Update();
|
||||
@@ -85,11 +85,11 @@ public partial class OI_Tablero : ClsPaginas
|
||||
ObjTabl.Dispose();
|
||||
if (Continuar)
|
||||
{
|
||||
this.RegistraScript("$('#DModalTablero').modal('hide');");
|
||||
RegistraScript("$('#DModalTablero').modal('hide');");
|
||||
LimpiaTablero();
|
||||
CargaTablero();
|
||||
UPModalTabl.Update();
|
||||
this.Alert("El Tablero Se ha agregado");
|
||||
Alert("El Tablero Se ha agregado");
|
||||
}
|
||||
}
|
||||
protected void BtnTablEdit_Click(object sender, EventArgs e)
|
||||
@@ -102,11 +102,11 @@ public partial class OI_Tablero : ClsPaginas
|
||||
ObjTabl.Dispose();
|
||||
if (Continuar)
|
||||
{
|
||||
this.RegistraScript("$('#DModalTablero').modal('hide');");
|
||||
RegistraScript("$('#DModalTablero').modal('hide');");
|
||||
LimpiaTablero();
|
||||
UPModalTabl.Update();
|
||||
CargaTablero();
|
||||
this.Alert("El Tablero Se ha actualizado");
|
||||
Alert("El Tablero Se ha actualizado");
|
||||
}
|
||||
}
|
||||
protected void LnkEliminarTabl_Click(object sender, EventArgs e)
|
||||
@@ -120,15 +120,15 @@ public partial class OI_Tablero : ClsPaginas
|
||||
if (Continuar)
|
||||
{
|
||||
CargaTablero();
|
||||
this.Alert("El Tablero Se ha Eliminado");
|
||||
Alert("El Tablero Se ha Eliminado");
|
||||
}else
|
||||
{
|
||||
this.Alert("El Tablero Se ha Eliminado", ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||
Alert("El Tablero Se ha Eliminado", ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||
}
|
||||
}
|
||||
protected void LnkTableros_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript("$('#DModalTablero').modal();");
|
||||
RegistraScript("$('#DModalTablero').modal();");
|
||||
LimpiaTablero();
|
||||
BtnTablADD.Visible = true;
|
||||
BtnTablEdit.Visible = false;
|
||||
|
||||
@@ -86,14 +86,14 @@ public partial class OI_TableroDetalle : ClsPaginas
|
||||
string lista = gvRow.DataKey("Lista");
|
||||
|
||||
TxtTabllista.Text = lista.ToString();
|
||||
this.RegistraScript("$('#DModalTableroLista').modal();");
|
||||
RegistraScript("$('#DModalTableroLista').modal();");
|
||||
BtnTablADD.Visible = false;
|
||||
BtnTablEdit.Visible = true;
|
||||
UPModalTabl.Update();
|
||||
}
|
||||
protected void LnkAgregarTabl_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript("$('#DModalTableroLista').modal();");
|
||||
RegistraScript("$('#DModalTableroLista').modal();");
|
||||
LimpiaTableroLista();
|
||||
BtnTablADD.Visible = true;
|
||||
BtnTablEdit.Visible = false;
|
||||
@@ -108,11 +108,11 @@ public partial class OI_TableroDetalle : ClsPaginas
|
||||
ObjTabl.Dispose();
|
||||
if (Continuar)
|
||||
{
|
||||
this.RegistraScript("$('#DModalTableroLista').modal('hide');");
|
||||
RegistraScript("$('#DModalTableroLista').modal('hide');");
|
||||
LimpiaTableroLista();
|
||||
CargaTableroLista();
|
||||
UPModalTabl.Update();
|
||||
this.Alert("La Lista se ha agregadó",ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
Alert("La Lista se ha agregadó",ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
}
|
||||
}
|
||||
protected void BtnTablEdit_Click(object sender, EventArgs e)
|
||||
@@ -124,11 +124,11 @@ public partial class OI_TableroDetalle : ClsPaginas
|
||||
ObjTabl.Dispose();
|
||||
if (Continuar)
|
||||
{
|
||||
this.RegistraScript("$('#DModalTableroLista').modal('hide');");
|
||||
RegistraScript("$('#DModalTableroLista').modal('hide');");
|
||||
LimpiaTableroLista();
|
||||
UPModalTabl.Update();
|
||||
CargaTableroLista();
|
||||
this.Alert("La Lista Se ha actualizado");
|
||||
Alert("La Lista Se ha actualizado");
|
||||
}
|
||||
}
|
||||
protected void LnkEliminarTabl_Click(object sender, EventArgs e)
|
||||
@@ -141,7 +141,7 @@ public partial class OI_TableroDetalle : ClsPaginas
|
||||
if (Continuar)
|
||||
{
|
||||
CargaTableroLista();
|
||||
this.Alert("El Tablero_Lista Se ha Eliminado");
|
||||
Alert("El Tablero_Lista Se ha Eliminado");
|
||||
}
|
||||
}
|
||||
//Dim item As DataRowView = DirectCast(e.Item.DataItem, DataRowView)
|
||||
|
||||
@@ -95,12 +95,12 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
this.RegistraScript("window.close();");
|
||||
RegistraScript("window.close();");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.RegistraScript("window.close();");
|
||||
RegistraScript("window.close();");
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -791,7 +791,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
ruta = string.Format("{0}{1}", ruta, archivoname);//, ArchivoExtencion);
|
||||
System.IO.File.Move(rutaarchivoOri, ruta);
|
||||
}
|
||||
this.Alert("Se ha agregado la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/TareaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
||||
Alert("Se ha agregado la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/TareaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -839,14 +839,14 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
{
|
||||
cargaActividades(objOI);
|
||||
}
|
||||
this.Alert("Se actualizó la tarea", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
Alert("Se actualizó la tarea", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (errorMessage.Length > 0)
|
||||
{
|
||||
this.Alert(errorMessage, ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||
Alert(errorMessage, ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1033,7 +1033,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
DdlEventoEstatus.SelectedValueExist(DDlEstatus.SelectedValue);
|
||||
lblEstatus.Text = DdlEventoEstatus.SelectedItem.Text;
|
||||
UpEstatus.Update();
|
||||
this.RegistraScript(string.Format("$('#{0}').modal('hide')", iddivCambiarEstatus));
|
||||
RegistraScript(string.Format("$('#{0}').modal('hide')", iddivCambiarEstatus));
|
||||
Alert(mensaje, ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
cargaActividades(objOI);
|
||||
|
||||
@@ -1074,13 +1074,13 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
|
||||
protected void LnkcambiarEstatus_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivCambiarEstatus));
|
||||
RegistraScript(string.Format("$('#{0}').modal()", iddivCambiarEstatus));
|
||||
}
|
||||
|
||||
|
||||
protected void LnkAgregarTema_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarTema));
|
||||
RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarTema));
|
||||
}
|
||||
|
||||
protected void BtnAgregarTema_Click(object sender, EventArgs e)
|
||||
@@ -1091,7 +1091,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
if (objoi.AddRevisionesEventos(TxtTema.Text.Trim(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
||||
{
|
||||
Alert(string.Format("El Tema \"{0}\" fue agregado con éxito.", TxtTema.Text.Trim()), ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
this.RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarTema));
|
||||
RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarTema));
|
||||
TxtTema.Text = "";
|
||||
set_GlobalDTOIRevision(-1, objoi.DtResultados);
|
||||
CargaTemas();
|
||||
@@ -1105,7 +1105,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
protected void LnkAgregarActividad_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregar));
|
||||
RegistraScript(string.Format("$('#{0}').modal()", iddivAgregar));
|
||||
}
|
||||
|
||||
protected void BtnAgregarComentario_Click(object sender, EventArgs e)
|
||||
@@ -1170,9 +1170,9 @@ public partial class OI_TareaDetalle : 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 = "";
|
||||
}
|
||||
@@ -1197,7 +1197,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
|
||||
protected void LnkUpFile_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarArchivo));
|
||||
RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarArchivo));
|
||||
|
||||
}
|
||||
|
||||
@@ -1259,8 +1259,8 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
if (continuar)
|
||||
{
|
||||
LoadTarea();
|
||||
this.RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarArchivo));
|
||||
this.Alert("Archivo Actualizadó", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarArchivo));
|
||||
Alert("Archivo Actualizadó", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
}
|
||||
UpContenido.Update();
|
||||
UpAcciones.Update();
|
||||
@@ -1307,7 +1307,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
}
|
||||
if (continuar)
|
||||
{
|
||||
this.Alert("Avance Actualizadó", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
Alert("Avance Actualizadó", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
|
||||
}
|
||||
//UpTitulo.Update();
|
||||
@@ -1315,12 +1315,12 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
|
||||
protected void LnkAddTtemaB_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarTema));
|
||||
RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarTema));
|
||||
}
|
||||
|
||||
protected void LnkReasignar_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarMiembros));
|
||||
RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarMiembros));
|
||||
LtlTituloUsuarios.Text = "Reasignar Tarea";
|
||||
BtnUpMiembros.Visible = false;
|
||||
BtnReasignarTarea.Visible = true;
|
||||
@@ -1361,7 +1361,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
}
|
||||
protected void LnkUpUsuarios_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarMiembros));
|
||||
RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarMiembros));
|
||||
LtlTituloUsuarios.Text = "Actualizar miembros";
|
||||
BtnUpMiembros.Visible = true;
|
||||
BtnReasignarTarea.Visible = false;
|
||||
@@ -1440,7 +1440,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
Setpermisos();
|
||||
}
|
||||
UpContenido.Update();
|
||||
this.RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarMiembros));
|
||||
RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarMiembros));
|
||||
}
|
||||
|
||||
|
||||
@@ -1564,7 +1564,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
}
|
||||
if (Continuar && CveEvento > 0)
|
||||
{
|
||||
this.Alert("Se ha agregado la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/TareaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
||||
Alert("Se ha agregado la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/TareaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ Partial Class Prospectos_GeneradorEncuestas
|
||||
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
||||
CargaDatos()
|
||||
UPDatos.Update()
|
||||
Me.RegistraScript("UpperBound = " & GvDatos.Rows.Count - 1 & ";")
|
||||
RegistraScript("UpperBound = " & GvDatos.Rows.Count - 1 & ";")
|
||||
End Sub
|
||||
|
||||
Protected Sub ImgExcel_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles ImgExcel.Click
|
||||
|
||||
@@ -124,7 +124,7 @@ Partial Class Prospectos_RepRedesEstructuras
|
||||
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
||||
CargaDatos()
|
||||
UPDatos.Update()
|
||||
Me.RegistraScript("UpperBound = " & GvDatos.Rows.Count - 1 & ";")
|
||||
RegistraScript("UpperBound = " & GvDatos.Rows.Count - 1 & ";")
|
||||
End Sub
|
||||
|
||||
Protected Sub ImgExcel_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles ImgExcel.Click
|
||||
|
||||
@@ -84,7 +84,7 @@ Partial Class Prospectos_RepEventos
|
||||
'Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
||||
' CargaDatos()
|
||||
' UPDatos.Update()
|
||||
' Me.RegistraScript("UpperBound = " & GvDatos.Rows.Count - 1 & ";")
|
||||
' RegistraScript("UpperBound = " & GvDatos.Rows.Count - 1 & ";")
|
||||
'End Sub
|
||||
|
||||
Protected Sub ImgExcel_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles ImgExcel.Click
|
||||
|
||||
@@ -298,7 +298,7 @@ Partial Class Prospectos_RepPadron
|
||||
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
||||
CargaDatos()
|
||||
UPDatos.Update()
|
||||
Me.RegistraScript("UpperBound = " & GvDatos.Rows.Count - 1 & ";")
|
||||
RegistraScript("UpperBound = " & GvDatos.Rows.Count - 1 & ";")
|
||||
End Sub
|
||||
|
||||
Protected Sub ImgExcel_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles ImgExcel.Click
|
||||
|
||||
@@ -81,7 +81,7 @@ Partial Class Prospectos_RepProspectos
|
||||
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
||||
CargaDatos()
|
||||
UPDatos.Update()
|
||||
Me.RegistraScript("UpperBound = " & GvDatos.Rows.Count - 1 & ";")
|
||||
RegistraScript("UpperBound = " & GvDatos.Rows.Count - 1 & ";")
|
||||
End Sub
|
||||
|
||||
Protected Sub ImgExcel_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles ImgExcel.Click
|
||||
|
||||
@@ -142,7 +142,7 @@ Partial Class Prospectos_RepRedesEstructuras
|
||||
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
||||
CargaDatos()
|
||||
UPDatos.Update()
|
||||
Me.RegistraScript("UpperBound = " & GvDatos.Rows.Count - 1 & ";")
|
||||
RegistraScript("UpperBound = " & GvDatos.Rows.Count - 1 & ";")
|
||||
End Sub
|
||||
|
||||
Protected Sub ImgExcel_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles ImgExcel.Click
|
||||
|
||||
@@ -70,7 +70,7 @@ Partial Class Prospectos_RepSolicitudes
|
||||
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
||||
CargaDatos()
|
||||
UPDatos.Update()
|
||||
Me.RegistraScript("UpperBound = " & GvDatos.Rows.Count - 1 & ";")
|
||||
RegistraScript("UpperBound = " & GvDatos.Rows.Count - 1 & ";")
|
||||
End Sub
|
||||
|
||||
Protected Sub ImgExcel_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles ImgExcel.Click
|
||||
|
||||
@@ -96,7 +96,7 @@ public partial class RH_CatConceptosViaticos : ClsPaginas
|
||||
limpiarCamposModal();
|
||||
UPModalConcepto.Update();
|
||||
|
||||
this.RegistraScript("$('#DivModalConcepto').modal();");
|
||||
RegistraScript("$('#DivModalConcepto').modal();");
|
||||
}
|
||||
|
||||
protected void LnkEditar_Click(object sender, EventArgs e)
|
||||
@@ -112,7 +112,7 @@ public partial class RH_CatConceptosViaticos : ClsPaginas
|
||||
|
||||
UPModalConcepto.Update();
|
||||
|
||||
this.RegistraScript("$('#DivModalConcepto').modal();");
|
||||
RegistraScript("$('#DivModalConcepto').modal();");
|
||||
}
|
||||
|
||||
protected void BtnGuardarConcepto_Click(object sender, EventArgs e)
|
||||
@@ -142,7 +142,7 @@ public partial class RH_CatConceptosViaticos : ClsPaginas
|
||||
|
||||
ObjBanco.Dispose();
|
||||
limpiarCamposModal();
|
||||
this.RegistraScript("$('#DivModalConcepto').modal('hide');");
|
||||
RegistraScript("$('#DivModalConcepto').modal('hide');");
|
||||
CargaDatos();
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ public partial class RH_DiasFestivos : ClsPaginas
|
||||
}
|
||||
protected void LnkAgregarDias_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript("$('#DModalDiasFestivos').modal();");
|
||||
RegistraScript("$('#DModalDiasFestivos').modal();");
|
||||
LimpiaDiasFestivos();
|
||||
BtnDiasADD.Visible = true;
|
||||
UPModalDias.Update();
|
||||
@@ -48,11 +48,11 @@ public partial class RH_DiasFestivos : ClsPaginas
|
||||
ObjDias.Dispose();
|
||||
if (Continuar)
|
||||
{
|
||||
this.RegistraScript("$('#DModalDiasFestivos').modal('hide');");
|
||||
RegistraScript("$('#DModalDiasFestivos').modal('hide');");
|
||||
LimpiaDiasFestivos();
|
||||
CargaDiasFestivos();
|
||||
UPModalDias.Update();
|
||||
this.Alert("El dìa festivos se ha agregado");
|
||||
Alert("El dìa festivos se ha agregado");
|
||||
}
|
||||
}
|
||||
protected void LnkEliminarDias_Click(object sender, EventArgs e)
|
||||
@@ -65,7 +65,7 @@ public partial class RH_DiasFestivos : ClsPaginas
|
||||
if (Continuar)
|
||||
{
|
||||
CargaDiasFestivos();
|
||||
this.Alert("El dìa festivos se ha Eliminado");
|
||||
Alert("El dìa festivos se ha Eliminado");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7181,10 +7181,10 @@ Partial Class RH_Personal
|
||||
End Using
|
||||
|
||||
If Continuar Then
|
||||
Me.RegistraScript("$('#DModalMovtoPermanente').modal('hide');")
|
||||
RegistraScript("$('#DModalMovtoPermanente').modal('hide');")
|
||||
CargaMovtoPermanente()
|
||||
UpMovtosPermanentes.Update()
|
||||
Me.Alert("Se ha agregado el movimiento permanente")
|
||||
Alert("Se ha agregado el movimiento permanente")
|
||||
End If
|
||||
|
||||
RegistraScript("$('#ModalMovtoPermanente').modal('hide')")
|
||||
@@ -7207,10 +7207,10 @@ Partial Class RH_Personal
|
||||
End Using
|
||||
|
||||
If Continuar Then
|
||||
Me.RegistraScript("$('#ModalMovtoPermanente').modal('hide');")
|
||||
RegistraScript("$('#ModalMovtoPermanente').modal('hide');")
|
||||
CargaMovtoPermanente()
|
||||
UpMovtosPermanentes.Update()
|
||||
Me.Alert("Se ha actualizado el movimiento permanente")
|
||||
Alert("Se ha actualizado el movimiento permanente")
|
||||
End If
|
||||
End Sub
|
||||
|
||||
@@ -7229,10 +7229,10 @@ Partial Class RH_Personal
|
||||
End Using
|
||||
|
||||
If Continuar Then
|
||||
Me.RegistraScript("$('#ModalMovtoPermanente').modal('hide');")
|
||||
RegistraScript("$('#ModalMovtoPermanente').modal('hide');")
|
||||
CargaMovtoPermanente()
|
||||
UpMovtosPermanentes.Update()
|
||||
Me.Alert("Se ha eliminadó el movimiento permanente")
|
||||
Alert("Se ha eliminadó el movimiento permanente")
|
||||
End If
|
||||
End Sub
|
||||
|
||||
@@ -7386,7 +7386,7 @@ Partial Class RH_Personal
|
||||
If Continuar Then
|
||||
CargaPersonalIncapacidad()
|
||||
UpsrIncapacidadpersonal.Update()
|
||||
Me.Alert("La incapacidad se ha agregado.", TipoMensaje.ToastInformacion)
|
||||
Alert("La incapacidad se ha agregado.", TipoMensaje.ToastInformacion)
|
||||
RegistraScript("$('#ModalSRIncapacidad').modal('hide')")
|
||||
End If
|
||||
End Sub
|
||||
@@ -7412,7 +7412,7 @@ Partial Class RH_Personal
|
||||
If Continuar Then
|
||||
CargaPersonalIncapacidad()
|
||||
UpsrIncapacidadpersonal.Update()
|
||||
Me.Alert("La incapacidad se ha actualizado.", TipoMensaje.ToastInformacion)
|
||||
Alert("La incapacidad se ha actualizado.", TipoMensaje.ToastInformacion)
|
||||
RegistraScript("$('#ModalSRIncapacidad').modal('hide')")
|
||||
End If
|
||||
End Sub
|
||||
|
||||
@@ -164,7 +164,7 @@ public partial class SAT_SolicitudesIngresoSat : ClsPaginas
|
||||
TabPanel.ActiveTabIndex = 0;
|
||||
cargasolicitudes();
|
||||
|
||||
this.RegistraScript("$('#ModalViewSolicitudes').modal();");
|
||||
RegistraScript("$('#ModalViewSolicitudes').modal();");
|
||||
}
|
||||
|
||||
protected void LnkSolicitarSat_Click(object sender, EventArgs e)
|
||||
@@ -248,7 +248,7 @@ public partial class SAT_SolicitudesIngresoSat : ClsPaginas
|
||||
txtFechaIAdd.Text = "";
|
||||
txtFechaFAdd.Text = "";
|
||||
ChkMetaDatos.Checked = false;
|
||||
this.RegistraScript("$('#ModalAgregarSolicitud').modal('hide');");
|
||||
RegistraScript("$('#ModalAgregarSolicitud').modal('hide');");
|
||||
cargasolicitudes();
|
||||
|
||||
}
|
||||
@@ -389,7 +389,7 @@ public partial class SAT_SolicitudesIngresoSat : ClsPaginas
|
||||
txtFechaFAdd.Text = "";
|
||||
ChkMetaDatos.Checked = false;
|
||||
UPModalViewSolicitudesAgregar.Update();
|
||||
this.RegistraScript("$('#ModalAgregarSolicitud').modal('show');");
|
||||
RegistraScript("$('#ModalAgregarSolicitud').modal('show');");
|
||||
}
|
||||
|
||||
protected void GvResumen_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
|
||||
@@ -187,12 +187,12 @@ public partial class SAT_SolicitudesNominaSat : ClsPaginas
|
||||
txtFechaFAdd.Text = "";
|
||||
ChkMetaDatos.Checked = false;
|
||||
UPModalViewSolicitudesAgregar.Update();
|
||||
this.RegistraScript("$('#ModalAgregarSolicitud').modal('show');");
|
||||
RegistraScript("$('#ModalAgregarSolicitud').modal('show');");
|
||||
}
|
||||
protected void LnkShowSolicitudes_Click(object sender, EventArgs e)
|
||||
{
|
||||
cargasolicitudes();
|
||||
this.RegistraScript("$('#ModalViewSolicitudes').modal();");
|
||||
RegistraScript("$('#ModalViewSolicitudes').modal();");
|
||||
}
|
||||
|
||||
protected void LnkSolicitarSat_Click(object sender, EventArgs e)
|
||||
@@ -218,10 +218,10 @@ public partial class SAT_SolicitudesNominaSat : ClsPaginas
|
||||
{
|
||||
txtFechaIAdd.Text = "";
|
||||
txtFechaFAdd.Text = "";
|
||||
//this.RegistraScript("$('#DModalSolicitudesNominas').modal('hide');");
|
||||
this.RegistraScript("$('#ModalAgregarSolicitud').modal('hide');");
|
||||
//RegistraScript("$('#DModalSolicitudesNominas').modal('hide');");
|
||||
RegistraScript("$('#ModalAgregarSolicitud').modal('hide');");
|
||||
cargasolicitudes();
|
||||
this.Alert("se a envia la solicitud al sat, le enviaremos un correo en cuanto tengamos una respuesta", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
Alert("se a envia la solicitud al sat, le enviaremos un correo en cuanto tengamos una respuesta", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -207,7 +207,7 @@ Partial Class CatPS
|
||||
If ObjPS.DtResultados.Rows.Count > 0 Then
|
||||
GvProductos.DataSource = ObjPS.DtResultados
|
||||
GvProductos.DataBind()
|
||||
GvProductos.ExportToExcelx("Reporte de Producto")
|
||||
GvProductos.ExportToExcelX("Reporte de Producto")
|
||||
Else
|
||||
Alert("Todos los productos tienen Asignada Clave Producto Servicio SAT.", TipoMensaje.MsgInformacion)
|
||||
End If
|
||||
|
||||
@@ -43,7 +43,7 @@ public partial class Ventas_ClasificacionesDetalle : ClsPaginas
|
||||
ClsVentas ObjVentas = new ClsVentas();
|
||||
if (ObjVentas.GetClasificacionDetalle(UsuarioActual.CveEmpresa))
|
||||
{
|
||||
GvDatos.DataSource = ObjVentas.DtResultados;
|
||||
GvDatos.DataSource = ObjVentas.DtResultados;
|
||||
}
|
||||
ObjVentas.Dispose();
|
||||
GvDatos.DataBind();
|
||||
@@ -74,7 +74,7 @@ public partial class Ventas_ClasificacionesDetalle : ClsPaginas
|
||||
|
||||
if (Convert.ToBoolean(e.Row.DBCampo("Estatus")) == true)
|
||||
{
|
||||
e.Row.Cells[3].Text = "Activo";
|
||||
e.Row.Cells[3].Text = "Activo";
|
||||
e.Row.Cells[3].ForeColor = System.Drawing.Color.Green;
|
||||
}
|
||||
else
|
||||
@@ -87,7 +87,7 @@ public partial class Ventas_ClasificacionesDetalle : ClsPaginas
|
||||
|
||||
protected void LnkEliminar_Click(object sender, EventArgs e)
|
||||
{
|
||||
GridViewRow gvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||
GridViewRow gvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||
ClsVentas ObjVenta = new ClsVentas();
|
||||
bool Continuar = ObjVenta.RemoveClasificacionDetalle(gvRow.DataKey("CveClasificacionDetalle").ToEntero());
|
||||
ObjVenta.Dispose();
|
||||
@@ -97,7 +97,7 @@ public partial class Ventas_ClasificacionesDetalle : ClsPaginas
|
||||
CargaDatos();
|
||||
Alert("La Clasificacion Detalle se ha eliminado");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void LnkEditar_Click(object sender, EventArgs e)
|
||||
|
||||
@@ -372,6 +372,6 @@ public partial class Ventas_RepComisionesJAM : ClsPaginas
|
||||
else if (Convert.ToBoolean(gvRow.DataKey("TieneCategoriaValida")) && gvRow.DataKey("Comision").ToDouble() == 0)
|
||||
{
|
||||
LblInfo.Text = $"El producto se encuentra en la categoria: <b>{get_GlobalDTGralCategorias(UsuarioActual.CveEmpresa).FiltroPrimeroValor("Categoria", $"CveCategoria = {gvRow.DataKey("CveCategoria").ToString()}")}</b> que da comision, pero no se encuentra dentro de los rangos de precio publico y dias validos. <br/> % Precio Publico: <b>{gvRow.DataKey("PorcentajePrecioPublico").ToString()}</b> <br/> Dias Pago: <b>{gvRow.DataKey("DiasPago").ToString()}</b>";
|
||||
}
|
||||
}
|
||||
else if (gvRow.DataKey("Comision").ToDouble() > 0)
|
||||
{
|
||||
@@ -314,13 +314,13 @@ public partial class Ventas_RepLineasAdicionales : ClsPaginas
|
||||
|
||||
protected void LnkDescargaExcel_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
if(TipoLinea == 1)
|
||||
{
|
||||
GridView gvTemp = GvLineasAdicionales;
|
||||
gvTemp.ExportToExcelX("RepLineasAdicionales" + DateTime.Now.ToShortDateString());
|
||||
}
|
||||
else if(TipoLinea == 2)
|
||||
else if(TipoLinea == 2)
|
||||
{
|
||||
GridView gvTemp = GvLAPO;
|
||||
gvTemp.Columns[8].Visible = false;
|
||||
|
||||
Reference in New Issue
Block a user