TareasProgramadas Envio de estado cuenta, compras cvetipoOperacion, , reembolsos filtror rwo acumulado, ajkustes carta porte, OC carga desde excel filtro rows vacios, personal cuentas deposito
This commit is contained in:
@@ -108,7 +108,9 @@ Public Class TareasProgramadas : Implements IHttpHandler, IReadOnlySessionState
|
|||||||
context.Response.Write(retorno)
|
context.Response.Write(retorno)
|
||||||
Case "EstadosCuenta"
|
Case "EstadosCuenta"
|
||||||
'CargaEstadosCuenta(context, 119, 227774)
|
'CargaEstadosCuenta(context, 119, 227774)
|
||||||
CargaEstadosCuenta(context, 119, -1, FechaEnvio, FechaActual)
|
'CargaEstadosCuenta(context, 119, -1, FechaEnvio, FechaActual)
|
||||||
|
Dim tCveEmpresa As Integer = context.Request("CveEmpresa").ToString.ToEntero
|
||||||
|
CargaEstadosCuenta(context, tCveEmpresa, -1, FechaEnvio, FechaActual)
|
||||||
|
|
||||||
Case "ScoreCard"
|
Case "ScoreCard"
|
||||||
CargaScoreCard(context, 140, FechaEnvio)
|
CargaScoreCard(context, 140, FechaEnvio)
|
||||||
@@ -354,6 +356,9 @@ Public Class TareasProgramadas : Implements IHttpHandler, IReadOnlySessionState
|
|||||||
|
|
||||||
#Region "E S T A D O S D E C U E N T A"
|
#Region "E S T A D O S D E C U E N T A"
|
||||||
Private Sub CargaEstadosCuenta(ByVal context As HttpContext, pCveEmpresa As Integer, pCveCliente As Integer, FechaEnvio As DateTime, FechaActual As DateTime)
|
Private Sub CargaEstadosCuenta(ByVal context As HttpContext, pCveEmpresa As Integer, pCveCliente As Integer, FechaEnvio As DateTime, FechaActual As DateTime)
|
||||||
|
|
||||||
|
Dim Usuario As Usuario = ValidaUsuarioSistema(100, pCveEmpresa)
|
||||||
|
|
||||||
Dim Retorno As New JArray()
|
Dim Retorno As New JArray()
|
||||||
Dim DtEmpresas As DataTable = Nothing
|
Dim DtEmpresas As DataTable = Nothing
|
||||||
Using ObjEmpresas As New ClsSisEmpresas()
|
Using ObjEmpresas As New ClsSisEmpresas()
|
||||||
@@ -364,7 +369,7 @@ Public Class TareasProgramadas : Implements IHttpHandler, IReadOnlySessionState
|
|||||||
|
|
||||||
If DtEmpresas IsNot Nothing Then
|
If DtEmpresas IsNot Nothing Then
|
||||||
For Each Row As DataRow In DtEmpresas.Rows
|
For Each Row As DataRow In DtEmpresas.Rows
|
||||||
Dim Usuario As Usuario = ValidaUsuarioSistema(100, Row("CveEmpresa").ToString().ToEntero())
|
'Dim Usuario As Usuario = ValidaUsuarioSistema(100, Row("CveEmpresa").ToString().ToEntero())
|
||||||
Dim obj As JObject = EjecutarEnvioEstadoCuenta(Usuario, FechaEnvio, FechaActual, pCveCliente:=pCveCliente)
|
Dim obj As JObject = EjecutarEnvioEstadoCuenta(Usuario, FechaEnvio, FechaActual, pCveCliente:=pCveCliente)
|
||||||
|
|
||||||
Retorno.Add(obj)
|
Retorno.Add(obj)
|
||||||
@@ -499,7 +504,9 @@ Public Class TareasProgramadas : Implements IHttpHandler, IReadOnlySessionState
|
|||||||
|
|
||||||
Dim Envio As Boolean = False
|
Dim Envio As Boolean = False
|
||||||
If Not String.IsNullOrEmpty(Correo) Then
|
If Not String.IsNullOrEmpty(Correo) Then
|
||||||
|
'Correo = "oscar.irigoyen@adssistemas.mx"
|
||||||
Envio = EnviarEstadoCuenta(UsuarioActual, Correo, Cliente)
|
Envio = EnviarEstadoCuenta(UsuarioActual, Correo, Cliente)
|
||||||
|
GuardaLog($"Log envio Estados Cuenta correo {If(Envio, "Enviado", "Error")} CveCliente {CveCliente} ")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Envio Then
|
If Envio Then
|
||||||
@@ -522,6 +529,7 @@ Public Class TareasProgramadas : Implements IHttpHandler, IReadOnlySessionState
|
|||||||
New JProperty("Cliente", Cliente.Nombre)
|
New JProperty("Cliente", Cliente.Nombre)
|
||||||
))
|
))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
@@ -857,7 +865,10 @@ Public Class TareasProgramadas : Implements IHttpHandler, IReadOnlySessionState
|
|||||||
If sw.Elapsed.TotalSeconds > 10 Then
|
If sw.Elapsed.TotalSeconds > 10 Then
|
||||||
GuardaLog($"Reporte:{RutaReporte} | Tiempo Renderizado Milisegundos: {sw.ElapsedMilliseconds},Total Segundos: {sw.Elapsed.TotalSeconds} ")
|
GuardaLog($"Reporte:{RutaReporte} | Tiempo Renderizado Milisegundos: {sw.ElapsedMilliseconds},Total Segundos: {sw.Elapsed.TotalSeconds} ")
|
||||||
End If
|
End If
|
||||||
If MR IsNot Nothing Then MR.Dispose()
|
If MR IsNot Nothing Then
|
||||||
|
'MR.Close()
|
||||||
|
MR.Dispose()
|
||||||
|
End If
|
||||||
Return Bytes
|
Return Bytes
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|||||||
@@ -2562,7 +2562,7 @@ Partial Class Compras_Compras
|
|||||||
DdlRetIVAConcepto.Items.Add(New ListItem("Arrendamiento", "4"))
|
DdlRetIVAConcepto.Items.Add(New ListItem("Arrendamiento", "4"))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If DIOTCveTipoOperacion.Contiene(0, 3) Then ' 85 - Otros
|
If DIOTCveTipoOperacion.Contiene(0, 3, 4) Then ' 85 - Otros
|
||||||
If UsuarioActual.CveEmpresa <> 119 Then
|
If UsuarioActual.CveEmpresa <> 119 Then
|
||||||
DdlRetIVAConcepto.Items.Insert(0, New ListItem("Honorarios/Serv. Prof.", "1"))
|
DdlRetIVAConcepto.Items.Insert(0, New ListItem("Honorarios/Serv. Prof.", "1"))
|
||||||
DdlRetIVAConcepto.Items.Add(New ListItem("Arrendamiento", "4"))
|
DdlRetIVAConcepto.Items.Add(New ListItem("Arrendamiento", "4"))
|
||||||
@@ -2585,7 +2585,7 @@ Partial Class Compras_Compras
|
|||||||
DdlRetIVAConcepto.Items.Add(New ListItem("Arrendamiento", "4"))
|
DdlRetIVAConcepto.Items.Add(New ListItem("Arrendamiento", "4"))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If DIOTCveTipoOperacion.Contiene(3) Then ' 85 - Otros
|
If DIOTCveTipoOperacion.Contiene(3, 4) Then ' 85 - Otros
|
||||||
If UsuarioActual.CveEmpresa <> 119 Then
|
If UsuarioActual.CveEmpresa <> 119 Then
|
||||||
DdlRetIVAConcepto.Items.Insert(0, New ListItem("Honorarios/Serv. Prof.", "1"))
|
DdlRetIVAConcepto.Items.Insert(0, New ListItem("Honorarios/Serv. Prof.", "1"))
|
||||||
DdlRetIVAConcepto.Items.Add(New ListItem("Arrendamiento", "4"))
|
DdlRetIVAConcepto.Items.Add(New ListItem("Arrendamiento", "4"))
|
||||||
@@ -2619,7 +2619,7 @@ Partial Class Compras_Compras
|
|||||||
DdlRetISRConcepto.Items.Insert(0, New ListItem("Arrendamiento", "2"))
|
DdlRetISRConcepto.Items.Insert(0, New ListItem("Arrendamiento", "2"))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If DIOTCveTipoOperacion.Contiene(3) Then ' 85 - Otros
|
If DIOTCveTipoOperacion.Contiene(3, 4) Then ' 85 - Otros
|
||||||
If UsuarioActual.CveEmpresa <> 119 Then
|
If UsuarioActual.CveEmpresa <> 119 Then
|
||||||
DdlRetISRConcepto.Items.Insert(0, New ListItem("Honorarios", "1"))
|
DdlRetISRConcepto.Items.Insert(0, New ListItem("Honorarios", "1"))
|
||||||
DdlRetISRConcepto.Items.Insert(1, New ListItem("Arrendamiento", "2"))
|
DdlRetISRConcepto.Items.Insert(1, New ListItem("Arrendamiento", "2"))
|
||||||
|
|||||||
@@ -3326,89 +3326,89 @@
|
|||||||
<ajax:ValidatorCalloutExtender ID="VCENombreBanco" runat="server" HighlightCssClass="vco" TargetControlID="RFVNombreBanco" Width="300px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCENombreBanco" runat="server" HighlightCssClass="vco" TargetControlID="RFVNombreBanco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
<label for="<%= TxtNombreBanco.ClientID.ToString()%>">Nombre del Banco:</label>
|
<label for="<%= TxtNombreBanco.ClientID.ToString()%>">Nombre del Banco:</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtNumeroSucursal" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
<asp:TextBox ID="TxtNumeroSucursal" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
<label for="<%= TxtNumeroSucursal.ClientID.ToString()%>">Numero de la Sucursal:</label>
|
<label for="<%= TxtNumeroSucursal.ClientID.ToString()%>">Numero de la Sucursal:</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:TextBox ID="TxtNumeroCuenta" runat="server" CssClass="form-control" CausesValidation="true" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender ID="SoloNumeros" runat="server" TargetControlID="TxtNumeroCuenta" FilterType="Numbers" />
|
|
||||||
<label for="<%= TxtNumeroCuenta.ClientID.ToString()%>">Numero de Cuenta:</label>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:TextBox ID="TxtCLABE" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="18" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender ID="SoloNumeros2" runat="server" TargetControlID="TxtCLABE" FilterType="Numbers" />
|
|
||||||
<label for="<%= TxtCLABE.ClientID.ToString()%>">CLABE:</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:TextBox ID="TxtSWIFT" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="100" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
|
||||||
<label for="<%= TxtSWIFT.ClientID.ToString()%>">SWIFT:</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:TextBox ID="TxtPlaza" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="100" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
|
||||||
<label for="<%= TxtPlaza.ClientID.ToString()%>">Plaza:</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtConvenioCIE" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="8" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
<asp:TextBox ID="TxtNumeroCuenta" runat="server" CssClass="form-control" CausesValidation="true" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
<%--<ajax:FilteredTextBoxExtender ID="SoloNumeros3" runat="server" TargetControlID="TxtConvenioCIE" FilterType="Numbers" />--%>
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros" runat="server" TargetControlID="TxtNumeroCuenta" FilterType="Numbers" />
|
||||||
<label for="<%= TxtConvenioCIE.ClientID.ToString()%>">CIE:</label>
|
<label for="<%= TxtNumeroCuenta.ClientID.ToString()%>">Numero de Cuenta:</label>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:TextBox ID="TxtReferencia" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="20" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender ID="SoloNumeros3" runat="server" TargetControlID="TxtReferencia" FilterType="UppercaseLetters,LowercaseLetters,Numbers" />
|
|
||||||
<label for="<%= TxtReferencia.ClientID.ToString()%>">Referencia:</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:TextBox ID="TxtConceptoCIE" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="30" ></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender ID="FilAlfanumerico" runat="server" TargetControlID="TxtConceptoCIE" FilterType="UppercaseLetters,LowercaseLetters,Numbers" />
|
|
||||||
<label for="<%= TxtReferencia.ClientID.ToString()%>">Concepto CIE:</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:TextBox ID="TxtRefCrediProveedor" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="5" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
|
||||||
<label for="<%= TxtRefCrediProveedor.ClientID.ToString()%>">Crédito Proveedor:</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div> <div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:TextBox ID="TxtCorreoCuenta" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="100" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
|
||||||
<label for="<%= TxtCorreoCuenta.ClientID.ToString()%>">Correo:</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="col-md-6">
|
||||||
<asp:TextBox ID="TxtBBVAAlias" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="30" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<ajax:FilteredTextBoxExtender ID="Flter" runat="server" TargetControlID="TxtBBVAAlias" FilterType="UppercaseLetters,LowercaseLetters,Numbers" InvalidChars="-+.," />
|
<asp:TextBox ID="TxtCLABE" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="18" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
<label for="<%= TxtCorreoCuenta.ClientID.ToString()%>">BBVA Alias:</label>
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros2" runat="server" TargetControlID="TxtCLABE" FilterType="Numbers" />
|
||||||
|
<label for="<%= TxtCLABE.ClientID.ToString()%>">CLABE:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtSWIFT" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="100" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<label for="<%= TxtSWIFT.ClientID.ToString()%>">SWIFT:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtPlaza" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="100" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<label for="<%= TxtPlaza.ClientID.ToString()%>">Plaza:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtConvenioCIE" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="8" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<label for="<%= TxtConvenioCIE.ClientID.ToString()%>">CIE:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtReferencia" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="20" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros3" runat="server" TargetControlID="TxtReferencia" FilterType="UppercaseLetters,LowercaseLetters,Numbers" />
|
||||||
|
<label for="<%= TxtReferencia.ClientID.ToString()%>">Referencia:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtConceptoCIE" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="30"></asp:TextBox>
|
||||||
|
<ajax:FilteredTextBoxExtender ID="FilAlfanumerico" runat="server" TargetControlID="TxtConceptoCIE" FilterType="UppercaseLetters,LowercaseLetters,Numbers" />
|
||||||
|
<label for="<%= TxtReferencia.ClientID.ToString()%>">Concepto CIE:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtRefCrediProveedor" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="5" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<label for="<%= TxtRefCrediProveedor.ClientID.ToString()%>">Crédito Proveedor:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtCorreoCuenta" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="100" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<label for="<%= TxtCorreoCuenta.ClientID.ToString()%>">Correo:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtBBVAAlias" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="30" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<ajax:FilteredTextBoxExtender ID="Flter" runat="server" TargetControlID="TxtBBVAAlias" FilterType="UppercaseLetters,LowercaseLetters,Numbers" InvalidChars="-+.," />
|
||||||
|
<label for="<%= TxtCorreoCuenta.ClientID.ToString()%>">BBVA Alias:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
@@ -3427,38 +3427,38 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright" id="div2" runat="server">
|
<div class="form-group form-md-line-input input-iconright" id="div2" runat="server">
|
||||||
<asp:CheckBox ID="ChkPagoElectronico" runat="server" AutoPostBack="true" OnCheckedChanged="ChkPagoElectronico_CheckedChanged"></asp:CheckBox>
|
<asp:CheckBox ID="ChkPagoElectronico" runat="server" AutoPostBack="true" OnCheckedChanged="ChkPagoElectronico_CheckedChanged"></asp:CheckBox>
|
||||||
<label for="<%= ChkPagoElectronico.ClientID.ToString()%>">Pago Electronico</label>
|
<label for="<%= ChkPagoElectronico.ClientID.ToString()%>">Pago Electronico</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright" id="div3" runat="server">
|
<div class="form-group form-md-line-input input-iconright" id="div3" runat="server">
|
||||||
|
|
||||||
<asp:CheckBox ID="ChkPagoElectronicoGrupos" runat="server" OnCheckedChanged="ChkPagoElectronicoGrupos_CheckedChanged" AutoPostBack="true"></asp:CheckBox>
|
<asp:CheckBox ID="ChkPagoElectronicoGrupos" runat="server" OnCheckedChanged="ChkPagoElectronicoGrupos_CheckedChanged" AutoPostBack="true"></asp:CheckBox>
|
||||||
<label for="<%= ChkPagoElectronicoGrupos.ClientID.ToString()%>">Pago Electronico Grupos</label>
|
<label for="<%= ChkPagoElectronicoGrupos.ClientID.ToString()%>">Pago Electronico Grupos</label>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright" runat="server" id="DVDdlSatBanco" visible="false">
|
<div class="form-group form-md-line-input input-iconright" runat="server" id="DVDdlSatBanco" visible="false">
|
||||||
|
|
||||||
<asp:DropDownList CssClass="form-control select2me" Width="50%" ID="DdlSatBanco" runat="server" DataTextField="Banco" DataValueField="CveSATBanco">
|
<asp:DropDownList CssClass="form-control select2me" Width="50%" ID="DdlSatBanco" runat="server" DataTextField="Banco" DataValueField="CveSATBanco">
|
||||||
<asp:ListItem Value="-1">Seleccione uno</asp:ListItem>
|
<asp:ListItem Value="-1">Seleccione uno</asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator ID="RFVDdlSatBanco" runat="server" InitialValue="-1" ControlToValidate="DdlSatBanco" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Banco''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarBanco"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVDdlSatBanco" runat="server" InitialValue="-1" ControlToValidate="DdlSatBanco" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Banco''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarBanco"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCRFVDdlSatBanco" runat="server" HighlightCssClass="vco" TargetControlID="RFVDdlSatBanco" Width="300px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCRFVDdlSatBanco" runat="server" HighlightCssClass="vco" TargetControlID="RFVDdlSatBanco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
<label for="<%= DdlSatBanco.ClientID.ToString()%>">Banco:</label>
|
<label for="<%= DdlSatBanco.ClientID.ToString()%>">Banco:</label>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
|||||||
@@ -950,7 +950,7 @@ Partial Class Compras_ReembolsosComprobaciones
|
|||||||
GvCxP.Visible = True
|
GvCxP.Visible = True
|
||||||
|
|
||||||
ObjMovtos.GetCxPPersonalCajaChica(UsuarioActual.CveEmpresa, CvePersonal, CveCajaChica, If(TxtNumeroReembolso.Text.Trim = "", "-1", TxtNumeroReembolso.Text.Trim), OpcionSaldo:=1)
|
ObjMovtos.GetCxPPersonalCajaChica(UsuarioActual.CveEmpresa, CvePersonal, CveCajaChica, If(TxtNumeroReembolso.Text.Trim = "", "-1", TxtNumeroReembolso.Text.Trim), OpcionSaldo:=1)
|
||||||
DtDatos = ObjMovtos.DtResultados.FiltraParametros("Saldo > 0")
|
DtDatos = ObjMovtos.DtResultados.FiltraParametros("Saldo > 0 AND LEN(SerieFolio) > 0 ")
|
||||||
GvCxP.DataSource = DtDatos
|
GvCxP.DataSource = DtDatos
|
||||||
CvePrePolizaComprobacion = DtDatos.MAX("CvePrePolizaComprobacion").ToEntero
|
CvePrePolizaComprobacion = DtDatos.MAX("CvePrePolizaComprobacion").ToEntero
|
||||||
|
|
||||||
|
|||||||
@@ -6485,6 +6485,9 @@ Se ha recibido el número arriba indicado de bultos/contenedores/remolques/autot
|
|||||||
<Height>0.6cm</Height>
|
<Height>0.6cm</Height>
|
||||||
<Width>3.97474cm</Width>
|
<Width>3.97474cm</Width>
|
||||||
<ZIndex>45</ZIndex>
|
<ZIndex>45</ZIndex>
|
||||||
|
<Visibility>
|
||||||
|
<Hidden>true</Hidden>
|
||||||
|
</Visibility>
|
||||||
<Style>
|
<Style>
|
||||||
<Border>
|
<Border>
|
||||||
<Style>None</Style>
|
<Style>None</Style>
|
||||||
@@ -6525,6 +6528,9 @@ Se ha recibido el número arriba indicado de bultos/contenedores/remolques/autot
|
|||||||
<Height>0.6cm</Height>
|
<Height>0.6cm</Height>
|
||||||
<Width>3.97474cm</Width>
|
<Width>3.97474cm</Width>
|
||||||
<ZIndex>46</ZIndex>
|
<ZIndex>46</ZIndex>
|
||||||
|
<Visibility>
|
||||||
|
<Hidden>true</Hidden>
|
||||||
|
</Visibility>
|
||||||
<Style>
|
<Style>
|
||||||
<Border>
|
<Border>
|
||||||
<Style>None</Style>
|
<Style>None</Style>
|
||||||
@@ -7793,7 +7799,6 @@ Se ha recibido el número arriba indicado de bultos/contenedores/remolques/autot
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox14</rd:DefaultName>
|
<rd:DefaultName>Textbox14</rd:DefaultName>
|
||||||
<Top>0cm</Top>
|
|
||||||
<Left>14.77452cm</Left>
|
<Left>14.77452cm</Left>
|
||||||
<Height>0.54708cm</Height>
|
<Height>0.54708cm</Height>
|
||||||
<Width>4.70062cm</Width>
|
<Width>4.70062cm</Width>
|
||||||
|
|||||||
@@ -6952,6 +6952,28 @@ Partial Class OC_OC
|
|||||||
|
|
||||||
Dim dt As New DataTable
|
Dim dt As New DataTable
|
||||||
dt = ReadExcelFile(Ruta + FileName, True)
|
dt = ReadExcelFile(Ruta + FileName, True)
|
||||||
|
|
||||||
|
|
||||||
|
If dt.Rows.Count > 0 Then
|
||||||
|
Dim dtOriginal As DataTable = dt
|
||||||
|
Dim dtFiltrada As DataTable = dtOriginal.Clone()
|
||||||
|
Try
|
||||||
|
For Each row As DataRow In dtOriginal.Rows
|
||||||
|
Dim cantidadStr As String = row("Cantidad").ToString().Trim()
|
||||||
|
|
||||||
|
Dim cantidadNum As Decimal
|
||||||
|
If Decimal.TryParse(cantidadStr, cantidadNum) Then
|
||||||
|
If cantidadNum > 0 Then
|
||||||
|
dtFiltrada.ImportRow(row)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
Catch ex As Exception
|
||||||
|
|
||||||
|
End Try
|
||||||
|
dt = dtFiltrada
|
||||||
|
End If
|
||||||
|
|
||||||
Dim ErrorArchivo As Boolean = False
|
Dim ErrorArchivo As Boolean = False
|
||||||
|
|
||||||
'Dim Conexion As Odbc.OdbcConnection = Nothing
|
'Dim Conexion As Odbc.OdbcConnection = Nothing
|
||||||
|
|||||||
@@ -119,17 +119,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
||||||
<asp:Panel runat="server" ID="portletTarea" class="portlet light smmallpadding bordered">
|
|
||||||
<div class="portlet-title">
|
|
||||||
<div class="caption font-green">
|
|
||||||
<i class="icon-pin font-green"></i>
|
|
||||||
<span class="caption-subject bold uppercase">Nuevo</span>
|
|
||||||
</div>
|
|
||||||
<div class="tools">
|
|
||||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="portlet-body rowpadding">
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtAsunto" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
<asp:TextBox ID="TxtAsunto" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||||||
<asp:RequiredFieldValidator ID="RFVAsunto" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtAsunto" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVAsunto" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtAsunto" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
@@ -269,8 +260,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</asp:Panel>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<asp:TextBox ID="txtCveEvento" CssClass="hidden txtCveEvento" runat="server"></asp:TextBox>
|
<asp:TextBox ID="txtCveEvento" CssClass="hidden txtCveEvento" runat="server"></asp:TextBox>
|
||||||
<asp:Button ID="BtnopenmodalClickGant" OnClick="BtnopenmodalClickGant_Click" CssClass="hidden BtnopenmodalClickGant" UseSubmitBehavior="false" runat="server" Text="Button" />
|
<asp:Button ID="BtnopenmodalClickGant" OnClick="BtnopenmodalClickGant_Click" CssClass="hidden BtnopenmodalClickGant" UseSubmitBehavior="false" runat="server" Text="Button" />
|
||||||
</div>
|
</div>
|
||||||
@@ -320,6 +314,36 @@
|
|||||||
<script src="/Metronic/assets/global/plugins/dhtmlxgantt/dhtmlxgantt.js"></script>
|
<script src="/Metronic/assets/global/plugins/dhtmlxgantt/dhtmlxgantt.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
(function () {
|
||||||
|
const BsModal = $.fn.modal.Constructor.prototype;
|
||||||
|
const oldFocus1 = BsModal.enforceFocus; // BS3
|
||||||
|
const oldFocus2 = BsModal._enforceFocus; // BS4+
|
||||||
|
|
||||||
|
$('#iddivAgregarProyecto')
|
||||||
|
.on('shown.bs.modal', function () {
|
||||||
|
// quito TODOS los focus trap que se hayan registrado
|
||||||
|
$(document).off('focusin.bs.modal');
|
||||||
|
if (oldFocus1) BsModal.enforceFocus = function () { };
|
||||||
|
if (oldFocus2) BsModal._enforceFocus = function () { };
|
||||||
|
})
|
||||||
|
.on('hidden.bs.modal', function () {
|
||||||
|
// devuelvo el comportamiento original
|
||||||
|
if (oldFocus1) BsModal.enforceFocus = oldFocus1;
|
||||||
|
if (oldFocus2) BsModal._enforceFocus = oldFocus2;
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
|
||||||
|
$(document).on('select2:open', () => {
|
||||||
|
const $f = $('.select2-container--open .select2-search__field').last();
|
||||||
|
setTimeout(() => $f.trigger('focus'), 0); // micro-tarea → evita el blur inmediato
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#iddivAgregarProyecto .select2me').select2({
|
||||||
|
width: '100%',
|
||||||
|
dropdownParent: $('#iddivAgregarProyecto .modal-content') // evita desalinearse al hacer scroll
|
||||||
|
});
|
||||||
|
|
||||||
let RCveEvento =<%= RCveEvento %>;
|
let RCveEvento =<%= RCveEvento %>;
|
||||||
function NuevoEvento(CveEvento) {
|
function NuevoEvento(CveEvento) {
|
||||||
$('.txtCveEvento').val(CveEvento);
|
$('.txtCveEvento').val(CveEvento);
|
||||||
|
|||||||
200
RH/Personal.aspx
200
RH/Personal.aspx
@@ -61,10 +61,15 @@
|
|||||||
</Triggers>
|
</Triggers>
|
||||||
</asp:UpdatePanel>--%>
|
</asp:UpdatePanel>--%>
|
||||||
|
|
||||||
|
<asp:UpdatePanel ID="UpAccionesCuentasBancarias" runat="server">
|
||||||
|
<ContentTemplate>
|
||||||
|
<li>
|
||||||
|
<asp:LinkButton ID="Lnkopenaddcuentabancaria" OnClick="Lnkopenaddcuentabancaria_Click" Visible="true" runat="server"> <i class="fa fa-plus"></i> Agregar cuenta bancaria</asp:LinkButton>
|
||||||
|
</li>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
<li>
|
|
||||||
<asp:LinkButton ID="Lnkopenaddcuentabancaria" OnClick="Lnkopenaddcuentabancaria_Click" Visible="true" runat="server"> <i class="fa fa-plus"></i> Agregar cuenta bancaria</asp:LinkButton>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UpBuzon" runat="server">
|
<asp:UpdatePanel ID="UpBuzon" runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
@@ -1246,7 +1251,8 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<asp:GridView ID="GvBancosCuentas" GridLines="None" BorderColor="#D3D3D3" BorderWidth="1" CssClass="table table-striped table-hover Widthall" Style="table-layout: fixed" runat="server"
|
<asp:GridView ID="GvBancosCuentas" GridLines="None" BorderColor="#D3D3D3" BorderWidth="1" CssClass="table table-striped table-hover Widthall" Style="table-layout: fixed" runat="server"
|
||||||
DataKeyNames="CveCuentaDeposito,CveSATBanco,Cuenta,CLABE,EstatusPagoElectronico,EstatusTexto,CveMoneda" AutoGenerateColumns="False" ShowHeaderWhenEmpty="true">
|
DataKeyNames="CveCuentaDeposito,BancoNombre,Sucursal,Cuenta,CLABE,SWIFT,Plaza,CIE,Referencia,RefCrediProveedor,CveMoneda,Estatus,Correo,BBVAAlias,EstatusPagoElectronico,EstatusPagoElectronicoGrupos,CveSATBanco,ConceptoCIE,EstatusTexto"
|
||||||
|
AutoGenerateColumns="False" ShowHeaderWhenEmpty="true">
|
||||||
<%--<asp:GridView ID="GvBancosCuentas" runat="server" DataKeyNames="CveCuentaDeposito" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Cuentas Bancarias" CssClass="table table-striped table-advance table-hover" Style="table-layout: fixed" BorderWidth="0" GridLines="None">--%>
|
<%--<asp:GridView ID="GvBancosCuentas" runat="server" DataKeyNames="CveCuentaDeposito" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Cuentas Bancarias" CssClass="table table-striped table-advance table-hover" Style="table-layout: fixed" BorderWidth="0" GridLines="None">--%>
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede" HeaderText="Banco" ItemStyle-HorizontalAlign="Center">
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede" HeaderText="Banco" ItemStyle-HorizontalAlign="Center">
|
||||||
@@ -1370,7 +1376,7 @@
|
|||||||
<asp:CheckBox ID="ChkEstatus" runat="server" Checked='<%# IIf(Eval("EstatusTexto").ToString = "Activo", True, False)%>' Visible="false"></asp:CheckBox>
|
<asp:CheckBox ID="ChkEstatus" runat="server" Checked='<%# IIf(Eval("EstatusTexto").ToString = "Activo", True, False)%>' Visible="false"></asp:CheckBox>
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Editar" ItemStyle-Width="7%" ItemStyle-CssClass="Excede" ItemStyle-HorizontalAlign="Center">
|
<asp:TemplateField HeaderText="Editar" ItemStyle-Width="50px" ItemStyle-CssClass="Excede" ItemStyle-HorizontalAlign="Center">
|
||||||
<EditItemTemplate>
|
<EditItemTemplate>
|
||||||
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update"
|
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update"
|
||||||
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpEditarCuentaBanco" />
|
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpEditarCuentaBanco" />
|
||||||
@@ -1381,7 +1387,7 @@
|
|||||||
<asp:LinkButton ID="LnkshowEditcuentasbancarias" runat="server" OnClick="LnkshowEditcuentasbancarias_Click" AlternateText="Editar" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
<asp:LinkButton ID="LnkshowEditcuentasbancarias" runat="server" OnClick="LnkshowEditcuentasbancarias_Click" AlternateText="Editar" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Elim." ItemStyle-Width="7%" ItemStyle-CssClass="Excede" ItemStyle-HorizontalAlign="Center">
|
<asp:TemplateField HeaderText="Elim." ItemStyle-Width="50px" ItemStyle-CssClass="Excede" ItemStyle-HorizontalAlign="Center">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="confirmar" data-btn-ok-label="si" OnClientClick="javascript:return confirm('Está seguro de eliminar el registro?');" />
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="confirmar" data-btn-ok-label="si" OnClientClick="javascript:return confirm('Está seguro de eliminar el registro?');" />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -4918,7 +4924,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="DivCuentasVancarias" class="modal ADS fade" role="dialog">
|
<%-- <div id="DivCuentasVancarias" class="modal ADS fade" role="dialog">
|
||||||
<div class="modal-dialog" style="width: 400px;">
|
<div class="modal-dialog" style="width: 400px;">
|
||||||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpCuentasVancarias" UpdateMode="Conditional">
|
<asp:UpdatePanel runat="server" class="modal-content" ID="UpCuentasVancarias" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
@@ -4978,7 +4984,185 @@
|
|||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>--%>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="DivAddCuentasBancarias" class="modal ADS fade" role="dialog">
|
||||||
|
<asp:UpdatePanel ID="UpAddBancos" class="modal-dialog" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
<h4 class="modal-title" id="H2" runat="server">Cuenta Bancaria</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:DropDownList ID="DdlBancoSat" runat="server" Width="100%" AppendDataBoundItems="true" DataTextField="Banco" DataValueField="CveSATBanco" CssClass="form-control input-sm select2me" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlBancoSat" Text="Banco:"></asp:Label>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVBancoSat" runat="server" InitialValue="-1" ControlToValidate="DdlBancoSat" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Banco''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarBanco"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoBancoSat" runat="server" HighlightCssClass="vco" TargetControlID="RFVBancoSat" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtNombreBanco" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="100" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVNombreBanco" runat="server" ControlToValidate="TxtNombreBanco" Display="None"
|
||||||
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Banco''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarBanco"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCENombreBanco" runat="server" HighlightCssClass="vco" TargetControlID="RFVNombreBanco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
<label for="<%= TxtNombreBanco.ClientID.ToString()%>">Nombre del Banco:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtNumeroSucursal" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<label for="<%= TxtNumeroSucursal.ClientID.ToString()%>">Numero de la Sucursal:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtNumeroCuenta" runat="server" CssClass="form-control" CausesValidation="true" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros" runat="server" TargetControlID="TxtNumeroCuenta" FilterType="Numbers" />
|
||||||
|
<label for="<%= TxtNumeroCuenta.ClientID.ToString()%>">Numero de Cuenta:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtCLABECB" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="18" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros2" runat="server" TargetControlID="TxtCLABECB" FilterType="Numbers" />
|
||||||
|
<label for="<%= TxtCLABECB.ClientID.ToString()%>">CLABE:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtSWIFT" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="100" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<label for="<%= TxtSWIFT.ClientID.ToString()%>">SWIFT:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtPlaza" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="100" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<label for="<%= TxtPlaza.ClientID.ToString()%>">Plaza:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtConvenioCIE" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="8" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<label for="<%= TxtConvenioCIE.ClientID.ToString()%>">CIE:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtReferenciaC" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="20" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros3" runat="server" TargetControlID="TxtReferenciaC" FilterType="UppercaseLetters,LowercaseLetters,Numbers" />
|
||||||
|
<label for="<%= TxtReferenciaC.ClientID.ToString()%>">Referencia:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtConceptoCIE" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="30"></asp:TextBox>
|
||||||
|
<ajax:FilteredTextBoxExtender ID="FilAlfanumerico" runat="server" TargetControlID="TxtConceptoCIE" FilterType="UppercaseLetters,LowercaseLetters,Numbers" />
|
||||||
|
<label for="<%= TxtReferencia.ClientID.ToString()%>">Concepto CIE:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtRefCrediProveedor" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="5" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<label for="<%= TxtRefCrediProveedor.ClientID.ToString()%>">Crédito Proveedor:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtCorreoCuenta" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="100" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<label for="<%= TxtCorreoCuenta.ClientID.ToString()%>">Correo:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtBBVAAlias" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="30" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<ajax:FilteredTextBoxExtender ID="Flter" runat="server" TargetControlID="TxtBBVAAlias" FilterType="UppercaseLetters,LowercaseLetters,Numbers" InvalidChars="-+.," />
|
||||||
|
<label for="<%= TxtBBVAAlias.ClientID.ToString()%>">BBVA Alias:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:DropDownList CssClass="form-control select2me" Width="50%" ID="DdlMoneda" runat="server" DataTextField="Moneda" DataValueField="CveMoneda"></asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVMoneda" runat="server" InitialValue="-1" ControlToValidate="DdlMoneda" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Moneda''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarBanco"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCEMoneda" runat="server" HighlightCssClass="vco" TargetControlID="RFVMoneda" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
<label for="<%= DdlMoneda.ClientID.ToString()%>">Moneda:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright" id="divestatus" runat="server">
|
||||||
|
<asp:CheckBox ID="ChkEstatuscuenta" runat="server"></asp:CheckBox>
|
||||||
|
<label for="<%= ChkEstatuscuenta.ClientID.ToString()%>">Estatus:</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright" id="div3" runat="server">
|
||||||
|
<asp:CheckBox ID="ChkEstatusPagoE" runat="server" AutoPostBack="true" OnCheckedChanged="ChkPagoElectronico_CheckedChanged"></asp:CheckBox>
|
||||||
|
<label for="<%= ChkEstatusPagoE.ClientID.ToString()%>">Pago Electronico</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<div class="form-group form-md-line-input input-iconright" id="div4" runat="server">
|
||||||
|
|
||||||
|
<asp:CheckBox ID="ChkPagoElectronicoGrupos" runat="server" ></asp:CheckBox>
|
||||||
|
<label for="<%= ChkPagoElectronicoGrupos.ClientID.ToString()%>">Pago Electronico Grupos</label>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="form-group form-md-line-input input-iconright" runat="server" id="DVDdlSatBanco" visible="false">
|
||||||
|
|
||||||
|
<%--<asp:DropDownList CssClass="form-control select2me" Width="50%" ID="DdlSatBanco" runat="server" DataTextField="Banco" DataValueField="CveSATBanco">
|
||||||
|
<asp:ListItem Value="-1">Seleccione uno</asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVDdlSatBanco" runat="server" InitialValue="-1" ControlToValidate="DdlSatBanco" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Banco''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarBanco"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCRFVDdlSatBanco" runat="server" HighlightCssClass="vco" TargetControlID="RFVDdlSatBanco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
<label for="<%= DdlSatBanco.ClientID.ToString()%>">Banco:</label>--%>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<%--<asp:LinkButton ID="LbAgregarCuentaBanco" runat="server" CausesValidation="true" CssClass="btn btn-success" Text="Agregar" ValidationGroup="GrpAgregarBanco" OnClick="LbAgregarCuentaBanco_Click"></asp:LinkButton>
|
||||||
|
<asp:Button type="button" class="btn btn-default" runat="server" ID="Button2" data-dismiss="modal" Text="Cancelar" />--%>
|
||||||
|
<asp:Button ID="BtnActualizarCuentaBanco" OnClick="LbActualizarCuentaBanco_Click" UseSubmitBehavior="false" runat="server" class="btn btn-primary" Text="Actualizar" ValidationGroup="GrpAgregarBanco" />
|
||||||
|
<asp:Button ID="BtnAgregarCuentaBanco" OnClick="LbAgregarCuentaBanco_Click" UseSubmitBehavior="false" runat="server" class="btn btn-success" Text="Agregar" ValidationGroup="GrpAgregarBanco" />
|
||||||
|
<button id="Button5" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="divEditarDiaVacacion" class="modal ADS fade" role="dialog">
|
<div id="divEditarDiaVacacion" class="modal ADS fade" role="dialog">
|
||||||
<div id="dvEdicion" runat="server" class="modal-dialog" style="width: 400px;">
|
<div id="dvEdicion" runat="server" class="modal-dialog" style="width: 400px;">
|
||||||
|
|||||||
@@ -6,9 +6,8 @@ Imports System.IO
|
|||||||
Imports System.Data
|
Imports System.Data
|
||||||
Imports Microsoft.Reporting.WebForms
|
Imports Microsoft.Reporting.WebForms
|
||||||
Imports System.Globalization
|
Imports System.Globalization
|
||||||
Imports System.Data.SqlTypes
|
|
||||||
Imports DocumentFormat.OpenXml.Drawing.Diagrams
|
|
||||||
Imports Microsoft.AspNet.SignalR.Infrastructure
|
|
||||||
|
|
||||||
Partial Class RH_Personal
|
Partial Class RH_Personal
|
||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
@@ -427,6 +426,18 @@ Partial Class RH_Personal
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
Private Property IndexCuentaDepostito As Integer
|
||||||
|
Get
|
||||||
|
If ViewState("IndexCuentaDepostito") Is Nothing Then
|
||||||
|
ViewState("IndexCuentaDepostito") = -1
|
||||||
|
End If
|
||||||
|
Return ViewState("IndexCuentaDepostito").ToString.ToEntero
|
||||||
|
End Get
|
||||||
|
Set(value As Integer)
|
||||||
|
ViewState("IndexCuentaDepostito") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
@@ -1001,11 +1012,8 @@ Partial Class RH_Personal
|
|||||||
CargaFonacot()
|
CargaFonacot()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
ValidaDeudorAcreedor()
|
ValidaDeudorAcreedor()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Else
|
Else
|
||||||
cargatipoTrabajador()
|
cargatipoTrabajador()
|
||||||
MostrarOcultarFechasEstatus()
|
MostrarOcultarFechasEstatus()
|
||||||
@@ -1020,6 +1028,7 @@ Partial Class RH_Personal
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
CargaCuentasBancarias()
|
CargaCuentasBancarias()
|
||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(568) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(568) = "1" Then
|
||||||
|
|
||||||
CrearEstructuraFamiliares()
|
CrearEstructuraFamiliares()
|
||||||
@@ -2124,7 +2133,11 @@ Partial Class RH_Personal
|
|||||||
If TempDTCuentasBancos IsNot Nothing AndAlso TempDTCuentasBancos.Rows.Count > 0 Then
|
If TempDTCuentasBancos IsNot Nothing AndAlso TempDTCuentasBancos.Rows.Count > 0 Then
|
||||||
|
|
||||||
For Each row As DataRow In TempDTCuentasBancos.Rows
|
For Each row As DataRow In TempDTCuentasBancos.Rows
|
||||||
If Not ObjCuentasDeposito.AddCuentasDepositos(row("BancoNombre").ToString(), row("Plaza").ToString(), row("Sucursal").ToString(), row("Cuenta").ToString(), row("CLABE").ToString(), row("CIE").ToString(), row("SWIFT").ToString(), row("Referencia").ToString(), "", UsuarioActual.CveUsuario, row("CveMoneda").ToString().ToEntero(), UsuarioActual.CveEmpresa, CvePersonal:=CvePersonal, CveUsuarioModifico:=UsuarioActual.CveUsuario, BBVAAlias:=row("BBVAAlias").ToString(), EstatusPagoElectronico:=True, EstatusPagoElectronicoGrupos:=True) Then
|
If Not ObjCuentasDeposito.AddCuentasDepositos(row("BancoNombre").ToString(), row("Plaza").ToString(), row("Sucursal").ToString(), row("Cuenta").ToString(), row("CLABE").ToString(),
|
||||||
|
row("CIE").ToString(), row("SWIFT").ToString(), row("Referencia").ToString(), row("RefCrediProveedor").ToString(), UsuarioActual.CveUsuario,
|
||||||
|
row("CveMoneda").ToString().ToEntero(), UsuarioActual.CveEmpresa, CvePersonal:=CvePersonal, CveUsuarioModifico:=UsuarioActual.CveUsuario,
|
||||||
|
BBVAAlias:=row("BBVAAlias").ToString(), EstatusPagoElectronico:=True, EstatusPagoElectronicoGrupos:=True, Correo:=row("Correo").ToString(),
|
||||||
|
ConceptoCIE:=row("Correo").ToString()) Then
|
||||||
TieneError = True
|
TieneError = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
@@ -3377,21 +3390,77 @@ Partial Class RH_Personal
|
|||||||
Protected Sub Lnkopenaddcuentabancaria_Click(sender As Object, e As EventArgs)
|
Protected Sub Lnkopenaddcuentabancaria_Click(sender As Object, e As EventArgs)
|
||||||
BtnActualizarCuentaBanco.Visible = False
|
BtnActualizarCuentaBanco.Visible = False
|
||||||
BtnAgregarCuentaBanco.Visible = True
|
BtnAgregarCuentaBanco.Visible = True
|
||||||
|
IndexCuentaDepostito = -1
|
||||||
|
CuentasBancosLimpiarControles()
|
||||||
|
RegistraScript("$('#DivAddCuentasBancarias').modal();")
|
||||||
|
End Sub
|
||||||
|
|
||||||
RegistraScript("$('#DivCuentasVancarias').modal();")
|
Private Sub CuentasBancosLimpiarControles()
|
||||||
|
|
||||||
|
DdlBancoSat.SelectedValueExist(-1)
|
||||||
|
DdlMoneda.SelectedValueExist(-1)
|
||||||
|
TxtNumeroCuenta.Text = ""
|
||||||
|
TxtCLABECB.Text = ""
|
||||||
|
ChkEstatusPagoE.Checked = False
|
||||||
|
ChkEstatuscuenta.Checked = True
|
||||||
|
|
||||||
|
TxtNombreBanco.Text = ""
|
||||||
|
TxtNumeroSucursal.Text = ""
|
||||||
|
TxtSWIFT.Text = ""
|
||||||
|
TxtPlaza.Text = ""
|
||||||
|
TxtConvenioCIE.Text = ""
|
||||||
|
TxtReferenciaC.Text = ""
|
||||||
|
TxtConceptoCIE.Text = ""
|
||||||
|
TxtRefCrediProveedor.Text = ""
|
||||||
|
TxtCorreoCuenta.Text = ""
|
||||||
|
TxtBBVAAlias.Text = ""
|
||||||
|
ChkPagoElectronicoGrupos.Checked = False
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
UpAddBancos.Update()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub LbActualizarCuentaBanco_Click(sender As Object, e As EventArgs)
|
Protected Sub LbActualizarCuentaBanco_Click(sender As Object, e As EventArgs)
|
||||||
Using ObjCuentasBancos As New ClsGenerales
|
|
||||||
Dim nombrebanco As String = DdlBancoSat.SelectedItem.Text
|
|
||||||
|
|
||||||
If ObjCuentasBancos.UpdateCuentasDepositosPersonal(CveCuentaDeposito, nombrebanco, TxtNumeroCuenta.Text, TxtCLABECB.Text, DdlMoneda.SelectedValue.ToEntero(), UsuarioActual.CveUsuario, ChkEstatusPagoE.Checked, ChkEstatuscuenta.Checked, DdlBancoSat.SelectedValue.ToEntero(), UsuarioActual.CveEmpresa) Then
|
Dim nombrebanco As String = DdlBancoSat.SelectedItem.Text
|
||||||
'UpdateCuentasDepositosPersonal(CveCuentaDeposito As Integer, BancoNombre As String, Cuenta As String, CLABE As String, CveMoneda As Integer, CveUsuarioModifico As Integer, EstatusPagoElectronico As Boolean, Estatus As Boolean, CveSATBanco As Integer) As Boolean
|
If CvePersonal > 0 Then
|
||||||
Alert("Cuenta actualizada")
|
Using ObjCuentasBancos As New ClsGenerales
|
||||||
|
|
||||||
|
'If ObjCuentasBancos.UpdateCuentasDepositosPersonal(CveCuentaDeposito, nombrebanco, TxtNumeroCuenta.Text, TxtCLABECB.Text, DdlMoneda.SelectedValue.ToEntero(), UsuarioActual.CveUsuario, ChkEstatusPagoE.Checked, ChkEstatuscuenta.Checked, DdlBancoSat.SelectedValue.ToEntero(), UsuarioActual.CveEmpresa) Then
|
||||||
|
If ObjCuentasBancos.UpdateCuentasDepositos(CveCuentaDeposito, nombrebanco, TxtPlaza.Text, TxtNumeroSucursal.Text, TxtNumeroCuenta.Text.Trim, TxtCLABECB.Text.Trim, TxtConvenioCIE.Text, TxtSWIFT.Text, TxtReferenciaC.Text, TxtRefCrediProveedor.Text,
|
||||||
|
False, ChkEstatuscuenta.Checked, DdlMoneda.SelectedValue.ToEntero(), UsuarioActual.CveEmpresa, Correo:=TxtCorreoCuenta.Text, BBVAAlias:=TxtBBVAAlias.Text, EstatusPagoElectronico:=ChkEstatusPagoE.Checked,
|
||||||
|
EstatusPagoElectronicoGrupos:=ChkPagoElectronicoGrupos.Checked, CveSATBanco:=DdlBancoSat.SelectedValue.ToEntero(), ConceptoCIE:=TxtConceptoCIE.Text) Then
|
||||||
|
'UpdateCuentasDepositosPersonal(CveCuentaDeposito As Integer, BancoNombre As String, Cuenta As String, CLABE As String, CveMoneda As Integer, CveUsuarioModifico As Integer, EstatusPagoElectronico As Boolean, Estatus As Boolean, CveSATBanco As Integer) As Boolean
|
||||||
|
Alert("Cuenta actualizada")
|
||||||
|
End If
|
||||||
|
End Using
|
||||||
|
Else
|
||||||
|
If IndexCuentaDepostito > -1 Then
|
||||||
|
Dim Row As DataRow = TempDTCuentasBancos.Rows(IndexCuentaDepostito)
|
||||||
|
Row("BancoNombre") = nombrebanco
|
||||||
|
Row("Sucursal") = TxtNumeroSucursal.Text
|
||||||
|
Row("CLABE") = TxtCLABECB.Text.Trim
|
||||||
|
Row("SWIFT") = TxtSWIFT.Text
|
||||||
|
Row("Plaza") = TxtPlaza.Text
|
||||||
|
Row("Cuenta") = TxtNumeroSucursal.Text
|
||||||
|
Row("CIE") = TxtConvenioCIE.Text
|
||||||
|
Row("Referencia") = TxtReferenciaC.Text
|
||||||
|
Row("RefCrediProveedor") = TxtRefCrediProveedor.Text
|
||||||
|
Row("CveMoneda") = DdlMoneda.SelectedValue.ToEntero()
|
||||||
|
Row("Moneda") = DdlMoneda.SelectedItem.Text
|
||||||
|
Row("BBVAAlias") = TxtBBVAAlias.Text
|
||||||
|
Row("CveSATBanco") = DdlBancoSat.SelectedValue.ToEntero
|
||||||
|
Row("EstatusPagoElectronico") = ChkEstatusPagoE.Checked
|
||||||
|
Row("EstatusPagoElectronicoGrupos") = ChkPagoElectronicoGrupos.Checked
|
||||||
|
Row("Correo") = TxtCorreoCuenta.Text.Trim
|
||||||
|
Row("ConceptoCIE") = TxtConceptoCIE.Text
|
||||||
End If
|
End If
|
||||||
End Using
|
End If
|
||||||
|
|
||||||
CargaCuentasBancarias()
|
CargaCuentasBancarias()
|
||||||
RegistraScript("$('#DivCuentasVancarias').modal('hide');")
|
RegistraScript("$('#DivAddCuentasBancarias').modal('hide');")
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub LbAgregarCuentaBanco_Click(sender As Object, e As EventArgs)
|
Protected Sub LbAgregarCuentaBanco_Click(sender As Object, e As EventArgs)
|
||||||
Dim EsBancomer As Boolean = False
|
Dim EsBancomer As Boolean = False
|
||||||
@@ -3431,6 +3500,27 @@ Partial Class RH_Personal
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If ChkPagoElectronicoGrupos.Checked Then
|
||||||
|
|
||||||
|
If TxtConvenioCIE.Text.Trim.Length > 0 Then
|
||||||
|
|
||||||
|
If TxtConvenioCIE.Text.Trim.Length < 5 Then
|
||||||
|
Alert("El campo CIE debe de tener una tamaño mininmo 5 caracteres.", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Not DdlBancoSat.SelectedValue.ToEntero > 0 Then
|
||||||
|
Alert("Se debe de especificar el banco.")
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
''CUANDO SEA "BBVA" O "BANCOMER" DEBE TENER "CIE" O "CUENTA"
|
''CUANDO SEA "BBVA" O "BANCOMER" DEBE TENER "CIE" O "CUENTA"
|
||||||
'If EsBancomer AndAlso Not (TxtNumeroCuenta.Text.Trim.Length = 10 Or TxtConvenioCIE.Text.Trim.Length = 6) Then
|
'If EsBancomer AndAlso Not (TxtNumeroCuenta.Text.Trim.Length = 10 Or TxtConvenioCIE.Text.Trim.Length = 6) Then
|
||||||
@@ -3438,8 +3528,9 @@ Partial Class RH_Personal
|
|||||||
' Exit Sub
|
' Exit Sub
|
||||||
'End If
|
'End If
|
||||||
|
|
||||||
AgregarCuentaBanco(nombrebanco, "", TxtCLABECB.Text.Trim, "", "", TxtNumeroCuenta.Text.Trim, "", "", DdlMoneda.SelectedValue.ToEntero(), DdlMoneda.SelectedItem.Text, "", DdlBancoSat.SelectedValue.ToEntero(), ChkEstatusPagoE.Checked)
|
AgregarCuentaBanco(nombrebanco, TxtNumeroSucursal.Text, TxtCLABECB.Text.Trim, TxtSWIFT.Text, TxtPlaza.Text, TxtNumeroCuenta.Text.Trim, TxtConvenioCIE.Text, TxtReferenciaC.Text, TxtRefCrediProveedor.Text, DdlMoneda.SelectedValue.ToEntero(),
|
||||||
RegistraScript("$('#DivCuentasVancarias').modal('hide');")
|
DdlMoneda.SelectedItem.Text, ChkEstatuscuenta.Checked, TxtCorreoCuenta.Text, TxtBBVAAlias.Text, DdlBancoSat.SelectedValue.ToEntero(), ChkEstatusPagoE.Checked, ChkPagoElectronicoGrupos.Checked, TxtConceptoCIE.Text)
|
||||||
|
RegistraScript("$('#DivAddCuentasBancarias').modal('hide');")
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub CargaGridCuentasBancos(Orden As String)
|
Private Sub CargaGridCuentasBancos(Orden As String)
|
||||||
If CvePersonal > 0 Then
|
If CvePersonal > 0 Then
|
||||||
@@ -3463,14 +3554,17 @@ Partial Class RH_Personal
|
|||||||
GvBancosCuentas.DataBind()
|
GvBancosCuentas.DataBind()
|
||||||
UpCuentasBancos.Update()
|
UpCuentasBancos.Update()
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub AgregarCuentaBanco(NombreBanco As String, NumeroSucursal As String, CLABE As String, SWIFT As String, Plaza As String, NumeroCuenta As String, ConvenioCIE As String, Referencia As String, CveMoneda As Integer, Moneda As String, BBVAAlias As String, CveSATBanco As Integer, EstatusPagoElectronico As Boolean)
|
Private Sub AgregarCuentaBanco(NombreBanco As String, NumeroSucursal As String, CLABE As String, SWIFT As String, Plaza As String, NumeroCuenta As String, ConvenioCIE As String, Referencia As String, RefCrediProveedor As String, CveMoneda As Integer,
|
||||||
|
Moneda As String, Estatus As Boolean, Correo As String, BBVAAlias As String, CveSATBanco As Integer, EstatusPagoElectronico As Boolean, EstatusPagoElectronicoGrupos As Boolean, ConceptoCIE As String)
|
||||||
|
|
||||||
|
|
||||||
Dim Row As DataRow
|
|
||||||
|
|
||||||
If CvePersonal > 0 Then
|
If CvePersonal > 0 Then
|
||||||
Using ObjCuentasBancos As New ClsGenerales()
|
Using ObjCuentasBancos As New ClsGenerales()
|
||||||
|
|
||||||
If ObjCuentasBancos.AddCuentasDepositos(NombreBanco, Plaza, NumeroSucursal, NumeroCuenta, CLABE, ConvenioCIE, SWIFT, Referencia, "", UsuarioActual.CveUsuario, CveMoneda, UsuarioActual.CveEmpresa, CvePersonal:=CvePersonal, CveUsuarioModifico:=UsuarioActual.CveUsuario, BBVAAlias:=BBVAAlias, CveSATBanco:=CveSATBanco, EstatusPagoElectronico:=EstatusPagoElectronico) Then
|
If ObjCuentasBancos.AddCuentasDepositos(NombreBanco, Plaza, NumeroSucursal, NumeroCuenta, CLABE, ConvenioCIE, SWIFT, Referencia, RefCrediProveedor, UsuarioActual.CveUsuario, CveMoneda, UsuarioActual.CveEmpresa, CvePersonal:=CvePersonal,
|
||||||
|
CveUsuarioModifico:=UsuarioActual.CveUsuario, BBVAAlias:=BBVAAlias, CveSATBanco:=CveSATBanco, EstatusPagoElectronico:=EstatusPagoElectronico, EstatusPagoElectronicoGrupos:=EstatusPagoElectronicoGrupos,
|
||||||
|
Correo:=Correo, ConceptoCIE:=ConceptoCIE) Then
|
||||||
DTCuentasBancos.Clear()
|
DTCuentasBancos.Clear()
|
||||||
DTCuentasBancos.Merge(ObjCuentasBancos.DtResultados.FiltraParametros(String.Format("CvePersonal = {0}", CvePersonal)))
|
DTCuentasBancos.Merge(ObjCuentasBancos.DtResultados.FiltraParametros(String.Format("CvePersonal = {0}", CvePersonal)))
|
||||||
|
|
||||||
@@ -3480,22 +3574,51 @@ Partial Class RH_Personal
|
|||||||
CargaGvBitacora()
|
CargaGvBitacora()
|
||||||
|
|
||||||
Else
|
Else
|
||||||
Row = TempDTCuentasBancos.NewRow
|
|
||||||
|
|
||||||
Row("BancoNombre") = NombreBanco
|
If IndexCuentaDepostito > -1 Then
|
||||||
Row("Sucursal") = NumeroSucursal
|
Dim Row As DataRow = TempDTCuentasBancos.Rows(IndexCuentaDepostito)
|
||||||
Row("CLABE") = CLABE
|
Row("BancoNombre") = NombreBanco
|
||||||
Row("SWIFT") = SWIFT
|
Row("Sucursal") = NumeroSucursal
|
||||||
Row("Plaza") = Plaza
|
Row("CLABE") = CLABE
|
||||||
Row("Cuenta") = NumeroCuenta
|
Row("SWIFT") = SWIFT
|
||||||
Row("CIE") = ConvenioCIE
|
Row("Plaza") = Plaza
|
||||||
Row("Referencia") = Referencia
|
Row("Cuenta") = NumeroCuenta
|
||||||
Row("CveMoneda") = CveMoneda
|
Row("CIE") = ConvenioCIE
|
||||||
Row("Moneda") = Moneda
|
Row("Referencia") = Referencia
|
||||||
Row("BBVAAlias") = BBVAAlias
|
Row("RefCrediProveedor") = RefCrediProveedor
|
||||||
Row("CveSATBanco") = CveSATBanco
|
Row("CveMoneda") = CveMoneda
|
||||||
Row("EstatusPagoElectronico") = EstatusPagoElectronico
|
Row("Moneda") = Moneda
|
||||||
TempDTCuentasBancos.Rows.Add(Row)
|
Row("BBVAAlias") = BBVAAlias
|
||||||
|
Row("CveSATBanco") = CveSATBanco
|
||||||
|
Row("EstatusPagoElectronico") = EstatusPagoElectronico
|
||||||
|
Row("EstatusPagoElectronicoGrupos") = EstatusPagoElectronicoGrupos
|
||||||
|
Row("Correo") = Correo
|
||||||
|
Row("ConceptoCIE") = ConceptoCIE
|
||||||
|
|
||||||
|
Else
|
||||||
|
Dim Row As DataRow = TempDTCuentasBancos.NewRow
|
||||||
|
Row("BancoNombre") = NombreBanco
|
||||||
|
Row("Sucursal") = NumeroSucursal
|
||||||
|
Row("CLABE") = CLABE
|
||||||
|
Row("SWIFT") = SWIFT
|
||||||
|
Row("Plaza") = Plaza
|
||||||
|
Row("Cuenta") = NumeroCuenta
|
||||||
|
Row("CIE") = ConvenioCIE
|
||||||
|
Row("Referencia") = Referencia
|
||||||
|
Row("RefCrediProveedor") = RefCrediProveedor
|
||||||
|
Row("CveMoneda") = CveMoneda
|
||||||
|
Row("Moneda") = Moneda
|
||||||
|
Row("BBVAAlias") = BBVAAlias
|
||||||
|
Row("CveSATBanco") = CveSATBanco
|
||||||
|
Row("EstatusPagoElectronico") = EstatusPagoElectronico
|
||||||
|
Row("EstatusPagoElectronicoGrupos") = EstatusPagoElectronicoGrupos
|
||||||
|
Row("Correo") = Correo
|
||||||
|
Row("ConceptoCIE") = ConceptoCIE
|
||||||
|
TempDTCuentasBancos.Rows.Add(Row)
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
LimpiaCuentasBancarias()
|
LimpiaCuentasBancarias()
|
||||||
@@ -3510,7 +3633,7 @@ Partial Class RH_Personal
|
|||||||
Private Sub CargaCuentasBancarias()
|
Private Sub CargaCuentasBancarias()
|
||||||
Dim ObjCuentasBancos As New ClsGenerales
|
Dim ObjCuentasBancos As New ClsGenerales
|
||||||
DTCuentasBancos = New DataTable
|
DTCuentasBancos = New DataTable
|
||||||
TempDTCuentasBancos = New DataTable
|
'TempDTCuentasBancos = New DataTable
|
||||||
|
|
||||||
If ObjCuentasBancos.GetCuentasDepositos(CvePersonal:=CvePersonal, CveEmpresa:=UsuarioActual.CveEmpresa) Then
|
If ObjCuentasBancos.GetCuentasDepositos(CvePersonal:=CvePersonal, CveEmpresa:=UsuarioActual.CveEmpresa) Then
|
||||||
DTCuentasBancos.Merge(ObjCuentasBancos.DtResultados)
|
DTCuentasBancos.Merge(ObjCuentasBancos.DtResultados)
|
||||||
@@ -3518,7 +3641,7 @@ Partial Class RH_Personal
|
|||||||
Alert("No se pudieron cargar las cuentas bancarias. Por favor intente nuevamente.", TipoMensaje.MsgError)
|
Alert("No se pudieron cargar las cuentas bancarias. Por favor intente nuevamente.", TipoMensaje.MsgError)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If CvePersonal < 0 Then
|
If (CvePersonal < 0 AndAlso TempDTCuentasBancos Is Nothing) Or (CvePersonal < 0 AndAlso TempDTCuentasBancos IsNot Nothing AndAlso TempDTCuentasBancos.Rows.Count = 0) Then
|
||||||
TempDTCuentasBancos = DTCuentasBancos.Clone
|
TempDTCuentasBancos = DTCuentasBancos.Clone
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -3563,19 +3686,46 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
|
|
||||||
Protected Sub LnkshowEditcuentasbancarias_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkshowEditcuentasbancarias_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
Dim gvrow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
Dim gvrow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||||
|
|
||||||
BtnActualizarCuentaBanco.Visible = True
|
BtnActualizarCuentaBanco.Visible = True
|
||||||
BtnAgregarCuentaBanco.Visible = False
|
BtnAgregarCuentaBanco.Visible = False
|
||||||
'CveCuentaDeposito,CveSATBanco,Cuenta,CLABE,EstatusPagoElectronico,CveMoneda
|
'CveCuentaDeposito,CveSATBanco,Cuenta,CLABE,EstatusPagoElectronico,CveMoneda
|
||||||
|
|
||||||
CveCuentaDeposito = gvrow.DataKey("CveCuentaDeposito").ToEntero()
|
CveCuentaDeposito = gvrow.DataKey("CveCuentaDeposito").ToEntero()
|
||||||
|
IndexCuentaDepostito = gvrow.RowIndex
|
||||||
|
|
||||||
|
CuentasBancosLimpiarControles()
|
||||||
|
|
||||||
DdlBancoSat.SelectedValueExist(gvrow.DataKey("CveSATBanco"))
|
DdlBancoSat.SelectedValueExist(gvrow.DataKey("CveSATBanco"))
|
||||||
DdlMoneda.SelectedValueExist(gvrow.DataKey("CveMoneda"))
|
DdlMoneda.SelectedValueExist(gvrow.DataKey("CveMoneda"))
|
||||||
TxtNumeroCuenta.Text = gvrow.DataKey("Cuenta")
|
TxtNumeroCuenta.Text = gvrow.DataKey("Cuenta")
|
||||||
TxtCLABECB.Text = gvrow.DataKey("CLABE")
|
TxtCLABECB.Text = gvrow.DataKey("CLABE")
|
||||||
ChkEstatusPagoE.Checked = gvrow.DataKey("EstatusPagoElectronico").ToUpper().Contiene("TRUE", "1")
|
ChkEstatusPagoE.Checked = gvrow.DataKey("EstatusPagoElectronico").ToUpper().Contiene("TRUE", "1")
|
||||||
ChkEstatuscuenta.Checked = gvrow.DataKey("EstatusTexto").ToUpper().Contiene("TRUE", "1", "ACTIVO")
|
ChkEstatuscuenta.Checked = gvrow.DataKey("EstatusTexto").ToUpper().Contiene("TRUE", "1", "ACTIVO")
|
||||||
UpCuentasVancarias.Update()
|
|
||||||
RegistraScript("$('#DivCuentasVancarias').modal();")
|
'CveCuentaDeposito,BancoNombre,Sucursal,Cuenta,CLABE,SWIFT,Plaza,CIE,Referencia,RefCrediProveedor,CveMoneda,Estatus,Correo,BBVAAlias,EstatusPagoElectronico,EstatusPagoElectronicoGrupos,CveSATBanco,ConceptoCIE
|
||||||
|
'DdlBancoSat
|
||||||
|
TxtNombreBanco.Text = gvrow.DataKey("BancoNombre")
|
||||||
|
TxtNumeroSucursal.Text = gvrow.DataKey("Sucursal")
|
||||||
|
TxtSWIFT.Text = gvrow.DataKey("SWIFT")
|
||||||
|
TxtPlaza.Text = gvrow.DataKey("Plaza")
|
||||||
|
TxtConvenioCIE.Text = gvrow.DataKey("CIE")
|
||||||
|
TxtReferenciaC.Text = gvrow.DataKey("Referencia")
|
||||||
|
TxtConceptoCIE.Text = gvrow.DataKey("ConceptoCIE")
|
||||||
|
TxtRefCrediProveedor.Text = gvrow.DataKey("RefCrediProveedor")
|
||||||
|
TxtCorreoCuenta.Text = gvrow.DataKey("Correo")
|
||||||
|
TxtBBVAAlias.Text = gvrow.DataKey("BBVAAlias")
|
||||||
|
ChkPagoElectronicoGrupos.Checked = Boolean.Parse(gvrow.DataKey("EstatusPagoElectronicoGrupos").ToString)
|
||||||
|
|
||||||
|
|
||||||
|
'CveCuentaDeposito,BancoNombre,Sucursal,Cuenta,CLABE,SWIFT,Plaza,CIE,Referencia,RefCrediProveedor,CveMoneda,Estatus,Correo,BBVAAlias,EstatusPagoElectronico,EstatusPagoElectronicoGrupos,CveSATBanco,ConceptoCIE,EstatusTexto
|
||||||
|
|
||||||
|
'asdasd
|
||||||
|
|
||||||
|
UpAddBancos.Update()
|
||||||
|
RegistraScript("$('#DivAddCuentasBancarias').modal();")
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub GvBancosCuentas_RowEditing(sender As Object, e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles GvBancosCuentas.RowEditing
|
Protected Sub GvBancosCuentas_RowEditing(sender As Object, e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles GvBancosCuentas.RowEditing
|
||||||
|
|
||||||
@@ -8282,5 +8432,25 @@ Partial Class RH_Personal
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
'Protected Sub ChkPagoElectronicoGrupos_CheckedChanged(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
' If ChkPagoElectronicoGrupos.Checked Then
|
||||||
|
' DVDdlSatBanco.Visible = True
|
||||||
|
' Else
|
||||||
|
' DVDdlSatBanco.Visible = False
|
||||||
|
' End If
|
||||||
|
|
||||||
|
' UpAddBancos.Update()
|
||||||
|
'End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Protected Sub ChkPagoElectronico_CheckedChanged(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
'If ChkEstatusPagoE.Checked Then
|
||||||
|
' Alert("Se está activando manualmente el pago por Layout BBVA. Recuerde que la alta se realiza directo en la plataforma", TipoMensaje.MsgAdvertencia)
|
||||||
|
'End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user