Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -84,15 +84,16 @@
|
|||||||
<asp:ListItem Value="general">general</asp:ListItem>
|
<asp:ListItem Value="general">general</asp:ListItem>
|
||||||
<asp:ListItem Value="optima">optima</asp:ListItem>
|
<asp:ListItem Value="optima">optima</asp:ListItem>
|
||||||
<asp:ListItem Value="motobateria">motobateria</asp:ListItem>
|
<asp:ListItem Value="motobateria">motobateria</asp:ListItem>
|
||||||
|
<asp:ListItem Value="auxiliar">Auxiliar</asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<label class="col-md-1 truncate">Estatus:</label>
|
<label class="col-md-1 truncate">Estatus:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlEstatus" runat="server" CssClass="select2me" Width="100px" ValidationGroup="GrpGuardar">
|
<asp:DropDownList ID="DdlEstatus" runat="server" CssClass="select2me" Width="100px" ValidationGroup="GrpGuardar">
|
||||||
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Activo" Value="1" Selected="True"></asp:ListItem>
|
<asp:ListItem Text="Activo" Value="1" Selected="True"></asp:ListItem>
|
||||||
<asp:ListItem Text="Enviado" Value="2"></asp:ListItem>
|
<asp:ListItem Text="Enviado" Value="2"></asp:ListItem>
|
||||||
<asp:ListItem Text="Cerrado" Value="0"></asp:ListItem>
|
<asp:ListItem Text="Cerrado" Value="0"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<label class="col-md-1 truncate">SubProyecto:</label>
|
<label class="col-md-1 truncate">SubProyecto:</label>
|
||||||
@@ -122,7 +123,7 @@
|
|||||||
|
|
||||||
<asp:GridView ID="GvFolioGarantia" runat="server" AutoGenerateColumns="False"
|
<asp:GridView ID="GvFolioGarantia" runat="server" AutoGenerateColumns="False"
|
||||||
DataKeyNames="CveFolioGarantia,FolioGarantia,CveEstatus,Estatus,CveUsuario,Usuario,FechaIng,SubProyecto,CveSubProyecto,tipoFolio,Limite,CveMovimiento,Area"
|
DataKeyNames="CveFolioGarantia,FolioGarantia,CveEstatus,Estatus,CveUsuario,Usuario,FechaIng,SubProyecto,CveSubProyecto,tipoFolio,Limite,CveMovimiento,Area"
|
||||||
EmptyDataText="No se encontraron registros"
|
EmptyDataText="No se encontraron registros"
|
||||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn"
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn"
|
||||||
data-sort="true"
|
data-sort="true"
|
||||||
data-freezerows="1"
|
data-freezerows="1"
|
||||||
@@ -143,19 +144,19 @@
|
|||||||
<asp:Literal ID="LblLimite" runat="server" Text='<%# Eval("Limite") %>'></asp:Literal>
|
<asp:Literal ID="LblLimite" runat="server" Text='<%# Eval("Limite") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="SubProyecto" >
|
<asp:TemplateField HeaderText="SubProyecto">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LblSubProyecto" runat="server" Text='<%# Eval("SubProyecto")%>'></asp:Literal>
|
<asp:Literal ID="LblSubProyecto" runat="server" Text='<%# Eval("SubProyecto")%>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Estatus" >
|
<asp:TemplateField HeaderText="Estatus">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LblPuntos" runat="server" Text='<%# Eval("Estatus")%>'></asp:Literal>
|
<asp:Literal ID="LblPuntos" runat="server" Text='<%# Eval("Estatus")%>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:BoundField DataField="AreaTexto" HeaderText="Área" />
|
<asp:BoundField DataField="AreaTexto" HeaderText="Área" />
|
||||||
<asp:TemplateField HeaderText="Fecha Ing." ItemStyle-HorizontalAlign="Center" >
|
<asp:TemplateField HeaderText="Fecha Ing." ItemStyle-HorizontalAlign="Center">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="lblFecha" runat="server" Text='<%# Eval("FechaIng", "{0:d}")%>'></asp:Literal>
|
<asp:Literal ID="lblFecha" runat="server" Text='<%# Eval("FechaIng", "{0:d}")%>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -170,9 +171,9 @@
|
|||||||
<asp:Literal ID="lblUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
<asp:Literal ID="lblUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:HyperLinkField HeaderText="Mov. Salida" DataTextField="FolioAlmacen" DataNavigateUrlFields="CveMovimiento" DataNavigateUrlFormatString="/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}" Target="_blank" ControlStyle-CssClass="Texto"/>
|
<asp:HyperLinkField HeaderText="Mov. Salida" DataTextField="FolioAlmacen" DataNavigateUrlFields="CveMovimiento" DataNavigateUrlFormatString="/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}" Target="_blank" ControlStyle-CssClass="Texto" />
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Notas" ItemStyle-Width ="120px" >
|
<asp:TemplateField HeaderText="Notas" ItemStyle-Width="120px">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LblSerieFolioNotas" runat="server" Text='<%# Eval("SerieFolioNotas") %>'></asp:Literal>
|
<asp:Literal ID="LblSerieFolioNotas" runat="server" Text='<%# Eval("SerieFolioNotas") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -181,10 +182,10 @@
|
|||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:LinkButton ID="ImgVer" OnClick="ImgVer_Click" runat="server" AlternateText="Editar" CausesValidation="False"
|
<asp:LinkButton ID="ImgVer" OnClick="ImgVer_Click" runat="server" AlternateText="Editar" CausesValidation="False"
|
||||||
CssClass="btn btn-primary btn-circle btn-sm" Text="<i class='fa fa-bars'></i>" />
|
CssClass="btn btn-primary btn-circle btn-sm" Text="<i class='fa fa-bars'></i>" />
|
||||||
|
|
||||||
<asp:LinkButton ID="ImgE" OnClick="Edit_ClickFolioGarantia" runat="server" AlternateText="Editar" CausesValidation="False"
|
<asp:LinkButton ID="ImgE" OnClick="Edit_ClickFolioGarantia" runat="server" AlternateText="Editar" CausesValidation="False"
|
||||||
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||||||
|
|
||||||
<asp:LinkButton ID="imgD" OnClick="Remove_ClickFolioGarantia" runat="server" AlternateText="Eliminar" CausesValidation="False" 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" />
|
<asp:LinkButton ID="imgD" OnClick="Remove_ClickFolioGarantia" runat="server" AlternateText="Eliminar" CausesValidation="False" 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" />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
@@ -258,10 +259,10 @@
|
|||||||
<asp:TextBox ID="TxtFolioGarantia" CssClass="form-control" runat="server" MaxLength="70" CausesValidation="true"></asp:TextBox>
|
<asp:TextBox ID="TxtFolioGarantia" CssClass="form-control" runat="server" MaxLength="70" CausesValidation="true"></asp:TextBox>
|
||||||
<asp:RequiredFieldValidator ID="RfvTxtFolioGarantia" runat="server" ControlToValidate="TxtFolioGarantia" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Folio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpFolioGarantia"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RfvTxtFolioGarantia" runat="server" ControlToValidate="TxtFolioGarantia" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Folio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpFolioGarantia"></asp:RequiredFieldValidator>
|
||||||
<asp:RegularExpressionValidator ID="REVFolioGarantia"
|
<asp:RegularExpressionValidator ID="REVFolioGarantia"
|
||||||
ControlToValidate="TxtFolioGarantia" runat="server" CssClass="help-block errorimput"
|
ControlToValidate="TxtFolioGarantia" runat="server" CssClass="help-block errorimput"
|
||||||
ErrorMessage="solo números" ValidationGroup="GrpFolioGarantia"
|
ErrorMessage="solo números" ValidationGroup="GrpFolioGarantia"
|
||||||
ValidationExpression="\d+">
|
ValidationExpression="\d+">
|
||||||
</asp:RegularExpressionValidator>
|
</asp:RegularExpressionValidator>
|
||||||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" Enabled="True" TargetControlID="TxtFolioGarantia" FilterType="Numbers" FilterMode="ValidChars"></ajax:FilteredTextBoxExtender>
|
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" Enabled="True" TargetControlID="TxtFolioGarantia" FilterType="Numbers" FilterMode="ValidChars"></ajax:FilteredTextBoxExtender>
|
||||||
<label for="<%= TxtFolioGarantia.ClientID.ToString()%>">Folio:</label>
|
<label for="<%= TxtFolioGarantia.ClientID.ToString()%>">Folio:</label>
|
||||||
<i></i>
|
<i></i>
|
||||||
@@ -269,8 +270,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright" style="padding-top:0px!important">
|
<div class="form-group form-md-line-input input-iconright" style="padding-top: 0px!important">
|
||||||
<asp:Label runat="server" ID="lblSubProyecto" for="<%= DdlSubProyectos.ClientID.ToString()%>">SubProyecto:</asp:Label></br>
|
<asp:Label runat="server" ID="lblSubProyecto" for="<%= DdlSubProyectos.ClientID.ToString()%>">SubProyecto:</asp:Label></br>
|
||||||
|
|
||||||
<asp:DropDownList ID="DdlSubProyectos" runat="server" CssClass="form-control input-sm select2me" DataValueField="CveSubProyecto" DataTextField="SubProyecto" Class="table-group-action-input form-control input-inline input-small input-sm" Width="100%" AutoPostBack="true"></asp:DropDownList>
|
<asp:DropDownList ID="DdlSubProyectos" runat="server" CssClass="form-control input-sm select2me" DataValueField="CveSubProyecto" DataTextField="SubProyecto" Class="table-group-action-input form-control input-inline input-small input-sm" Width="100%" AutoPostBack="true"></asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator ID="RFVProducto2" InitialValue="-1" runat="server" ControlToValidate="DdlSubProyectos" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''SubProyecto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpFolioGarantia"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVProducto2" InitialValue="-1" runat="server" ControlToValidate="DdlSubProyectos" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''SubProyecto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpFolioGarantia"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCEProducto2" runat="server" HighlightCssClass="vco" TargetControlID="RFVProducto2" Width="300px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCEProducto2" runat="server" HighlightCssClass="vco" TargetControlID="RFVProducto2" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
@@ -286,10 +288,12 @@
|
|||||||
<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:Label runat="server" ID="LblTipoFolio" for="<%= DdlTipoFolioModal.ClientID.ToString()%>">Tipo Folio:</asp:Label></br>
|
<asp:Label runat="server" ID="LblTipoFolio" for="<%= DdlTipoFolioModal.ClientID.ToString()%>">Tipo Folio:</asp:Label></br>
|
||||||
|
|
||||||
<asp:DropDownList ID="DdlTipoFolioModal" runat="server" CssClass="form-control input-sm select2me" Width="50%" ValidationGroup="GrpGuardar">
|
<asp:DropDownList ID="DdlTipoFolioModal" runat="server" CssClass="form-control input-sm select2me" Width="50%" ValidationGroup="GrpGuardar">
|
||||||
<asp:ListItem Value="general" Selected="True">General</asp:ListItem>
|
<asp:ListItem Value="general" Selected="True">General</asp:ListItem>
|
||||||
<asp:ListItem Value="optima">Optima</asp:ListItem>
|
<asp:ListItem Value="optima">Optima</asp:ListItem>
|
||||||
<asp:ListItem Value="motobateria">Motobateria</asp:ListItem>
|
<asp:ListItem Value="motobateria">Motobateria</asp:ListItem>
|
||||||
|
<asp:ListItem Value="auxiliar">Auxiliar</asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<i></i>
|
<i></i>
|
||||||
</div>
|
</div>
|
||||||
@@ -297,6 +301,7 @@
|
|||||||
<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:Label runat="server" ID="LblArea" for="<%= DdlArea.ClientID.ToString()%>">Área:</asp:Label></br>
|
<asp:Label runat="server" ID="LblArea" for="<%= DdlArea.ClientID.ToString()%>">Área:</asp:Label></br>
|
||||||
|
|
||||||
<asp:DropDownList ID="DdlArea" runat="server" CssClass="form-control input-sm select2me" Width="50%" ValidationGroup="GrpGuardar">
|
<asp:DropDownList ID="DdlArea" runat="server" CssClass="form-control input-sm select2me" Width="50%" ValidationGroup="GrpGuardar">
|
||||||
<asp:ListItem Value="1" Selected="True">Piso</asp:ListItem>
|
<asp:ListItem Value="1" Selected="True">Piso</asp:ListItem>
|
||||||
<asp:ListItem Value="2">Almacén</asp:ListItem>
|
<asp:ListItem Value="2">Almacén</asp:ListItem>
|
||||||
@@ -308,7 +313,7 @@
|
|||||||
<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">
|
||||||
<label for="<%= DdlEstatusEditar.ClientID.ToString()%>" style="margin-bottom:0px">Estatus:</label></br>
|
<label for="<%= DdlEstatusEditar.ClientID.ToString()%>" style="margin-bottom: 0px">Estatus:</label></br>
|
||||||
<asp:DropDownList ID="DdlEstatusEditar" runat="server" CssClass="select2me" Width="100px" ValidationGroup="GrpGuardar">
|
<asp:DropDownList ID="DdlEstatusEditar" runat="server" CssClass="select2me" Width="100px" ValidationGroup="GrpGuardar">
|
||||||
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Activo" Value="1"></asp:ListItem>
|
<asp:ListItem Text="Activo" Value="1"></asp:ListItem>
|
||||||
|
|||||||
@@ -295,7 +295,8 @@ Public Class ClsBancos
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function AddBancos(Banco As String, Ejecutivo As String, Telefono As String, CveUsuario As Integer, CveEmpresa As Integer, Optional IdContPaq As Integer = -1, Optional RFC As String = "-1") As Boolean
|
Public Function AddBancos(Banco As String, Ejecutivo As String, Telefono As String, CveUsuario As Integer, CveEmpresa As Integer, Optional IdContPaq As Integer = -1, Optional RFC As String = "-1",
|
||||||
|
Optional CveSATBanco As Integer = -1) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Banc_BancosAdd ")
|
DataAdapter("PA_Banc_BancosAdd ")
|
||||||
@@ -308,6 +309,7 @@ Public Class ClsBancos
|
|||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
.Add("@IdContPaq", SqlDbType.Int).Value = IdContPaq
|
.Add("@IdContPaq", SqlDbType.Int).Value = IdContPaq
|
||||||
.Add("@RFC", SqlDbType.VarChar).Value = RFC
|
.Add("@RFC", SqlDbType.VarChar).Value = RFC
|
||||||
|
.Add("@CveSATBanco", SqlDbType.Int).Value = CveSATBanco
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
@@ -326,7 +328,8 @@ Public Class ClsBancos
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function UpdateBancos(Banco As String, Ejecutivo As String, Telefono As String, Estatus As Boolean, CveBanco As Integer, Optional IdContPaq As Integer = -1, Optional RFC As String = "-1") As Boolean
|
Public Function UpdateBancos(Banco As String, Ejecutivo As String, Telefono As String, Estatus As Boolean, CveBanco As Integer, Optional IdContPaq As Integer = -1, Optional RFC As String = "-1",
|
||||||
|
Optional CveSATBanco As Integer = -1) As Boolean
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Banc_BancosUpdate")
|
DataAdapter("PA_Banc_BancosUpdate")
|
||||||
@@ -339,6 +342,7 @@ Public Class ClsBancos
|
|||||||
.Add("@CveBanco", SqlDbType.Int).Value = CveBanco
|
.Add("@CveBanco", SqlDbType.Int).Value = CveBanco
|
||||||
.Add("@IdContPaq", SqlDbType.Int).Value = IdContPaq
|
.Add("@IdContPaq", SqlDbType.Int).Value = IdContPaq
|
||||||
.Add("@RFC", SqlDbType.VarChar).Value = RFC
|
.Add("@RFC", SqlDbType.VarChar).Value = RFC
|
||||||
|
.Add("@CveSATBanco", SqlDbType.Int).Value = CveSATBanco
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -120,14 +120,17 @@ Public Class ClsExportaciones
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "EXPORTACIONES"
|
#Region "EXPORTACIONES"
|
||||||
Public Function GetExportacion(Optional CveExportacion As Integer = -1, Optional CveEmpresa As Integer = -1, Optional FechaInicio As Date = MinFecha, Optional FechaFin As Date = MaxFecha) As Boolean
|
Public Function GetExportacion(Optional CveExportacion As Integer = -1, Optional CveEmpresa As Integer = -1, Optional EsExportacion As Boolean = True, Optional FechaInicio As Date = MinFecha,
|
||||||
|
Optional FechaFin As Date = MaxFecha, Optional CveSubProyecto As String = "-1") As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Exp_ExportacionesRep")
|
DataAdapter("PA_Exp_ExportacionesRep")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveExportacion", SqlDbType.Int).Value = CveExportacion
|
.Add("@CveExportacion", SqlDbType.Int).Value = CveExportacion
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
.Add("@EsExportacion", SqlDbType.Bit).Value = EsExportacion
|
||||||
.Add("@FechaInicio", SqlDbType.Date).Value = FechaInicio
|
.Add("@FechaInicio", SqlDbType.Date).Value = FechaInicio
|
||||||
.Add("@FechaFin", SqlDbType.Date).Value = FechaFin
|
.Add("@FechaFin", SqlDbType.Date).Value = FechaFin
|
||||||
|
.Add("@CveSubProyecto", SqlDbType.VarChar).Value = CveSubProyecto
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
@@ -138,14 +141,16 @@ Public Class ClsExportaciones
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function AddExportacion(NumeroPedimento As String, FechaPedimento As Date, CveVenta As Integer, TipoCambio As Decimal, TipoExportacion As Integer, CveExportacionEstatus As Integer,
|
Public Function AddExportacion(CveSubProyecto As Integer, NumeroPedimento As String, FechaPedimento As Date, CveVenta As Integer, TipoCambio As Decimal, TipoExportacion As Integer,
|
||||||
CveClienteExportador As Integer, CveClienteImportador As Integer, CveClienteConsignatario As Integer, CveAgente As Integer, ClaveAduana As Integer,
|
CveExportacionEstatus As Integer, CveClienteExportador As Integer, CveClienteImportador As Integer, CveClienteConsignatario As Integer, CveAgente As Integer,
|
||||||
CveProveedor As Integer, MedioTransporte As Integer, TipoContenedor As Integer, Sello1 As String, Sello2 As String, Sello3 As String, SCAC As String,
|
ClaveAduana As Integer, DescripcionContenedor As String, CveProveedor As Integer, MedioTransporte As Integer, TipoContenedor As Integer, Sello1 As String,
|
||||||
CAAT As String, ContenedorPlaca As String, CveEmpresa As Integer, CveUsuario As Integer, CveDirExportador As Integer, CveDirConsignatario As Integer,
|
Sello2 As String, Sello3 As String, SCAC As String, CAAT As String, ContenedorPlaca As String, CveEmpresa As Integer, CveUsuario As Integer, CveDirExportador As Integer,
|
||||||
CveIncoterm As Integer, Notas As String, CvePedimento As Integer, CveAgenteExtranjero As Integer, ITN As String, Vinculacion As Boolean) As Integer
|
CveDirImportador As Integer, CveDirConsignatario As Integer, CveIncoterm As Integer, Notas As String, CvePedimento As Integer, CveAgenteExtranjero As Integer,
|
||||||
|
ITN As String, Vinculacion As Boolean, EsExportacion As Boolean) As Integer
|
||||||
Dim Retorno As Integer = -1
|
Dim Retorno As Integer = -1
|
||||||
DataAdapter("PA_Exp_ExportacionesAdd")
|
DataAdapter("PA_Exp_ExportacionesAdd")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
||||||
.Add("@NumeroPedimento", SqlDbType.VarChar).Value = NumeroPedimento
|
.Add("@NumeroPedimento", SqlDbType.VarChar).Value = NumeroPedimento
|
||||||
.Add("@FechaPedimento", SqlDbType.Date).Value = FechaPedimento
|
.Add("@FechaPedimento", SqlDbType.Date).Value = FechaPedimento
|
||||||
.Add("@CveVenta", SqlDbType.Int).Value = CveVenta
|
.Add("@CveVenta", SqlDbType.Int).Value = CveVenta
|
||||||
@@ -157,6 +162,7 @@ Public Class ClsExportaciones
|
|||||||
.Add("@CveClienteConsignatario", SqlDbType.Int).Value = CveClienteConsignatario
|
.Add("@CveClienteConsignatario", SqlDbType.Int).Value = CveClienteConsignatario
|
||||||
.Add("@CveAgente", SqlDbType.Int).Value = CveAgente
|
.Add("@CveAgente", SqlDbType.Int).Value = CveAgente
|
||||||
.Add("@ClaveAduana", SqlDbType.Int).Value = ClaveAduana
|
.Add("@ClaveAduana", SqlDbType.Int).Value = ClaveAduana
|
||||||
|
.Add("@DescripcionContenedor", SqlDbType.VarChar).Value = DescripcionContenedor
|
||||||
.Add("@CveProveedor", SqlDbType.Int).Value = CveProveedor
|
.Add("@CveProveedor", SqlDbType.Int).Value = CveProveedor
|
||||||
.Add("@MedioTransporte", SqlDbType.Int).Value = MedioTransporte
|
.Add("@MedioTransporte", SqlDbType.Int).Value = MedioTransporte
|
||||||
.Add("@TipoContenedor", SqlDbType.Int).Value = TipoContenedor
|
.Add("@TipoContenedor", SqlDbType.Int).Value = TipoContenedor
|
||||||
@@ -169,6 +175,7 @@ Public Class ClsExportaciones
|
|||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||||
.Add("@CveDirExportador", SqlDbType.Int).Value = CveDirExportador
|
.Add("@CveDirExportador", SqlDbType.Int).Value = CveDirExportador
|
||||||
|
.Add("@CveDirImportador", SqlDbType.Int).Value = CveDirImportador
|
||||||
.Add("@CveDirConsignatario", SqlDbType.Int).Value = CveDirConsignatario
|
.Add("@CveDirConsignatario", SqlDbType.Int).Value = CveDirConsignatario
|
||||||
.Add("@CveIncoterm", SqlDbType.Int).Value = CveIncoterm
|
.Add("@CveIncoterm", SqlDbType.Int).Value = CveIncoterm
|
||||||
.Add("@Notas", SqlDbType.VarChar).Value = Notas
|
.Add("@Notas", SqlDbType.VarChar).Value = Notas
|
||||||
@@ -176,6 +183,7 @@ Public Class ClsExportaciones
|
|||||||
.Add("@CveAgenteExtranjero", SqlDbType.Int).Value = CveAgenteExtranjero
|
.Add("@CveAgenteExtranjero", SqlDbType.Int).Value = CveAgenteExtranjero
|
||||||
.Add("@ITN", SqlDbType.VarChar).Value = ITN
|
.Add("@ITN", SqlDbType.VarChar).Value = ITN
|
||||||
.Add("@Vinculacion", SqlDbType.Bit).Value = Vinculacion
|
.Add("@Vinculacion", SqlDbType.Bit).Value = Vinculacion
|
||||||
|
.Add("@EsExportacion", SqlDbType.Bit).Value = EsExportacion
|
||||||
|
|
||||||
.Add("@CveExportacion", SqlDbType.Int).Direction = ParameterDirection.Output
|
.Add("@CveExportacion", SqlDbType.Int).Direction = ParameterDirection.Output
|
||||||
End With
|
End With
|
||||||
@@ -189,15 +197,17 @@ Public Class ClsExportaciones
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function UpdateExportacion(CveExportacion As Integer, NumeroPedimento As String, FechaPedimento As Date, CveVenta As Integer, TipoCambio As Decimal, TipoExportacion As Integer, CveExportacionEstatus As Integer,
|
Public Function UpdateExportacion(CveExportacion As Integer, CveSubProyecto As Integer, NumeroPedimento As String, FechaPedimento As Date, CveVenta As Integer, TipoCambio As Decimal,
|
||||||
CveClienteExportador As Integer, CveClienteImportador As Integer, CveClienteConsignatario As Integer, CveAgente As Integer, ClaveAduana As Integer,
|
TipoExportacion As Integer, CveExportacionEstatus As Integer, CveClienteExportador As Integer, CveClienteImportador As Integer, CveClienteConsignatario As Integer,
|
||||||
CveProveedor As Integer, MedioTransporte As Integer, TipoContenedor As Integer, Sello1 As String, Sello2 As String, Sello3 As String, SCAC As String,
|
CveAgente As Integer, ClaveAduana As Integer, DescripcionContenedor As String, CveProveedor As Integer, MedioTransporte As Integer, TipoContenedor As Integer,
|
||||||
CAAT As String, ContenedorPlaca As String, CveEmpresa As Integer, CveUsuario As Integer, CveDirExportador As Integer, CveDirConsignatario As Integer,
|
Sello1 As String, Sello2 As String, Sello3 As String, SCAC As String, CAAT As String, ContenedorPlaca As String, CveEmpresa As Integer, CveUsuario As Integer,
|
||||||
CveIncoterm As Integer, Notas As String, CvePedimento As Integer, CveAgenteExtranjero As Integer, ITN As String, Vinculacion As Boolean) As Boolean
|
CveDirExportador As Integer, CveDirImportador As Integer, CveDirConsignatario As Integer, CveIncoterm As Integer, Notas As String, CvePedimento As Integer,
|
||||||
|
CveAgenteExtranjero As Integer, ITN As String, Vinculacion As Boolean) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Exp_ExportacionesUpdate")
|
DataAdapter("PA_Exp_ExportacionesUpdate")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveExportacion", SqlDbType.Int).Value = CveExportacion
|
.Add("@CveExportacion", SqlDbType.Int).Value = CveExportacion
|
||||||
|
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
||||||
.Add("@NumeroPedimento", SqlDbType.VarChar).Value = NumeroPedimento
|
.Add("@NumeroPedimento", SqlDbType.VarChar).Value = NumeroPedimento
|
||||||
.Add("@FechaPedimento", SqlDbType.Date).Value = FechaPedimento
|
.Add("@FechaPedimento", SqlDbType.Date).Value = FechaPedimento
|
||||||
.Add("@CveVenta", SqlDbType.Int).Value = CveVenta
|
.Add("@CveVenta", SqlDbType.Int).Value = CveVenta
|
||||||
@@ -209,6 +219,7 @@ Public Class ClsExportaciones
|
|||||||
.Add("@CveClienteConsignatario", SqlDbType.Int).Value = CveClienteConsignatario
|
.Add("@CveClienteConsignatario", SqlDbType.Int).Value = CveClienteConsignatario
|
||||||
.Add("@CveAgente", SqlDbType.Int).Value = CveAgente
|
.Add("@CveAgente", SqlDbType.Int).Value = CveAgente
|
||||||
.Add("@ClaveAduana", SqlDbType.Int).Value = ClaveAduana
|
.Add("@ClaveAduana", SqlDbType.Int).Value = ClaveAduana
|
||||||
|
.Add("@DescripcionContenedor", SqlDbType.VarChar).Value = DescripcionContenedor
|
||||||
.Add("@CveProveedor", SqlDbType.Int).Value = CveProveedor
|
.Add("@CveProveedor", SqlDbType.Int).Value = CveProveedor
|
||||||
.Add("@MedioTransporte", SqlDbType.Int).Value = MedioTransporte
|
.Add("@MedioTransporte", SqlDbType.Int).Value = MedioTransporte
|
||||||
.Add("@TipoContenedor", SqlDbType.Int).Value = TipoContenedor
|
.Add("@TipoContenedor", SqlDbType.Int).Value = TipoContenedor
|
||||||
@@ -221,6 +232,7 @@ Public Class ClsExportaciones
|
|||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||||
.Add("@CveDirExportador", SqlDbType.Int).Value = CveDirExportador
|
.Add("@CveDirExportador", SqlDbType.Int).Value = CveDirExportador
|
||||||
|
.Add("@CveDirImportador", SqlDbType.Int).Value = CveDirImportador
|
||||||
.Add("@CveDirConsignatario", SqlDbType.Int).Value = CveDirConsignatario
|
.Add("@CveDirConsignatario", SqlDbType.Int).Value = CveDirConsignatario
|
||||||
.Add("@CveIncoterm", SqlDbType.Int).Value = CveIncoterm
|
.Add("@CveIncoterm", SqlDbType.Int).Value = CveIncoterm
|
||||||
.Add("@Notas", SqlDbType.VarChar).Value = Notas
|
.Add("@Notas", SqlDbType.VarChar).Value = Notas
|
||||||
|
|||||||
@@ -324,6 +324,30 @@ Public Class ClsNominas
|
|||||||
End Try
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
Public Function GetAniversarioLaboral(fecha As String, cveEmpresa As Integer) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_RH_AniversarioLaboral", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = cveEmpresa
|
||||||
|
.Add("@Fecha", SqlDbType.Date).Value = fecha
|
||||||
|
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch Ex1 As SqlException
|
||||||
|
|
||||||
|
Me.OnError("Ocurrió un error en aniversario laboral.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error en aniversario laboral.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
End Try
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Public Function AutorizaCalculoAnual(CveEmpresa As Integer, CveUsuario As Integer, PersonalXml As String, Optional Numpagos As Integer = 1, Optional Ejercicio As Integer = 2023) As Boolean
|
Public Function AutorizaCalculoAnual(CveEmpresa As Integer, CveUsuario As Integer, PersonalXml As String, Optional Numpagos As Integer = 1, Optional Ejercicio As Integer = 2023) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_Nom_AutorizaCalculoAnual", CommandType.StoredProcedure)
|
DataAdapter("PA_Nom_AutorizaCalculoAnual", CommandType.StoredProcedure)
|
||||||
|
|||||||
@@ -475,7 +475,7 @@ Public Class ClsVentas
|
|||||||
Optional DevolucionImportePagado As Decimal = 0, Optional EsGarantia As Boolean = False, Optional CveLineaAdicional As Integer = -1, Optional DescripcionVenta As String = "",
|
Optional DevolucionImportePagado As Decimal = 0, Optional EsGarantia As Boolean = False, Optional CveLineaAdicional As Integer = -1, Optional DescripcionVenta As String = "",
|
||||||
Optional CveMedico As Integer = -1, Optional CveProcedimiento As Integer = -1, Optional CveTipoVenta As Integer = -1, Optional RequiereOS As Boolean = False,
|
Optional CveMedico As Integer = -1, Optional CveProcedimiento As Integer = -1, Optional CveTipoVenta As Integer = -1, Optional RequiereOS As Boolean = False,
|
||||||
Optional FechaParaSurtir As DateTime = MinFecha, Optional Paciente As String = "-1", Optional Episodio As String = "-1", Optional EsFacturaGlobal As Boolean = False, Optional CveSATPeriodicidad As Integer = -1, Optional CveSATMes As Integer = -1, Optional SATAnio As Integer = -1, Optional CveMotivoDevolucion As Integer = -1,
|
Optional FechaParaSurtir As DateTime = MinFecha, Optional Paciente As String = "-1", Optional Episodio As String = "-1", Optional EsFacturaGlobal As Boolean = False, Optional CveSATPeriodicidad As Integer = -1, Optional CveSATMes As Integer = -1, Optional SATAnio As Integer = -1, Optional CveMotivoDevolucion As Integer = -1,
|
||||||
Optional CveCobranzaEstatusTurno As Integer = -1, Optional Addenda As String = "", Optional Bloqueada As Boolean = False) As Boolean
|
Optional CveCobranzaEstatusTurno As Integer = -1, Optional Addenda As String = "", Optional Bloqueada As Boolean = False, Optional CveComplementoTimbrado As Integer = -1, Optional ComplementoSAT As String = "") As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_VentasAdd")
|
DataAdapter("PA_VentasAdd")
|
||||||
@@ -593,6 +593,8 @@ Public Class ClsVentas
|
|||||||
.Add("@CveCobranzaEstatusTurno", SqlDbType.Int).Value = CveCobranzaEstatusTurno
|
.Add("@CveCobranzaEstatusTurno", SqlDbType.Int).Value = CveCobranzaEstatusTurno
|
||||||
.Add("@Addenda", SqlDbType.VarChar).Value = Addenda
|
.Add("@Addenda", SqlDbType.VarChar).Value = Addenda
|
||||||
.Add("@Bloqueada", SqlDbType.Bit).Value = Bloqueada
|
.Add("@Bloqueada", SqlDbType.Bit).Value = Bloqueada
|
||||||
|
.Add("@CveComplementoTimbrado", SqlDbType.Int).Value = CveComplementoTimbrado
|
||||||
|
.Add("@ComplementoSAT", SqlDbType.VarChar).Value = ComplementoSAT
|
||||||
End With
|
End With
|
||||||
'SqlTypes.SqlDateTime.Null
|
'SqlTypes.SqlDateTime.Null
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -412,6 +412,27 @@ Namespace Modelos
|
|||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
<Serializable>
|
||||||
|
Public Class MParcialesConstruccion
|
||||||
|
'required
|
||||||
|
Public Property NumPerLicoAut As String
|
||||||
|
'required
|
||||||
|
Public Property Calle As String
|
||||||
|
Public Property NoExterior As String = ""
|
||||||
|
Public Property NoInterior As String = ""
|
||||||
|
Public Property Colonia As String = ""
|
||||||
|
Public Property Localidad As String = ""
|
||||||
|
Public Property Referencia As String = ""
|
||||||
|
'required
|
||||||
|
Public Property Municipio As String
|
||||||
|
'required
|
||||||
|
Public Property CveEstado As Integer
|
||||||
|
'required
|
||||||
|
Public Property Estado As String
|
||||||
|
'required
|
||||||
|
Public Property CodigoPostal As String
|
||||||
|
End Class
|
||||||
|
|
||||||
<Serializable(), System.Xml.Serialization.XmlRoot("REM")>
|
<Serializable(), System.Xml.Serialization.XmlRoot("REM")>
|
||||||
Public Class M_REM
|
Public Class M_REM
|
||||||
<System.Xml.Serialization.XmlElement("NOS")>
|
<System.Xml.Serialization.XmlElement("NOS")>
|
||||||
@@ -8015,6 +8036,7 @@ Namespace Modelos
|
|||||||
Public Property DescripcionContrato As String = ""
|
Public Property DescripcionContrato As String = ""
|
||||||
Public Property NumeroDescripcionContrato As String = ""
|
Public Property NumeroDescripcionContrato As String = ""
|
||||||
Public Property CveComplementoTimbrado As Integer = 0
|
Public Property CveComplementoTimbrado As Integer = 0
|
||||||
|
Public Property ComplementoSAT As String = ""
|
||||||
Public Property ComplementoINE As Modelos.ComplementoINE
|
Public Property ComplementoINE As Modelos.ComplementoINE
|
||||||
Public Property FordGSDB As String = ""
|
Public Property FordGSDB As String = ""
|
||||||
Public Property FordASN As String = ""
|
Public Property FordASN As String = ""
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ Imports System.Reflection
|
|||||||
Imports System.Xml
|
Imports System.Xml
|
||||||
Imports System.Xml.Serialization
|
Imports System.Xml.Serialization
|
||||||
Imports Extensiones
|
Imports Extensiones
|
||||||
|
Imports Modelos
|
||||||
|
Imports Newtonsoft.Json
|
||||||
Imports Newtonsoft.Json.Linq
|
Imports Newtonsoft.Json.Linq
|
||||||
Imports Profact.TimbraCFDI33.Complementos
|
Imports Profact.TimbraCFDI33.Complementos
|
||||||
Imports ProfactCartaPorte = Profact.TimbraCFDI33.Complementos.CartaPorte30
|
Imports ProfactCartaPorte = Profact.TimbraCFDI33.Complementos.CartaPorte30
|
||||||
@@ -993,7 +995,7 @@ Public Class Timbrado
|
|||||||
' Retorno = If(Ret = "", True, False)
|
' Retorno = If(Ret = "", True, False)
|
||||||
|
|
||||||
Case 3
|
Case 3
|
||||||
Retorno = TimbrarFacturaProFactv40(UsuarioActual, Ventas)
|
Retorno = TimbrarFacturaProFactV40(UsuarioActual, Ventas)
|
||||||
Case 4
|
Case 4
|
||||||
Dim Ret As String = TimbrarFacturaGoCFDIv40(Ventas, UsuarioActual, CvePACEspecial)
|
Dim Ret As String = TimbrarFacturaGoCFDIv40(Ventas, UsuarioActual, CvePACEspecial)
|
||||||
If Ret <> "" Then MensajeErrorCFDI = Ret
|
If Ret <> "" Then MensajeErrorCFDI = Ret
|
||||||
@@ -2829,6 +2831,17 @@ concep.DescripcionesEspecificas.NumeroSerie)
|
|||||||
End If
|
End If
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
If Ventas.CveComplementoTimbrado = 9 Then
|
||||||
|
Dim settings As New JsonSerializerSettings
|
||||||
|
settings.NullValueHandling = NullValueHandling.Ignore
|
||||||
|
|
||||||
|
Dim pc As Modelos.MParcialesConstruccion = JsonConvert.DeserializeObject(Of MParcialesConstruccion)(Ventas.ComplementoSAT, settings)
|
||||||
|
If pc IsNot Nothing Then
|
||||||
|
cfdi.ParcialesConstruccion(pc.NumPerLicoAut)
|
||||||
|
cfdi.Inmueble(pc.Calle, pc.NoExterior, pc.NoInterior, pc.Colonia, pc.Localidad, pc.Referencia, pc.Municipio, pc.Estado, pc.CodigoPostal)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
#Region "Genera XML"
|
#Region "Genera XML"
|
||||||
Dim ArchivoGenerado As Boolean = False
|
Dim ArchivoGenerado As Boolean = False
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -4,6 +4,16 @@
|
|||||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
|
<style>
|
||||||
|
|
||||||
|
.select2 .select2-selection{
|
||||||
|
max-height:21.14px!important
|
||||||
|
}
|
||||||
|
.select2-selection__rendered{
|
||||||
|
margin-top:-4px!important
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||||
<li>
|
<li>
|
||||||
@@ -24,6 +34,12 @@
|
|||||||
<table class="table table-striped table-advance table-hover">
|
<table class="table table-striped table-advance table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="Titulos">
|
<tr class="Titulos">
|
||||||
|
<th width="150px">
|
||||||
|
<asp:LinkButton ID="LbBancoSAT" runat="server" CausesValidation="false" Text="" CommandArgument="BancoSAT" OnClick="LbOrden_Click">
|
||||||
|
Banco SAT
|
||||||
|
<asp:Literal ID="ImgBancoSAT" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
|
</asp:LinkButton>
|
||||||
|
</th>
|
||||||
<th width="150px">
|
<th width="150px">
|
||||||
<asp:LinkButton ID="LbBanco" runat="server" CausesValidation="false" Text="" CommandArgument="Banco" OnClick="LbOrden_Click">
|
<asp:LinkButton ID="LbBanco" runat="server" CausesValidation="false" Text="" CommandArgument="Banco" OnClick="LbOrden_Click">
|
||||||
Banco
|
Banco
|
||||||
@@ -64,6 +80,13 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>
|
||||||
|
<asp:DropDownList CssClass="form-control select2me" Width="100%" 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="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCRFVDdlSatBanco" runat="server" HighlightCssClass="vco" TargetControlID="RFVDdlSatBanco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<asp:TextBox ID="TxtBanco" runat="server" CausesValidation="true" MaxLength="50" ValidationGroup="GrpGuardar" Width="140px"></asp:TextBox>
|
<asp:TextBox ID="TxtBanco" runat="server" CausesValidation="true" MaxLength="50" ValidationGroup="GrpGuardar" Width="140px"></asp:TextBox>
|
||||||
<asp:RequiredFieldValidator ID="RFVBanco" runat="server" ControlToValidate="TxtBanco" 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="GrpGuardar"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVBanco" runat="server" ControlToValidate="TxtBanco" 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="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
@@ -90,8 +113,22 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveBanco" EmptyDataText="No se encontraron Bancos Registrados" ToolTip="Listado de Bancos" CssClass="table table-striped table-advance table-hover" Style="margin-top: -10px;" GridLines="None">
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveBanco,CveSATBanco" EmptyDataText="No se encontraron Bancos Registrados" ToolTip="Listado de Bancos"
|
||||||
|
CssClass="table table-striped table-advance table-hover mysmallbtn" Style="margin-top: -10px;" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlBancoSAT" runat="server" Text='<%# Eval("SATBanco", "{0}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:DropDownList CssClass="form-control select2me" Width="100%" ID="DdlSatBanco" runat="server" DataTextField="Banco" DataValueField="CveSATBanco" Height="21.14px">
|
||||||
|
<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="GrpGV"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCRFVDdlSatBanco" runat="server" HighlightCssClass="vco" TargetControlID="RFVDdlSatBanco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlBanco" runat="server" Text='<%# Eval("Banco", "{0}") %>'></asp:Literal>
|
<asp:Literal ID="LtlBanco" runat="server" Text='<%# Eval("Banco", "{0}") %>'></asp:Literal>
|
||||||
@@ -142,10 +179,14 @@
|
|||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Editar">
|
<asp:TemplateField HeaderText="Editar">
|
||||||
<EditItemTemplate>
|
<EditItemTemplate>
|
||||||
<center>
|
<div class="row">
|
||||||
<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="GrpGV" />
|
<div class="col-md-6" style="text-align:right!important">
|
||||||
<asp:LinkButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel" CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-times'></i>" />
|
<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="GrpGV" />
|
||||||
</center>
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<asp:LinkButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel" CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-times'></i>" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||||||
|
|||||||
@@ -19,13 +19,43 @@ Partial Class Bancos_CatBancos
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private Property DTBancosSAT As DataTable
|
||||||
|
Get
|
||||||
|
If ViewState("DTBancosSAT") Is Nothing Then
|
||||||
|
ViewState("DTBancosSAT") = New DataTable()
|
||||||
|
End If
|
||||||
|
Return DirectCast(ViewState("DTBancosSAT"), DataTable)
|
||||||
|
End Get
|
||||||
|
|
||||||
|
Set(ByVal value As DataTable)
|
||||||
|
ViewState("DTBancosSAT") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||||
If Not Page.IsPostBack Then
|
If Not Page.IsPostBack Then
|
||||||
|
CargaBancosSAT()
|
||||||
ViewState("Orden") = ""
|
ViewState("Orden") = ""
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CargaBancosSAT()
|
||||||
|
|
||||||
|
Dim ObjBancos As New ClsBancos
|
||||||
|
|
||||||
|
If ObjBancos.GetBancosSAT Then
|
||||||
|
DdlSatBanco.DataSource = ObjBancos.DtResultados
|
||||||
|
DTBancosSAT = ObjBancos.DtResultados
|
||||||
|
End If
|
||||||
|
|
||||||
|
ObjBancos.Dispose()
|
||||||
|
|
||||||
|
DdlSatBanco.DataBind()
|
||||||
|
DdlSatBanco.Items.Insert(0, New ListItem("Seleccione uno", "-1"))
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
Public Sub CargaDatos()
|
Public Sub CargaDatos()
|
||||||
Dim ObjBancos As New ClsBancos
|
Dim ObjBancos As New ClsBancos
|
||||||
If ObjBancos.GetBancos() Then
|
If ObjBancos.GetBancos() Then
|
||||||
@@ -47,7 +77,8 @@ Partial Class Bancos_CatBancos
|
|||||||
|
|
||||||
Protected Sub LbAgregar_Click(sender As Object, e As System.EventArgs) Handles LbAgregar.Click
|
Protected Sub LbAgregar_Click(sender As Object, e As System.EventArgs) Handles LbAgregar.Click
|
||||||
Dim ObjBancos As New ClsBancos
|
Dim ObjBancos As New ClsBancos
|
||||||
If ObjBancos.AddBancos(TxtBanco.Text.Trim, TxtEjecutivo.Text.Trim, TxtTelefono.Text.Trim, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
If ObjBancos.AddBancos(TxtBanco.Text.Trim, TxtEjecutivo.Text.Trim, TxtTelefono.Text.Trim, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveSATBanco:=DdlSatBanco.SelectedValue.ToEntero) Then
|
||||||
|
DdlSatBanco.SelectedValueExist(-1)
|
||||||
TxtBanco.Text = ""
|
TxtBanco.Text = ""
|
||||||
TxtEjecutivo.Text = ""
|
TxtEjecutivo.Text = ""
|
||||||
TxtTelefono.Text = ""
|
TxtTelefono.Text = ""
|
||||||
@@ -68,24 +99,42 @@ Partial Class Bancos_CatBancos
|
|||||||
|
|
||||||
#Region "G V D A T O S"
|
#Region "G V D A T O S"
|
||||||
Protected Sub GvDatos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatos.RowDataBound
|
Protected Sub GvDatos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatos.RowDataBound
|
||||||
|
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
|
|
||||||
If e.Row.RowIndex = 0 Then
|
If e.Row.RowIndex = 0 Then
|
||||||
e.Row.Cells(0).Width = Unit.Pixel(156) 'BANCO
|
e.Row.Cells(0).Width = Unit.Pixel(156) 'BANCO SAT
|
||||||
e.Row.Cells(1).Width = Unit.Pixel(206) 'EJECUTIVO
|
e.Row.Cells(1).Width = Unit.Pixel(156) 'BANCO
|
||||||
e.Row.Cells(2).Width = Unit.Pixel(106) 'TELEFONO
|
e.Row.Cells(2).Width = Unit.Pixel(206) 'EJECUTIVO
|
||||||
e.Row.Cells(3).Width = Unit.Pixel(95) 'ESTATUS
|
e.Row.Cells(3).Width = Unit.Pixel(106) 'TELEFONO
|
||||||
e.Row.Cells(4).Width = Unit.Pixel(95) 'FECHA
|
e.Row.Cells(4).Width = Unit.Pixel(95) 'ESTATUS
|
||||||
e.Row.Cells(5).Width = Unit.Pixel(100) 'USUARIO
|
e.Row.Cells(5).Width = Unit.Pixel(95) 'FECHA
|
||||||
e.Row.Cells(6).Width = Unit.Pixel(100) 'EDITAR
|
e.Row.Cells(6).Width = Unit.Pixel(100) 'USUARIO
|
||||||
e.Row.Cells(7).Width = Unit.Pixel(65) 'ELIMINAR
|
e.Row.Cells(7).Width = Unit.Pixel(65) 'EDITAR
|
||||||
|
e.Row.Cells(8).Width = Unit.Pixel(65) 'ELIMINAR
|
||||||
End If
|
End If
|
||||||
|
|
||||||
e.Row.Cells(0).HorizontalAlign = HorizontalAlign.Left
|
e.Row.Cells(0).HorizontalAlign = HorizontalAlign.Left
|
||||||
e.Row.Cells(3).HorizontalAlign = HorizontalAlign.Center
|
e.Row.Cells(1).HorizontalAlign = HorizontalAlign.Left
|
||||||
e.Row.Cells(4).HorizontalAlign = HorizontalAlign.Center
|
e.Row.Cells(4).HorizontalAlign = HorizontalAlign.Center
|
||||||
e.Row.Cells(5).HorizontalAlign = HorizontalAlign.Center
|
e.Row.Cells(5).HorizontalAlign = HorizontalAlign.Center
|
||||||
e.Row.Cells(6).HorizontalAlign = HorizontalAlign.Center
|
e.Row.Cells(6).HorizontalAlign = HorizontalAlign.Center
|
||||||
e.Row.Cells(7).HorizontalAlign = HorizontalAlign.Center
|
'e.Row.Cells(7).HorizontalAlign = HorizontalAlign.Center
|
||||||
|
e.Row.Cells(8).HorizontalAlign = HorizontalAlign.Center
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If (e.Row.RowState And DataControlRowState.Edit) = DataControlRowState.Edit Then
|
||||||
|
Dim DdlSatBanco As DropDownList = e.Row.FCDropDownList("DdlSatBanco")
|
||||||
|
DdlSatBanco.ClearSelection()
|
||||||
|
DdlSatBanco.SelectedValue = Nothing
|
||||||
|
DdlSatBanco.Items.Clear()
|
||||||
|
DdlSatBanco.DataSource = DTBancosSAT
|
||||||
|
DdlSatBanco.DataBind()
|
||||||
|
DdlSatBanco.Items.Insert(0, New ListItem("Seleccione uno", "-1"))
|
||||||
|
DdlSatBanco.SelectedValueExist(e.Row.DataKey("CveSATBanco").ToString())
|
||||||
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub GvDatos_RowDeleting(sender As Object, e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles GvDatos.RowDeleting
|
Protected Sub GvDatos_RowDeleting(sender As Object, e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles GvDatos.RowDeleting
|
||||||
@@ -126,19 +175,16 @@ Partial Class Bancos_CatBancos
|
|||||||
Dim Telefono As String = DirectCast(GvDatos.Rows(e.RowIndex).FindControl("TxtTelefono"), TextBox).Text.Trim
|
Dim Telefono As String = DirectCast(GvDatos.Rows(e.RowIndex).FindControl("TxtTelefono"), TextBox).Text.Trim
|
||||||
Dim Estatus As Boolean = GvDatos.Rows(e.RowIndex).FCCheckBox("ChkEstatus").Checked
|
Dim Estatus As Boolean = GvDatos.Rows(e.RowIndex).FCCheckBox("ChkEstatus").Checked
|
||||||
Dim CveBanco As Integer = GvDatos.DataKeys(e.RowIndex).Value.ToString.ToEntero
|
Dim CveBanco As Integer = GvDatos.DataKeys(e.RowIndex).Value.ToString.ToEntero
|
||||||
|
Dim CveSATBanco As Integer = GvDatos.Rows(e.RowIndex).FCDropDownList("DdlSatBanco").SelectedValue.ToEntero
|
||||||
|
|
||||||
Dim TieneError As Boolean = False
|
Dim TieneError As Boolean = False
|
||||||
|
|
||||||
If ObjBancos.UpdateBancos(Banco, Ejecutivo, Telefono, Estatus, CveBanco) Then
|
If ObjBancos.UpdateBancos(Banco, Ejecutivo, Telefono, Estatus, CveBanco, CveSATBanco:=CveSATBanco) Then
|
||||||
If ObjBancos.InhabilitarCuentasBancos(CveBanco, Estatus) Then
|
|
||||||
GvDatos.EditIndex = -1
|
If Not ObjBancos.InhabilitarCuentasBancos(CveBanco, Estatus) Then
|
||||||
ViewState("DTBancos") = ObjBancos.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
|
|
||||||
DtBan = ObjBancos.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
|
|
||||||
GlobalDTBancos = ObjBancos.DtResultados
|
|
||||||
Alert("Los cambios se guardaron correctamente.", TipoMensaje.MsgInformacion)
|
|
||||||
Else
|
|
||||||
TieneError = True
|
TieneError = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
TieneError = True
|
TieneError = True
|
||||||
End If
|
End If
|
||||||
@@ -152,12 +198,24 @@ Partial Class Bancos_CatBancos
|
|||||||
|
|
||||||
ObjBancos.Dispose()
|
ObjBancos.Dispose()
|
||||||
|
|
||||||
If ViewState("Orden").ToString() <> String.Empty Then
|
If Not TieneError Then
|
||||||
CargaGrid(ViewState("Orden").ToString())
|
|
||||||
Else
|
GvDatos.EditIndex = -1
|
||||||
CargaGrid("")
|
CargaDatos()
|
||||||
|
GlobalDTBancos = Nothing
|
||||||
|
Alert("Los cambios se guardaron correctamente.", TipoMensaje.MsgInformacion)
|
||||||
|
|
||||||
|
If ViewState("Orden").ToString() <> String.Empty Then
|
||||||
|
CargaGrid(ViewState("Orden").ToString())
|
||||||
|
Else
|
||||||
|
CargaGrid("")
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub GvDatos_RowEditing(sender As Object, e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles GvDatos.RowEditing
|
Protected Sub GvDatos_RowEditing(sender As Object, e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles GvDatos.RowEditing
|
||||||
|
|||||||
@@ -1284,6 +1284,7 @@ Partial Class Bancos_IE
|
|||||||
ViewState("CveCliente") = "-1"
|
ViewState("CveCliente") = "-1"
|
||||||
|
|
||||||
CargaProveedor(HdnCveProveedor.Value.ToEntero, "-1")
|
CargaProveedor(HdnCveProveedor.Value.ToEntero, "-1")
|
||||||
|
CargaCuentasDepositos()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaProveedor(ByVal CveProveedor As Integer, RFC As String)
|
Private Sub CargaProveedor(ByVal CveProveedor As Integer, RFC As String)
|
||||||
@@ -4098,11 +4099,17 @@ Partial Class Bancos_IE
|
|||||||
|
|
||||||
Dim dtc As DataTable = Nothing
|
Dim dtc As DataTable = Nothing
|
||||||
|
|
||||||
If CveProveedor > 0 Then
|
Dim CveProveedorTemp As Integer = CveProveedor
|
||||||
dtc = GlobalDTProveedoresCuentas(UsuarioActual.CveEmpresa, CveProveedor:=CveProveedor)
|
|
||||||
|
If DdlProveedores.SelectedValue.ToEntero > 0 Then
|
||||||
|
CveProveedorTemp = DdlProveedores.SelectedValue.ToEntero
|
||||||
|
End If
|
||||||
|
|
||||||
|
If CveProveedorTemp > 0 Then
|
||||||
|
dtc = GlobalDTProveedoresCuentas(UsuarioActual.CveEmpresa, CveProveedor:=CveProveedorTemp)
|
||||||
ElseIf CveCliente > 0 Then
|
ElseIf CveCliente > 0 Then
|
||||||
dtc = GlobalDTCuentasDepositosClientes(UsuarioActual.CveEmpresa, CveCliente:=CveCliente)
|
dtc = GlobalDTCuentasDepositosClientes(UsuarioActual.CveEmpresa, CveCliente:=CveCliente)
|
||||||
ElseIf cvepersonal > 0 Then
|
ElseIf CvePersonal > 0 Then
|
||||||
dtc = GlobalDTCuentasDepositosPersonales(UsuarioActual.CveEmpresa, CvePersonal:=CvePersonal)
|
dtc = GlobalDTCuentasDepositosPersonales(UsuarioActual.CveEmpresa, CvePersonal:=CvePersonal)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -4216,14 +4223,14 @@ Partial Class Bancos_IE
|
|||||||
|
|
||||||
ElseIf OpBanco = 3 Then
|
ElseIf OpBanco = 3 Then
|
||||||
If dtc.Rows.Count > 0 Then
|
If dtc.Rows.Count > 0 Then
|
||||||
DdlCuentaDeposito.DataSource = dtc.FiltraParametros("EstatusPagoElectronicoScotia = 'True' AND Estatus ='True'")
|
DdlCuentaDeposito.DataSource = dtc.FiltraParametros(" Estatus ='True'")
|
||||||
DdlCuentaDeposito.DataBind()
|
DdlCuentaDeposito.DataBind()
|
||||||
DdlCuentaDeposito.Items.Insert(0, New ListItem("Seleccione una cuenta", "-1"))
|
DdlCuentaDeposito.Items.Insert(0, New ListItem("Seleccione una cuenta", "-1"))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If dtc.FiltraParametros("EstatusPagoElectronicoScotia = 'True' AND Estatus ='True'").Rows.Count > 0 Then
|
If dtc.FiltraParametros(" Estatus ='True'").Rows.Count > 0 Then
|
||||||
trCuentaDeposito.Visible = True
|
trCuentaDeposito.Visible = True
|
||||||
DdlCuentaDeposito.Items.Insert(0, New ListItem("Seleccione una cuenta", "-1"))
|
'DdlCuentaDeposito.Items.Insert(0, New ListItem("Seleccione una cuenta", "-1"))
|
||||||
Else
|
Else
|
||||||
BtnGuardar.Enabled = False
|
BtnGuardar.Enabled = False
|
||||||
Alert("El Beneficiario no tiene una cuenta activa en Scotiabank, dela de alta o seleccione otro método de pago", TipoMensaje.MsgAdvertencia)
|
Alert("El Beneficiario no tiene una cuenta activa en Scotiabank, dela de alta o seleccione otro método de pago", TipoMensaje.MsgAdvertencia)
|
||||||
@@ -4265,6 +4272,19 @@ Partial Class Bancos_IE
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If Request("Opcion") IsNot Nothing AndAlso Request("Opcion").ToString.Contiene("EGSSINFACT", "EGSCREDITO") Then
|
||||||
|
If DdlTipoTransaccion.SelectedValue.Contiene("9") AndAlso OpBanco = 3 Then
|
||||||
|
RBL.Items(1).Enabled = False
|
||||||
|
RBL.Items(2).Enabled = False
|
||||||
|
Else
|
||||||
|
RBL.Items(1).Enabled = True
|
||||||
|
RBL.Items(2).Enabled = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
UPPP.Update()
|
||||||
UpGuardar.Update()
|
UpGuardar.Update()
|
||||||
UpCuentaDeposito.Update()
|
UpCuentaDeposito.Update()
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
@@ -4500,6 +4520,7 @@ Partial Class Bancos_IE
|
|||||||
DdlProveedores_selectedindexchange(DdlProveedores, Nothing)
|
DdlProveedores_selectedindexchange(DdlProveedores, Nothing)
|
||||||
DdlProveedores.SelectedText = RazonSocial
|
DdlProveedores.SelectedText = RazonSocial
|
||||||
' BuscaCargaProveedor()
|
' BuscaCargaProveedor()
|
||||||
|
|
||||||
End If
|
End If
|
||||||
CveOCSolicitudAnticipo = DrOC("CveOC").ToString.ToEntero
|
CveOCSolicitudAnticipo = DrOC("CveOC").ToString.ToEntero
|
||||||
Else
|
Else
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<asp:UpdatePanel runat="server" ID="UpComandosGeneracion" UpdateMode="Conditional">
|
<asp:UpdatePanel runat="server" ID="UpComandosGeneracion" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="portlet light smmallpadding bordered">
|
<div class="portlet light xspadding bordered">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption font-green">
|
<div class="caption font-green">
|
||||||
<i class="icon-pin font-green"></i>
|
<i class="icon-pin font-green"></i>
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
<div class="row" style="margin-left: 0px; margin-right: 0px;">
|
<div class="row" style="margin-left: 0px; margin-right: 0px;">
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="portlet light smmallpadding bordered">
|
<div class="portlet light xspadding bordered">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption font-green">
|
<div class="caption font-green">
|
||||||
<i class="icon-pin font-green"></i>
|
<i class="icon-pin font-green"></i>
|
||||||
@@ -127,7 +127,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="portlet light smmallpadding bordered">
|
<div class="portlet light xspadding bordered">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption font-green">
|
<div class="caption font-green">
|
||||||
<i class="icon-pin font-green"></i>
|
<i class="icon-pin font-green"></i>
|
||||||
@@ -178,7 +178,7 @@
|
|||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|
||||||
<div class="portlet light smmallpadding bordered">
|
<div class="portlet light xspadding bordered">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption font-green">
|
<div class="caption font-green">
|
||||||
<i class="icon-pin font-green"></i>
|
<i class="icon-pin font-green"></i>
|
||||||
|
|||||||
@@ -277,6 +277,8 @@ Partial Class Bancos_PagoElectronico
|
|||||||
|
|
||||||
If DTPendientes IsNot Nothing AndAlso DTPendientes.Rows.Count > 0 Then
|
If DTPendientes IsNot Nothing AndAlso DTPendientes.Rows.Count > 0 Then
|
||||||
CargaDatosInformativos()
|
CargaDatosInformativos()
|
||||||
|
Else
|
||||||
|
VistaComandoGeneracion()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
@@ -946,7 +948,7 @@ Partial Class Bancos_PagoElectronico
|
|||||||
|
|
||||||
Dim correo As String = dr("Correo").ToString.Trim
|
Dim correo As String = dr("Correo").ToString.Trim
|
||||||
If correo.Trim.Length = 0 Then
|
If correo.Trim.Length = 0 Then
|
||||||
SBErrores.Append($"Email no definido en fila {idx + 1}. Debe ser un correo electrónico válido.<br>")
|
SBErrores.Append($" {nombreBen} Email no definido en fila {idx + 1}. Debe ser un correo electrónico válido.<br>")
|
||||||
ErrorLayout = True
|
ErrorLayout = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
@@ -2037,15 +2037,15 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
|
|
||||||
'Motivo de pago
|
'Motivo de pago
|
||||||
If drow("Observaciones").ToString.Trim.Length > 30 Then
|
If drow("Observaciones").ToString.Trim.Length > 30 Then
|
||||||
RegistrosPago.Append(drow("Observaciones").ToString.Substring(0, 30))
|
RegistrosPago.Append(drow("Observaciones").ToString.Trim.Substring(0, 30))
|
||||||
Else
|
Else
|
||||||
RegistrosPago.Append(drow("Observaciones").ToString.PadRight(30, EspacioRelleno))
|
RegistrosPago.Append(drow("Observaciones").ToString.Trim.PadRight(30, EspacioRelleno))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If drow("Referencia").ToString.Trim.Length > 7 Then
|
If drow("Referencia").ToString.Trim.Length > 7 Then
|
||||||
RegistrosPago.Append(drow("Referencia").ToString.Substring(0, 7))
|
RegistrosPago.Append(drow("Referencia").ToString.Trim.Substring(0, 7))
|
||||||
Else
|
Else
|
||||||
RegistrosPago.Append(drow("Referencia").ToString.PadRight(7, EspacioRelleno))
|
RegistrosPago.Append(drow("Referencia").ToString.Trim.PadRight(7, EspacioRelleno))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
RegistrosPago.Append("H")
|
RegistrosPago.Append("H")
|
||||||
|
|||||||
@@ -5042,7 +5042,7 @@
|
|||||||
<asp:BoundField HeaderText="Producto" DataField="CodigoPS" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="30%" />
|
<asp:BoundField HeaderText="Producto" DataField="CodigoPS" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="30%" />
|
||||||
<asp:TemplateField HeaderText="P.U." ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%">
|
<asp:TemplateField HeaderText="P.U." ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Textbox ID="TxtPU" Width="60px" Text='<%# Eval("PU", "{0:N2}") %>' CssClass="textaslabel" runat="server"></asp:Textbox>
|
<asp:Textbox ID="TxtPU" Width="60px" Text='<%# Eval("PU", "{0:N5}") %>' CssClass="textaslabel" runat="server"></asp:Textbox>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%">
|
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%">
|
||||||
|
|||||||
@@ -15524,6 +15524,9 @@ Partial Class Compras_Compras
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
Dim ivaPorcentaje As Decimal = DTOCGV.MAX("IVAPorcentaje").ToDecimal
|
||||||
|
Dim IVAPorcentajeTmp As Decimal = TmpDT.MAX("IVAPorcentaje").ToDecimal
|
||||||
|
|
||||||
If DTOCGV.MAX("IVAPorcentaje").ToDecimal <> TmpDT.MAX("IVAPorcentaje").ToDecimal Then
|
If DTOCGV.MAX("IVAPorcentaje").ToDecimal <> TmpDT.MAX("IVAPorcentaje").ToDecimal Then
|
||||||
Alert("La orden de compra(s) tiene diferentes tasa de IVA.", TipoMensaje.MsgAdvertencia)
|
Alert("La orden de compra(s) tiene diferentes tasa de IVA.", TipoMensaje.MsgAdvertencia)
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -5890,7 +5890,14 @@ Partial Class Compras_Proveedores
|
|||||||
|
|
||||||
|
|
||||||
Private Sub CargaTipoTransaccion()
|
Private Sub CargaTipoTransaccion()
|
||||||
|
|
||||||
|
|
||||||
|
If GlobalDTDIOTTipoOperacion IsNot Nothing AndAlso GlobalDTDIOTTipoOperacion.Rows.Count = 0 Then
|
||||||
|
GlobalDTDIOTTipoOperacion = Nothing
|
||||||
|
End If
|
||||||
|
|
||||||
Dim Filtro As String = ""
|
Dim Filtro As String = ""
|
||||||
|
|
||||||
Select Case DDlDIOTTipoTercero.SelectedValue
|
Select Case DDlDIOTTipoTercero.SelectedValue
|
||||||
Case "1"
|
Case "1"
|
||||||
Filtro = "AplicaProvNacional = 1"
|
Filtro = "AplicaProvNacional = 1"
|
||||||
@@ -5900,8 +5907,11 @@ Partial Class Compras_Proveedores
|
|||||||
Filtro = "AplicaProvGlobal = 1"
|
Filtro = "AplicaProvGlobal = 1"
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
|
GlobalDTDIOTTipoOperacion.FiltraParametros(Filtro)
|
||||||
|
|
||||||
DdlDIOTTipoOperacion.DataSource = GlobalDTDIOTTipoOperacion.FiltraParametros(Filtro)
|
DdlDIOTTipoOperacion.DataSource = GlobalDTDIOTTipoOperacion.FiltraParametros(Filtro)
|
||||||
DdlDIOTTipoOperacion.DataBind()
|
DdlDIOTTipoOperacion.DataBind()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -695,6 +695,7 @@
|
|||||||
<asp:HiddenField ID="HdnCompraIdPoliza" runat="server" Value='<%# Eval("CompraIdPoliza")%>' />
|
<asp:HiddenField ID="HdnCompraIdPoliza" runat="server" Value='<%# Eval("CompraIdPoliza")%>' />
|
||||||
<asp:HiddenField ID="HdnIdSegNeg" runat="server" Value='<%# Eval("IdSegNeg")%>' />
|
<asp:HiddenField ID="HdnIdSegNeg" runat="server" Value='<%# Eval("IdSegNeg")%>' />
|
||||||
<asp:HiddenField ID="HdnPorcentajeIVA" runat="server" Value='<%# Eval("PorcentajeIVA")%>' />
|
<asp:HiddenField ID="HdnPorcentajeIVA" runat="server" Value='<%# Eval("PorcentajeIVA")%>' />
|
||||||
|
<asp:HiddenField ID="HdnCveMonedaCompra" runat="server" Value='<%# Eval("CveMonedaCompra")%>' />
|
||||||
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" runat="server" id="TbCompra">
|
<table width="100%" cellpadding="0" cellspacing="0" runat="server" id="TbCompra">
|
||||||
<tr class="SubTotales">
|
<tr class="SubTotales">
|
||||||
|
|||||||
@@ -23,6 +23,12 @@
|
|||||||
<asp:UpdatePanel ID="UpFactura" runat="server">
|
<asp:UpdatePanel ID="UpFactura" runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div style="display: flex; align-items: center; gap: 10px; width: 100%;">
|
<div style="display: flex; align-items: center; gap: 10px; width: 100%;">
|
||||||
|
<div class="form-group form-md-line-input input-iconright" style="width: 200px;">
|
||||||
|
<asp:DropDownList ID="DdlSubProyecto" CssClass="form-control select2me" AppendDataBoundItems="true" Style="width: 100%;" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto"></asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVSubP" runat="server" ControlToValidate="DdlSubProyecto" Display="None" InitialValue="-1" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Sub Proyecto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCESubP" runat="server" HighlightCssClass="vco" TargetControlID="RFVSubP" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
<label for="<%= DdlSubProyecto.ClientID.ToString()%>">Sub Proyecto:</label>
|
||||||
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright" style="width: 200px;">
|
<div class="form-group form-md-line-input input-iconright" style="width: 200px;">
|
||||||
<asp:DropDownList ID="DdlVentas" CssClass="form-control select2me" AppendDataBoundItems="true" Style="width: 100%;" runat="server" DataTextField="Folio" DataValueField="CveVenta" AutoPostBack="true" OnSelectedIndexChanged="DdlVentas_SelectedIndexChanged"></asp:DropDownList>
|
<asp:DropDownList ID="DdlVentas" CssClass="form-control select2me" AppendDataBoundItems="true" Style="width: 100%;" runat="server" DataTextField="Folio" DataValueField="CveVenta" AutoPostBack="true" OnSelectedIndexChanged="DdlVentas_SelectedIndexChanged"></asp:DropDownList>
|
||||||
<label for="<%= DdlVentas.ClientID.ToString()%>">Número de Factura:</label>
|
<label for="<%= DdlVentas.ClientID.ToString()%>">Número de Factura:</label>
|
||||||
@@ -41,7 +47,7 @@
|
|||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator ID="RFVTipoExp" runat="server" ControlToValidate="DdlTipoExp" Display="None" InitialValue="-1" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Exportación''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVTipoExp" runat="server" ControlToValidate="DdlTipoExp" Display="None" InitialValue="-1" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Exportación''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCETipoExp" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoExp" Width="350px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCETipoExp" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoExp" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
<label for="<%= DdlTipoExp.ClientID.ToString()%>">Tipo Exportación:</label>
|
<label id="LblTipoExp" runat="server" for="<%= DdlTipoExp.ClientID.ToString()%>">Tipo Exportación:</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright" style="width: 180px; margin-bottom: 5px;">
|
<div class="form-group form-md-line-input input-iconright" style="width: 180px; margin-bottom: 5px;">
|
||||||
<asp:DropDownList ID="DdlExpEstatus" runat="server" CssClass="select2me form-control">
|
<asp:DropDownList ID="DdlExpEstatus" runat="server" CssClass="select2me form-control">
|
||||||
@@ -209,6 +215,14 @@
|
|||||||
<ajax:ValidatorCalloutExtender ID="VCEDirExp" runat="server" HighlightCssClass="vco" TargetControlID="RFVDirExp" Width="350px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCEDirExp" runat="server" HighlightCssClass="vco" TargetControlID="RFVDirExp" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group row" style="width: 100%;">
|
||||||
|
<asp:Label runat="server" CssClass="col-sm-4" Text="Clave Dir. Importador:"></asp:Label>
|
||||||
|
<div class="whitoutcol whitoutcol" style="width: 300px;">
|
||||||
|
<asp:DropDownList ID="DdlDirImp" CssClass="form-control select2me" AppendDataBoundItems="true" Style="width: 100%;" runat="server" DataTextField="Direccion" DataValueField="CveProveedorSucursal"></asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVDirImp" runat="server" ControlToValidate="DdlDirImp" Display="None" InitialValue="-1" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Clave Dir. Importador''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCEDirImp" runat="server" HighlightCssClass="vco" TargetControlID="RFVDirImp" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group row" style="width: 100%;">
|
<div class="form-group row" style="width: 100%;">
|
||||||
<asp:Label runat="server" CssClass="col-sm-4" Text="Clave Dir. Consignatario:"></asp:Label>
|
<asp:Label runat="server" CssClass="col-sm-4" Text="Clave Dir. Consignatario:"></asp:Label>
|
||||||
<div class="whitoutcol whitoutcol" style="width: 300px;">
|
<div class="whitoutcol whitoutcol" style="width: 300px;">
|
||||||
@@ -340,8 +354,9 @@
|
|||||||
<div class="portlet-body form-horizontal form-row-sepe formnombottom" style="padding-left:8px">
|
<div class="portlet-body form-horizontal form-row-sepe formnombottom" style="padding-left:8px">
|
||||||
<div class="form-group row" style="width: 100%;">
|
<div class="form-group row" style="width: 100%;">
|
||||||
<asp:Label runat="server" CssClass="col-sm-4" Text="Descripción Contenedor:"></asp:Label>
|
<asp:Label runat="server" CssClass="col-sm-4" Text="Descripción Contenedor:"></asp:Label>
|
||||||
<div class="whitoutcol whitoutcol" style="width: 300px;">
|
<div class="form-group form-md-line-input linewhitsize" style="width: 300px;">
|
||||||
<asp:DropDownList ID="DdlDescContenedor" CssClass="form-control select2me" AppendDataBoundItems="true" Style="width: 100%;" runat="server" DataTextField="" DataValueField=""></asp:DropDownList>
|
<asp:TextBox ID="TxtDescContenedor" runat="server" CssClass="form-control input-sm" MaxLength="50" Width="100%" Text=""></asp:TextBox>
|
||||||
|
<label for="<%= TxtDescContenedor.ClientID.ToString()%>"></label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row" style="width: 100%;">
|
<div class="form-group row" style="width: 100%;">
|
||||||
@@ -616,81 +631,88 @@
|
|||||||
<asp:Button runat="server" ID="BtnAgregarPartida" OnClick="BtnAgregarPartida_Click" Text="Agregar Partida" CssClass="btn btn-primary" style="margin-top: 5px;" />
|
<asp:Button runat="server" ID="BtnAgregarPartida" OnClick="BtnAgregarPartida_Click" Text="Agregar Partida" CssClass="btn btn-primary" style="margin-top: 5px;" />
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<asp:GridView ID="GVPartidas" runat="server" data-sort="true" AutoGenerateColumns="False" DataKeyNames="CveExportacionDetalle" OnRowCommand="GVPartidas_RowCommand" ShowFooter="true" OnRowDataBound="GVPartidas_RowDataBound" Width="100%" EmptyDataText="No se encontraron Partidas" ToolTip="Partidas" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" GridLines="None">
|
<div style="overflow-x: auto; width: 1235px;">
|
||||||
<Columns>
|
<asp:GridView ID="GVPartidas" runat="server" data-sort="true" AutoGenerateColumns="False" DataKeyNames="CveExportacionDetalle" OnRowCommand="GVPartidas_RowCommand" ShowFooter="true" OnRowDataBound="GVPartidas_RowDataBound" Width="100%" EmptyDataText="No se encontraron Partidas" ToolTip="Partidas" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" GridLines="None">
|
||||||
<%--asp:TemplateField HeaderText="Id" ItemStyle-HorizontalAlign="Left">
|
<Columns>
|
||||||
<ItemTemplate>
|
<%--asp:TemplateField HeaderText="Id" ItemStyle-HorizontalAlign="Left">
|
||||||
<asp:LinkButton ID="LnkExpDetalle" runat="server" Text='<%# Eval("CveExportacionDetalle") %>' CommandName="EditarPartida" CommandArgument='<%# Eval("CveExportacionDetalle") %>'></asp:LinkButton>
|
<ItemTemplate>
|
||||||
</ItemTemplate>
|
<asp:LinkButton ID="LnkExpDetalle" runat="server" Text='<%# Eval("CveExportacionDetalle") %>' CommandName="EditarPartida" CommandArgument='<%# Eval("CveExportacionDetalle") %>'></asp:LinkButton>
|
||||||
</asp:TemplateField--%>
|
</ItemTemplate>
|
||||||
<asp:TemplateField HeaderText="Producto / Servicio" ItemStyle-HorizontalAlign="Left">
|
</asp:TemplateField--%>
|
||||||
<ItemTemplate>
|
<asp:TemplateField HeaderText="Producto / Servicio" ItemStyle-HorizontalAlign="Left">
|
||||||
<asp:Label ID="lblPS" runat="server" Text='<%# Eval("PSCodigo")%>'> </asp:Label>
|
<ItemTemplate>
|
||||||
</ItemTemplate>
|
<asp:Label ID="lblPS" runat="server" Text='<%# Eval("PSCodigo")%>'> </asp:Label>
|
||||||
</asp:TemplateField>
|
</ItemTemplate>
|
||||||
<asp:TemplateField HeaderText="País de Origen" ItemStyle-HorizontalAlign="Left">
|
</asp:TemplateField>
|
||||||
<ItemTemplate>
|
<asp:TemplateField HeaderText="País de Origen" ItemStyle-HorizontalAlign="Left">
|
||||||
<asp:Label ID="lblPaisOrigen" runat="server" Text='<%# Eval("ClaveSATPais")%>'> </asp:Label>
|
<ItemTemplate>
|
||||||
</ItemTemplate>
|
<asp:Label ID="lblPaisOrigen" runat="server" Text='<%# Eval("ClaveSATPais")%>'> </asp:Label>
|
||||||
</asp:TemplateField>
|
</ItemTemplate>
|
||||||
<asp:TemplateField HeaderText="Unidad de Medida" ItemStyle-HorizontalAlign="Left">
|
</asp:TemplateField>
|
||||||
<ItemTemplate>
|
<asp:TemplateField HeaderText="Unidad de Medida" ItemStyle-HorizontalAlign="Left">
|
||||||
<asp:Label ID="lblUM" runat="server" Text='<%# Eval("UnidadMedida")%>'> </asp:Label>
|
<ItemTemplate>
|
||||||
</ItemTemplate>
|
<asp:Label ID="lblUM" runat="server" Text='<%# Eval("UnidadMedida")%>'> </asp:Label>
|
||||||
</asp:TemplateField>
|
</ItemTemplate>
|
||||||
<asp:TemplateField HeaderText="Valor Total USD" ItemStyle-HorizontalAlign="Left">
|
</asp:TemplateField>
|
||||||
<ItemTemplate>
|
<asp:TemplateField HeaderText="Valor Total USD" ItemStyle-HorizontalAlign="Right">
|
||||||
<asp:Label ID="lblPrecio" runat="server" Text='<%# Eval("Precio", "{0:#,###.####}")%>'> </asp:Label>
|
<ItemTemplate>
|
||||||
</ItemTemplate>
|
<asp:Label ID="lblPrecio" runat="server" Text='<%# Eval("Precio", "{0:N2}")%>'> </asp:Label>
|
||||||
</asp:TemplateField>
|
</ItemTemplate>
|
||||||
<asp:TemplateField HeaderText="Valor Total MXP" ItemStyle-HorizontalAlign="Left">
|
</asp:TemplateField>
|
||||||
<ItemTemplate>
|
<asp:TemplateField HeaderText="Valor Total MXP" ItemStyle-HorizontalAlign="Right">
|
||||||
<asp:Label ID="lblValorTotalMXP" runat="server" Text='<%# Eval("ValorTotalMXP", "{0:#,###.####}")%>'> </asp:Label>
|
<ItemTemplate>
|
||||||
</ItemTemplate>
|
<asp:Label ID="lblValorTotalMXP" runat="server" Text='<%# Eval("ValorTotalMXP", "{0:N2}")%>'> </asp:Label>
|
||||||
</asp:TemplateField>
|
</ItemTemplate>
|
||||||
<asp:TemplateField HeaderText="Total de Empaque" ItemStyle-HorizontalAlign="Left">
|
</asp:TemplateField>
|
||||||
<ItemTemplate>
|
<asp:TemplateField HeaderText="Tasa IVA" ItemStyle-HorizontalAlign="Right">
|
||||||
<asp:Label ID="lblTotalEmpaque" runat="server" Text='<%# Eval("Cantidad", "{0:#,###.####}")%>'> </asp:Label>
|
<ItemTemplate>
|
||||||
</ItemTemplate>
|
<asp:Label ID="lblTasaIVA" runat="server" Text='<%# Eval("IVA") %>'></asp:Label>
|
||||||
</asp:TemplateField>
|
</ItemTemplate>
|
||||||
<asp:TemplateField HeaderText="Fracción Arancelaria" ItemStyle-HorizontalAlign="Left">
|
</asp:TemplateField>
|
||||||
<ItemTemplate>
|
<asp:TemplateField HeaderText="Total de Empaque" ItemStyle-HorizontalAlign="Left">
|
||||||
<asp:Label ID="lblFraccAran" runat="server" Text='<%# Eval("FraccionArancelaria")%>'> </asp:Label>
|
<ItemTemplate>
|
||||||
</ItemTemplate>
|
<asp:Label ID="lblTotalEmpaque" runat="server" Text='<%# Eval("Cantidad", "{0:#,###.####}")%>'> </asp:Label>
|
||||||
</asp:TemplateField>
|
</ItemTemplate>
|
||||||
<asp:TemplateField HeaderText="Unidad Aduana" ItemStyle-HorizontalAlign="Left">
|
</asp:TemplateField>
|
||||||
<ItemTemplate>
|
<asp:TemplateField HeaderText="Fracción Arancelaria" ItemStyle-HorizontalAlign="Left">
|
||||||
<asp:Label ID="lblUnidadAduana" runat="server" Text='<%# Eval("UnidadAduana")%>'> </asp:Label>
|
<ItemTemplate>
|
||||||
</ItemTemplate>
|
<asp:Label ID="lblFraccAran" runat="server" Text='<%# Eval("FraccionArancelaria")%>'> </asp:Label>
|
||||||
</asp:TemplateField>
|
</ItemTemplate>
|
||||||
<asp:TemplateField HeaderText="Cantidad Exportada" ItemStyle-HorizontalAlign="Left">
|
</asp:TemplateField>
|
||||||
<ItemTemplate>
|
<asp:TemplateField HeaderText="Unidad Aduana" ItemStyle-HorizontalAlign="Left">
|
||||||
<asp:Label ID="lblCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:#,###.####}")%>'> </asp:Label>
|
<ItemTemplate>
|
||||||
</ItemTemplate>
|
<asp:Label ID="lblUnidadAduana" runat="server" Text='<%# Eval("UnidadAduana")%>'> </asp:Label>
|
||||||
</asp:TemplateField>
|
</ItemTemplate>
|
||||||
<asp:TemplateField HeaderText="Peso Unit. KG" ItemStyle-HorizontalAlign="Left">
|
</asp:TemplateField>
|
||||||
<ItemTemplate>
|
<asp:TemplateField HeaderText="Cantidad Exportada" ItemStyle-HorizontalAlign="Left">
|
||||||
<asp:Label ID="lblPesoUnitario" runat="server" Text='<%# Eval("PesoUnitario", "{0:#,###.####}")%>'> </asp:Label>
|
<ItemTemplate>
|
||||||
</ItemTemplate>
|
<asp:Label ID="lblCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:#,###.####}")%>'> </asp:Label>
|
||||||
</asp:TemplateField>
|
</ItemTemplate>
|
||||||
<asp:TemplateField HeaderText="Peso Bruto" ItemStyle-HorizontalAlign="Left">
|
</asp:TemplateField>
|
||||||
<ItemTemplate>
|
<asp:TemplateField HeaderText="Peso Unit. KG" ItemStyle-HorizontalAlign="Left">
|
||||||
<asp:Label ID="lblPesoBruto" runat="server" Text='<%# Eval("PesoBruto", "{0:#,###.####}")%>'> </asp:Label>
|
<ItemTemplate>
|
||||||
</ItemTemplate>
|
<asp:Label ID="lblPesoUnitario" runat="server" Text='<%# Eval("PesoUnitario", "{0:#,###.####}")%>'> </asp:Label>
|
||||||
</asp:TemplateField>
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Peso Bruto" ItemStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblPesoBruto" runat="server" Text='<%# Eval("PesoBruto", "{0:#,###.####}")%>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Editar" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px">
|
<asp:TemplateField HeaderText="Editar" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:LinkButton data-toggle="tooltip" title="Editar" ID="LnkEditarPartida" CommandName="EditarPartida" CommandArgument='<%# Eval("CveExportacionDetalle") %>' CssClass="btn btn-circle btn-sm green" runat="server" Text="<i class='fa fa-pencil'></i>"></asp:LinkButton>
|
<asp:LinkButton data-toggle="tooltip" title="Editar" ID="LnkEditarPartida" CommandName="EditarPartida" CommandArgument='<%# Eval("CveExportacionDetalle") %>' CssClass="btn btn-circle btn-sm green" runat="server" Text="<i class='fa fa-pencil'></i>"></asp:LinkButton>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Eliminar" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px">
|
<asp:TemplateField HeaderText="Eliminar" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:LinkButton ID="LnkEliminarPartida" runat="server" CommandName="EliminarPartida" CommandArgument='<%# Eval("CveExportacionDetalle") %>' CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar la Partida?" data-btn-ok-label="Sí" />
|
<asp:LinkButton ID="LnkEliminarPartida" runat="server" CommandName="EliminarPartida" CommandArgument='<%# Eval("CveExportacionDetalle") %>' CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar la Partida?" data-btn-ok-label="Sí" />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
using ADSNetLibrary.Helpers;
|
using ADSNetLibrary.Helpers;
|
||||||
using CrystalDecisions.ReportAppServer.DataDefModel;
|
using CrystalDecisions.ReportAppServer.DataDefModel;
|
||||||
|
|
||||||
//using DocumentFormat.OpenXml.Wordprocessing;
|
//using DocumentFormat.OpenXml.Wordprocessing;
|
||||||
using Extensiones;
|
using Extensiones;
|
||||||
using HigLabo.Core;
|
using HigLabo.Core;
|
||||||
|
using iText.IO.Font.Otf;
|
||||||
|
using Microsoft.Reporting.WebForms;
|
||||||
using Profact.TimbraCFDI;
|
using Profact.TimbraCFDI;
|
||||||
using Profact.TimbraCFDI.Complementos.ComercioExterior10;
|
using Profact.TimbraCFDI.Complementos.ComercioExterior10;
|
||||||
using StackExchange.Redis;
|
using StackExchange.Redis;
|
||||||
@@ -13,13 +14,13 @@ using System.Activities.Expressions;
|
|||||||
using System.Activities.Statements;
|
using System.Activities.Statements;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
using System.Web.UI;
|
using System.Web.UI;
|
||||||
using System.Web.UI.WebControls;
|
using System.Web.UI.WebControls;
|
||||||
using ModExtensiones = Extensiones.ModExtensiones;
|
using ModExtensiones = Extensiones.ModExtensiones;
|
||||||
using Microsoft.Reporting.WebForms;
|
|
||||||
|
|
||||||
public partial class Export_ExpDetalle : ClsPaginas
|
public partial class Export_ExpDetalle : ClsPaginas
|
||||||
{
|
{
|
||||||
@@ -34,6 +35,12 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
get { return (ViewState["CveExportacionDetalle"] == null) ? -1 : Convert.ToInt32(ViewState["CveExportacionDetalle"]); }
|
get { return (ViewState["CveExportacionDetalle"] == null) ? -1 : Convert.ToInt32(ViewState["CveExportacionDetalle"]); }
|
||||||
set { ViewState["CveExportacionDetalle"] = value; }
|
set { ViewState["CveExportacionDetalle"] = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private bool EsImportacion
|
||||||
|
{
|
||||||
|
get { return (ViewState["EsImportacion"] == null) ? false : Boolean.Parse(ViewState["EsImportacion"].ToString()); }
|
||||||
|
set { ViewState["EsImportacion"] = value; }
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
@@ -41,6 +48,23 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
{
|
{
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
|
EsImportacion = false;
|
||||||
|
if (!string.IsNullOrEmpty(Request["Opcion"]) && Request["Opcion"].Equals("I", StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
EsImportacion = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
LblTipoExp.InnerText = EsImportacion ? "Tipo Importación:" : "Tipo Exportación:";
|
||||||
|
|
||||||
|
if (EsImportacion)
|
||||||
|
{
|
||||||
|
LblExp.Text = "Importaciones";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LblExp.Text = "Exportación";
|
||||||
|
}
|
||||||
|
|
||||||
CveExportacion = !string.IsNullOrEmpty(Request["CveExportacion"]) ? Request["CveExportacion"].ToEntero() : -1;
|
CveExportacion = !string.IsNullOrEmpty(Request["CveExportacion"]) ? Request["CveExportacion"].ToEntero() : -1;
|
||||||
InicializarValores();
|
InicializarValores();
|
||||||
CargaDatos();
|
CargaDatos();
|
||||||
@@ -53,11 +77,17 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
protected void InicializarValores()
|
protected void InicializarValores()
|
||||||
{
|
{
|
||||||
int CveEmpresa = UsuarioActual.CveEmpresa;
|
int CveEmpresa = UsuarioActual.CveEmpresa;
|
||||||
|
int CveUsuario = UsuarioActual.CveUsuario;
|
||||||
|
|
||||||
|
// Sub Proyecto
|
||||||
|
DdlSubProyecto.Items.Clear();
|
||||||
|
DdlSubProyecto.DataSource = get_GlobalDTSubProyectosUsuarios(CveUsuario, -1, CveEmpresa);
|
||||||
|
DdlSubProyecto.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
||||||
|
DdlSubProyecto.DataBind();
|
||||||
|
|
||||||
// Factura
|
// Factura
|
||||||
ClsVentas Ventas = new ClsVentas();
|
ClsVentas Ventas = new ClsVentas();
|
||||||
// El problema es que solo se obtienen los registros donde CveUsuarioConsulta = Sis_UsuariosSubProyectos.CveUsuario en la BD
|
if (Ventas.GetVentas(CveEmpresa, "-1", "-1", -1, "-1", -1, -1, -1, -1, DateTime.Today.AddMonths(-1).ToString(), ModExtensiones.MaxFecha.ToString(), "-1", CveUsuarioConsulta: CveUsuario))
|
||||||
if (Ventas.GetVentas(CveEmpresa, "-1", "-1", -1, "-1", -1, -1, -1, -1, DateTime.Today.AddMonths(-1).ToString(), ModExtensiones.MaxFecha.ToString(), "-1", CveUsuarioConsulta: UsuarioActual.CveUsuario))
|
|
||||||
{
|
{
|
||||||
DdlVentas.Items.Clear();
|
DdlVentas.Items.Clear();
|
||||||
DdlVentas.DataSource = Ventas.DtResultados;
|
DdlVentas.DataSource = Ventas.DtResultados;
|
||||||
@@ -116,13 +146,16 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
{
|
{
|
||||||
DataTable DTExportaciones = new DataTable();
|
DataTable DTExportaciones = new DataTable();
|
||||||
ClsExportaciones Exportaciones = new ClsExportaciones();
|
ClsExportaciones Exportaciones = new ClsExportaciones();
|
||||||
if (Exportaciones.GetExportacion(CveExportacion, UsuarioActual.CveEmpresa))
|
bool EsExportacion = !EsImportacion;
|
||||||
|
if (Exportaciones.GetExportacion(CveExportacion, UsuarioActual.CveEmpresa, EsExportacion))
|
||||||
{
|
{
|
||||||
DTExportaciones = Exportaciones.DtResultados;
|
DTExportaciones = Exportaciones.DtResultados;
|
||||||
if (DTExportaciones.Rows.Count > 0)
|
if (DTExportaciones.Rows.Count > 0)
|
||||||
{
|
{
|
||||||
LblExp.Text = DTExportaciones.FiltroPrimeroValor("CveExportacion");
|
LblExp.Text = DTExportaciones.FiltroPrimeroValor("CveExportacion");
|
||||||
|
|
||||||
|
DdlSubProyecto.SelectedValue = DTExportaciones.FiltroPrimeroValor("CveSubProyecto");
|
||||||
|
|
||||||
string CveVenta = DTExportaciones.FiltroPrimeroValor("CveVenta");
|
string CveVenta = DTExportaciones.FiltroPrimeroValor("CveVenta");
|
||||||
if (CveVenta != "" && CveVenta != "-1")
|
if (CveVenta != "" && CveVenta != "-1")
|
||||||
{
|
{
|
||||||
@@ -158,6 +191,7 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
DdlAgenteExt.SelectedValue = DTExportaciones.FiltroPrimeroValor("CveAgenteExtranjero");
|
DdlAgenteExt.SelectedValue = DTExportaciones.FiltroPrimeroValor("CveAgenteExtranjero");
|
||||||
DdlClaveAduana.SelectedValue = DTExportaciones.FiltroPrimeroValor("ClaveAduana");
|
DdlClaveAduana.SelectedValue = DTExportaciones.FiltroPrimeroValor("ClaveAduana");
|
||||||
|
|
||||||
|
TxtDescContenedor.Text = DTExportaciones.FiltroPrimeroValor("DescripcionContenedor");
|
||||||
DdlCompTransportista.SelectedValue = DTExportaciones.FiltroPrimeroValor("CveProveedor");
|
DdlCompTransportista.SelectedValue = DTExportaciones.FiltroPrimeroValor("CveProveedor");
|
||||||
DdlCompTransportista.SelectedText = DTExportaciones.FiltroPrimeroValor("Proveedor");
|
DdlCompTransportista.SelectedText = DTExportaciones.FiltroPrimeroValor("Proveedor");
|
||||||
TxtPlaca.Text = DTExportaciones.FiltroPrimeroValor("ContenedorPlaca");
|
TxtPlaca.Text = DTExportaciones.FiltroPrimeroValor("ContenedorPlaca");
|
||||||
@@ -193,6 +227,7 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
|
|
||||||
ActualizarValores(); // Se actualizan los valores que dependen de otros campos
|
ActualizarValores(); // Se actualizan los valores que dependen de otros campos
|
||||||
DdlDirExp.SelectedValue = DTExportaciones.FiltroPrimeroValor("CveDirExportador"); // Seleccionar las Dir DESPUÉS de llenar el dropdown
|
DdlDirExp.SelectedValue = DTExportaciones.FiltroPrimeroValor("CveDirExportador"); // Seleccionar las Dir DESPUÉS de llenar el dropdown
|
||||||
|
DdlDirImp.SelectedValue = DTExportaciones.FiltroPrimeroValor("CveDirImportador");
|
||||||
DdlDirCon.SelectedValue = DTExportaciones.FiltroPrimeroValor("CveDirConsignatario");
|
DdlDirCon.SelectedValue = DTExportaciones.FiltroPrimeroValor("CveDirConsignatario");
|
||||||
|
|
||||||
CargarPartidas();
|
CargarPartidas();
|
||||||
@@ -258,6 +293,23 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Clave Dir. Importador
|
||||||
|
string CveImportador = DdlImp.SelectedValue;
|
||||||
|
if (CveImportador != "" && CveImportador != "-1")
|
||||||
|
{
|
||||||
|
string CveDirImp = DdlDirImp.Text;
|
||||||
|
DdlDirImp.Items.Clear();
|
||||||
|
DdlDirImp.DataSource = get_GlobalDTProveedorSucursales(CveImportador.ToEntero(), CveEmpresa);
|
||||||
|
DdlDirImp.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
||||||
|
DdlDirImp.DataBind();
|
||||||
|
if (CveDirImp != "" && CveDirImp != "-1")
|
||||||
|
{
|
||||||
|
ListItem ItemDirImp = DdlDirImp.Items.FindByValue(CveDirImp);
|
||||||
|
if (ItemDirImp != null)
|
||||||
|
DdlDirImp.SelectedValue = CveDirImp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Clave Dir. Consignatario
|
// Clave Dir. Consignatario
|
||||||
string CveConsignatario = DdlCon.SelectedValue;
|
string CveConsignatario = DdlCon.SelectedValue;
|
||||||
if (CveConsignatario != "" && CveConsignatario != "-1")
|
if (CveConsignatario != "" && CveConsignatario != "-1")
|
||||||
@@ -331,7 +383,9 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
}
|
}
|
||||||
|
|
||||||
string ITN = TxtITN.Text;
|
string ITN = TxtITN.Text;
|
||||||
|
int CveSubProyecto = DdlSubProyecto.Text.ToEntero();
|
||||||
string NumeroPedimento = TxtNumPed.Text;
|
string NumeroPedimento = TxtNumPed.Text;
|
||||||
|
NumeroPedimento = NumeroPedimento == "__--__--____--_______" ? "" : NumeroPedimento;
|
||||||
DateTime FechaPedimento = TxtFechaPedim.Text.ToDate();
|
DateTime FechaPedimento = TxtFechaPedim.Text.ToDate();
|
||||||
int CveVenta = DdlVentas.Text.ToEntero();
|
int CveVenta = DdlVentas.Text.ToEntero();
|
||||||
decimal TipoCambio = ModExtensiones.ToDecimal(TxtTipoCambio.Text);
|
decimal TipoCambio = ModExtensiones.ToDecimal(TxtTipoCambio.Text);
|
||||||
@@ -339,6 +393,7 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
int CveExportacionEstatus = DdlExpEstatus.Text.ToEntero();
|
int CveExportacionEstatus = DdlExpEstatus.Text.ToEntero();
|
||||||
int CveAgente = DdlAgenteMex.Text.ToEntero();
|
int CveAgente = DdlAgenteMex.Text.ToEntero();
|
||||||
int ClaveAduana = DdlClaveAduana.Text.ToEntero();
|
int ClaveAduana = DdlClaveAduana.Text.ToEntero();
|
||||||
|
string DescripcionContenedor = TxtDescContenedor.Text;
|
||||||
int CveProveedor = DdlCompTransportista.SelectedValue.ToEntero();
|
int CveProveedor = DdlCompTransportista.SelectedValue.ToEntero();
|
||||||
int MedioTransporte = DdlMedioTran.Text.ToEntero();
|
int MedioTransporte = DdlMedioTran.Text.ToEntero();
|
||||||
int TipoContenedor = DdlTipoContenedor.Text.ToEntero();
|
int TipoContenedor = DdlTipoContenedor.Text.ToEntero();
|
||||||
@@ -351,6 +406,7 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
int CveEmpresa = UsuarioActual.CveEmpresa;
|
int CveEmpresa = UsuarioActual.CveEmpresa;
|
||||||
int CveUsuario = UsuarioActual.CveUsuario;
|
int CveUsuario = UsuarioActual.CveUsuario;
|
||||||
int CveDirExportador = DdlDirExp.Text.ToEntero();
|
int CveDirExportador = DdlDirExp.Text.ToEntero();
|
||||||
|
int CveDirImportador = DdlDirImp.Text.ToEntero();
|
||||||
int CveDirConsignatario = DdlDirCon.Text.ToEntero();
|
int CveDirConsignatario = DdlDirCon.Text.ToEntero();
|
||||||
bool Vinculacion = CkbVinculacion.Checked;
|
bool Vinculacion = CkbVinculacion.Checked;
|
||||||
int CveIncoterm = DdlIncoterm.Text.ToEntero();
|
int CveIncoterm = DdlIncoterm.Text.ToEntero();
|
||||||
@@ -370,10 +426,11 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
decimal DecOtros = ModExtensiones.ToDecimal(TxtDecOtros.Text);
|
decimal DecOtros = ModExtensiones.ToDecimal(TxtDecOtros.Text);
|
||||||
|
|
||||||
ClsExportaciones Exportaciones = new ClsExportaciones();
|
ClsExportaciones Exportaciones = new ClsExportaciones();
|
||||||
|
bool EsExportacion = !EsImportacion;
|
||||||
if (CveExportacion == -1)
|
if (CveExportacion == -1)
|
||||||
{
|
{
|
||||||
int ExportacionGuardada = Exportaciones.AddExportacion(
|
int ExportacionGuardada = Exportaciones.AddExportacion(
|
||||||
|
CveSubProyecto,
|
||||||
NumeroPedimento,
|
NumeroPedimento,
|
||||||
FechaPedimento,
|
FechaPedimento,
|
||||||
CveVenta,
|
CveVenta,
|
||||||
@@ -385,6 +442,7 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
CveClienteConsignatario.ToEntero(),
|
CveClienteConsignatario.ToEntero(),
|
||||||
CveAgente,
|
CveAgente,
|
||||||
ClaveAduana,
|
ClaveAduana,
|
||||||
|
DescripcionContenedor,
|
||||||
CveProveedor,
|
CveProveedor,
|
||||||
MedioTransporte,
|
MedioTransporte,
|
||||||
TipoContenedor,
|
TipoContenedor,
|
||||||
@@ -397,13 +455,15 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
CveEmpresa,
|
CveEmpresa,
|
||||||
CveUsuario,
|
CveUsuario,
|
||||||
CveDirExportador,
|
CveDirExportador,
|
||||||
|
CveDirImportador,
|
||||||
CveDirConsignatario,
|
CveDirConsignatario,
|
||||||
CveIncoterm,
|
CveIncoterm,
|
||||||
Notas,
|
Notas,
|
||||||
CvePedimento,
|
CvePedimento,
|
||||||
CveAgenteExtranjero,
|
CveAgenteExtranjero,
|
||||||
ITN,
|
ITN,
|
||||||
Vinculacion
|
Vinculacion,
|
||||||
|
EsExportacion
|
||||||
);
|
);
|
||||||
if (ExportacionGuardada != -1)
|
if (ExportacionGuardada != -1)
|
||||||
{
|
{
|
||||||
@@ -441,8 +501,10 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
}
|
}
|
||||||
|
|
||||||
//string Liga = "document.location.href=\"/Export/RepExportaciones.aspx\";";
|
//string Liga = "document.location.href=\"/Export/RepExportaciones.aspx\";";
|
||||||
string Liga = $"document.location.href=\"/Export/ExpDetalle.aspx?CveExportacion={ExportacionGuardada}\";";
|
string liga = EsImportacion
|
||||||
Alert("La Exportación se ha agregado correctamente.", JSBtnAceptar: Liga);
|
? $"document.location.href=\"/Export/ExpDetalle.aspx?CveExportacion={ExportacionGuardada}&Opcion=I\";"
|
||||||
|
: $"document.location.href=\"/Export/ExpDetalle.aspx?CveExportacion={ExportacionGuardada}\";";
|
||||||
|
Alert("La Exportación se ha agregado correctamente.", JSBtnAceptar: liga);
|
||||||
}
|
}
|
||||||
Exportaciones.Dispose();
|
Exportaciones.Dispose();
|
||||||
}
|
}
|
||||||
@@ -450,6 +512,7 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
{
|
{
|
||||||
bool Continuar = Exportaciones.UpdateExportacion(
|
bool Continuar = Exportaciones.UpdateExportacion(
|
||||||
CveExportacion,
|
CveExportacion,
|
||||||
|
CveSubProyecto,
|
||||||
NumeroPedimento,
|
NumeroPedimento,
|
||||||
FechaPedimento,
|
FechaPedimento,
|
||||||
CveVenta,
|
CveVenta,
|
||||||
@@ -461,6 +524,7 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
CveClienteConsignatario.ToEntero(),
|
CveClienteConsignatario.ToEntero(),
|
||||||
CveAgente,
|
CveAgente,
|
||||||
ClaveAduana,
|
ClaveAduana,
|
||||||
|
DescripcionContenedor,
|
||||||
CveProveedor,
|
CveProveedor,
|
||||||
MedioTransporte,
|
MedioTransporte,
|
||||||
TipoContenedor,
|
TipoContenedor,
|
||||||
@@ -473,6 +537,7 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
CveEmpresa,
|
CveEmpresa,
|
||||||
CveUsuario,
|
CveUsuario,
|
||||||
CveDirExportador,
|
CveDirExportador,
|
||||||
|
CveDirImportador,
|
||||||
CveDirConsignatario,
|
CveDirConsignatario,
|
||||||
CveIncoterm,
|
CveIncoterm,
|
||||||
Notas,
|
Notas,
|
||||||
@@ -754,7 +819,26 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
string FraccionArancelaria = "";
|
string FraccionArancelaria = "";
|
||||||
string UnidadAduana = "";
|
string UnidadAduana = "";
|
||||||
|
|
||||||
string CveFraccionArancelaria = get_GlobalDTPS(CveEmpresa, CvePS).FiltroPrimeroValor("CveFraccionArancelaria");
|
DataTable DTPS = get_GlobalDTPS(CveEmpresa, CvePS);
|
||||||
|
string IVA = DTPS.FiltroPrimeroValor("IVA");
|
||||||
|
if (IVA == "-1")
|
||||||
|
{
|
||||||
|
if (DdlSubProyecto.Text != "-1")
|
||||||
|
{
|
||||||
|
DataTable DTSubProyectos = get_GlobalDTSubProyectosUsuarios(CveUsuario, -1, CveEmpresa, DdlSubProyecto.Text.ToEntero());
|
||||||
|
IVA = DTSubProyectos.FiltroPrimeroValor("IVA");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
IVA = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (IVA != "")
|
||||||
|
{
|
||||||
|
decimal iva_decimal = ModExtensiones.ToDecimal(IVA);
|
||||||
|
IVA = iva_decimal.ToString("N2");
|
||||||
|
}
|
||||||
|
string CveFraccionArancelaria = DTPS.FiltroPrimeroValor("CveFraccionArancelaria");
|
||||||
if (CveFraccionArancelaria != "" && GlobalDTFraccionArancelaria.Any())
|
if (CveFraccionArancelaria != "" && GlobalDTFraccionArancelaria.Any())
|
||||||
{
|
{
|
||||||
DataTable DTFraccArancelaria = GlobalDTFraccionArancelaria.CopyToDataTable();
|
DataTable DTFraccArancelaria = GlobalDTFraccionArancelaria.CopyToDataTable();
|
||||||
@@ -774,6 +858,7 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
PartidaRow["ClaveSATPais"] = ClaveSATPais;
|
PartidaRow["ClaveSATPais"] = ClaveSATPais;
|
||||||
PartidaRow["Precio"] = Precio;
|
PartidaRow["Precio"] = Precio;
|
||||||
PartidaRow["ValorTotalMXP"] = ValorTotalMXP;
|
PartidaRow["ValorTotalMXP"] = ValorTotalMXP;
|
||||||
|
PartidaRow["IVA"] = IVA;
|
||||||
PartidaRow["Cantidad"] = Cantidad;
|
PartidaRow["Cantidad"] = Cantidad;
|
||||||
PartidaRow["PesoUnitario"] = PesoUnitario;
|
PartidaRow["PesoUnitario"] = PesoUnitario;
|
||||||
PartidaRow["PesoBruto"] = PesoBruto;
|
PartidaRow["PesoBruto"] = PesoBruto;
|
||||||
@@ -797,6 +882,7 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
PartidaRow["ClaveSATPais"] = ClaveSATPais;
|
PartidaRow["ClaveSATPais"] = ClaveSATPais;
|
||||||
PartidaRow["Precio"] = Precio;
|
PartidaRow["Precio"] = Precio;
|
||||||
PartidaRow["ValorTotalMXP"] = ValorTotalMXP;
|
PartidaRow["ValorTotalMXP"] = ValorTotalMXP;
|
||||||
|
PartidaRow["IVA"] = IVA;
|
||||||
PartidaRow["Cantidad"] = Cantidad;
|
PartidaRow["Cantidad"] = Cantidad;
|
||||||
PartidaRow["PesoUnitario"] = PesoUnitario;
|
PartidaRow["PesoUnitario"] = PesoUnitario;
|
||||||
PartidaRow["PesoBruto"] = PesoBruto;
|
PartidaRow["PesoBruto"] = PesoBruto;
|
||||||
@@ -839,6 +925,7 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
DTTemp.Columns.Add("ClaveSATPais", typeof(string));
|
DTTemp.Columns.Add("ClaveSATPais", typeof(string));
|
||||||
DTTemp.Columns.Add("Precio", typeof(decimal));
|
DTTemp.Columns.Add("Precio", typeof(decimal));
|
||||||
DTTemp.Columns.Add("ValorTotalMXP", typeof(decimal));
|
DTTemp.Columns.Add("ValorTotalMXP", typeof(decimal));
|
||||||
|
DTTemp.Columns.Add("IVA", typeof(string));
|
||||||
DTTemp.Columns.Add("Cantidad", typeof(decimal));
|
DTTemp.Columns.Add("Cantidad", typeof(decimal));
|
||||||
DTTemp.Columns.Add("PesoUnitario", typeof(decimal));
|
DTTemp.Columns.Add("PesoUnitario", typeof(decimal));
|
||||||
DTTemp.Columns.Add("PesoBruto", typeof(decimal));
|
DTTemp.Columns.Add("PesoBruto", typeof(decimal));
|
||||||
@@ -923,17 +1010,38 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
DataRow RowExp = DTExportaciones.Rows[0];
|
DataRow RowExp = DTExportaciones.Rows[0];
|
||||||
string ClienteExportador = DTExportaciones.FiltroPrimeroValor("ClienteExportador");
|
string ClienteExportador = DTExportaciones.FiltroPrimeroValor("ClienteExportador");
|
||||||
string DirExportador = DTExportaciones.FiltroPrimeroValor("DirExportador");
|
string DirExportador = DTExportaciones.FiltroPrimeroValor("DirExportador");
|
||||||
string ClienteImortador = DTExportaciones.FiltroPrimeroValor("ClienteImportador");
|
string ClienteImportador = DTExportaciones.FiltroPrimeroValor("ClienteImportador");
|
||||||
string RFCImp = DTExportaciones.FiltroPrimeroValor("RFCImp");
|
string RFCImp = DTExportaciones.FiltroPrimeroValor("RFCImp");
|
||||||
|
string IMMEXimp = DTExportaciones.FiltroPrimeroValor("IMMEXimp");
|
||||||
string NumFactura = DTExportaciones.FiltroPrimeroValor("SerieFolio");
|
string NumFactura = DTExportaciones.FiltroPrimeroValor("SerieFolio");
|
||||||
string ClaveSATPedimento = DTExportaciones.FiltroPrimeroValor("ClaveSATPedimento");
|
string ClaveSATPedimento = DTExportaciones.FiltroPrimeroValor("ClaveSATPedimento");
|
||||||
string FechaFact = RowExp["FechaFact"] != DBNull.Value ? Convert.ToDateTime(RowExp["FechaFact"]).ToString("dd/MM/yyyy") : "";
|
string ITN = DTExportaciones.FiltroPrimeroValor("ITN");
|
||||||
|
string Vinculacion = DTExportaciones.FiltroPrimeroValor("Vinculacion") == "True" ? "SI" : "NO";
|
||||||
|
string FechaFact = "";
|
||||||
|
string NumSemana = "";
|
||||||
|
if (RowExp["FechaFact"] != DBNull.Value)
|
||||||
|
{
|
||||||
|
DateTime fechaf = Convert.ToDateTime(RowExp["FechaFact"]);
|
||||||
|
FechaFact = fechaf.ToString("dd/MM/yyyy");
|
||||||
|
|
||||||
|
CultureInfo cultura = CultureInfo.CurrentCulture;
|
||||||
|
System.Globalization.Calendar calendario = cultura.Calendar;
|
||||||
|
int numeroSemana = calendario.GetWeekOfYear(
|
||||||
|
fechaf,
|
||||||
|
cultura.DateTimeFormat.CalendarWeekRule,
|
||||||
|
cultura.DateTimeFormat.FirstDayOfWeek
|
||||||
|
);
|
||||||
|
NumSemana = numeroSemana.ToString();
|
||||||
|
}
|
||||||
string TipoCambio = ModExtensiones.ToDecimal(DTExportaciones.FiltroPrimeroValor("TipoCambio")).ToString("#,###.####");
|
string TipoCambio = ModExtensiones.ToDecimal(DTExportaciones.FiltroPrimeroValor("TipoCambio")).ToString("#,###.####");
|
||||||
string MedioTransporte = DTExportaciones.FiltroPrimeroValor("MedioTransporte");
|
string MedioTransporte = DTExportaciones.FiltroPrimeroValor("MedioTransporte");
|
||||||
|
MedioTransporte = MedioTransporte != "-1" ? MedioTransporte : "";
|
||||||
string TipoContenedor = DTExportaciones.FiltroPrimeroValor("TipoContenedor");
|
string TipoContenedor = DTExportaciones.FiltroPrimeroValor("TipoContenedor");
|
||||||
|
TipoContenedor = TipoContenedor != "-1" ? TipoContenedor : "";
|
||||||
string ClienteConsignatario = DTExportaciones.FiltroPrimeroValor("ClienteConsignatario");
|
string ClienteConsignatario = DTExportaciones.FiltroPrimeroValor("ClienteConsignatario");
|
||||||
string DirConsignatario = DTExportaciones.FiltroPrimeroValor("DirConsignatario");
|
string DirConsignatario = DTExportaciones.FiltroPrimeroValor("DirConsignatario");
|
||||||
string RFCCon = DTExportaciones.FiltroPrimeroValor("RFCCon");
|
string RFCCon = DTExportaciones.FiltroPrimeroValor("RFCCon");
|
||||||
|
string IMMEXcon = DTExportaciones.FiltroPrimeroValor("IMMEXcon");
|
||||||
|
|
||||||
decimal IncFletes = 0.00m;
|
decimal IncFletes = 0.00m;
|
||||||
decimal IncSeguro = 0.00m;
|
decimal IncSeguro = 0.00m;
|
||||||
@@ -953,24 +1061,34 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
string SCAC = DTExportaciones.FiltroPrimeroValor("SCAC");
|
string SCAC = DTExportaciones.FiltroPrimeroValor("SCAC");
|
||||||
string CAAT = DTExportaciones.FiltroPrimeroValor("CAAT");
|
string CAAT = DTExportaciones.FiltroPrimeroValor("CAAT");
|
||||||
string ClaveAduana = DTExportaciones.FiltroPrimeroValor("ClaveSATAduanaSeccionDescripcion");
|
string ClaveAduana = DTExportaciones.FiltroPrimeroValor("ClaveSATAduanaSeccionDescripcion");
|
||||||
|
ClaveAduana = ClaveAduana != " - - " ? ClaveAduana : "";
|
||||||
string ClaveSATIncoterm = DTExportaciones.FiltroPrimeroValor("ClaveSATIncoterm");
|
string ClaveSATIncoterm = DTExportaciones.FiltroPrimeroValor("ClaveSATIncoterm");
|
||||||
string CedulaAgente = DTExportaciones.FiltroPrimeroValor("CedulaAgente");
|
string RFCAgente = DTExportaciones.FiltroPrimeroValor("RFCAgente");
|
||||||
|
string Patente = DTExportaciones.FiltroPrimeroValor("Patente");
|
||||||
|
string AgenteExt = DTExportaciones.FiltroPrimeroValor("AgenteExt");
|
||||||
|
string TaxId = DTExportaciones.FiltroPrimeroValor("TaxId");
|
||||||
|
string Notas = DTExportaciones.FiltroPrimeroValor("Notas");
|
||||||
|
|
||||||
List <ReportParameter> para = new List<ReportParameter>();
|
List <ReportParameter> para = new List<ReportParameter>();
|
||||||
para.Add(new ReportParameter("CveExportacion", CveExportacion.ToString()));
|
para.Add(new ReportParameter("CveExportacion", CveExportacion.ToString()));
|
||||||
para.Add(new ReportParameter("ClienteExportador", ClienteExportador));
|
para.Add(new ReportParameter("ClienteExportador", ClienteExportador));
|
||||||
para.Add(new ReportParameter("DirExportador", DirExportador));
|
para.Add(new ReportParameter("DirExportador", DirExportador));
|
||||||
para.Add(new ReportParameter("ClienteImportador", ClienteImortador));
|
para.Add(new ReportParameter("ClienteImportador", ClienteImportador));
|
||||||
para.Add(new ReportParameter("RFCImp", RFCImp));
|
para.Add(new ReportParameter("RFCImp", RFCImp));
|
||||||
|
para.Add(new ReportParameter("IMMEXimp", IMMEXimp));
|
||||||
para.Add(new ReportParameter("NumFactura", NumFactura));
|
para.Add(new ReportParameter("NumFactura", NumFactura));
|
||||||
para.Add(new ReportParameter("ClaveSATPedimento", ClaveSATPedimento));
|
para.Add(new ReportParameter("ClaveSATPedimento", ClaveSATPedimento));
|
||||||
|
para.Add(new ReportParameter("ITN", ITN));
|
||||||
|
para.Add(new ReportParameter("Vinculacion", Vinculacion));
|
||||||
para.Add(new ReportParameter("FechaFact", FechaFact));
|
para.Add(new ReportParameter("FechaFact", FechaFact));
|
||||||
|
para.Add(new ReportParameter("NumSemana", NumSemana));
|
||||||
para.Add(new ReportParameter("TipoCambio", TipoCambio));
|
para.Add(new ReportParameter("TipoCambio", TipoCambio));
|
||||||
para.Add(new ReportParameter("MedioTransporte", MedioTransporte));
|
para.Add(new ReportParameter("MedioTransporte", MedioTransporte));
|
||||||
para.Add(new ReportParameter("TipoContenedor", TipoContenedor));
|
para.Add(new ReportParameter("TipoContenedor", TipoContenedor));
|
||||||
para.Add(new ReportParameter("ClienteConsignatario", ClienteConsignatario));
|
para.Add(new ReportParameter("ClienteConsignatario", ClienteConsignatario));
|
||||||
para.Add(new ReportParameter("DirConsignatario", DirConsignatario));
|
para.Add(new ReportParameter("DirConsignatario", DirConsignatario));
|
||||||
para.Add(new ReportParameter("RFCCon", RFCCon));
|
para.Add(new ReportParameter("RFCCon", RFCCon));
|
||||||
|
para.Add(new ReportParameter("IMMEXcon", IMMEXcon));
|
||||||
|
|
||||||
ClsExportaciones Gastos = new ClsExportaciones();
|
ClsExportaciones Gastos = new ClsExportaciones();
|
||||||
if (Gastos.GetGastos(CveExportacion))
|
if (Gastos.GetGastos(CveExportacion))
|
||||||
@@ -1013,14 +1131,44 @@ public partial class Export_ExpDetalle : ClsPaginas
|
|||||||
para.Add(new ReportParameter("CAAT", CAAT));
|
para.Add(new ReportParameter("CAAT", CAAT));
|
||||||
para.Add(new ReportParameter("ClaveAduana", ClaveAduana));
|
para.Add(new ReportParameter("ClaveAduana", ClaveAduana));
|
||||||
para.Add(new ReportParameter("ClaveSATIncoterm", ClaveSATIncoterm));
|
para.Add(new ReportParameter("ClaveSATIncoterm", ClaveSATIncoterm));
|
||||||
para.Add(new ReportParameter("CedulaAgente", CedulaAgente));
|
para.Add(new ReportParameter("RFCAgente", RFCAgente));
|
||||||
|
para.Add(new ReportParameter("Patente", Patente));
|
||||||
|
para.Add(new ReportParameter("AgenteExt", AgenteExt));
|
||||||
|
para.Add(new ReportParameter("TaxId", TaxId));
|
||||||
|
para.Add(new ReportParameter("Notas", Notas));
|
||||||
|
|
||||||
List <ReportDataSource> lrds = new List<ReportDataSource>();
|
List <ReportDataSource> lrds = new List<ReportDataSource>();
|
||||||
ReportDataSource rds = new ReportDataSource();
|
ReportDataSource RDSExportaciones = new ReportDataSource();
|
||||||
rds.Name = "DsExportaciones";
|
RDSExportaciones.Name = "DsExportaciones";
|
||||||
rds.Value = DTExportaciones;
|
RDSExportaciones.Value = DTExportaciones;
|
||||||
lrds.Add(rds);
|
lrds.Add(RDSExportaciones);
|
||||||
|
|
||||||
|
DataTable DTPartidas = new DataTable();
|
||||||
|
ClsExportaciones Partidas = new ClsExportaciones();
|
||||||
|
if (Partidas.GetPartidas(UsuarioActual.CveEmpresa, CveExportacion))
|
||||||
|
{
|
||||||
|
DTPartidas = Partidas.DtResultados;
|
||||||
|
if (DTPartidas.Rows.Count > 0)
|
||||||
|
{
|
||||||
|
DTPartidas.Columns.Add("ValorUnitarioUSD", typeof(decimal));
|
||||||
|
DTPartidas.Columns.Add("ValorUnitarioMN", typeof(decimal));
|
||||||
|
DTPartidas.Columns["ValorUnitarioUSD"].DefaultValue = 0.0m;
|
||||||
|
DTPartidas.Columns["ValorUnitarioMN"].DefaultValue = 0.0m;
|
||||||
|
foreach (DataRow row in DTPartidas.Rows)
|
||||||
|
{
|
||||||
|
decimal cantidad = Convert.ToDecimal(row["Cantidad"]);
|
||||||
|
if (cantidad > 0)
|
||||||
|
{
|
||||||
|
row["ValorUnitarioUSD"] = Convert.ToDecimal(row["Precio"]) / cantidad;
|
||||||
|
row["ValorUnitarioMN"] = Convert.ToDecimal(row["ValorTotalMXP"]) / cantidad;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ReportDataSource RDSPartidas = new ReportDataSource();
|
||||||
|
RDSPartidas.Name = "DsPartidas";
|
||||||
|
RDSPartidas.Value = DTPartidas;
|
||||||
|
lrds.Add(RDSPartidas);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
string NombreArchivo = $"Exportacion_{CveExportacion}";
|
string NombreArchivo = $"Exportacion_{CveExportacion}";
|
||||||
string CveVenta = DTExportaciones.FiltroPrimeroValor("CveVenta"); ;
|
string CveVenta = DTExportaciones.FiltroPrimeroValor("CveVenta"); ;
|
||||||
|
|||||||
@@ -4,9 +4,59 @@
|
|||||||
<!--link href="/Metronic/assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.css" rel="stylesheet" /-->
|
<!--link href="/Metronic/assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.css" rel="stylesheet" /-->
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" Runat="Server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" Runat="Server">
|
||||||
|
<style>
|
||||||
|
.btnopaco {
|
||||||
|
background-color: rgba(0,0,0,0.2);
|
||||||
|
color: #FFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btnopaco:hover {
|
||||||
|
background-color: rgba(0,0,0,0.4);
|
||||||
|
color: #FFF;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select2 .select2-selection__rendered {
|
||||||
|
line-height: 1;
|
||||||
|
color: #111;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select2 .select2-selection--multiple {
|
||||||
|
box-sizing: border-box;
|
||||||
|
cursor: pointer;
|
||||||
|
display: block;
|
||||||
|
min-height: 20px;
|
||||||
|
user-select: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select2-selection__rendered {
|
||||||
|
margin-top: 0px;
|
||||||
|
height: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select2-selection {
|
||||||
|
margin-top: 0px;
|
||||||
|
height: 31px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select2-container--default.select2-container--focus .select2-selection--multiple {
|
||||||
|
border: none;
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#chartdiv {
|
||||||
|
width: 100%;
|
||||||
|
height: 500px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" Runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" Runat="Server">
|
||||||
Exportaciones
|
<asp:Literal ID="LtlTitulo" runat="server"></asp:Literal>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" Runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" Runat="Server">
|
||||||
<li>
|
<li>
|
||||||
@@ -18,125 +68,176 @@
|
|||||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" Runat="Server">
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" Runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" Runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" Runat="Server">
|
||||||
<asp:UpdatePanel ID="upDatosExp" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
<div class="portlet solid grey-cascade portlet-filter" id="idnecesaria">
|
||||||
<div class="portlet light portlet xspadding bordered " style="margin-bottom: 0px; padding: 8px;" id="form_wizard_1">
|
<div class="portlet-title portlet-filterT smalltitle">
|
||||||
<div class="portlet-title">
|
<%--asp:Literal ID="LtlPeriodoseleccionado" runat="server"></asp:Literal--%>
|
||||||
<div class="caption font-green">
|
|
||||||
<i class="icon-pin font-green"></i>
|
|
||||||
<span class="caption-subject font-green bold uppercase">Información
|
|
||||||
<asp:Literal ID="LtlPeriodoseleccionado" runat="server"></asp:Literal></span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" OnClick="BtnConsultar_Click" />
|
||||||
<%--<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>--%>
|
<%--a href="javascript:;" class="expand"></a--%>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="titlefiltros caption">
|
||||||
|
<div class="row" style="height: 32px;">
|
||||||
|
<asp:Label ID="LblProyecto" runat="server" class="col-md-1 truncate">Proyecto:</asp:Label>
|
||||||
|
<div runat="server" id="DivProyecto" class="col-md-2">
|
||||||
|
<asp:DropDownList ID="DdlProyecto" runat="server" AutoPostBack="true" AppendDataBoundItems="true" DataTextField="Proyecto" DataValueField="CveProyecto" Class="table-group-action-input form-control input-inline input-small input-sm select2me" Style="width: 100%;"></asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
<asp:Label ID="LblSubProyecto" runat="server" class="col-md-1 truncate">SubProyecto:</asp:Label>
|
||||||
|
<div runat="server" id="DivSubProyecto" class="col-md-2">
|
||||||
|
<asp:ListBox ID="DdlSubProyecto" SelectionMode="Multiple" data-text="Todos" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server"></asp:ListBox>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-1 truncate">
|
||||||
|
Fecha Inicio:
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-md-1" style="min-width: 115px">
|
||||||
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
|
<asp:TextBox Width="80px" ID="txtFechaI" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="imgCalendario" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="txtFechaI" PopupButtonID="ImgCalendario" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
|
<asp:RequiredFieldValidator ID="rfvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
||||||
|
<asp:CompareValidator ID="cvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="vcoFfvFI" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="vcoCvFI" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-1 truncate">
|
||||||
|
Fecha Fin:
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-md-1" style="min-width: 115px">
|
||||||
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
|
<asp:TextBox Width="80px" ID="txtFechaF" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="txtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender runat="server" ID="Calendario2" TargetControlID="txtFechaF" PopupButtonID="imgCalendarioF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
|
<asp:RequiredFieldValidator ID="rfvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
||||||
|
<asp:CompareValidator ID="cvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="vcoRfvFF" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="vcoCvFF" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<%--div class="tools">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<div>
|
<div>
|
||||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVExportaciones.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVExportaciones.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVExportaciones.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVExportaciones.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div--%>
|
||||||
|
</div>
|
||||||
|
<%--div class="portlet-body" style="display: none">
|
||||||
|
<div class="row">
|
||||||
|
<label class="col-md-1 truncate">Relación:</label>
|
||||||
|
<div class="col-md-2">
|
||||||
|
<asp:DropDownList ID="DdlTipoRelacion" CssClass=" form-control input-sm select2me" runat="server" Width="100%" DataTextField="SATTipoRelacion" DataValueField="CveTipoRelacion">
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div--%>
|
||||||
</div>
|
|
||||||
<div class="portlet-body form">
|
|
||||||
|
|
||||||
<asp:GridView ID="GVExportaciones" runat="server" data-sort="true" AutoGenerateColumns="False" DataKeyNames="CveExportacion" Width="100%" EmptyDataText="No se encontraron Exportaciones" ToolTip="Exportaciones" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" GridLines="None">
|
|
||||||
<Columns>
|
|
||||||
<asp:TemplateField HeaderText="Exportación" ItemStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:HyperLink ID="HlExpDetalle" runat="server" Text='<%# Eval("CveExportacion") %>' NavigateUrl='<%# Eval("CveExportacion", "ExpDetalle.aspx?CveExportacion={0}") %>'>></asp:HyperLink>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:BoundField DataField="FechaIng" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" HeaderText="Fecha de Ingreso" DataFormatString="{0:d}" />
|
|
||||||
<asp:TemplateField HeaderText="Usuario" ItemStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblUsuario" runat="server" Text='<%# Eval("Usuario")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Número de Factura" ItemStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblNumFact" runat="server" Text='<%# Eval("SerieFolio")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Fecha de Factura" ItemStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblFechaFact" runat="server" Text='<%# Eval("FechaFact", "{0:d}") %>'></asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Tipo de Cambio" ItemStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblTipoCambio" runat="server" Text='<%# Eval("TipoCambio")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Tipo Exportación" ItemStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblTipoExp" runat="server" Text='<%# Eval("TipoExportacion")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Estatus" ItemStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblEstatus" runat="server" Text='<%# Eval("CveExportacionEstatus")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Número de Pedimento" ItemStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblNumeroPedimento" runat="server" Text='<%# Eval("NumeroPedimento")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Fecha Pedimento" ItemStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblFechaPedimento" runat="server" Text='<%# Eval("FechaPedimento", "{0:d}") %>'></asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Nombre Exportador" ItemStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblClienteExp" runat="server" Text='<%# Eval("ClienteExportador")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="RFC Importador" ItemStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblRFCImp" runat="server" Text='<%# Eval("RFCImp")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Nombre Importador" ItemStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblClienteImp" runat="server" Text='<%# Eval("ClienteImportador")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="RFC Consignatario" ItemStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblRFCCon" runat="server" Text='<%# Eval("RFCCon")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Nombre Consignatario" ItemStyle-HorizontalAlign="Left">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblClienteCon" runat="server" Text='<%# Eval("ClienteConsignatario")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Editar" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:LinkButton data-toggle="tooltip" title="Editar" ID="LnkEditar" OnClick="EditarExp_Click" CssClass="btn btn-circle btn-sm green" runat="server" Text="<i class='fa fa-pencil'></i>"></asp:LinkButton>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Eliminar" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:LinkButton ID="LnkEliminar" runat="server" OnClick="EliminarExp_Click" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar la Exportación?" data-btn-ok-label="Sí" />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
</Columns>
|
|
||||||
</asp:GridView>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
<asp:UpdatePanel ID="upDatosExp" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<asp:GridView ID="GVExportaciones" runat="server" data-sort="true" AutoGenerateColumns="False" DataKeyNames="CveExportacion" Width="100%" EmptyDataText="No se encontraron Exportaciones" ToolTip="Exportaciones" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
<asp:TemplateField HeaderText="Exportación" ItemStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:HyperLink ID="HlExpDetalle" runat="server" Text='<%# Eval("CveExportacion") %>' NavigateUrl='<%# Eval("CveExportacion", "ExpDetalle.aspx?CveExportacion={0}") %>'>></asp:HyperLink>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:BoundField DataField="FechaIng" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" HeaderText="Fecha de Ingreso" DataFormatString="{0:d}" />
|
||||||
|
<asp:TemplateField HeaderText="Usuario" ItemStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblUsuario" runat="server" Text='<%# Eval("Usuario")%>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
<asp:TemplateField HeaderText="Número de Factura" ItemStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblNumFact" runat="server" Text='<%# Eval("SerieFolio")%>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Fecha de Factura" ItemStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblFechaFact" runat="server" Text='<%# Eval("FechaFact", "{0:d}") %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
<asp:TemplateField HeaderText="Tipo de Cambio" ItemStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblTipoCambio" runat="server" Text='<%# Eval("TipoCambio")%>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Tipo Exportación" ItemStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblTipoExp" runat="server" Text='<%# Eval("TipoExportacion")%>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Estatus" ItemStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblEstatus" runat="server" Text='<%# Eval("CveExportacionEstatus")%>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Número de Pedimento" ItemStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblNumeroPedimento" runat="server" Text='<%# Eval("NumeroPedimento")%>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Fecha Pedimento" ItemStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblFechaPedimento" runat="server" Text='<%# Eval("FechaPedimento", "{0:d}") %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Nombre Exportador" ItemStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblClienteExp" runat="server" Text='<%# Eval("ClienteExportador")%>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="RFC Importador" ItemStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblRFCImp" runat="server" Text='<%# Eval("RFCImp")%>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Nombre Importador" ItemStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblClienteImp" runat="server" Text='<%# Eval("ClienteImportador")%>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="RFC Consignatario" ItemStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblRFCCon" runat="server" Text='<%# Eval("RFCCon")%>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Nombre Consignatario" ItemStyle-HorizontalAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblClienteCon" runat="server" Text='<%# Eval("ClienteConsignatario")%>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
<asp:TemplateField HeaderText="Editar" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton data-toggle="tooltip" title="Editar" ID="LnkEditar" OnClick="EditarExp_Click" CssClass="btn btn-circle btn-sm green" runat="server" Text="<i class='fa fa-pencil'></i>"></asp:LinkButton>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Eliminar" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton ID="LnkEliminar" runat="server" OnClick="EliminarExp_Click" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar la Exportación?" data-btn-ok-label="Sí" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" Runat="Server">
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" Runat="Server">
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
using DocumentFormat.OpenXml.Wordprocessing;
|
using DocumentFormat.OpenXml.Wordprocessing;
|
||||||
using Extensiones;
|
using Extensiones;
|
||||||
|
using HigLabo.Core;
|
||||||
|
using iText.Layout.Element;
|
||||||
using StackExchange.Redis;
|
using StackExchange.Redis;
|
||||||
using System;
|
using System;
|
||||||
using System.Activities;
|
using System.Activities;
|
||||||
using System.Activities.Expressions;
|
using System.Activities.Expressions;
|
||||||
using System.Activities.Statements;
|
using System.Activities.Statements;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.EnterpriseServices.Internal;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
using System.Web.UI;
|
using System.Web.UI;
|
||||||
@@ -13,6 +16,7 @@ using System.Web.UI.WebControls;
|
|||||||
using static Microsoft.EntityFrameworkCore.DbLoggerCategory;
|
using static Microsoft.EntityFrameworkCore.DbLoggerCategory;
|
||||||
using static Stimulsoft.Report.Export.DeflaterHuffman;
|
using static Stimulsoft.Report.Export.DeflaterHuffman;
|
||||||
|
|
||||||
|
|
||||||
public partial class Export_RepExportaciones : ClsPaginas
|
public partial class Export_RepExportaciones : ClsPaginas
|
||||||
{
|
{
|
||||||
#region Propiedades
|
#region Propiedades
|
||||||
@@ -21,18 +25,76 @@ public partial class Export_RepExportaciones : ClsPaginas
|
|||||||
get { return (ViewState["CveExportacion"] == null) ? -1 : Convert.ToInt32(ViewState["CveExportacion"]); }
|
get { return (ViewState["CveExportacion"] == null) ? -1 : Convert.ToInt32(ViewState["CveExportacion"]); }
|
||||||
set { ViewState["CveExportacion"] = value; }
|
set { ViewState["CveExportacion"] = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private bool EsImportacion
|
||||||
|
{
|
||||||
|
get{ return (ViewState["EsImportacion"] == null) ? false : Boolean.Parse(ViewState["EsImportacion"].ToString()); }
|
||||||
|
set { ViewState["EsImportacion"] = value; }
|
||||||
|
}
|
||||||
|
public string EmptyDataTextPersonalizado { get; set; }
|
||||||
|
public string ToolTipPersonalizado { get; set; }
|
||||||
#endregion
|
#endregion
|
||||||
protected void Page_Load(object sender, EventArgs e)
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
CargaExportaciones();
|
EsImportacion = false;
|
||||||
|
|
||||||
|
if (Request["Opcion"] != null)
|
||||||
|
{
|
||||||
|
if (Request["Opcion"] == "I")
|
||||||
|
EsImportacion = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
Page.Title = EsImportacion ? "Importaciones" : "Exportaciones";
|
||||||
|
// Ahora sí, usa la bandera para los textos
|
||||||
|
if (EsImportacion)
|
||||||
|
{
|
||||||
|
LtlTitulo.Text = "Importaciones";
|
||||||
|
EmptyDataTextPersonalizado = "No se encontraron importaciones";
|
||||||
|
ToolTipPersonalizado = "Importaciones";
|
||||||
|
HLAgregarExp.Text = "<i class='fa fa-plus'></i> Agregar Importación";
|
||||||
|
HLAgregarExp.NavigateUrl = "ExpDetalle.aspx?CveExportacion=-1&Opcion=I";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LtlTitulo.Text = "Exportaciones";
|
||||||
|
EmptyDataTextPersonalizado = "No se encontraron exportaciones";
|
||||||
|
ToolTipPersonalizado = "Exportaciones";
|
||||||
|
HLAgregarExp.Text = "<i class='fa fa-plus'></i> Agregar Exportación";
|
||||||
|
HLAgregarExp.NavigateUrl = "ExpDetalle.aspx?CveExportacion=-1";
|
||||||
|
}
|
||||||
|
|
||||||
|
GVExportaciones.EmptyDataText = EmptyDataTextPersonalizado;
|
||||||
|
GVExportaciones.ToolTip = ToolTipPersonalizado;
|
||||||
|
|
||||||
|
InicializarValores();
|
||||||
|
//CargaExportaciones();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
protected void InicializarValores()
|
||||||
|
{
|
||||||
|
CargarCentrosDeCosto(DdlProyecto, DdlSubProyecto, LblProyecto, LblSubProyecto, divProyecto: DivProyecto);
|
||||||
|
DdlProyecto.Visible = false;
|
||||||
|
LblProyecto.Visible = false;
|
||||||
|
DivProyecto.Visible = false;
|
||||||
|
LblSubProyecto.Text = $"{LblSubProyecto.Text}:";
|
||||||
|
txtFechaI.Text = NowADS().FirstDayOfMonth().ToShortDateString();
|
||||||
|
txtFechaF.Text = NowADS().ToShortDateString();
|
||||||
|
|
||||||
|
CargaExportaciones();
|
||||||
|
}
|
||||||
protected void CargaExportaciones()
|
protected void CargaExportaciones()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
bool EsExportacion = !EsImportacion;
|
||||||
|
string SubProyectos = DdlSubProyecto.GetSelectedValuesM();
|
||||||
|
SubProyectos = SubProyectos == "" ? "-1" : SubProyectos;
|
||||||
|
DateTime FechaInicio = DateTime.TryParse(txtFechaI.Text, out _) ? txtFechaI.Text.ToDate() : ModExtensiones.MinFecha;
|
||||||
|
DateTime FechaFin = DateTime.TryParse(txtFechaF.Text, out _) ? txtFechaF.Text.ToDate() : ModExtensiones.MaxFecha;
|
||||||
|
|
||||||
ClsExportaciones Exportaciones = new ClsExportaciones();
|
ClsExportaciones Exportaciones = new ClsExportaciones();
|
||||||
if (Exportaciones.GetExportacion(-1, UsuarioActual.CveEmpresa))
|
if (Exportaciones.GetExportacion(-1, UsuarioActual.CveEmpresa, EsExportacion, FechaInicio, FechaFin, SubProyectos))
|
||||||
{
|
{
|
||||||
GVExportaciones.DataSource = Exportaciones.DtResultados;
|
GVExportaciones.DataSource = Exportaciones.DtResultados;
|
||||||
GVExportaciones.DataBind();
|
GVExportaciones.DataBind();
|
||||||
@@ -46,6 +108,11 @@ public partial class Export_RepExportaciones : ClsPaginas
|
|||||||
Response.Redirect($"/Export/ExpDetalle.aspx?CveExportacion={gvRow.DataKey("CveExportacion")}", true);
|
Response.Redirect($"/Export/ExpDetalle.aspx?CveExportacion={gvRow.DataKey("CveExportacion")}", true);
|
||||||
upDatosExp.Update();
|
upDatosExp.Update();
|
||||||
}
|
}
|
||||||
|
protected void BtnConsultar_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
CargaExportaciones();
|
||||||
|
upDatosExp.Update();
|
||||||
|
}
|
||||||
protected void EliminarExp_Click(object sender, EventArgs e)
|
protected void EliminarExp_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
GridViewRow gvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
GridViewRow gvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||||
|
|||||||
@@ -794,7 +794,7 @@ Partial Class General_SaldosIniciales
|
|||||||
|
|
||||||
Dim DTCuentasContables As New DataTable
|
Dim DTCuentasContables As New DataTable
|
||||||
|
|
||||||
If UsuarioActual.Empresa.TipoContabilizacion = 1 Or UsuarioActual.CveEmpresa.Contiene(172, 174) Then
|
If UsuarioActual.Empresa.TipoContabilizacion = 1 Or UsuarioActual.CveEmpresa.Contiene(172, 174, 184) Then
|
||||||
|
|
||||||
Dim ObjConta As New ClsContabilidad
|
Dim ObjConta As New ClsContabilidad
|
||||||
If ObjConta.GetCuentas(-1, "-1", -1, UsuarioActual.CveEmpresa) Then
|
If ObjConta.GetCuentas(-1, "-1", -1, UsuarioActual.CveEmpresa) Then
|
||||||
@@ -1445,7 +1445,7 @@ Partial Class General_SaldosIniciales
|
|||||||
|
|
||||||
If CobranzaTelefono.Trim.Length > 10 Then CobranzaTelefono = ""
|
If CobranzaTelefono.Trim.Length > 10 Then CobranzaTelefono = ""
|
||||||
|
|
||||||
Dim FormaPago As String = If(dt.Columns.Contains("Forma Pago"), Row("Forma Pago").ToString(), "")
|
Dim FormaPago As String = If(dt.Columns.Contains("FormaPago"), Row("FormaPago").ToString(), "")
|
||||||
Dim CveFormaPago33 As Integer = 99
|
Dim CveFormaPago33 As Integer = 99
|
||||||
|
|
||||||
Select Case FormaPago
|
Select Case FormaPago
|
||||||
|
|||||||
52
Inicio.aspx
52
Inicio.aspx
@@ -1712,7 +1712,59 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div id="DVModalAniversarioLaboral" class="modal ADS fade" role="dialog">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
|
||||||
|
<!-- Modal content-->
|
||||||
|
<div class="modal-content" style="width: 900px;">
|
||||||
|
<div class="modal-header ">
|
||||||
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
|
<h4 class="modal-title">Aniversario Laboral</h4>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal-body">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="col-md-12" style="text-align: right">
|
||||||
|
<input type="text" id="TxtBusquedaalaboral" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaalaboral','{0}')", GvAniversarioLaboral.ClientID) %>" style="display: inline-block; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaalaboral','{0}')", GvAniversarioLaboral.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<asp:GridView ID="GvAniversarioLaboral" runat="server" AutoGenerateColumns="False"
|
||||||
|
EmptyDataText="No se Encontraron Registros" ToolTip="Listado de Unidades"
|
||||||
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" data-sort="true" Style="width: 100%" GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
<asp:BoundField HeaderText="Codigo" DataField="Codigo" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="NombreCompleto" DataField="NombreCompleto" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="FechaInicio" DataField="FechaInicio" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Antiguedad" DataField="Antiguedad" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal-footer">
|
||||||
|
<asp:UpdatePanel runat="server">
|
||||||
|
<ContentTemplate>
|
||||||
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="DVModalRSCOPorCaducar" class="modal ADS fade" role="dialog">
|
<div id="DVModalRSCOPorCaducar" class="modal ADS fade" role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ Partial Class Inicio
|
|||||||
If UsuarioActual.TienePermisoProceso(270) Then MuestraComprasPUE()
|
If UsuarioActual.TienePermisoProceso(270) Then MuestraComprasPUE()
|
||||||
If UsuarioActual.TienePermisoProceso(343) Then MuestraPsProximosAVencer()
|
If UsuarioActual.TienePermisoProceso(343) Then MuestraPsProximosAVencer()
|
||||||
If UsuarioActual.TienePermisoProceso(344) Then MuestraRSCOProximosAVencer()
|
If UsuarioActual.TienePermisoProceso(344) Then MuestraRSCOProximosAVencer()
|
||||||
|
MuestraAniversarioLaboral()
|
||||||
If UsuarioActual.Empresa.Funcionalidad(578) = "1" AndAlso
|
If UsuarioActual.Empresa.Funcionalidad(578) = "1" AndAlso
|
||||||
(UsuarioActual.CveUsuario.Contiene(3964, 3984, 4165, 3960) OrElse UsuarioActual.CveRol.Contiene(1639, 1577, 1578, 1582)) Then
|
(UsuarioActual.CveUsuario.Contiene(3964, 3984, 4165, 3960) OrElse UsuarioActual.CveRol.Contiene(1639, 1577, 1578, 1582)) Then
|
||||||
|
|
||||||
@@ -440,6 +440,26 @@ Partial Class Inicio
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub MuestraAniversarioLaboral()
|
||||||
|
|
||||||
|
Using objnom As New ClsNominas
|
||||||
|
|
||||||
|
If objnom.GetAniversarioLaboral(DateTime.Now.ToString("yyyy-MM-dd"), UsuarioActual.CveEmpresa) Then
|
||||||
|
If objnom.DtResultados.Rows.Count > 0 Then
|
||||||
|
GvAniversarioLaboral.DataSource = objnom.DtResultados
|
||||||
|
RegistraScript("$('#DVModalAniversarioLaboral').modal('show');")
|
||||||
|
Else
|
||||||
|
GvAniversarioLaboral.DataSource = Nothing
|
||||||
|
End If
|
||||||
|
|
||||||
|
Else
|
||||||
|
GvAniversarioLaboral.DataSource = Nothing
|
||||||
|
End If
|
||||||
|
End Using
|
||||||
|
|
||||||
|
GvAniversarioLaboral.DataBind()
|
||||||
|
|
||||||
|
End Sub
|
||||||
Private Sub CargaSubProyectos()
|
Private Sub CargaSubProyectos()
|
||||||
DdlSubproyectos.DataSource = GlobalDTSubProyectos(UsuarioActual.CveEmpresa)
|
DdlSubproyectos.DataSource = GlobalDTSubProyectos(UsuarioActual.CveEmpresa)
|
||||||
DdlSubproyectos.DataBind()
|
DdlSubproyectos.DataBind()
|
||||||
|
|||||||
@@ -1163,16 +1163,36 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function fncCantidad(checkbox, numeroMax, idTbCantidadF) {
|
function fncCantidad(checkbox, numeroMax, idTbCantidadF, rfv) {
|
||||||
|
|
||||||
var $textbox = $('#' + idTbCantidadF);
|
var $textbox = $('#' + idTbCantidadF);
|
||||||
|
|
||||||
if ($(checkbox).is(':checked')) {
|
if ($(checkbox).is(':checked')) {
|
||||||
$textbox.val(numeroMax);
|
$textbox.val(numeroMax);
|
||||||
|
activarValidatorPorId(rfv);
|
||||||
} else {
|
} else {
|
||||||
$textbox.val(0);
|
$textbox.val(0);
|
||||||
|
desactivarValidatorPorId(rfv);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function desactivarValidatorPorId(idValidatorCliente) {
|
||||||
|
var validator = document.getElementById(idValidatorCliente);
|
||||||
|
if (validator) {
|
||||||
|
validator.enabled = false;
|
||||||
|
validator.style.display = "none";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function activarValidatorPorId(idValidatorCliente) {
|
||||||
|
var validator = document.getElementById(idValidatorCliente);
|
||||||
|
if (validator) {
|
||||||
|
validator.enabled = true;
|
||||||
|
validator.style.display = "inline";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1287,7 +1287,7 @@ Partial Class Inventarios_EntregaAlmacen
|
|||||||
If BloqueCantidad Then
|
If BloqueCantidad Then
|
||||||
e.Row.FCTextBox("TbCantidadF").Enabled = False
|
e.Row.FCTextBox("TbCantidadF").Enabled = False
|
||||||
Else
|
Else
|
||||||
e.Row.FCCheckBox("cbInv").Attributes.Add("onclick", $"fncCantidad(this,{e.Row.DBCampo("CantidadF")},'{e.Row.FCTextBox("TbCantidadF").ClientID}')")
|
e.Row.FCCheckBox("cbInv").Attributes.Add("onclick", $"fncCantidad(this,{e.Row.DBCampo("CantidadF")},'{e.Row.FCTextBox("TbCantidadF").ClientID}','{e.Row.FCRequiredFieldValidator("RFVCaducidad").ClientID}')")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
@@ -2011,6 +2011,7 @@ Partial Class Inventarios_EntregaAlmacen
|
|||||||
#Region " GUARDAR "
|
#Region " GUARDAR "
|
||||||
Protected Sub BtnGuardar_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnGuardar_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
|
||||||
Select Case TipoEntrega
|
Select Case TipoEntrega
|
||||||
Case 1
|
Case 1
|
||||||
GuardaVenta()
|
GuardaVenta()
|
||||||
|
|||||||
@@ -3070,6 +3070,9 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
Case "MOTOBATERIA"
|
Case "MOTOBATERIA"
|
||||||
'20517 MOTOBATERIAS
|
'20517 MOTOBATERIAS
|
||||||
ListaClasificacionesPermitidas.Add(20517) 'MOTOBATERIAS
|
ListaClasificacionesPermitidas.Add(20517) 'MOTOBATERIAS
|
||||||
|
Case "AUXILIAR"
|
||||||
|
'30043 AUXILIAR
|
||||||
|
ListaClasificacionesPermitidas.Add(30043) 'AUXILIAR
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
If ListaClasificacionesPermitidas.Contains(CveClasificacionPS) Then
|
If ListaClasificacionesPermitidas.Contains(CveClasificacionPS) Then
|
||||||
|
|||||||
@@ -114,24 +114,17 @@
|
|||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<label class="col-md-1 compoonenlabel" style="max-width: 65px;">Empleado: </label>
|
|
||||||
<div class="col-md-2">
|
|
||||||
<asp:DropDownList ID="DDlPersonal" runat="server" AppendDataBoundItems="true" DataTextField="CodigoNombreCompleto" DataValueField="CvePersonal" Style="width: 100% !important;" CssClass="select2me">
|
|
||||||
<asp:ListItem Text="Todos" Value="-1" Selected="True"></asp:ListItem>
|
|
||||||
</asp:DropDownList>
|
|
||||||
</div>
|
|
||||||
<label class="col-md-1 compoonenlabel" style="max-width: 65px;">Concepto: </label>
|
<label class="col-md-1 compoonenlabel" style="max-width: 65px;">Concepto: </label>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
<asp:DropDownList ID="DDLConcepto" DataTextField="CodigoConcepto" AppendDataBoundItems="true" DataValueField="CveConcepto" runat="server" Style="width: 100% !important;" CssClass="select2me">
|
<asp:DropDownList ID="DDLConcepto" DataTextField="CodigoConcepto" AppendDataBoundItems="true" DataValueField="CveConcepto" runat="server" Style="width: 100% !important;" CssClass="select2me">
|
||||||
<asp:ListItem Text="Todos" Value="-1" Selected="True"></asp:ListItem>
|
<asp:ListItem Text="Todos" Value="-1" Selected="True"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
<label class="col-md-1 mediocol" style="max-width: 35px;">del:</label>
|
||||||
<label class="col-md-1 mediocol">del:</label>
|
<div class="col-md-1" style="min-width:155px">
|
||||||
<div class="col-md-1">
|
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 138px !important; padding: 0px; margin-bottom: -10px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 138px !important; padding: 0px; margin-bottom: -10px;">
|
||||||
<asp:TextBox ID="TxtRpdFechaInicio" CssClass="form-control input-sm ADSMaskDate" Style="width: 80px" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtRpdFechaInicio" CssClass="form-control input-sm ADSMaskDate" Style="width: 110px" runat="server"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
<asp:LinkButton ID="LnkRpdFechaInicio" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="LnkRpdFechaInicio" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
</span>
|
</span>
|
||||||
@@ -139,10 +132,10 @@
|
|||||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender3" TargetControlID="TxtRpdFechaInicio" PopupButtonID="LnkRpdFechaInicio" PopupPosition="BottomRight" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender3" TargetControlID="TxtRpdFechaInicio" PopupButtonID="LnkRpdFechaInicio" PopupPosition="BottomRight" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<label class="col-md-1 mediocol">al:</label>
|
<label class="col-md-1 mediocol" style="max-width: 35px;">al:</label>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1" style="min-width:155px">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 138px !important; padding: 0px; margin-bottom: -10px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 138px !important; padding: 0px; margin-bottom: -10px;">
|
||||||
<asp:TextBox ID="TxtRpdFechaFin" CssClass="form-control input-sm ADSMaskDate" Style="width: 80px" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtRpdFechaFin" CssClass="form-control input-sm ADSMaskDate" Style="width: 110px" runat="server"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
<asp:LinkButton ID="LnkFechaFin" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="LnkFechaFin" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
</span>
|
</span>
|
||||||
@@ -150,6 +143,25 @@
|
|||||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender4" TargetControlID="TxtRpdFechaFin" PopupButtonID="LnkFechaFin" PopupPosition="BottomRight" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender4" TargetControlID="TxtRpdFechaFin" PopupButtonID="LnkFechaFin" PopupPosition="BottomRight" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<label class="col-md-1 compoonenlabel" style="max-width: 65px;">Ejercicio: </label>
|
||||||
|
<div class="col-md-1">
|
||||||
|
<asp:DropDownList ID="DdlEjercicios" runat="server" OnSelectedIndexChanged="DdlEjercicios_SelectedIndexChanged" AutoPostBack="true" Style="width: 100% !important;" CssClass="select2me" DataValueField="Ejercicio" DataTextField="Ejercicio"></asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<label class="col-md-1 compoonenlabel" style="max-width: 100px;">Tipo Período:</label>
|
||||||
|
<div class="col-md-1">
|
||||||
|
<asp:DropDownList ID="DdlTipoPeriodo" runat="server" OnSelectedIndexChanged="DdlTipoPeriodo_SelectedIndexChanged" CssClass="select2me" AutoPostBack="true" DataTextField="TipoPeriodo" DataValueField="CveTipoPeriodo" Style="width: 100% !important;">
|
||||||
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<label class="col-md-1 compoonenlabel" style="max-width: 65px;">Período:</label>
|
||||||
|
<div class="col-sm-1 col-md-2">
|
||||||
|
<asp:DropDownList ID="DdlPeriodo" runat="server" CssClass="select2me" DataTextField="NominaEstatus" DataValueField="CvePeriodo" Style="width: 100% !important;">
|
||||||
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
<asp:LinkButton ID="BtnConsultar" OnClick="BtnConsultar_Click" runat="server" Text="Consultar" class="btn btn-primary" />
|
<asp:LinkButton ID="BtnConsultar" OnClick="BtnConsultar_Click" runat="server" Text="Consultar" class="btn btn-primary" />
|
||||||
@@ -160,25 +172,13 @@
|
|||||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body" >
|
<div class="portlet-body" style="display:none" >
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-1 compoonenlabel" style="max-width: 65px;">Ejercicio: </label>
|
<label class="col-md-1 compoonenlabel" style="max-width: 65px;">Empleado: </label>
|
||||||
<div class="col-md-1">
|
|
||||||
<asp:DropDownList ID="DdlEjercicios" runat="server" OnSelectedIndexChanged="DdlEjercicios_SelectedIndexChanged" AutoPostBack="true" Style="width: 100% !important;" CssClass="select2me" DataValueField="Ejercicio" DataTextField="Ejercicio"></asp:DropDownList>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<label class="col-md-1 compoonenlabel" style="max-width: 100px;">Tipo Período:</label>
|
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlTipoPeriodo" runat="server" OnSelectedIndexChanged="DdlTipoPeriodo_SelectedIndexChanged" CssClass="select2me" AutoPostBack="true" DataTextField="TipoPeriodo" DataValueField="CveTipoPeriodo" Style="width: 100% !important;">
|
<asp:DropDownList ID="DDlPersonal" runat="server" AppendDataBoundItems="true" DataTextField="CodigoNombreCompleto" DataValueField="CvePersonal" Style="width: 100% !important;" CssClass="select2me">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:ListItem Text="Todos" Value="-1" Selected="True"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<label class="col-md-1 compoonenlabel">Período:</label>
|
|
||||||
<div class="col-md-2">
|
|
||||||
<asp:DropDownList ID="DdlPeriodo" runat="server" CssClass="select2me" DataTextField="NominaEstatus" DataValueField="CvePeriodo" Style="width: 100% !important;">
|
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -64,10 +64,7 @@ public partial class Nomina_RepMovtosPermanentes : ClsPaginas
|
|||||||
RcveSaldo = Request["cveSaldo"] != null ? Convert.ToInt32(Request["cveSaldo"]) : -1;
|
RcveSaldo = Request["cveSaldo"] != null ? Convert.ToInt32(Request["cveSaldo"]) : -1;
|
||||||
RcveEstatus = Request["cveEstatus"] != null ? Convert.ToInt32(Request["cveEstatus"]) : -1;
|
RcveEstatus = Request["cveEstatus"] != null ? Convert.ToInt32(Request["cveEstatus"]) : -1;
|
||||||
RcveConcepto = Request["cveConcepto"] != null ? Convert.ToInt32(Request["cveConcepto"]) : -1;
|
RcveConcepto = Request["cveConcepto"] != null ? Convert.ToInt32(Request["cveConcepto"]) : -1;
|
||||||
fechaInicio = DateTime.Now.ToString("01/MM/yyyy");
|
|
||||||
fechaFin = DateTime.Now.ToString("01/MM/yyyy").ToDateTime().AddMonths(1).AddDays(1).ToString("01/MM/yyyy");
|
|
||||||
CargaCombos();
|
CargaCombos();
|
||||||
cargardatos();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -137,6 +134,11 @@ public partial class Nomina_RepMovtosPermanentes : ClsPaginas
|
|||||||
DdlEjercicios.DataBind();
|
DdlEjercicios.DataBind();
|
||||||
DdlTipoPeriodo.DataSource = get_GlobalDTTipoPeriodos(UsuarioActual.CveEmpresa);
|
DdlTipoPeriodo.DataSource = get_GlobalDTTipoPeriodos(UsuarioActual.CveEmpresa);
|
||||||
DdlTipoPeriodo.DataBind();
|
DdlTipoPeriodo.DataBind();
|
||||||
|
if(DdlTipoPeriodo.Items.Count > 0) {
|
||||||
|
DdlTipoPeriodo.SelectedIndex= 0;
|
||||||
|
DdlTipoPeriodo_SelectedIndexChanged(null, null);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
protected void cargardatos()
|
protected void cargardatos()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -79,6 +79,8 @@ Partial Class Vta_CatCobranzaEstatus
|
|||||||
Alert("Error al actualizar")
|
Alert("Error al actualizar")
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
GlobalDTVtaCobranzaEstatus(UsuarioActual.CveEmpresa) = Nothing
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub GvDatos_RowDeleting(sender As Object, e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles GvDatos.RowDeleting
|
Protected Sub GvDatos_RowDeleting(sender As Object, e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles GvDatos.RowDeleting
|
||||||
@@ -92,6 +94,8 @@ Partial Class Vta_CatCobranzaEstatus
|
|||||||
Alert("Estatus de cobranza eliminado")
|
Alert("Estatus de cobranza eliminado")
|
||||||
End If
|
End If
|
||||||
ObjVentas.Dispose()
|
ObjVentas.Dispose()
|
||||||
|
|
||||||
|
GlobalDTVtaCobranzaEstatus(UsuarioActual.CveEmpresa) = Nothing
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaDatosTurno()
|
Private Sub CargaDatosTurno()
|
||||||
|
|||||||
@@ -33,13 +33,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="titlefiltros caption">
|
<div class="titlefiltros caption">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-1 truncate">Sucursal:</label>
|
<label class="col-md-1 truncate" id="DivLblSucursal" runat="server">Sucursal:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2" id="DivSucursal" runat="server">
|
||||||
<asp:DropDownList ID="DdlSubProyecto" runat="server" Width="100%" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
<asp:DropDownList ID="DdlSubProyecto" runat="server" Width="100%" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<label class="col-md-1 truncate">Mes/Año:</label>
|
<label class="col-md-1 truncate" id="DivLblMes" runat="server">Mes/Año:</label>
|
||||||
<div class="col-md-1" style="min-width: 115px">
|
<div class="col-md-1" style="min-width: 115px" id="DivMes" runat="server">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
<asp:TextBox Width="80px" ID="txtMesAnio" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
<asp:TextBox Width="80px" ID="txtMesAnio" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
@@ -54,8 +54,8 @@
|
|||||||
<asp:DropDownList ID="DdlVendedor" runat="server" Width="100%" DataTextField="Vendedor" DataValueField="CveVendedor" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
<asp:DropDownList ID="DdlVendedor" runat="server" Width="100%" DataTextField="Vendedor" DataValueField="CveVendedor" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<label title="Marca" data-toggle="tooltip" class="col-md-1 truncate">Marca:</label>
|
<label title="Marca" data-toggle="tooltip" class="col-md-1 truncate" id="DivLblMarca" runat="server">Marca:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2" id="DivMarca" runat="server">
|
||||||
<asp:DropDownList ID="DdlMarca" runat="server" Width="100%" DataTextField="Marca" DataValueField="CveMarca" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
<asp:DropDownList ID="DdlMarca" runat="server" Width="100%" DataTextField="Marca" DataValueField="CveMarca" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveMeta,CveVendedor,CveMarca,CveClasificacion,CveClasificacionSup,Vendedor,MesAño,Marca,Clasificacion,MetaCantidad,MetaImporte" EmptyDataText="No se encontraron metas registradas" ToolTip="Listado de Metas Vendedor" CssClass="table table-striped table-advance table-hover" Style=" width: 100%" GridLines="None">
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveMeta,CveVendedor,CveMarca,CveClasificacion,CveClasificacionSup,Vendedor,MesAño,Marca,Clasificacion,MetaCantidad,MetaImporte" EmptyDataText="No se encontraron metas registradas" ToolTip="Listado de Metas Vendedor" CssClass="table table-striped table-advance table-hover" Style="width: 100%" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField HeaderText="Vendedor" ItemStyle-HorizontalAlign="Left">
|
<asp:TemplateField HeaderText="Vendedor" ItemStyle-HorizontalAlign="Left">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -162,48 +162,54 @@
|
|||||||
<asp:Literal ID="LtlTituloModalTiposD" runat="server">Metas Vendedores</asp:Literal></h4>
|
<asp:Literal ID="LtlTituloModalTiposD" runat="server">Metas Vendedores</asp:Literal></h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="row" style="display: flex; align-items: center; margin-bottom: 10px;">
|
||||||
<label for="DdlVendedores">Vendedor:</label>
|
<div class="col-md-2 truncate">Vendedor</div>
|
||||||
<asp:DropDownList ID="DdlVendedores" runat="server" DataTextField="Vendedor" DataValueField="CveVendedor" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
<div class="col-md-10">
|
||||||
<i></i>
|
<asp:DropDownList ID="DdlVendedores" runat="server" DataTextField="Vendedor" DataValueField="CveVendedor" CssClass="form-control input-sm select2me" Width="100%"></asp:DropDownList>
|
||||||
</div>
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
|
||||||
<label for="MotivoTxt">Mes y Año:</label>
|
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 95px !important; padding: 0px;">
|
|
||||||
<asp:TextBox Style="width: 110px !important;" ID="TxtFechaI" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
||||||
<span class="input-group-btn ">
|
|
||||||
<asp:LinkButton ID="ImgFechaI" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="TxtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
||||||
<ajax:CalendarExtender runat="server" ID="CEFechaI" TargetControlID="TxtFechaI" PopupButtonID="ImgFechaI" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="row" style="display: flex; align-items: center; margin-bottom: 10px;" id="Div3" runat="server" visible="false">
|
||||||
<label for="DdlMarcas">Clasificacion Superior:</label>
|
<div class="col-md-2 truncate">Marca</div>
|
||||||
<asp:DropDownList ID="DdlClasificacionSup" runat="server" DataTextField="Clasificacion" DataValueField="CveClasificacion" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
<div class="col-md-4">
|
||||||
<i></i>
|
<asp:DropDownList ID="DdlMarcas" runat="server" DataTextField="Marca" DataValueField="CveMarca" CssClass="form-control input-sm select2me" Width="100%"></asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2 truncate">Mes y Año</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 95px !important; padding: 0px;">
|
||||||
|
<asp:TextBox Style="width: 110px !important;" ID="TxtFechaI" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="ImgFechaI" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="TxtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender runat="server" ID="CEFechaI" TargetControlID="TxtFechaI" PopupButtonID="ImgFechaI" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="row" style="display: flex; align-items: center; margin-bottom: 10px;" id="Div2" runat="server" visible="false">
|
||||||
<label for="DdlMarcas">Clasificacion:</label>
|
<div class="col-md-2">Clasificación Superior</div>
|
||||||
<asp:DropDownList ID="DdlClasificacion" runat="server" DataTextField="Clasificacion" DataValueField="CveClasificacion" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
<div class="col-md-10">
|
||||||
<i></i>
|
<asp:DropDownList ID="DdlClasificacionSup" runat="server" DataTextField="Clasificacion" DataValueField="CveClasificacion" CssClass="form-control input-sm select2me" Width="100%"></asp:DropDownList>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="row" style="display: flex; align-items: center; margin-bottom: 10px;" id="Div1" runat="server" visible="false">
|
||||||
<label for="DdlMarcas">Marca:</label>
|
<label class="col-md-2 truncate">Clasificación</label>
|
||||||
<asp:DropDownList ID="DdlMarcas" runat="server" DataTextField="Marca" DataValueField="CveMarca" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
<div class="col-md-10">
|
||||||
<i></i>
|
<asp:DropDownList ID="DdlClasificacion" runat="server" DataTextField="Clasificacion" DataValueField="CveClasificacion" CssClass="form-control input-sm select2me" Width="100%"></asp:DropDownList>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="row" style="display: flex; align-items: center; margin-bottom: 10px;">
|
||||||
<asp:TextBox ID="TxtMetaCantidad" CssClass="form-control " runat="server" MaxLength="70" CausesValidation="true"></asp:TextBox>
|
<div class="col-md-2">Cantidad meta</div>
|
||||||
<asp:RequiredFieldValidator ID="RfvTxtTiposD" runat="server" ControlToValidate="TxtMetaCantidad" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad meta''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTiposD"></asp:RequiredFieldValidator>
|
<div class="col-md-4">
|
||||||
<label for="MotivoTxt">Cantidad meta:</label>
|
<asp:TextBox ID="TxtMetaCantidad" CssClass="form-control" runat="server" MaxLength="70" CausesValidation="true"></asp:TextBox>
|
||||||
<i></i>
|
<asp:CompareValidator ID="CVCantidad" runat="server" ControlToValidate="TxtMetaCantidad" Display="None" ErrorMessage="El campo <b>''Cantidad meta''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpTiposD"></asp:CompareValidator>
|
||||||
</div>
|
<asp:RequiredFieldValidator ID="RFVTxtMetaCantidad" runat="server" ControlToValidate="TxtMetaCantidad" Display="None" ErrorMessage="El campo <b>''Cantidad meta''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpTiposD"></asp:RequiredFieldValidator>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
</div>
|
||||||
<asp:TextBox ID="TxtMetaImporte" CssClass="form-control " runat="server" MaxLength="70" CausesValidation="true"></asp:TextBox>
|
<div class="col-md-2">Importe meta</div>
|
||||||
<asp:RequiredFieldValidator ID="RfvTxtMetaImporte" runat="server" ControlToValidate="TxtMetaImporte" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Importe meta''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTiposD"></asp:RequiredFieldValidator>
|
<div class="col-md-4">
|
||||||
<label for="MotivoTxt">Importe meta:</label>
|
<asp:TextBox ID="TxtMetaImporte" CssClass="form-control" runat="server" MaxLength="70" CausesValidation="true"></asp:TextBox>
|
||||||
<i></i>
|
<asp:CompareValidator ID="CVImporte" runat="server" ControlToValidate="TxtMetaImporte" Display="None" ErrorMessage="El campo <b>''Cantidad meta''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpTiposD"></asp:CompareValidator>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVTxtMetaImporte" runat="server" ControlToValidate="TxtMetaImporte" Display="None" ErrorMessage="El campo <b>''Importe meta''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpTiposD"></asp:RequiredFieldValidator>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
|||||||
@@ -33,16 +33,31 @@ Partial Class CatMetasVendedores
|
|||||||
|
|
||||||
Private Sub CargaDatos()
|
Private Sub CargaDatos()
|
||||||
Dim Mes As Integer = -1, Anio As Integer = -1
|
Dim Mes As Integer = -1, Anio As Integer = -1
|
||||||
If Not String.IsNullOrEmpty(txtMesAnio.Text) Then
|
|
||||||
Dim FechaRef As DateTime = txtMesAnio.Text.ToDate()
|
If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then
|
||||||
Mes = FechaRef.Month
|
If Not String.IsNullOrEmpty(txtMesAnio.Text) Then
|
||||||
Anio = FechaRef.Year
|
Dim FechaRef As DateTime = txtMesAnio.Text.ToDate()
|
||||||
|
Mes = FechaRef.Month
|
||||||
|
Anio = FechaRef.Year
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
GvDatos.Columns(1).Visible = False
|
||||||
|
GvDatos.Columns(2).Visible = False
|
||||||
|
GvDatos.Columns(3).Visible = False
|
||||||
|
GvDatos.Columns(4).Visible = False
|
||||||
|
|
||||||
|
DivLblSucursal.Visible = False
|
||||||
|
DivSucursal.Visible = False
|
||||||
|
DivLblMes.Visible = False
|
||||||
|
DivMes.Visible = False
|
||||||
|
DivLblMarca.Visible = False
|
||||||
|
DivMarca.Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim ObjVentas As New ClsVentas
|
Dim ObjVentas As New ClsVentas
|
||||||
If ObjVentas.GetMetasVendedores(UsuarioActual.CveEmpresa, CveSubProyecto:=DdlSubProyecto.SelectedValue.ToEntero(), CveVendedor:=DdlVendedor.SelectedValue.ToEntero(), CveMarca:=DdlMarca.SelectedValue.ToEntero(), Mes:=Mes, Anio:=Anio) Then
|
If ObjVentas.GetMetasVendedores(UsuarioActual.CveEmpresa, CveSubProyecto:=DdlSubProyecto.SelectedValue.ToEntero(), CveVendedor:=DdlVendedor.SelectedValue.ToEntero(), CveMarca:=DdlMarca.SelectedValue.ToEntero(), Mes:=Mes, Anio:=Anio) Then
|
||||||
GvDatos.DataSource = ObjVentas.DtResultados
|
DtDatos = ObjVentas.DtResultados.Copy()
|
||||||
DtDatos = ObjVentas.DtResultados
|
GvDatos.DataSource = DtDatos
|
||||||
End If
|
End If
|
||||||
ObjVentas.Dispose()
|
ObjVentas.Dispose()
|
||||||
GvDatos.DataBind()
|
GvDatos.DataBind()
|
||||||
@@ -64,7 +79,13 @@ Partial Class CatMetasVendedores
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaDatosModal()
|
Private Sub CargaDatosModal()
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then
|
||||||
|
Div1.Visible = True
|
||||||
|
Div2.Visible = True
|
||||||
|
Div3.Visible = True
|
||||||
|
End If
|
||||||
|
|
||||||
DdlVendedores.DataSource = GlobalDTVendedores(UsuarioActual.CveEmpresa)
|
DdlVendedores.DataSource = GlobalDTVendedores(UsuarioActual.CveEmpresa)
|
||||||
DdlVendedores.DataBind()
|
DdlVendedores.DataBind()
|
||||||
DdlVendedores.Items.Insert(0, New ListItem("Seleccionar", "-1"))
|
DdlVendedores.Items.Insert(0, New ListItem("Seleccionar", "-1"))
|
||||||
@@ -93,29 +114,50 @@ Partial Class CatMetasVendedores
|
|||||||
|
|
||||||
Protected Sub BtnAgregarMetaVendedor_Click(sender As Object, e As EventArgs) Handles BtnAgregarMetaVendedor.Click
|
Protected Sub BtnAgregarMetaVendedor_Click(sender As Object, e As EventArgs) Handles BtnAgregarMetaVendedor.Click
|
||||||
|
|
||||||
If DdlVendedores.SelectedValue.ToEntero > 0 AndAlso TxtFechaI.Text <> "" AndAlso DdlMarcas.SelectedValue.ToEntero > 0 AndAlso DdlClasificacionSup.SelectedValue.ToEntero > 0 Then
|
Dim CveVendedor As Integer = DdlVendedores.SelectedValue.ToEntero()
|
||||||
|
Dim Fecha As Date = MinFecha
|
||||||
|
Dim CveMarca As Integer = -1
|
||||||
|
Dim CveClasificacionSuperior As Integer = -1
|
||||||
|
Dim CveClasificacion As Integer = -1
|
||||||
|
|
||||||
Dim ObjVentas As New ClsVentas
|
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then
|
||||||
|
|
||||||
|
If Not (DdlVendedores.SelectedValue.ToEntero > 0 AndAlso TxtFechaI.Text <> "" AndAlso DdlMarcas.SelectedValue.ToEntero > 0 AndAlso DdlClasificacionSup.SelectedValue.ToEntero > 0) Then
|
||||||
|
Alert(String.Format("Falta Seleccionar {0}{1}{2}", If(DdlVendedores.SelectedValue.ToEntero > 0, "", "Vendedor, "), If(DdlMarcas.SelectedValue.ToEntero > 0, "", "Marca, "), If(TxtFechaI.Text <> "", "", "Fecha, ")))
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
Fecha = TxtFechaI.Text.ToDate()
|
||||||
|
CveClasificacionSuperior = DdlClasificacionSup.SelectedValue.ToEntero
|
||||||
|
CveClasificacion = DdlClasificacion.SelectedValue.ToEntero
|
||||||
|
CveMarca = DdlMarca.SelectedValue.ToEntero
|
||||||
|
|
||||||
|
Else
|
||||||
|
If Not (DdlVendedores.SelectedValue.ToEntero > 0) Then
|
||||||
|
Alert("Falta Seleccionar el vendedor")
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
Using ObjVentas As New ClsVentas
|
||||||
If BtnAgregarMetaVendedor.Text = "Agregar" Then
|
If BtnAgregarMetaVendedor.Text = "Agregar" Then
|
||||||
If ObjVentas.AddMetasVendedores(DdlVendedores.SelectedValue.ToEntero, TxtFechaI.Text.ToDate, DdlMarcas.SelectedValue.ToEntero, TxtMetaCantidad.Text.ToEntero,
|
If ObjVentas.AddMetasVendedores(CveVendedor, Fecha, DdlMarcas.SelectedValue.ToEntero, TxtMetaCantidad.Text.ToEntero, TxtMetaImporte.Text.ToDecimal, CveClasificacion, CveClasificacionSuperior, UsuarioActual.CveEmpresa) Then
|
||||||
TxtMetaImporte.Text.ToDecimal, DdlClasificacion.SelectedValue.ToEntero, DdlClasificacionSup.SelectedValue.ToEntero, UsuarioActual.CveEmpresa) Then
|
|
||||||
Alert("Se agregó la meta al vendedor")
|
Alert("Se agregó la meta al vendedor")
|
||||||
Else
|
Else
|
||||||
Alert("No se pudo agregar la meta al vendedor", TipoMensaje.MsgError)
|
Alert("No se pudo agregar la meta al vendedor", TipoMensaje.MsgError)
|
||||||
End If
|
End If
|
||||||
ElseIf BtnAgregarMetaVendedor.Text = "Actualizar" Then
|
ElseIf BtnAgregarMetaVendedor.Text = "Actualizar" Then
|
||||||
If ObjVentas.UpdateMetasVendedores(CveMetaVendedor, DdlVendedores.SelectedValue.ToEntero, TxtFechaI.Text, DdlMarcas.SelectedValue.ToEntero,
|
If ObjVentas.UpdateMetasVendedores(CveMetaVendedor, CveVendedor, Fecha.ToString("dd/MM/yyyy"), CveMarca, TxtMetaCantidad.Text.ToEntero, TxtMetaImporte.Text.ToDecimal, CveClasificacion, CveClasificacionSuperior) Then
|
||||||
TxtMetaCantidad.Text.ToEntero, TxtMetaImporte.Text.ToDecimal, DdlClasificacion.SelectedValue.ToEntero,
|
|
||||||
DdlClasificacionSup.SelectedValue.ToEntero) Then
|
|
||||||
Alert("Se actualizó la información de la meta del vendedor")
|
Alert("Se actualizó la información de la meta del vendedor")
|
||||||
Else
|
Else
|
||||||
Alert("No se pudo actualizar la meta del vendedor", TipoMensaje.MsgError)
|
Alert("No se pudo actualizar la meta del vendedor", TipoMensaje.MsgError)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Else
|
End Using
|
||||||
Alert(String.Format("Falta Seleccionar {0}{1}{2}", If(DdlVendedores.SelectedValue.ToEntero > 0, "", "Vendedor, "), If(DdlMarcas.SelectedValue.ToEntero > 0, "", "Marca, "), If(TxtFechaI.Text <> "", "", "Fecha, ")))
|
|
||||||
End If
|
|
||||||
RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAgregarTiposD"))
|
RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAgregarTiposD"))
|
||||||
|
|
||||||
ResetDatosSeleccionadosModal()
|
ResetDatosSeleccionadosModal()
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
@@ -135,12 +177,17 @@ Partial Class CatMetasVendedores
|
|||||||
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||||
CveMetaVendedor = GvRow.DataKey("CveMeta").ToEntero
|
CveMetaVendedor = GvRow.DataKey("CveMeta").ToEntero
|
||||||
DdlVendedores.SelectedValue = GvRow.DataKey("CveVendedor")
|
DdlVendedores.SelectedValue = GvRow.DataKey("CveVendedor")
|
||||||
TxtFechaI.Text = GvRow.DataKey("MesAño")
|
|
||||||
|
|
||||||
DdlClasificacionSup.SelectedValueExist(GvRow.DataKey("CveClasificacionSup"))
|
If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then
|
||||||
DdlClasificacion.SelectedValueExist(GvRow.DataKey("CveClasificacion"))
|
|
||||||
|
TxtFechaI.Text = GvRow.DataKey("MesAño")
|
||||||
|
|
||||||
|
DdlClasificacionSup.SelectedValueExist(GvRow.DataKey("CveClasificacionSup"))
|
||||||
|
DdlClasificacion.SelectedValueExist(GvRow.DataKey("CveClasificacion"))
|
||||||
|
|
||||||
|
DdlMarcas.SelectedValue = GvRow.DataKey("CveMarca")
|
||||||
|
End If
|
||||||
|
|
||||||
DdlMarcas.SelectedValue = GvRow.DataKey("CveMarca")
|
|
||||||
TxtMetaCantidad.Text = GvRow.DataKey("MetaCantidad")
|
TxtMetaCantidad.Text = GvRow.DataKey("MetaCantidad")
|
||||||
TxtMetaImporte.Text = GvRow.DataKey("MetaImporte")
|
TxtMetaImporte.Text = GvRow.DataKey("MetaImporte")
|
||||||
UpModalTiposD.Update()
|
UpModalTiposD.Update()
|
||||||
|
|||||||
@@ -2569,7 +2569,8 @@
|
|||||||
<div class="portlet-body ">
|
<div class="portlet-body ">
|
||||||
<asp:UpdatePanel ID="UpCuentasBancos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpCuentasBancos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:GridView ID="GvBancosCuentas" GridLines="None" BorderColor="#D3D3D3" CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn" data-sort="true" runat="server" DataKeyNames="CveCuentaDeposito,BancoNombre,Sucursal,Cuenta,CLABE,SWIFT,Plaza,CIE,Referencia,CveMoneda,Estatus,EstatusTexto" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Cuentas Bancarias">
|
<asp:GridView ID="GvBancosCuentas" GridLines="None" BorderColor="#D3D3D3" CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn" data-sort="true" runat="server"
|
||||||
|
DataKeyNames="CveCuentaDeposito,BancoNombre,Sucursal,Cuenta,CLABE,SWIFT,Plaza,CIE,Referencia,CveMoneda,Estatus,EstatusTexto,CveSATBanco" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Cuentas Bancarias">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Banco" ItemStyle-CssClass="Excede">
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Banco" ItemStyle-CssClass="Excede">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -6028,53 +6029,103 @@
|
|||||||
<h4 class="modal-title" id="H2" runat="server">Cuenta Bancaria</h4>
|
<h4 class="modal-title" id="H2" runat="server">Cuenta Bancaria</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<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>
|
<div class="form-group form-md-line-input input-iconright" runat="server" id="DVDdlSatBanco" visible="true">
|
||||||
<ajax:ValidatorCalloutExtender ID="VCENombreBanco" runat="server" HighlightCssClass="vco" TargetControlID="RFVNombreBanco" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
||||||
<label for="<%= TxtNombreBanco.ClientID.ToString()%>">Nombre del Banco:</label>
|
<asp:DropDownList CssClass="form-control select2me" Width="50%" ID="DdlSatBanco" runat="server" DataTextField="Banco" DataValueField="CveSATBanco">
|
||||||
</div>
|
<asp:ListItem Value="-1">Seleccione uno</asp:ListItem>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
</asp:DropDownList>
|
||||||
<asp:TextBox ID="TxtNumeroSucursal" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
<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>
|
||||||
<label for="<%= TxtNumeroSucursal.ClientID.ToString()%>">Numero de la Sucursal:</label>
|
<ajax:ValidatorCalloutExtender ID="VCRFVDdlSatBanco" runat="server" HighlightCssClass="vco" TargetControlID="RFVDdlSatBanco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
</div>
|
<label for="<%= DdlSatBanco.ClientID.ToString()%>">Banco:</label>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:TextBox ID="TxtNumeroCuenta2" runat="server" CssClass="form-control" CausesValidation="true" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender ID="SoloNumeros" runat="server" TargetControlID="TxtNumeroCuenta2" FilterType="Numbers" />
|
|
||||||
<label for="<%= TxtNumeroCuenta2.ClientID.ToString()%>">Numero de Cuenta:</label>
|
|
||||||
</div>
|
|
||||||
<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 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 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 class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:TextBox ID="TxtConvenioCIE2" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="8" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
|
||||||
<label for="<%= TxtConvenioCIE2.ClientID.ToString()%>">CIE:</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:TextBox ID="TxtReferencia2" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="20" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender ID="SoloNumeros33" runat="server" TargetControlID="TxtReferencia2" FilterType="Numbers" />
|
|
||||||
<label for="<%= TxtReferencia2.ClientID.ToString()%>">Referencia:</label>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="row">
|
||||||
<asp:DropDownList CssClass="form-control select2me" Width="50%" ID="DdlMoneda" runat="server" DataTextField="Moneda" DataValueField="CveMoneda"></asp:DropDownList>
|
<div class="col-md-6">
|
||||||
<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>
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<ajax:ValidatorCalloutExtender ID="VCEMoneda" runat="server" HighlightCssClass="vco" TargetControlID="RFVMoneda" Width="300px"></ajax:ValidatorCalloutExtender>
|
<asp:TextBox ID="TxtNombreBanco" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="100" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
<label for="<%= DdlMoneda.ClientID.ToString()%>">Moneda:</label>
|
<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>
|
||||||
<div class="form-group form-md-line-input input-iconright" id="divestatus" runat="server">
|
|
||||||
<asp:CheckBox ID="ChkEstatus2" runat="server"></asp:CheckBox>
|
|
||||||
<label for="<%= ChkEstatus2.ClientID.ToString()%>">Estatus:</label>
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtNumeroCuenta2" runat="server" CssClass="form-control" CausesValidation="true" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros" runat="server" TargetControlID="TxtNumeroCuenta2" FilterType="Numbers" />
|
||||||
|
<label for="<%= TxtNumeroCuenta2.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="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="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtConvenioCIE2" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="8" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<label for="<%= TxtConvenioCIE2.ClientID.ToString()%>">CIE:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtReferencia2" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="20" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros33" runat="server" TargetControlID="TxtReferencia2" FilterType="Numbers" />
|
||||||
|
<label for="<%= TxtReferencia2.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: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="ChkEstatus2" runat="server"></asp:CheckBox>
|
||||||
|
<label for="<%= ChkEstatus2.ClientID.ToString()%>">Estatus:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1268,8 +1268,6 @@ Partial Class Clientes
|
|||||||
CargaMetodosPago()
|
CargaMetodosPago()
|
||||||
CargaPrecioLista()
|
CargaPrecioLista()
|
||||||
CargaVendedores()
|
CargaVendedores()
|
||||||
|
|
||||||
|
|
||||||
'CargaCorporativo()
|
'CargaCorporativo()
|
||||||
|
|
||||||
CargaMetodosPago33()
|
CargaMetodosPago33()
|
||||||
@@ -1278,12 +1276,30 @@ Partial Class Clientes
|
|||||||
|
|
||||||
CargaClasificaciones()
|
CargaClasificaciones()
|
||||||
|
|
||||||
|
|
||||||
DdlRegimenFiscal.DataSource = GlobalDTRegimenesFiscales
|
DdlRegimenFiscal.DataSource = GlobalDTRegimenesFiscales
|
||||||
DdlRegimenFiscal.DataBind()
|
DdlRegimenFiscal.DataBind()
|
||||||
|
|
||||||
CargaCombosComercioExterior()
|
CargaCombosComercioExterior()
|
||||||
|
|
||||||
|
CargaBancosSAT()
|
||||||
|
CargaMonedas()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CargaBancosSAT()
|
||||||
|
|
||||||
|
Dim ObjBancos As New ClsBancos
|
||||||
|
|
||||||
|
If ObjBancos.GetBancosSAT Then
|
||||||
|
DdlSatBanco.DataSource = ObjBancos.DtResultados
|
||||||
|
End If
|
||||||
|
|
||||||
|
ObjBancos.Dispose()
|
||||||
|
|
||||||
|
DdlSatBanco.DataBind()
|
||||||
|
DdlSatBanco.Items.Insert(0, New ListItem("Seleccione uno", "-1"))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub CargaSubProyectos()
|
Private Sub CargaSubProyectos()
|
||||||
CargarCentrosDeCosto(Nothing, DdlSubProyecto, Nothing, Nothing, AplicaTodos:="Seleccione")
|
CargarCentrosDeCosto(Nothing, DdlSubProyecto, Nothing, Nothing, AplicaTodos:="Seleccione")
|
||||||
@@ -6790,14 +6806,16 @@ Partial Class Clientes
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
ObjCuentasBancos.Dispose()
|
ObjCuentasBancos.Dispose()
|
||||||
CargaPSGridCuentasBancos()
|
CargaPSGridCuentasBancos()
|
||||||
|
|
||||||
CargaMonedas()
|
|
||||||
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
|
||||||
|
|
||||||
If TxtNombreBanco.Text.ToUpper.Contains("BBVA") Or TxtNombreBanco.Text.ToUpper.Contains("BANCOMER") Or (TxtCLABE.Text.Length = 18 AndAlso TxtCLABE.Text.Substring(0, 3) = "012") Then
|
If TxtNombreBanco.Text.ToUpper.Contains("BBVA") Or TxtNombreBanco.Text.ToUpper.Contains("BANCOMER") Or
|
||||||
|
DdlSatBanco.SelectedItem.Text.ToUpper.Contains("BBVA") Or
|
||||||
|
DdlSatBanco.SelectedItem.Text.ToUpper.Contains("BANCOMER") Or (TxtCLABE.Text.Length = 18 AndAlso TxtCLABE.Text.Substring(0, 3) = "012") Then
|
||||||
EsBancomer = True
|
EsBancomer = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -6852,15 +6870,19 @@ Partial Class Clientes
|
|||||||
Dim Estatus As Boolean
|
Dim Estatus As Boolean
|
||||||
If ChkEstatus2.Checked = True Then Estatus = True Else Estatus = False
|
If ChkEstatus2.Checked = True Then Estatus = True Else Estatus = False
|
||||||
|
|
||||||
AgregarCuentaBanco(TxtNombreBanco.Text.Trim, TxtNumeroSucursal.Text.Trim, TxtCLABE.Text.Trim, TxtSWIFT.Text.Trim, TxtPlaza.Text.Trim, TxtNumeroCuenta2.Text.Trim, TxtConvenioCIE2.Text.Trim, TxtReferencia2.Text.Trim, "", DdlMoneda.SelectedValue.ToEntero(), DdlMoneda.SelectedItem.Text, Estatus)
|
AgregarCuentaBanco(TxtNombreBanco.Text.Trim, TxtNumeroSucursal.Text.Trim, TxtCLABE.Text.Trim, TxtSWIFT.Text.Trim, TxtPlaza.Text.Trim, TxtNumeroCuenta2.Text.Trim, TxtConvenioCIE2.Text.Trim, TxtReferencia2.Text.Trim, "",
|
||||||
|
DdlMoneda.SelectedValue.ToEntero(), DdlMoneda.SelectedItem.Text, Estatus, DdlSatBanco.SelectedValue.ToEntero)
|
||||||
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, RefCrediProveedor As String, CveMoneda As Integer, Moneda As String, Estatus 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, CveSATBanco As Integer)
|
||||||
|
|
||||||
Dim ObjCuentasBancos As New ClsGenerales
|
Dim ObjCuentasBancos As New ClsGenerales
|
||||||
|
|
||||||
If Modalidad = "A" Then
|
If Modalidad = "A" Then
|
||||||
|
|
||||||
If CveCliente > 0 Then
|
If CveCliente > 0 Then
|
||||||
|
|
||||||
If ObjCuentasBancos.AddCuentasDepositos(NombreBanco, Plaza, NumeroSucursal, NumeroCuenta, CLABE, ConvenioCIE, SWIFT, Referencia, RefCrediProveedor, UsuarioActual.CveUsuario, CveMoneda, UsuarioActual.CveEmpresa, CveCliente:=CveCliente) Then
|
If ObjCuentasBancos.AddCuentasDepositos(NombreBanco, Plaza, NumeroSucursal, NumeroCuenta, CLABE, ConvenioCIE, SWIFT, Referencia, RefCrediProveedor, UsuarioActual.CveUsuario, CveMoneda, UsuarioActual.CveEmpresa, CveCliente:=CveCliente, CveSATBanco:=CveSATBanco) Then
|
||||||
DTCuentasBancos.Clear()
|
DTCuentasBancos.Clear()
|
||||||
Alert("Cuenta Bancaria agregada con éxito.", TipoMensaje.MsgInformacion)
|
Alert("Cuenta Bancaria agregada con éxito.", TipoMensaje.MsgInformacion)
|
||||||
RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAddCuentasBancarias"))
|
RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAddCuentasBancarias"))
|
||||||
@@ -6871,6 +6893,31 @@ Partial Class Clientes
|
|||||||
|
|
||||||
Else
|
Else
|
||||||
Dim Row As DataRow
|
Dim Row As DataRow
|
||||||
|
|
||||||
|
If TempDTCuentasBancos Is Nothing Then
|
||||||
|
TempDTCuentasBancos = New DataTable
|
||||||
|
TempDTCuentasBancos.Columns.Add("CveCuentaDeposito", GetType(Integer))
|
||||||
|
TempDTCuentasBancos.Columns.Add("BancoNombre", GetType(String))
|
||||||
|
TempDTCuentasBancos.Columns.Add("Sucursal", GetType(String))
|
||||||
|
|
||||||
|
TempDTCuentasBancos.Columns.Add("CLABE", GetType(String))
|
||||||
|
TempDTCuentasBancos.Columns.Add("SWIFT", GetType(String))
|
||||||
|
TempDTCuentasBancos.Columns.Add("Plaza", GetType(String))
|
||||||
|
TempDTCuentasBancos.Columns.Add("Cuenta", GetType(String))
|
||||||
|
TempDTCuentasBancos.Columns.Add("CIE", GetType(String))
|
||||||
|
TempDTCuentasBancos.Columns.Add("Referencia", GetType(String))
|
||||||
|
TempDTCuentasBancos.Columns.Add("RefCrediProveedor", GetType(String))
|
||||||
|
TempDTCuentasBancos.Columns.Add("CveMoneda", GetType(Integer))
|
||||||
|
TempDTCuentasBancos.Columns.Add("Moneda", GetType(String))
|
||||||
|
TempDTCuentasBancos.Columns.Add("EstatusPagoElectronico", GetType(Integer))
|
||||||
|
TempDTCuentasBancos.Columns.Add("Estatus", GetType(String))
|
||||||
|
TempDTCuentasBancos.Columns.Add("CveSATBanco", GetType(Integer))
|
||||||
|
TempDTCuentasBancos.Columns.Add("EstatusTexto", GetType(String))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
Row = TempDTCuentasBancos.NewRow
|
Row = TempDTCuentasBancos.NewRow
|
||||||
|
|
||||||
Row("BancoNombre") = NombreBanco
|
Row("BancoNombre") = NombreBanco
|
||||||
@@ -6886,6 +6933,7 @@ Partial Class Clientes
|
|||||||
Row("Moneda") = Moneda
|
Row("Moneda") = Moneda
|
||||||
Row("EstatusPagoElectronico") = 0
|
Row("EstatusPagoElectronico") = 0
|
||||||
Row("Estatus") = "True"
|
Row("Estatus") = "True"
|
||||||
|
Row("CveSATBanco") = CveSATBanco
|
||||||
TempDTCuentasBancos.Rows.Add(Row)
|
TempDTCuentasBancos.Rows.Add(Row)
|
||||||
Alert("Cuenta Bancaria agregada con éxito.", TipoMensaje.MsgInformacion)
|
Alert("Cuenta Bancaria agregada con éxito.", TipoMensaje.MsgInformacion)
|
||||||
RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAddCuentasBancarias"))
|
RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAddCuentasBancarias"))
|
||||||
@@ -6896,7 +6944,8 @@ Partial Class Clientes
|
|||||||
|
|
||||||
If CveCliente > 0 Then
|
If CveCliente > 0 Then
|
||||||
|
|
||||||
If ObjCuentasBancos.UpdateCuentasDepositos(GvBancosCuentas.DataKeys(CveCuentaBancaria)("CveCuentaDeposito").ToString().ToEntero(), NombreBanco, Plaza, NumeroSucursal, NumeroCuenta, CLABE, ConvenioCIE, SWIFT, Referencia, "", False, Estatus, CveMoneda, UsuarioActual.CveEmpresa) Then
|
If ObjCuentasBancos.UpdateCuentasDepositos(GvBancosCuentas.DataKeys(CveCuentaBancaria)("CveCuentaDeposito").ToString().ToEntero(), NombreBanco, Plaza, NumeroSucursal, NumeroCuenta, CLABE, ConvenioCIE, SWIFT, Referencia, "", False, Estatus, CveMoneda, UsuarioActual.CveEmpresa,
|
||||||
|
CveSATBanco:=CveSATBanco) Then
|
||||||
DTCuentasBancos.Clear()
|
DTCuentasBancos.Clear()
|
||||||
CargaCuentasBancarias()
|
CargaCuentasBancarias()
|
||||||
Alert("Cuenta actualizada con éxito.", TipoMensaje.MsgInformacion)
|
Alert("Cuenta actualizada con éxito.", TipoMensaje.MsgInformacion)
|
||||||
@@ -6920,6 +6969,7 @@ Partial Class Clientes
|
|||||||
Row("CveMoneda") = CveMoneda
|
Row("CveMoneda") = CveMoneda
|
||||||
Row("Moneda") = Moneda
|
Row("Moneda") = Moneda
|
||||||
Row("Estatus") = Estatus
|
Row("Estatus") = Estatus
|
||||||
|
Row("CveSATBanco") = CveSATBanco
|
||||||
TempDTCuentasBancos.AcceptChanges()
|
TempDTCuentasBancos.AcceptChanges()
|
||||||
Alert("Cuenta actualizada con éxito.", TipoMensaje.MsgInformacion)
|
Alert("Cuenta actualizada con éxito.", TipoMensaje.MsgInformacion)
|
||||||
RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAddCuentasBancarias"))
|
RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAddCuentasBancarias"))
|
||||||
@@ -6932,6 +6982,7 @@ Partial Class Clientes
|
|||||||
RecargaGlobalCuentasBancarias()
|
RecargaGlobalCuentasBancarias()
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub LimpiaCuentasBancarias()
|
Private Sub LimpiaCuentasBancarias()
|
||||||
|
DdlSatBanco.SelectedValueExist(-1)
|
||||||
TxtNombreBanco.Text = ""
|
TxtNombreBanco.Text = ""
|
||||||
TxtNumeroSucursal.Text = ""
|
TxtNumeroSucursal.Text = ""
|
||||||
TxtCLABE.Text = ""
|
TxtCLABE.Text = ""
|
||||||
@@ -7014,7 +7065,8 @@ Partial Class Clientes
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub LnkCuentasBancarias_Click(sender As Object, e As EventArgs) Handles LnkCuentasBancarias.Click
|
Private Sub LnkCuentasBancarias_Click(sender As Object, e As EventArgs) Handles LnkCuentasBancarias.Click
|
||||||
Modalidad = "A"
|
Modalidad = "A"
|
||||||
|
DdlSatBanco.SelectedValueExist(-1)
|
||||||
TxtNombreBanco.Text = ""
|
TxtNombreBanco.Text = ""
|
||||||
LbAgregarCuentaBanco.Text = "Agregar"
|
LbAgregarCuentaBanco.Text = "Agregar"
|
||||||
TxtNumeroSucursal.Text = ""
|
TxtNumeroSucursal.Text = ""
|
||||||
@@ -7033,6 +7085,9 @@ Partial Class Clientes
|
|||||||
|
|
||||||
Public Sub Edit_Click2(sender As Object, e As EventArgs)
|
Public Sub Edit_Click2(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)
|
||||||
|
|
||||||
|
|
||||||
|
DdlSatBanco.SelectedValueExist(GvRow.DataKey("CveSATBanco"))
|
||||||
TxtNombreBanco.Text = GvRow.DataKey("BancoNombre")
|
TxtNombreBanco.Text = GvRow.DataKey("BancoNombre")
|
||||||
Modalidad = "U"
|
Modalidad = "U"
|
||||||
LbAgregarCuentaBanco.Text = "Actualizar"
|
LbAgregarCuentaBanco.Text = "Actualizar"
|
||||||
|
|||||||
@@ -1330,13 +1330,15 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
If UsuarioActual.Empresa.Funcionalidad(382) = "1" AndAlso TxtAnticipo.Text.ToDecimal > 0 AndAlso MsgError = "" Then '' si es empresa GDiaz
|
If UsuarioActual.Empresa.Funcionalidad(382) = "1" AndAlso TxtAnticipo.Text.ToDecimal > 0 AndAlso MsgError = "" Then '' si es empresa GDiaz
|
||||||
'generar un anticipo y registrarle el pago.
|
'generar un anticipo y registrarle el pago.
|
||||||
|
|
||||||
Dim tCveMoneda As Integer = 1
|
Dim tCveMoneda As Integer = Me.CveMoneda
|
||||||
Dim tCveFormaPago As Integer = GlobalDTTipoTransacciones().FiltroPrimeroValor("CveFormaPago", $"CveTipoTransaccion={DdlTipoTransaccion.SelectedValue}").ToEntero
|
Dim tCveFormaPago As Integer = GlobalDTTipoTransacciones().FiltroPrimeroValor("CveFormaPago", $"CveTipoTransaccion={DdlTipoTransaccion.SelectedValue}").ToEntero
|
||||||
Dim tCvePS As Integer
|
Dim tCvePS As Integer
|
||||||
Dim tCveUM As Integer = 0
|
Dim tCveUM As Integer = 0
|
||||||
Dim tCveSub As Integer = DdlSubProyectos.SelectedValue.ToEntero
|
Dim tCveSub As Integer = DdlSubProyectos.SelectedValue.ToEntero
|
||||||
ObjFacturaAnt = Modelos.Factura.CrearVentaNueva(UsuarioActual, tCveSub, CveCliente, tCveMoneda, "Ant")
|
ObjFacturaAnt = Modelos.Factura.CrearVentaNueva(UsuarioActual, tCveSub, CveCliente, tCveMoneda, "Ant")
|
||||||
ObjFacturaAnt.CveMoneda = tCveMoneda
|
ObjFacturaAnt.CveMoneda = tCveMoneda
|
||||||
|
ObjFacturaAnt.TipoCambio = If(tCveMoneda = 1, 1, TxtTCDolares.Text.ToDecimal())
|
||||||
|
ObjFacturaAnt.TipoCambioDolares = If(tCveMoneda = 1, 1, TxtTCDolares.Text.ToDecimal())
|
||||||
ObjFacturaAnt.CveFormaPago = tCveFormaPago
|
ObjFacturaAnt.CveFormaPago = tCveFormaPago
|
||||||
ObjFacturaAnt.CveMetodoPago = 1
|
ObjFacturaAnt.CveMetodoPago = 1
|
||||||
ObjFacturaAnt.ClaveMetodoPagoSAT = "PUE"
|
ObjFacturaAnt.ClaveMetodoPagoSAT = "PUE"
|
||||||
@@ -1355,7 +1357,7 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
RespAnt = ObjFacturaAnt.EmitirFactura(False, Transac:=ObjMov.IniciaTransacSQL(), Modulo:="Ventas/ClientesAbonarAnt", MostrarURL:=True)
|
RespAnt = ObjFacturaAnt.EmitirFactura(False, Transac:=ObjMov.IniciaTransacSQL(), Modulo:="Ventas/ClientesAbonarAnt", MostrarURL:=True)
|
||||||
RespAnt.Factura = ObjFacturaAnt
|
RespAnt.Factura = ObjFacturaAnt
|
||||||
|
|
||||||
If RespAnt IsNot Nothing AndAlso RespAnt.Factura IsNot Nothing Then
|
If RespAnt IsNot Nothing AndAlso RespAnt.Factura IsNot Nothing AndAlso RespAnt.Factura.CveVenta > 0 Then
|
||||||
|
|
||||||
Dim VentaActual As New Venta(UsuarioActual)
|
Dim VentaActual As New Venta(UsuarioActual)
|
||||||
VentaActual.CveVenta = RespAnt.Factura.CveVenta
|
VentaActual.CveVenta = RespAnt.Factura.CveVenta
|
||||||
@@ -1365,7 +1367,7 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
VentaActual.TipoDocto = "Ant"
|
VentaActual.TipoDocto = "Ant"
|
||||||
VentaActual.SerieFolio = RespAnt.Factura.SerieFolio
|
VentaActual.SerieFolio = RespAnt.Factura.SerieFolio
|
||||||
VentaActual.ClienteNombre = NombreComercial
|
VentaActual.ClienteNombre = NombreComercial
|
||||||
VentaActual.TC = 1
|
VentaActual.TC = If(tCveMoneda = 1, 1, TxtTCDolares.Text.ToDecimal())
|
||||||
VentaActual.Total = TxtAnticipo.Text.ToDecimal
|
VentaActual.Total = TxtAnticipo.Text.ToDecimal
|
||||||
VentaActual.IVA = (tPorIVA * tPU).RoundSQL(2)
|
VentaActual.IVA = (tPorIVA * tPU).RoundSQL(2)
|
||||||
|
|
||||||
@@ -1381,6 +1383,8 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
Pago.ImportePagoVenta = TxtAnticipo.Text.ToDecimal
|
Pago.ImportePagoVenta = TxtAnticipo.Text.ToDecimal
|
||||||
Pago.Referencia = TxtFolio.Text
|
Pago.Referencia = TxtFolio.Text
|
||||||
Pago.TipoPago = "XXX"
|
Pago.TipoPago = "XXX"
|
||||||
|
Pago.TCPago = If(tCveMoneda = 1, 1, TxtTCDolares.Text.ToDecimal())
|
||||||
|
|
||||||
'If RblTipoPago.SelectedValue = "3" Then
|
'If RblTipoPago.SelectedValue = "3" Then
|
||||||
' Pago.TipoPago = "I"
|
' Pago.TipoPago = "I"
|
||||||
' Pago.FechaDocumentoRelacionado = FechaIngreso
|
' Pago.FechaDocumentoRelacionado = FechaIngreso
|
||||||
@@ -1390,6 +1394,8 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
If MsgError = "" AndAlso AplicaPrePolizaPagoVenta(VentaActual, Pago, CvePrePoliza, ObjMov) Then
|
If MsgError = "" AndAlso AplicaPrePolizaPagoVenta(VentaActual, Pago, CvePrePoliza, ObjMov) Then
|
||||||
MsgError = "No se pudo insertar la póliza"
|
MsgError = "No se pudo insertar la póliza"
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
MsgError = "Ocurrió un error al generar el anticipo"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
@@ -8482,6 +8482,9 @@ Partial Class PV
|
|||||||
Case "MOTOBATERIA"
|
Case "MOTOBATERIA"
|
||||||
'20517 MOTOBATERIAS
|
'20517 MOTOBATERIAS
|
||||||
ListaClasificacionesPermitidas.Add(20517) 'MOTOBATERIAS
|
ListaClasificacionesPermitidas.Add(20517) 'MOTOBATERIAS
|
||||||
|
Case "AUXILIAR"
|
||||||
|
'30043 AUXILIAR
|
||||||
|
ListaClasificacionesPermitidas.Add(30043) 'AUXILIAR
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
If ListaClasificacionesPermitidas.Contains(CveClasificacionPS) Then
|
If ListaClasificacionesPermitidas.Contains(CveClasificacionPS) Then
|
||||||
|
|||||||
@@ -3436,6 +3436,110 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="portlet light xspadding bordered whitoutcol">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption font-green">
|
||||||
|
<i class="icon-pin font-green"></i>
|
||||||
|
<span class="caption-subject bold uppercase">S. Parcial construcción</span>
|
||||||
|
</div>
|
||||||
|
<div class="actions">
|
||||||
|
<div class="btn-group">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="tools">
|
||||||
|
<a href="javascript:;" class="expand"></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body form-horizontal form-row-sepe formnombottom" style="display: none;">
|
||||||
|
<div class="form-body">
|
||||||
|
<div class="row" style="display: flex; align-items: center; margin-bottom: 10px;">
|
||||||
|
<div class="col-md-4">
|
||||||
|
NumPerLicoAut
|
||||||
|
</div>
|
||||||
|
<div class="col-md-8">
|
||||||
|
<asp:TextBox ID="TxtNumPerLicoAut" CssClass="form-control" runat="server" CausesValidation="true" Width="100%"></asp:TextBox>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row" style="display: flex; align-items: center; margin-bottom: 10px;">
|
||||||
|
<div class="col-md-4">
|
||||||
|
Calle
|
||||||
|
</div>
|
||||||
|
<div class="col-md-8">
|
||||||
|
<asp:TextBox ID="TxtSCCalle" CssClass="form-control" runat="server" CausesValidation="true" Width="100%"></asp:TextBox>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row" style="display: flex; align-items: center; margin-bottom: 10px;">
|
||||||
|
<div class="col-md-4">
|
||||||
|
No Exterior
|
||||||
|
</div>
|
||||||
|
<div class="col-md-8">
|
||||||
|
<asp:TextBox ID="TxtSCNoExt" CssClass="form-control" runat="server" CausesValidation="true" Width="100%"></asp:TextBox>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row" style="display: flex; align-items: center; margin-bottom: 10px;">
|
||||||
|
<div class="col-md-4">
|
||||||
|
No Interior
|
||||||
|
</div>
|
||||||
|
<div class="col-md-8">
|
||||||
|
<asp:TextBox ID="TxtSCNoInt" CssClass="form-control" runat="server" CausesValidation="true" Width="100%"></asp:TextBox>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row" style="display: flex; align-items: center; margin-bottom: 10px;">
|
||||||
|
<div class="col-md-4">
|
||||||
|
Colonia
|
||||||
|
</div>
|
||||||
|
<div class="col-md-8">
|
||||||
|
<asp:TextBox ID="TxtSCColonia" CssClass="form-control" runat="server" CausesValidation="true" Width="100%"></asp:TextBox>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row" style="display: flex; align-items: center; margin-bottom: 10px;">
|
||||||
|
<div class="col-md-4">
|
||||||
|
Localidad
|
||||||
|
</div>
|
||||||
|
<div class="col-md-8">
|
||||||
|
<asp:TextBox ID="TxtSCLocalidad" CssClass="form-control" runat="server" CausesValidation="true" Width="100%"></asp:TextBox>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row" style="display: flex; align-items: center; margin-bottom: 10px;">
|
||||||
|
<div class="col-md-4">
|
||||||
|
Referencia
|
||||||
|
</div>
|
||||||
|
<div class="col-md-8">
|
||||||
|
<asp:TextBox ID="TxtSCReferencia" CssClass="form-control" runat="server" CausesValidation="true" Width="100%"></asp:TextBox>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row" style="display: flex; align-items: center; margin-bottom: 10px;">
|
||||||
|
<div class="col-md-4">
|
||||||
|
Municipio
|
||||||
|
</div>
|
||||||
|
<div class="col-md-8">
|
||||||
|
<asp:TextBox ID="TxtSCMunicipio" CssClass="form-control" runat="server" CausesValidation="true" Width="100%"></asp:TextBox>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row" style="display: flex; align-items: center; margin-bottom: 10px;">
|
||||||
|
<div class="col-md-4">
|
||||||
|
Estado
|
||||||
|
</div>
|
||||||
|
<div class="col-md-8">
|
||||||
|
<asp:DropDownList ID="DdlSCEstado" DataTextField="NombreEstado" DataValueField="CveEstado" runat="server" CssClass="form-control input-sm select2me" Width="100%">
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row" style="display: flex; align-items: center; margin-bottom: 10px;">
|
||||||
|
<div class="col-md-4">
|
||||||
|
Código Postal
|
||||||
|
</div>
|
||||||
|
<div class="col-md-8">
|
||||||
|
<asp:TextBox ID="TxtSCCP" CssClass="form-control" runat="server" CausesValidation="true" Width="100%"></asp:TextBox>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
@@ -8256,7 +8360,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="DivCancelarEgs" runat="server" visible="false">
|
<div id="DivCancelarEgs" runat="server" visible="false">
|
||||||
<h5>
|
<h5>
|
||||||
<asp:CheckBox ID="ChkCancelarNC" runat="server" Checked="false"/><asp:Label ID="Label4" Text="Cancelar Nota de crédito" runat="server"></asp:Label>
|
<asp:CheckBox ID="ChkCancelarNC" runat="server" Checked="false" /><asp:Label ID="Label4" Text="Cancelar Nota de crédito" runat="server"></asp:Label>
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ Imports Microsoft.Reporting.WebForms
|
|||||||
Imports Modelos
|
Imports Modelos
|
||||||
Imports Newtonsoft.Json.Linq
|
Imports Newtonsoft.Json.Linq
|
||||||
Imports GemBox.Spreadsheet
|
Imports GemBox.Spreadsheet
|
||||||
|
Imports Newtonsoft.Json
|
||||||
|
|
||||||
Partial Class Ventas
|
Partial Class Ventas
|
||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
@@ -2737,6 +2738,10 @@ Partial Class Ventas
|
|||||||
CargaDdlClientesSucursal()
|
CargaDdlClientesSucursal()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
DdlSCEstado.DataSource = GlobalDTGralEstados("MEX")
|
||||||
|
DdlSCEstado.DataBind()
|
||||||
|
DdlSCEstado.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
|
||||||
|
|
||||||
'SI USUARIO USA AMORTIZACIÓN CONTABLE, se carga las tablas para usarlas mas adelante
|
'SI USUARIO USA AMORTIZACIÓN CONTABLE, se carga las tablas para usarlas mas adelante
|
||||||
If UsuarioActual.Empresa.TipoContabilidad = 2 AndAlso UsuarioActual.Empresa.UsaAC Then
|
If UsuarioActual.Empresa.TipoContabilidad = 2 AndAlso UsuarioActual.Empresa.UsaAC Then
|
||||||
@@ -5295,6 +5300,26 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
HplDownXML.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=FactVta&CVEVENTA={0}&EXT={1}&SERIEFOLIO={2}&TIPODOCTO={3}", CveVenta, "XML", DbRowVenta("SerieFolio"), DbRowVenta("TipoDocto"))))
|
HplDownXML.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=FactVta&CVEVENTA={0}&EXT={1}&SERIEFOLIO={2}&TIPODOCTO={3}", CveVenta, "XML", DbRowVenta("SerieFolio"), DbRowVenta("TipoDocto"))))
|
||||||
|
|
||||||
|
If Not String.IsNullOrEmpty(DbRowVenta("ComplementoSAT").ToString()) AndAlso DbRowVenta("CveComplementoTimbrado").ToString() = "9" Then
|
||||||
|
Dim settings As New JsonSerializerSettings
|
||||||
|
settings.NullValueHandling = NullValueHandling.Ignore
|
||||||
|
|
||||||
|
Dim pc As Modelos.MParcialesConstruccion = JsonConvert.DeserializeObject(Of MParcialesConstruccion)(DbRowVenta("ComplementoSAT").ToString(), settings)
|
||||||
|
If pc IsNot Nothing Then
|
||||||
|
TxtNumPerLicoAut.Text = pc.NumPerLicoAut
|
||||||
|
TxtSCCalle.Text = pc.Calle
|
||||||
|
TxtSCNoInt.Text = pc.NoInterior
|
||||||
|
TxtSCNoExt.Text = pc.NoExterior
|
||||||
|
TxtSCColonia.Text = pc.Colonia
|
||||||
|
TxtSCLocalidad.Text = pc.Localidad
|
||||||
|
TxtSCReferencia.Text = pc.Referencia
|
||||||
|
TxtSCMunicipio.Text = pc.Municipio
|
||||||
|
DdlSCEstado.SelectedValueExist(pc.CveEstado)
|
||||||
|
TxtSCCP.Text = pc.CodigoPostal
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
Case "Egs"
|
Case "Egs"
|
||||||
HplDownXML.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=FactVta&CVEVENTA={0}&EXT={1}&SERIEFOLIO={2}&TIPODOCTO={3}", CveVenta, "XML", DbRowVenta("SerieFolio"), DbRowVenta("TipoDocto"))))
|
HplDownXML.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=FactVta&CVEVENTA={0}&EXT={1}&SERIEFOLIO={2}&TIPODOCTO={3}", CveVenta, "XML", DbRowVenta("SerieFolio"), DbRowVenta("TipoDocto"))))
|
||||||
HdnFolioFiscalNC.Value = DbRowVenta("FolioFiscalPadre").ToString()
|
HdnFolioFiscalNC.Value = DbRowVenta("FolioFiscalPadre").ToString()
|
||||||
@@ -13498,6 +13523,25 @@ Partial Class Ventas
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If Not String.IsNullOrEmpty(TxtNumPerLicoAut.Text.Trim()) Then
|
||||||
|
Dim ObjComplemento As New Modelos.MParcialesConstruccion
|
||||||
|
ObjComplemento.NumPerLicoAut = TxtNumPerLicoAut.Text.Trim
|
||||||
|
ObjComplemento.Calle = TxtSCCalle.Text.Trim
|
||||||
|
ObjComplemento.NoInterior = TxtSCNoInt.Text.Trim
|
||||||
|
ObjComplemento.NoExterior = TxtSCNoExt.Text.Trim
|
||||||
|
ObjComplemento.Colonia = TxtSCColonia.Text.Trim
|
||||||
|
ObjComplemento.Localidad = TxtSCLocalidad.Text.Trim
|
||||||
|
ObjComplemento.Referencia = TxtSCReferencia.Text.Trim
|
||||||
|
ObjComplemento.Municipio = TxtSCMunicipio.Text.Trim
|
||||||
|
ObjComplemento.CveEstado = DdlSCEstado.SelectedValue.ToEntero()
|
||||||
|
Dim Estado = GlobalDTGralEstados("MEX").FiltroPrimeroValor("ClaveImpuestoEstado", $"CveEstado = {ObjComplemento.CveEstado}")
|
||||||
|
ObjComplemento.Estado = Estado
|
||||||
|
ObjComplemento.CodigoPostal = TxtSCCP.Text.Trim
|
||||||
|
|
||||||
|
ObjFactura.CveComplementoTimbrado = 9
|
||||||
|
ObjFactura.ComplementoSAT = JsonConvert.SerializeObject(ObjComplemento)
|
||||||
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CreaObjetosVentaDevolucion()
|
Private Sub CreaObjetosVentaDevolucion()
|
||||||
@@ -14811,7 +14855,6 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If Not ObjVentas.AddVenta(factura.TipoDocto, factura.Folio, factura.CveCliente, factura.CveClienteSucursal, factura.SubTotalTC, factura.DescuentoTC,
|
If Not ObjVentas.AddVenta(factura.TipoDocto, factura.Folio, factura.CveCliente, factura.CveClienteSucursal, factura.SubTotalTC, factura.DescuentoTC,
|
||||||
factura.AmortizacionTC, factura.IVATC, factura.RetIVATC, factura.RetISRTC,
|
factura.AmortizacionTC, factura.IVATC, factura.RetIVATC, factura.RetISRTC,
|
||||||
factura.TotalTC, factura.CveMoneda, factura.TipoCambio, factura.CveMetodoPago, factura.CondicionesPago, 0, factura.FechaPago, factura.Fecha, factura.MotivoDescuento,
|
factura.TotalTC, factura.CveMoneda, factura.TipoCambio, factura.CveMetodoPago, factura.CondicionesPago, 0, factura.FechaPago, factura.Fecha, factura.MotivoDescuento,
|
||||||
@@ -14830,7 +14873,7 @@ Partial Class Ventas
|
|||||||
FormaPaqueteria:=RblPaqueteria.SelectedValue.ToEntero, FacturarSucursal:=factura.FacturarSucursal, VentaDesglosaIEPS:=factura.VentaDesglosaIEPS, RFCReceptor:=RFCReceptor, Adjunto:=Adjunto, DevolucionImportePagado:=factura.DevolucionImportePagado, EsGarantia:=factura.EsGarantia, ServicioDomicilio:=TrServicioDomicilio.Visible,
|
FormaPaqueteria:=RblPaqueteria.SelectedValue.ToEntero, FacturarSucursal:=factura.FacturarSucursal, VentaDesglosaIEPS:=factura.VentaDesglosaIEPS, RFCReceptor:=RFCReceptor, Adjunto:=Adjunto, DevolucionImportePagado:=factura.DevolucionImportePagado, EsGarantia:=factura.EsGarantia, ServicioDomicilio:=TrServicioDomicilio.Visible,
|
||||||
CveLineaAdicional:=CveLAdicional, DescripcionVenta:=DescripcionVenta,
|
CveLineaAdicional:=CveLAdicional, DescripcionVenta:=DescripcionVenta,
|
||||||
CveMedico:=CveMedico, CveProcedimiento:=CveProcedimiento, CveTipoVenta:=CveTipoVentaGuardar, RequiereOS:=ChkRequiereTecnico.Checked, FechaParaSurtir:=factura.FechaParaSurtir,
|
CveMedico:=CveMedico, CveProcedimiento:=CveProcedimiento, CveTipoVenta:=CveTipoVentaGuardar, RequiereOS:=ChkRequiereTecnico.Checked, FechaParaSurtir:=factura.FechaParaSurtir,
|
||||||
Paciente:=TxtPaciente.Text, Episodio:=TxtEpisodio.Text, CveMotivoDevolucion:=CveMotivoDevolucion, CveCobranzaEstatusTurno:=DdlGestionCobranza.SelectedValue.ToEntero, Addenda:=factura.Addenda, Bloqueada:=factura.Bloqueada) Then
|
Paciente:=TxtPaciente.Text, Episodio:=TxtEpisodio.Text, CveMotivoDevolucion:=CveMotivoDevolucion, CveCobranzaEstatusTurno:=DdlGestionCobranza.SelectedValue.ToEntero, Addenda:=factura.Addenda, Bloqueada:=factura.Bloqueada, CveComplementoTimbrado:=factura.CveComplementoTimbrado, ComplementoSAT:=factura.ComplementoSAT) Then
|
||||||
ErrorList.Add("Ocurrió un error al Generar la Venta.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
ErrorList.Add("Ocurrió un error al Generar la Venta.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
||||||
Else
|
Else
|
||||||
If factura.TipoDocto.Contiene("Dev", "Egs") OrElse DtVentasNC IsNot Nothing OrElse CveEstatusRefacturacion > 0 OrElse CveAnticipoPadre > 0 Then
|
If factura.TipoDocto.Contiene("Dev", "Egs") OrElse DtVentasNC IsNot Nothing OrElse CveEstatusRefacturacion > 0 OrElse CveAnticipoPadre > 0 Then
|
||||||
@@ -16245,8 +16288,16 @@ Partial Class Ventas
|
|||||||
|
|
||||||
importeMovimiento = 0
|
importeMovimiento = 0
|
||||||
Case 103 'Descuento
|
Case 103 'Descuento
|
||||||
If ObjFactura.Descuento <> 0 AndAlso Not ObjFactura.TipoDocto.Contiene("Rem", "RNC") AndAlso
|
|
||||||
(DdlTipoAmortizacionAnticipo.SelectedValue = "-1" OrElse UsuarioActual.CveEmpresa.Contiene(140, 141, 190, 192)) Then
|
Dim AplicaDescuento As Boolean = ObjFactura.Descuento <> 0 AndAlso Not ObjFactura.TipoDocto.Contiene("Rem", "RNC") AndAlso
|
||||||
|
(DdlTipoAmortizacionAnticipo.SelectedValue = "-1" OrElse UsuarioActual.CveEmpresa.Contiene(140, 141, 190, 192))
|
||||||
|
|
||||||
|
'SI SE AMORTIZO CON DESCUENTO, NO APLICAR EL CONCEPTO
|
||||||
|
If AplicaDescuento AndAlso ObjFactura.CveTipoAmortizacionAnticipo = 1 Then
|
||||||
|
AplicaDescuento = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If AplicaDescuento Then
|
||||||
|
|
||||||
importeMovimiento = ObjFactura.Descuento * Multiplicador * ValorMultiplicador
|
importeMovimiento = ObjFactura.Descuento * Multiplicador * ValorMultiplicador
|
||||||
importeMX = Math.Round(importeMovimiento, 2) * tipoCambio * Multiplicador * ValorMultiplicador
|
importeMX = Math.Round(importeMovimiento, 2) * tipoCambio * Multiplicador * ValorMultiplicador
|
||||||
@@ -17494,7 +17545,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'AGREGAR LOS ANTICIPOS, DEV, IxC QUE ESTEN EN PUBLICO GENERAL
|
'AGREGAR LOS ANTICIPOS, DEV, IxC QUE ESTEN EN PUBLICO GENERAL
|
||||||
If Me.TmpDTAnticiposNCIxCCliente IsNot Nothing AndAlso UsuarioActual.CveEmpresa.Contiene(189, 190, 192, 195, 197) Then
|
If Me.TmpDTAnticiposNCIxCCliente IsNot Nothing AndAlso UsuarioActual.CveEmpresa.Contiene(190, 192, 195, 197) Then
|
||||||
Dim CveClientePublicoGeneral = UsuarioActual.Empresa.Funcionalidad(714).ToEntero()
|
Dim CveClientePublicoGeneral = UsuarioActual.Empresa.Funcionalidad(714).ToEntero()
|
||||||
If CveClientePublicoGeneral > 0 Then
|
If CveClientePublicoGeneral > 0 Then
|
||||||
If CveCliente <> CveClientePublicoGeneral Then
|
If CveCliente <> CveClientePublicoGeneral Then
|
||||||
@@ -25368,7 +25419,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
TxtImporteContado.Text = TxtTotal.Text
|
TxtImporteContado.Text = TxtTotal.Text
|
||||||
'SI ES MODALIDAD COBRANZA, NO MOSTRAR
|
'SI ES MODALIDAD COBRANZA, NO MOSTRAR
|
||||||
If (UsuarioActual.Empresa.Funcionalidad(109) = "1") Then
|
If (UsuarioActual.Empresa.Funcionalidad(109) = "1" OrElse UsuarioActual.CveEmpresa = 197) Then
|
||||||
DivContado.Visible = UsuarioActual.TienePermisoProceso(375)
|
DivContado.Visible = UsuarioActual.TienePermisoProceso(375)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -25885,7 +25936,7 @@ Partial Class Ventas
|
|||||||
Dim TienePagos As Boolean = ((Not (DtPagos Is Nothing OrElse DtPagos.Rows.Count = 0)) AndAlso (DtPagos IsNot Nothing AndAlso DtPagos.Rows.Count > 0)) OrElse AmortizacionNC > 0
|
Dim TienePagos As Boolean = ((Not (DtPagos Is Nothing OrElse DtPagos.Rows.Count = 0)) AndAlso (DtPagos IsNot Nothing AndAlso DtPagos.Rows.Count > 0)) OrElse AmortizacionNC > 0
|
||||||
|
|
||||||
'SI LA VENTA ES NUEVA VALIDAR TAMBIEN LOS PAGOS DE CONTADO
|
'SI LA VENTA ES NUEVA VALIDAR TAMBIEN LOS PAGOS DE CONTADO
|
||||||
If (UsuarioActual.Empresa.Funcionalidad(558) = "1" OrElse UsuarioActual.CveEmpresa = 197) AndAlso ((CveVenta <= 0 OrElse EsCreaApartirDe OrElse TipoDoctoViejo = "Cot") AndAlso DdlTipoComprobante.SelectedValue.Contiene("Ing", "Rem", "Ant")) Then
|
If (UsuarioActual.Empresa.Funcionalidad(558) = "1") AndAlso ((CveVenta <= 0 OrElse EsCreaApartirDe OrElse TipoDoctoViejo = "Cot") AndAlso DdlTipoComprobante.SelectedValue.Contiene("Ing", "Rem", "Ant")) Then
|
||||||
|
|
||||||
If Not PermiteCredito AndAlso Not TienePagos AndAlso TxtTotal.Text.ToDecimal > 0 Then
|
If Not PermiteCredito AndAlso Not TienePagos AndAlso TxtTotal.Text.ToDecimal > 0 Then
|
||||||
If MostrarAlertas Then
|
If MostrarAlertas Then
|
||||||
|
|||||||
Reference in New Issue
Block a user