Merge branch 'master' of http://jperez@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -9207,6 +9207,7 @@ Public Class ClsPaginas
|
||||
'PaginaDict.Add("/Sistemas/CatEmpresas.aspx".ToUpper(), 2)
|
||||
PaginaDict.Add("/Sistemas/CatEmpresas.aspx".ToUpper(), 24)
|
||||
PaginaDict.Add("/Sistemas/Empresa.aspx".ToUpper(), 2)
|
||||
PaginaDict.Add("/Sistemas/Empresa2.aspx".ToUpper(), -1)
|
||||
PaginaDict.Add("/Sistemas/CatUsuarios.aspx".ToUpper(), 20)
|
||||
PaginaDict.Add("/Sistemas/Usuarios.aspx".ToUpper(), 20)
|
||||
PaginaDict.Add("/Sistemas/UsuarioDetalle.aspx".ToUpper(), 20)
|
||||
|
||||
@@ -443,6 +443,10 @@ Public Class ClsSisEmpresas
|
||||
_Empresa.GrupoEmpresa = Data.Rows(0)("GrupoEmpresa").ToString.ToEntero
|
||||
_Empresa.PlantillaMailVenta = Data.Rows(0)("PlantillaMailVenta").ToString
|
||||
_Empresa.AsuntoPlantillaMailVenta = Data.Rows(0)("AsuntoPlantillaMailVenta").ToString
|
||||
|
||||
_Empresa.PlantillaMailVentaCotizacion = Data.Rows(0)("PlantillaMailVentaCotizacion").ToString
|
||||
_Empresa.AsuntoPlantillaMailVentaCotizacion = Data.Rows(0)("AsuntoPlantillaMailVentaCotizacion").ToString
|
||||
|
||||
_Empresa.CvePlataforma = Data.Rows(0)("CvePlataforma").ToString.ToEntero
|
||||
_Empresa.CveDistribuidor = Data.Rows(0)("CveDistribuidor").ToString.ToEntero
|
||||
_Empresa.DiasPermitidos = Data.Rows(0)("DiasPermitidos").ToString.ToEntero
|
||||
|
||||
@@ -301,7 +301,7 @@ Public Class ClsSisUsuarios
|
||||
Retorno.CveTipoDocumento = "-1"
|
||||
End If
|
||||
|
||||
|
||||
Retorno.ListaPersonalizacion = CargaPersonalizacionUsuario(Retorno.CveUsuario)
|
||||
|
||||
End If
|
||||
|
||||
@@ -313,6 +313,21 @@ Public Class ClsSisUsuarios
|
||||
Return Retorno
|
||||
End Function
|
||||
|
||||
Public Function CargaPersonalizacionUsuario(CveUsuarioParamerto As Integer) As Hashtable
|
||||
|
||||
Dim Retorno As New Hashtable
|
||||
If GetUsuariosPersonalizaciones(CveUsuarioParamerto) Then
|
||||
|
||||
For Each drow As DataRow In Data.Rows
|
||||
Retorno.Add(drow("PersonalizacionNombre").ToString, drow("PersonalizacionValor").ToString)
|
||||
Next
|
||||
|
||||
End If
|
||||
|
||||
Return Retorno
|
||||
|
||||
End Function
|
||||
|
||||
Public Function ValidaUsuarioAsignacion(CveUsuario As Integer, CveEmpresa As Integer) As Usuario
|
||||
Dim Retorno As Usuario = Nothing
|
||||
|
||||
@@ -2951,6 +2966,56 @@ Public Class ClsSisUsuarios
|
||||
|
||||
#End Region
|
||||
|
||||
#Region "PERSONALIZACIÓN COLUMNAS USUARIO"
|
||||
Public Function GetUsuariosPersonalizaciones(ByVal CveUsuario As Integer) As Boolean
|
||||
|
||||
Dim Retorno As Boolean = False
|
||||
|
||||
DataAdapter("PA_Sis_UsuariosPersonalizacionesGet")
|
||||
With SqlAdapter.SelectCommand.Parameters
|
||||
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||
End With
|
||||
|
||||
Try
|
||||
SqlAdapter.Fill(Data)
|
||||
Retorno = True
|
||||
Catch ex As Exception
|
||||
OnError("Ocurrió un error al obtener la personalización.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
Retorno = False
|
||||
End Try
|
||||
|
||||
Return Retorno
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
Public Function AddUsuariosPersonalizaciones(ByRef UsuarioActual As Usuario, PersonalizacionNombre As String, PersonalizacionValor As String) As Boolean
|
||||
|
||||
Dim Retorno As Boolean = False
|
||||
|
||||
DataAdapter("PA_Sis_UsuariosPersonalizacionesAdd")
|
||||
With SqlAdapter.SelectCommand.Parameters
|
||||
.Add("@CveUsuario", SqlDbType.Int).Value = UsuarioActual.CveUsuario
|
||||
.Add("@PersonalizacionNombre", SqlDbType.VarChar).Value = PersonalizacionNombre
|
||||
.Add("@PersonalizacionValor", SqlDbType.VarChar).Value = PersonalizacionValor
|
||||
End With
|
||||
|
||||
Try
|
||||
SqlAdapter.Fill(Data)
|
||||
UsuarioActual.ListaPersonalizacion = CargaPersonalizacionUsuario(UsuarioActual.CveUsuario)
|
||||
|
||||
Retorno = True
|
||||
Catch ex As Exception
|
||||
OnError("Ocurrió un error al guardar la personalización.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
Retorno = False
|
||||
End Try
|
||||
|
||||
Return Retorno
|
||||
|
||||
End Function
|
||||
|
||||
#End Region
|
||||
|
||||
#Region "IDisposable Support"
|
||||
Protected Overridable Sub Dispose(disposing As Boolean)
|
||||
If Not Me.disposedValue Then
|
||||
|
||||
@@ -140,8 +140,9 @@ Public Class Empresa
|
||||
Public Property CveEncuestaCRM As Integer
|
||||
|
||||
Public Property FielPassword As String
|
||||
Public Property FielPFX As String
|
||||
|
||||
Public Property FielPFX As String
|
||||
Public Property AsuntoPlantillaMailVentaCotizacion As String
|
||||
Public Property PlantillaMailVentaCotizacion As String
|
||||
Dim Funcionalidades As HybridDictionary
|
||||
'HybridDictionary, no se puede serializar, por eso no es propiedad, y se utilizar el setfuncionalidad, para asignarle valor
|
||||
Public Sub SetFuncionalidades(HD As HybridDictionary)
|
||||
|
||||
@@ -204,11 +204,11 @@ Public Class LogicNominas
|
||||
Puesto = objPersonal.Puesto
|
||||
CveSATRiesgoPuesto = objPersonal.CveSATRiesgoPuesto.ToString()
|
||||
TipoPeriodoPago = objPersonal.TipoPeriodoPago
|
||||
If Not MetodoPagoFijo Then
|
||||
ClaveBanco = objPersonal.ClaveBanco
|
||||
BancoNumCuenta = objPersonal.BancoNumCuenta
|
||||
'If Not MetodoPagoFijo Then
|
||||
' ClaveBanco = objPersonal.ClaveBanco
|
||||
' BancoNumCuenta = objPersonal.BancoNumCuenta
|
||||
|
||||
End If
|
||||
'End If
|
||||
SDI = objPersonal.SDI
|
||||
SalarioDiarioSS = objPersonal.SalarioDiarioSS
|
||||
ClaveEstado = objPersonal.ClaveEstado
|
||||
|
||||
@@ -47,7 +47,7 @@ Public Class Usuario
|
||||
Public Property NombreAbreviatura As String
|
||||
Public Property SessionId As String
|
||||
Private Property ListaSesion As Hashtable
|
||||
Private Property ListaPersonalizacion As Hashtable
|
||||
Public Property ListaPersonalizacion As Hashtable
|
||||
Public Property Acceso As Integer
|
||||
Public Property TipoControl As Integer
|
||||
|
||||
|
||||
@@ -413,11 +413,13 @@ Partial Class Compras_ReembolsosComprobaciones
|
||||
|
||||
Dim FechaFactura As Date = gvRowVal.DataKey("FechaCompra").ToDate
|
||||
Dim FechaDocumento As Date
|
||||
If DDlCheques.SelectedValue.ToEntero = -1 Then
|
||||
|
||||
If DDlCheques.SelectedValue.ToEntero = -1 And Not ChkReembolsarSinBancos.Checked Then
|
||||
FechaDocumento = TxtFechaDocumento.Text.ToDate
|
||||
Else
|
||||
FechaDocumento = TxtFechaPrePoliza.Text.ToDate
|
||||
End If
|
||||
|
||||
Dim AnioFactura As Integer = FechaFactura.Year
|
||||
Dim MesFactura As Integer = FechaFactura.Month
|
||||
Dim AnioDocumento As Integer = FechaDocumento.Year
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
|
||||
<Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns:cl="http://schemas.microsoft.com/sqlserver/reporting/2010/01/componentdefinition" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition">
|
||||
<AutoRefresh>0</AutoRefresh>
|
||||
<DataSources>
|
||||
<DataSource Name="DataSet">
|
||||
@@ -65,6 +65,10 @@
|
||||
<DataField>Valor</DataField>
|
||||
<rd:TypeName>System.Decimal</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="Disponible">
|
||||
<DataField>Disponible</DataField>
|
||||
<rd:TypeName>System.Decimal</rd:TypeName>
|
||||
</Field>
|
||||
</Fields>
|
||||
<rd:DataSetInfo>
|
||||
<rd:DataSetName>DataSet</rd:DataSetName>
|
||||
@@ -811,7 +815,6 @@
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
<rd:Selected>true</rd:Selected>
|
||||
</CellContents>
|
||||
</TablixCell>
|
||||
<TablixCell>
|
||||
@@ -823,7 +826,7 @@
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>=Fields!Cantidad.Value</Value>
|
||||
<Value>=Fields!Disponible .Value</Value>
|
||||
<Style>
|
||||
<FontSize>7pt</FontSize>
|
||||
<FontWeight>=IIf(Fields!PS.Value = "", "Bold", "Default")</FontWeight>
|
||||
@@ -1612,7 +1615,6 @@
|
||||
<Prompt>ReportParameter1</Prompt>
|
||||
</ReportParameter>
|
||||
</ReportParameters>
|
||||
|
||||
<rd:ReportUnitType>Cm</rd:ReportUnitType>
|
||||
<rd:ReportID>40c94aad-a12a-44fb-ab0d-ea36a9656792</rd:ReportID>
|
||||
</Report>
|
||||
@@ -669,7 +669,7 @@
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Cantidad" HeaderStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:TextBox ID="TxtCantidad" Visible="false" Width="60px" runat="server" Text="0"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtCantidad" Visible="false" Width="60px" runat="server" Text="0" style="text-align:right"></asp:TextBox>
|
||||
<ajax:FilteredTextBoxExtender ID="SoloNumeros2" runat="server" TargetControlID="TxtCantidad" FilterType="Custom, Numbers" ValidChars="." />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
@@ -1576,6 +1576,14 @@ Partial Class Inventarios_TraspasoAlmacen
|
||||
End If
|
||||
e.Row.FCTextBox("TxtSerie").ReadOnly = True
|
||||
|
||||
'If UsuarioActual.Empresa.Funcionalidad(558) = "1" Then
|
||||
If UsuarioActual.CveEmpresa = 141 Then
|
||||
e.Row.FCTextBox("TxtCantidad").Enabled = False
|
||||
e.Row.FCTextBox("TxtCantidad").Text = e.Row.DataKey("Cantidad").ToDecimal.ToString("#,###.######")
|
||||
e.Row.FCCheckBox("Chk").Enabled = False
|
||||
e.Row.FCCheckBox("Chk").Checked = True
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
'FUNCIONALIDAD PISTOLA DE CODIGOS
|
||||
@@ -1587,12 +1595,7 @@ Partial Class Inventarios_TraspasoAlmacen
|
||||
End If
|
||||
|
||||
|
||||
If UsuarioActual.Empresa.Funcionalidad(558) = "1" Then
|
||||
e.Row.FCTextBox("TxtCantidad").Enabled = False
|
||||
e.Row.FCTextBox("TxtCantidad").Text = e.Row.DataKey("Cantidad")
|
||||
e.Row.FCCheckBox("Chk").Enabled = False
|
||||
e.Row.FCCheckBox("Chk").Checked = True
|
||||
End If
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1707,7 +1707,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
//CURP = drow["CURP"].ToString();
|
||||
}
|
||||
string Msg = "";// lognom.TimbrarNomina(CveNomina, CvePersonal, CvePeriodo, UsuarioActual, (UsuarioActual.CveUsuario == 100 ? 4 : 4));
|
||||
Msg = lognom.TimbrarNomina(CveNomina, CvePersonal, CvePeriodo, UsuarioActual, versionTimbre: VersionTimbradoEnum.Version4_0);
|
||||
Msg = lognom.TimbrarNomina(CveNomina, CvePersonal, CvePeriodo, UsuarioActual, CvePAC: UsuarioActual.Empresa.CvePAC, versionTimbre: VersionTimbradoEnum.Version4_0);
|
||||
|
||||
if (Msg != null && Msg.Length > 0)//<pre>{4}</pre><span style='display:none'>{1}</span>
|
||||
{ Alert(string.Format("El empleado no se pudo timbrar, el sat nos devolvio el siguiente mensaje:<br/>{1}", Msg, msgCorregidoSat(Msg, CvePersonal, RFC, CURP)), TipoMensaje.MsgAdvertencia); }
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
<th colspan="5"></th>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:GridView ID="GvTurno" runat="server" GridLines="None" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" CellSpacing="0" Width="100%" AutoGenerateColumns="False"
|
||||
<asp:GridView ID="GvTurno" runat="server" GridLines="None" CssClass="table table-striped table-advance table-hover Widthall mysmallbtn ScrollAD" CellSpacing="0" Width="100%" AutoGenerateColumns="False"
|
||||
EmptyDataText="No se encontraron registros" ToolTip="Listado de Turnos" data-tableheader="#thheader"
|
||||
DataKeyNames="CveTurno,Turno,CveChecadorHorario,HorarioDe,DiaDescanso,HorarioA,Comida,ComidaDe,ComidaA,Estatus,FechaIng,CveUsuario,CveEmpresa,Usuario,ChecadorHorario,ToleranciaERetardo,ToleranciaEFalta,ToleranciaEFalta2,ToleranciaSRetardo,ToleranciaSFalta">
|
||||
<Columns>
|
||||
|
||||
@@ -550,7 +550,7 @@
|
||||
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList Width="100%" ID="DdlJornada" runat="server" AppendDataBoundItems="True" DataTextField="Jornada" DataValueField="CveJornada" CssClass="form-control input-sm select2me" ValidationGroup="GrpGuardar">
|
||||
<asp:DropDownList Width="100%" ID="DdlJornada" runat="server" AppendDataBoundItems="True" DataTextField="ClaveJornada" DataValueField="CveJornada" CssClass="form-control input-sm select2me" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<asp:Label AssociatedControlID="DdlJornada" runat="server" Text="Jornada:"></asp:Label>
|
||||
|
||||
952
Sistemas/Empresa2.aspx
Normal file
952
Sistemas/Empresa2.aspx
Normal file
@@ -0,0 +1,952 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Empresa2.aspx.vb" Inherits="Sistemas_Empresa2" %>
|
||||
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="H" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="css" runat="Server">
|
||||
<style>
|
||||
.GVGrupoEmpresas td:nth-child(1) {
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
.GVGrupoEmpresas td:nth-child(2) {
|
||||
width: 30%;
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="E" runat="Server">
|
||||
<asp:Literal ID="LtlTitulo" runat="server" Text="Registro de Empresas"></asp:Literal>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="C" runat="Server">
|
||||
<script language="javascript" type="text/javascript">
|
||||
|
||||
function SetText(ObjFrom, ObjTo) {
|
||||
ObjTo.innerText = ObjFrom.value;
|
||||
}
|
||||
|
||||
function SetText2(ObjTo, Value) {
|
||||
ObjTo.innerText = Value;
|
||||
}
|
||||
|
||||
function getSelectedText(Obj, IfIsNull) {
|
||||
if (Obj.selectedIndex == -1)
|
||||
return IfIsNull;
|
||||
else
|
||||
return Obj.options[Obj.selectedIndex].text;
|
||||
}
|
||||
</script>
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding-top: 20px;">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnCargarCuentas" runat="server" ClientIDMode="Static" Text="CargaCuentas" Style="display: none;" />
|
||||
<asp:HiddenField ID="HdnCuenta" runat="server" ClientIDMode="Static" Value="0" />
|
||||
<ajax:TabContainer ID="Tab" runat="server" Width="100%" ActiveTabIndex="0">
|
||||
|
||||
<ajax:TabPanel HeaderText="Empresa" ID="TabPanel1" runat="server">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Datos de la Empresa</span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td>Razón Social:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtEmpresa" runat="server" MaxLength="50" Width="350px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVEmpresa" runat="server" ControlToValidate="TxtEmpresa" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Nombre de la Empresa''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEEmpresa" runat="server" HighlightCssClass="vco" TargetControlID="RFVEmpresa" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nombre Corto:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtNombreCorto" runat="server" MaxLength="5" Width="60px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVNombreCorto" runat="server" ControlToValidate="TxtEmpresa" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Nombre Corto de la Empresa''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCENombreCorto" runat="server" HighlightCssClass="vco" TargetControlID="RFVNombreCorto" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Dirección:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtDireccion" runat="server" MaxLength="50" Width="350px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVDireccion" runat="server" ControlToValidate="TxtDireccion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Direccion''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEDireccion" runat="server" HighlightCssClass="vco" TargetControlID="RFVDireccion" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Número Exterior:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtNoExt" runat="server" MaxLength="50" Width="60px"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Número Interior:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtNoInt" runat="server" MaxLength="50" Width="60px"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Colonia:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtColonia" runat="server" MaxLength="50" Width="200px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVColonia" runat="server" ControlToValidate="TxtColonia" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Colonia''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEColonia" runat="server" HighlightCssClass="vco" TargetControlID="RFVColonia" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Ciudad:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtCiudad" runat="server" MaxLength="20" Width="200px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVCiudad" runat="server" ControlToValidate="TxtCiudad" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Ciudad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCECiudad" runat="server" HighlightCssClass="vco" TargetControlID="RFVCiudad" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Estado:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtEstado" runat="server" MaxLength="20" Width="200px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVEstado" runat="server" ControlToValidate="TxtEstado" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Estado''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEEstado" runat="server" HighlightCssClass="vco" TargetControlID="RFVEstado" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Código Postal:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtCP" runat="server" MaxLength="5" Width="60px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVCP" runat="server" ControlToValidate="TxtCP" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Codigo Postal''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCECP" runat="server" HighlightCssClass="vco" TargetControlID="RFVCP" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
<asp:CompareValidator ID="CVCP" runat="server" ControlToValidate="TxtCP" Display="None" ErrorMessage="El campo <b>''Codigo Postal''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Integer" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Localidad:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtLocalidad" runat="server" MaxLength="50" Width="200px"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Régimen:</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="DdlRegimen" runat="server" DataValueField="CveRegimenFiscal" DataTextField="CodigoRegimenFiscalTexto" CssClass="select2me" Width="350px"></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFCDdlRegimen" runat="server" ControlToValidate="DdlRegimen" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Regimen'</b> es necesario, por favor ingréselo." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="RFCDdlRegimen" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>CURP:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtCURP" runat="server" MaxLength="18" Width="350px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVCurp" runat="server" ControlToValidate="TxtCURP" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''CURP'</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" HighlightCssClass="vco" TargetControlID="RFVCurp" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>RFC:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtRFC" runat="server" MaxLength="13" Width="100px"></asp:TextBox>
|
||||
<asp:RegularExpressionValidator ID="REVRFC" runat="server" Display="Dynamic" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''RFC''</b> es incorrecto, por favor ingréselo." ValidationGroup="GrpGuardar" ControlToValidate="TxtRFC" ValidationExpression="^[a-zA-Z.)(/\\&-]{3,4}(\d{6})((\D|\d){2})((\D|\d){1})$"></asp:RegularExpressionValidator>
|
||||
<asp:RequiredFieldValidator ID="RFVRFC" runat="server" ControlToValidate="TxtRFC" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''RFC''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCERFC" runat="server" HighlightCssClass="vco" TargetControlID="RFVRFC" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEREVRFC" runat="server" HighlightCssClass="vco" TargetControlID="REVRFC" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Teléfono:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtTelefono" runat="server" MaxLength="10" Width="100px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVTelefono" runat="server" ControlToValidate="TxtTelefono" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Telefono''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCETelefono" runat="server" HighlightCssClass="vco" TargetControlID="RFVTelefono" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Extensión:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtExtension" runat="server" MaxLength="10" Width="100px"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Representante Legal:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtContacto" runat="server" MaxLength="50" Width="200px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVContacto" runat="server" ControlToValidate="TxtContacto" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Contacto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEContacto" runat="server" HighlightCssClass="vco" TargetControlID="RFVContacto" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mail:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtMail" runat="server" MaxLength="50" Width="200px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVMail" runat="server" ControlToValidate="TxtMail" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Mail''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEMail" runat="server" HighlightCssClass="vco" TargetControlID="RFVMail" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEMailInvalido" runat="server" HighlightCssClass="vco" TargetControlID="REVMail" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
<asp:RegularExpressionValidator ID="REVMail" runat="server" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="TxtMail" ErrorMessage="<b><span style='text-decoration: underline'></span></b><br />Favor de Introducir una direccion <b>''Mail''</b> Valida."></asp:RegularExpressionValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mostrar Ret. IVA: </td>
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkMostrarRetIVA" runat="server" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mostrar Ret. ISR: </td>
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkMostrarRetISR" runat="server" /></td>
|
||||
<tr>
|
||||
<td>Tipo de Facturación:</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="DdlTipoFacturacion" class="select2me" runat="server" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
<asp:ListItem Text="CBB" Value="CBB"></asp:ListItem>
|
||||
<asp:ListItem Text="CFDi" Value="CFDi"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVTipoFacturacion" runat="server" ControlToValidate="DdlTipoFacturacion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Facturación''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCETipoFacturacion" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoFacturacion" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Importe:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtImporte" CssClass="form-control input-sm" runat="server" MaxLength="50" Width="200px" ValidationGroup="GrpGuardar"></asp:TextBox>
|
||||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server" TargetControlID="TxtImporte" ValidChars="." FilterType="Numbers, Custom" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Plataforma:</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="DdlPlataforma" class="select2me" runat="server" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
<asp:ListItem Text="SIG" Value="1"></asp:ListItem>
|
||||
<asp:ListItem Text="PyMES" Value="2"></asp:ListItem>
|
||||
<asp:ListItem Text="Rastreo" Value="3"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVPlataforma" runat="server" ControlToValidate="DdlPlataforma" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Plataforma''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEPlataforma" runat="server" HighlightCssClass="vco" TargetControlID="RFVPlataforma" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
|
||||
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">CSD </span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
<asp:UpdatePanel runat="server" ID="UpArchivoDescarga">
|
||||
<ContentTemplate>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td>Archivo Key:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtArchivoKey" runat="server" MaxLength="115" Width="200px"></asp:TextBox>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<asp:LinkButton ID="LnkArchivoKey" runat="server" CssClass="btn btn-circle btn-sm green" Text="<i title='Subir Documento' class='fa fa-upload' title='Subir Documento' tooltip='Subir' ></i>" />
|
||||
<asp:LinkButton ID="LbArchivoKeyDescarga" runat="server" CssClass="btn btn-circle btn-sm blue" Text="<i title='Bajar Documento' class='fa fa-download' title='Bajar Documento' tooltip='Descargar'></i>" Visible="false"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Archivo CER:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtArchivoCer" runat="server" MaxLength="115" Width="200px"></asp:TextBox>
|
||||
</td>
|
||||
<td>
|
||||
<asp:LinkButton ID="LnkArchivoCer" runat="server" CssClass="btn btn-circle btn-sm green" Text="<i title='Subir Documento' class='fa fa-upload' title='Subir Documento' tooltip='Subir' ></i>"/>
|
||||
<asp:LinkButton ID="LbArchivoCerDescarga" runat="server" CssClass="btn btn-circle btn-sm blue" Text="<i title='Bajar Documento' class='fa fa-download' title='Bajar Documento' tooltip='Descargar'></i>" Visible="false"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Archivo PFX:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtArchivoPfx" runat="server" MaxLength="115" Width="200px"></asp:TextBox>
|
||||
</td>
|
||||
<td>
|
||||
<asp:LinkButton ID="LnkArchivoPfx" runat="server" CssClass="btn btn-circle btn-sm green" Text="<i title='Subir Documento' class='fa fa-upload' title='Subir Documento' tooltip='Subir' ></i>"/>
|
||||
<asp:LinkButton ID="LbArchivoPfxDescarga" runat="server" CssClass="btn btn-circle btn-sm blue" Text="<i title='Bajar Documento' class='fa fa-download' title='Bajar Documento' tooltip='Descargar'></i>" Visible="false"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Contraseña Key: </td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtContraseñaKey" runat="server" MaxLength="50" Width="200px"></asp:TextBox></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Contraseña CIEC: </td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtCIEC" runat="server" MaxLength="50" Width="50px"></asp:TextBox></td>
|
||||
</tr>
|
||||
<tr id="TrRegistrarPAC3" runat="server">
|
||||
<td colspan="2">
|
||||
<asp:LinkButton ID="LnkRegistrarPAC3" runat="server" CssClass="Texto" OnClick="LnkRegistrarPAC3_Click">Registrar en ProFact</asp:LinkButton>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</ContentTemplate>
|
||||
<Triggers>
|
||||
<asp:PostBackTrigger ControlID="LbArchivoKeyDescarga" />
|
||||
<asp:PostBackTrigger ControlID="LbArchivoCerDescarga" />
|
||||
<asp:PostBackTrigger ControlID="LbArchivoPfxDescarga" />
|
||||
</Triggers>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">NÓMINA </span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
<table border="0" width="100%">
|
||||
<tr>
|
||||
<td>Área Geográfica:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtAreaGeografica" runat="server" MaxLength="50" Width="200px" ValidationGroup="GrpGuardar"></asp:TextBox>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
|
||||
<ajax:TabPanel HeaderText="Configuración" runat="server">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Envio de Correos</span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td>Mail:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtSendMail" CssClass="form-control input-sm" runat="server" MaxLength="50" Width="200px" ValidationGroup="GrpGuardar"></asp:TextBox>
|
||||
<asp:RegularExpressionValidator ID="REVSendMail" runat="server" ControlToValidate="TxtSendMail" Display="None" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ErrorMessage="<b><span style='text-decoration: underline'></span></b><br />Favor de Introducir una direccion <b>''Mail''</b> Valida." ValidationGroup="GrpGuardar"></asp:RegularExpressionValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOSendMail" runat="server" HighlightCssClass="vco" TargetControlID="REVSendMail" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Contraseña:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtSendMailPassword" CssClass="form-control input-sm" runat="server" MaxLength="50" Width="200px"></asp:TextBox></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Servidor:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtSendMailServer" CssClass="form-control input-sm" runat="server" MaxLength="50" Width="200px"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Puerto:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtSendMailPort" CssClass="form-control input-sm" runat="server" MaxLength="50" Width="200px" Text="587" ValidationGroup="GrpGuardar"></asp:TextBox>
|
||||
<ajax:FilteredTextBoxExtender ID="FTBESendMailPort" runat="server" TargetControlID="TxtSendMailPort" FilterType="Numbers" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Protocolo:</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="DdlProtocolo" class="select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="False" DataTextField="Protocolo" DataValueField="Buzon_Tipo">
|
||||
<asp:ListItem Text="-" Value="-1"></asp:ListItem>
|
||||
<asp:ListItem Text="POP3" Value="POP3"></asp:ListItem>
|
||||
<asp:ListItem Text="IMAP" Value="IMAP"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SSL:</td>
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkSendMailSSL" Text=" " CssClass="chksino" runat="server" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Recepción de Correos</span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td>Mail:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtBuzon_Mail" CssClass="form-control input-sm" runat="server" MaxLength="50" Width="200px" ValidationGroup="GrpGuardar"></asp:TextBox>
|
||||
<asp:RegularExpressionValidator ID="REVBuzonMail" runat="server" ControlToValidate="TxtBuzon_Mail" Display="None" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ErrorMessage="<b><span style='text-decoration: underline'></span></b><br />Favor de Introducir una direccion <b>''Mail''</b> Valida." ValidationGroup="GrpGuardar"></asp:RegularExpressionValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOBuzonMail" runat="server" HighlightCssClass="vco" TargetControlID="REVBuzonMail" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Server:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtBuzon_Server" CssClass="form-control input-sm" runat="server" MaxLength="50" Width="200px"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Puerto:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtBuzon_Puerto" CssClass="form-control input-sm" runat="server" MaxLength="50" Width="200px"></asp:TextBox>
|
||||
<ajax:FilteredTextBoxExtender ID="FTBEBuzon_Puerto" runat="server" TargetControlID="TxtBuzon_Puerto" FilterType="Numbers" />
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SSL:</td>
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkBuzon_SSL" Text=" " CssClass="chksino" runat="server" MaxLength="50" Width="200px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Usuario:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtBuzon_USR" CssClass="form-control input-sm" runat="server" MaxLength="50" Width="200px"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Contraseña:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtBuzon_PWD" CssClass="form-control input-sm" runat="server" MaxLength="50" Width="200px"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Configuraciones</span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td>Metodo Inventario:</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="DdlMetodoInventario" CssClass="form-control input-sm select2me" DataValueField="CveMetodoInventario" DataTextField="MetodoInventario" runat="server" Width="200px">
|
||||
<asp:ListItem Selected="True" Text="Empresa" Value="0"></asp:ListItem>
|
||||
<asp:ListItem Text="Costo Promedio" Value="1"></asp:ListItem>
|
||||
<asp:ListItem Text="UEPS" Value="2"></asp:ListItem>
|
||||
<asp:ListItem Text="PEPS" Value="3"></asp:ListItem>
|
||||
<asp:ListItem Text="Identificador" Value="4"></asp:ListItem>
|
||||
<asp:ListItem Text="Serie" Value="5"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
|
||||
<asp:RequiredFieldValidator ID="RFVDdlMetodoInventario" runat="server" ControlToValidate="DdlMetodoInventario" InitialValue="0" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Metodo Inventario(Diferente de empresa)''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="CERFVDdlMetodoInventario" runat="server" HighlightCssClass="vco" TargetControlID="RFVDdlMetodoInventario" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Porcentaje Depreciación:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtPorDepreciacion" runat="server" Width="100px"></asp:TextBox>
|
||||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server" TargetControlID="TxtPeriodoActual" ValidChars="." FilterType="Numbers, Custom" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Ejercicio Actual:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtEjercicioActual" runat="server" MaxLength="4" Width="60px"></asp:TextBox>
|
||||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxtEjercicioActual" FilterType="Numbers" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Periodo Actual:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtPeriodoActual" runat="server" MaxLength="4" Width="60px"></asp:TextBox>
|
||||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="TxtPeriodoActual" FilterType="Numbers" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="portlet light smmallpadding bordered" id="Div1" runat="server">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Recursos Humanos </span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td>Default Asistencias: </td>
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkDefaultAsistencias" runat="server" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Dias Permitidos:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtDiasPermitidos" runat="server" MaxLength="10" Width="60px"></asp:TextBox>
|
||||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="TxtDiasPermitidos" FilterType="Numbers" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Centro de Costos </span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td width="120px">Requiere Centro De Costos:</td>
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkReqCentroCostos" runat="server" />
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tipo Centro de Costos:</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="DdlTipoCentroDeCostos" CssClass="form-control input-sm select2me" runat="server" Width="200px">
|
||||
<asp:ListItem Value="1" Text="Centro de costo"></asp:ListItem>
|
||||
<asp:ListItem Value="2" Text="Sucursal"></asp:ListItem>
|
||||
<asp:ListItem Value="3" Text="Proyecto"></asp:ListItem>
|
||||
<asp:ListItem Value="4" Text="Proyecto - Subproyecto"></asp:ListItem>
|
||||
<asp:ListItem Value="5" Text="Proyecto - Sucursal"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tipo Terminal:</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="DdlTerminalTipo" CssClass="form-control input-sm select2me" runat="server" Width="200px">
|
||||
<asp:ListItem Selected="True" Text="Uno" Value="1"></asp:ListItem>
|
||||
<asp:ListItem Text="Dos" Value="2"></asp:ListItem>
|
||||
<asp:ListItem Text="Tres" Value="3"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ajax:TabPanel HeaderText="Plantilla Manda Correo" ID="TabPlantillaCorreo" runat="server">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Plantilla Manda Correo Venta</span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a data-toggle="modal" data-target="#DVModalEqiqutas" id="LnkEtiquetasVenta" runat="server" class="caption-subject bold font-green" style="font-size:12px!important"> <i class="fa fa-tags"></i> Etiquetas Disponibles</a>
|
||||
<a href="javascript:;" class="collapse"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
|
||||
|
||||
Asunto: <asp:TextBox ID="TxtAsunto" runat="server" ClientIDMode="Static" MaxLength="150"></asp:TextBox>
|
||||
|
||||
<asp:TextBox ID="TxtPlantillaVenta" runat="server" ClientIDMode="Static" MaxLength="5000" TextMode="MultiLine" Height="300px" Width="100%"></asp:TextBox>
|
||||
<ajax:HtmlEditorExtender ID="HTMLPlantillaVenta" runat="server" TargetControlID="TxtPlantillaVenta" DisplaySourceTab="True" EnableSanitization="false">
|
||||
<Toolbar>
|
||||
<ajax:Undo />
|
||||
<ajax:Redo />
|
||||
<ajax:Bold />
|
||||
<ajax:Italic />
|
||||
<ajax:Underline />
|
||||
<ajax:StrikeThrough />
|
||||
<ajax:Subscript />
|
||||
<ajax:Superscript />
|
||||
<ajax:JustifyLeft />
|
||||
<ajax:JustifyCenter />
|
||||
<ajax:JustifyRight />
|
||||
<ajax:JustifyFull />
|
||||
<ajax:InsertOrderedList />
|
||||
<ajax:InsertUnorderedList />
|
||||
<ajax:CreateLink />
|
||||
<ajax:UnLink />
|
||||
<ajax:RemoveFormat />
|
||||
<ajax:SelectAll />
|
||||
<ajax:UnSelect />
|
||||
<ajax:Delete />
|
||||
<ajax:Cut />
|
||||
<ajax:Copy />
|
||||
<ajax:Paste />
|
||||
<ajax:BackgroundColorSelector />
|
||||
<ajax:ForeColorSelector />
|
||||
<ajax:FontNameSelector />
|
||||
<ajax:FontSizeSelector />
|
||||
<ajax:Indent />
|
||||
<ajax:Outdent />
|
||||
<ajax:InsertHorizontalRule />
|
||||
<ajax:HorizontalSeparator />
|
||||
</Toolbar>
|
||||
</ajax:HtmlEditorExtender>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Plantilla Manda Correo Cotización</span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a data-toggle="modal" data-target="#DVModalEqiqutas" id="LnkEtiquetasCotizacion" runat="server" class="caption-subject bold font-green" style="font-size:12px!important"> <i class="fa fa-tags"></i> Etiquetas Disponibles</a>
|
||||
<a href="javascript:;" class="collapse"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
Asunto: <asp:TextBox ID="TxtAsuntoCotizacion" runat="server" ClientIDMode="Static" MaxLength="150"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtPlantillaCotizacion" runat="server" ClientIDMode="Static" MaxLength="5000" TextMode="MultiLine" Height="300px" Width="100%"></asp:TextBox>
|
||||
<ajax:HtmlEditorExtender ID="HtmlEditorExtender1" runat="server" TargetControlID="TxtPlantillaCotizacion" DisplaySourceTab="True" EnableSanitization="false">
|
||||
<Toolbar>
|
||||
<ajax:Undo />
|
||||
<ajax:Redo />
|
||||
<ajax:Bold />
|
||||
<ajax:Italic />
|
||||
<ajax:Underline />
|
||||
<ajax:StrikeThrough />
|
||||
<ajax:Subscript />
|
||||
<ajax:Superscript />
|
||||
<ajax:JustifyLeft />
|
||||
<ajax:JustifyCenter />
|
||||
<ajax:JustifyRight />
|
||||
<ajax:JustifyFull />
|
||||
<ajax:InsertOrderedList />
|
||||
<ajax:InsertUnorderedList />
|
||||
<ajax:CreateLink />
|
||||
<ajax:UnLink />
|
||||
<ajax:RemoveFormat />
|
||||
<ajax:SelectAll />
|
||||
<ajax:UnSelect />
|
||||
<ajax:Delete />
|
||||
<ajax:Cut />
|
||||
<ajax:Copy />
|
||||
<ajax:Paste />
|
||||
<ajax:BackgroundColorSelector />
|
||||
<ajax:ForeColorSelector />
|
||||
<ajax:FontNameSelector />
|
||||
<ajax:FontSizeSelector />
|
||||
<ajax:Indent />
|
||||
<ajax:Outdent />
|
||||
<ajax:InsertHorizontalRule />
|
||||
<ajax:HorizontalSeparator />
|
||||
</Toolbar>
|
||||
</ajax:HtmlEditorExtender>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<asp:Button ID="BtnGuardarPlantilla" runat="server" CssClass="btn btn-primary" align="center" Text="Guardar Plantillas" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
</ajax:TabContainer>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<asp:UpdatePanel ID="UpGuardar" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnGuardar" runat="server" CssClass=" btn btn-primary " Text="Guardar" ValidationGroup="GrpGuardar" />
|
||||
<asp:Button ID="BtnEliminar" runat="server" CssClass=" btn btn-danger " Text="Eliminar" />
|
||||
<asp:Button ID="BtnCancelar" runat="server" CssClass=" btn btn-default " Text="Cancelar (Regresar)" OnClientClick="javascript:window.location.href='/Sistemas/CatEmpresas.aspx'; return false;" />
|
||||
<asp:ValidationSummary ID="VS" runat="server" DisplayMode="BulletList" ShowSummary="true" ValidationGroup="GrpGuardar" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
|
||||
|
||||
<asp:UpdatePanel runat="server" ID="UpModalCertificados" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
|
||||
<div id="ModalArchvivo" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content" style="width: 700px;">
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title"><asp:Label runat="server" ID="LblModalCertificadosTitulo"></asp:Label></h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body" style="height: 200px;">
|
||||
<asp:UpdatePanel runat="server" ID="UpAddArchivo" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div>
|
||||
<asp:TextBox ID="TxtCargaImg" CssClass="ADSdropzone hidden" Text="" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%--<div>
|
||||
<asp:TextBox ID="Anexo" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||||
</div> --%>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<br />
|
||||
<div class="modal-footer">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<asp:Button ID="BtnGuardarArchivo" runat="server" OnClick="BtnGuardarArchivo_Click" ClientIDMode="Static" Text="Guardar" CssClass="btn btn-primary" />
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
||||
<div id="DVModalEqiqutas" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content" >
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Etiquetas Disponibles</h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<ul>
|
||||
<li>{"FolioFactura"}</li>
|
||||
<li>{"ImporteFactura"}</li>
|
||||
<li>{"FechaFactura"}</li>
|
||||
<li>{"FechaVencimiento"}</li>
|
||||
<li>{"RazonSocialEmisor"}</li>
|
||||
<li>{"RazonSocialReceptor"}</li>
|
||||
</ul>
|
||||
</div>
|
||||
<br />
|
||||
<div class="modal-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="server">
|
||||
<script type="text/javascript">
|
||||
|
||||
function SetText(ObjFrom, ObjTo) {
|
||||
ObjTo.value = ObjFrom.value;
|
||||
}
|
||||
|
||||
function CargaCuentas(op) {
|
||||
$get("HdnCuenta").value = op;
|
||||
$("#BtnCargarCuentas").click();
|
||||
}
|
||||
|
||||
function fnCxP() {
|
||||
|
||||
$("#BtnRecargaCxP").click();
|
||||
}
|
||||
|
||||
function pageLoad() {
|
||||
var isAsyncPostback = Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack();
|
||||
if (isAsyncPostback) {
|
||||
tb_init('a.thickbox');
|
||||
}
|
||||
}
|
||||
$(document).ready(function () {
|
||||
|
||||
var Alto = 300
|
||||
|
||||
$('#gv-container').css({ 'max-height': Alto + 'px' });
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</asp:Content>
|
||||
2066
Sistemas/Empresa2.aspx.vb
Normal file
2066
Sistemas/Empresa2.aspx.vb
Normal file
File diff suppressed because it is too large
Load Diff
@@ -60,7 +60,8 @@
|
||||
<asp:LinkButton ID="ImgExcelPersonalizado" runat="server" Visible="false"> <i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel Personalizado</asp:LinkButton>
|
||||
</li>
|
||||
<li>
|
||||
<asp:HyperLink NavigateUrl="#" data-toggle="modal" data-target="#DivPersonalizar" ID="ImgPersonalizar" runat="server"> <i class="fa fa-pencil"></i> Personalizar Columnas</asp:HyperLink>
|
||||
<%--<asp:HyperLink NavigateUrl="#" data-toggle="modal" data-target="#DivPersonalizar" ID="ImgPersonalizar" runat="server"> <i class="fa fa-pencil"></i> Personalizar Columnas</asp:HyperLink>--%>
|
||||
<asp:LinkButton ID="LnkPersonalizar" OnClick="LnkPersonalizar_Click" runat="server"><i class="fa fa-pencil"></i>Personalizar Columnas</asp:LinkButton>
|
||||
</li>
|
||||
<li>
|
||||
<asp:LinkButton ID="BtnDescargarPDF" runat="server"> <i class="fa fa-download"></i> Descarga PDFs</asp:LinkButton>
|
||||
@@ -332,178 +333,226 @@
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" data-sort="true" Width="99%" DataKeyNames="CveVenta,TipoDocumento,SerieFolio" EmptyDataText="No se encontraron Ventas con los filtros especificados" ToolTip="Listado de Ventas" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" GridLines="None">
|
||||
<Columns>
|
||||
<%-- 0--%>
|
||||
<asp:TemplateField HeaderText="Tipo Docto">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlTipo" runat="server" Text='<%# Eval("TipoDocumento") %>'></asp:Literal>
|
||||
<asp:HiddenField ID="HdnTipo" runat="server" Value='<%# Eval("TipoDocumento") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 1--%>
|
||||
<asp:TemplateField HeaderText="Folio" ItemStyle-Width="100px">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFolio" runat="server" Text='<%# Eval("SerieFolio") %>'></asp:Literal>
|
||||
<asp:HiddenField ID="HdnFolio" runat="server" Value='<%# Eval("SerieFolio") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 2--%>
|
||||
<asp:TemplateField HeaderText="Fecha" ItemStyle-HorizontalAlign="center">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 3--%>
|
||||
<asp:TemplateField HeaderText="Cliente" Visible="True">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlCliente" runat="server" Text='<%# Eval("Nombre", "{0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 4--%>
|
||||
<asp:TemplateField HeaderText="SubTotal" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlSubTotal" runat="server" Text='<%# Eval("SubTotal", "{0:N2}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 5--%>
|
||||
<asp:TemplateField HeaderText="Descuento" Visible="True" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlDescuento" runat="server" Text='<%# Eval("Descuento", "{0:N2}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 6--%>
|
||||
<asp:TemplateField HeaderText="Motivo Descuento" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlMotivoDescuento" runat="server" Text='<%# Eval("MotivoDescuento", "{0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 7--%>
|
||||
<asp:TemplateField HeaderText="Amortización" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlAmortizacion" runat="server" Text='<%# Eval("Amortizacion", "{0:N2}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 8--%>
|
||||
<asp:TemplateField HeaderText="IVA" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlIVA" runat="server" Text='<%# Eval("IVA", "{0:N2}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 9--%>
|
||||
<asp:TemplateField HeaderText="IEPS" Visible="false" ItemStyle-HorizontalAlign="Right" >
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlIEPS" runat="server" Text='<%# Eval("IEPS", "{0:N2}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 10--%>
|
||||
<asp:TemplateField HeaderText="Ret. IVA" Visible="false" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlRetIVA" runat="server" Text='<%# Eval("RetIVA", "{0:N2}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 11--%>
|
||||
<asp:TemplateField HeaderText="Ret. ISR" Visible="false" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlRetISR" runat="server" Text='<%# Eval("RetISR", "{0:N2}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 12--%>
|
||||
<asp:TemplateField HeaderText="Imp. Locales" Visible="false" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlImpLocales" runat="server" Text='<%# Eval("TotalImpuestos", "{0:N2}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 13--%>
|
||||
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 14--%>
|
||||
<asp:TemplateField HeaderText="Mon">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlMon" runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 15--%>
|
||||
<asp:TemplateField HeaderText="Sucursal" Visible="True">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlSucursal" runat="server" Text='<%# Eval("SubProyecto", "{0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 16--%>
|
||||
<asp:TemplateField HeaderText="Suc Ejecución" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlSucursalE" runat="server" Text='<%# Eval("SubProyectoEjecucion", "{0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 17--%>
|
||||
<asp:TemplateField HeaderText="Código Cliente" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlCodCliente" runat="server" Text='<%# Eval("Codigo", "{0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 18--%>
|
||||
<asp:TemplateField HeaderText="Sucursal Cliente" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlSucCliente" runat="server" Text='<%# Eval("SucursalCliente", "{0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 19--%>
|
||||
<asp:TemplateField HeaderText="Suc Cobranza" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlSucCobranza" runat="server" Text='<%# Eval("SubProyectoCobranza", "{0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 20--%>
|
||||
<asp:TemplateField HeaderText="Sucursal Ejecución" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlSucServicio" runat="server" Text='<%# Eval("SubProyectoEjecucion", "{0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 21--%>
|
||||
<asp:TemplateField HeaderText="Vendedor" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlVendedor" runat="server" Text='<%# Eval("Vendedor", "{0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 22--%>
|
||||
<asp:TemplateField HeaderText="Estatus">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlEstatusFactura" runat="server" Text='<%# Eval("EstatusFactura", "{0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 23--%>
|
||||
<asp:TemplateField HeaderText="Motivo Cancelación" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlMotivoCancelacion" runat="server" Text='<%# Eval("MotivoCancelacion", "{0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 24--%>
|
||||
<asp:TemplateField Visible="false" HeaderText="Se Timbró">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlSeTimbro" runat="server" Text='<%# Eval("SeTimbro") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 25--%>
|
||||
<asp:TemplateField Visible="false" HeaderText="Se envió Mail">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlSeEnvioMail" runat="server" Text='<%# Eval("EnvioMail") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 26--%>
|
||||
<asp:TemplateField HeaderText="Cuenta Contable" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlCtaContable" runat="server" Text='<%# Eval("CuentaContable") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 27--%>
|
||||
<asp:TemplateField HeaderText="Usuario" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario", "{0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 28--%>
|
||||
<asp:TemplateField HeaderText="Observaciones" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlObservaciones" runat="server" Text='<%# Eval("Observaciones", "{0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 29--%>
|
||||
<asp:TemplateField HeaderText="Folio Fiscal (UUID)" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFolioFiscal" runat="server" Text='<%# Eval("FolioFiscal") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 30--%>
|
||||
<asp:TemplateField HeaderText="Mail Cliente" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlMailCliente" runat="server" Text='<%# Eval("MailCliente") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 31--%>
|
||||
<asp:TemplateField HeaderText="Estatus Facturación" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlEstatusFacturacion" runat="server" Text='<%# Eval("EstatusCot") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 32--%>
|
||||
<asp:TemplateField HeaderText="Factura de Cotización" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFacturaCotizacion" runat="server" Text='<%# Eval("FolioVenta") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 33--%>
|
||||
<asp:TemplateField HeaderText="Saldo" Visible="false" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlSaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<%-- 34--%>
|
||||
<asp:TemplateField HeaderText="Orden Compra" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="lTLOrdenCompra" runat="server" Text='<%# Eval("OrdenCompra") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 35--%>
|
||||
<asp:TemplateField HeaderText="Pedido Contrato" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="lTLPedidoContrato" runat="server" Text='<%# Eval("PedidoContrato") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
@@ -576,102 +625,92 @@
|
||||
<table class="table table-striped nobordertop table-advance table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkFolio" runat="server" Text="Folio" Checked="true" /></td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkSubTotal" runat="server" Text="SubTotal" Checked="true" /></td>
|
||||
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkDescuento" runat="server" Text="Descuento" /></td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChlMotivoDescuento" runat="server" Text="Motivo Descuento" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkTipoDocto" runat="server" Text=" *Tipo Documento" Checked="true" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkSucursal" runat="server" Text=" *Sucursal" Checked="true" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkSucursalCobranza" runat="server" Text=" Sucursal Cobranza" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkAmortizacion" runat="server" Text="Amortización" /></td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkIVA" runat="server" Text="IVA" Checked="true" /></td>
|
||||
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkRetIVA" runat="server" Text="Ret. IVA" /></td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkRetISR" runat="server" Text="Ret. ISR" /></td>
|
||||
</tr>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkFolio" runat="server" Text=" *Folio" Checked="true" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkEstatusFactura" runat="server" Text=" *Estatus de Factura" Checked="true" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkSucursalEjecucion" runat="server" Text=" Sucursal Ejecución" /></td>
|
||||
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkTotal" runat="server" Text="Total" Checked="true" /></td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkFecha" runat="server" Text="Fecha" Checked="true" /></td>
|
||||
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkSucursal" runat="server" Text="Sucursal" Checked="true" /></td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkSucursalEjecucion" runat="server" Text="Sucursal Ejecución" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkSucursalCobranza" runat="server" Text="Sucursal Cobranza" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkFecha" runat="server" Text=" *Fecha" Checked="true" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkVendedor" runat="server" Text=" Vendedor" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkMotivoCancelacion" runat="server" Text=" Motivo Cancelacion" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkSubTotal" runat="server" Text=" *SubTotal" Checked="true" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkCodigo" runat="server" Text=" Código Cliente" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkUsuario" runat="server" Text=" Usuario" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkDescuento" runat="server" Text=" *Descuento" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkCliente" runat="server" Text=" *Cliente" Checked="true" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkEstatusFacturacion" runat="server" Text=" Estatus Facturación" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkIVA" runat="server" Text=" *IVA" Checked="true" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkMailCliente" runat="server" Text=" Mail Cliente" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkFolioFacturacion" runat="server" Text=" Factura Cotización" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkRetIVA" runat="server" Text=" Ret. IVA" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkCuentaContable" runat="server" Text=" Cuenta Contable" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkObservaciones" runat="server" Text=" Observaciones" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkRetISR" runat="server" Text=" Ret. ISR" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkSucursalCliente" runat="server" Text=" Sucursal Cliente" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkOrdenCompra" runat="server" Text=" OrdenCompra" /></td>
|
||||
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkSucursalCliente" runat="server" Text="Sucursal Cliente" /></td>
|
||||
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkVendedor" runat="server" Text="Vendedor" /></td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkEstatusFactura" runat="server" Text="Estatus de Factura" Checked="true" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkMotivoCancelacion" runat="server" Text="Motivo Cancelacion" /></td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkSeTimbro" runat="server" Text="Se Timbró" /></td>
|
||||
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkSeEnvioMail" runat="server" Text="Se envió Mail" /></td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkCuentaContable" runat="server" Text="Cuenta Contable" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkTotalImpuestos" runat="server" Text=" Impuestos Locales" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkSaldo" runat="server" Text=" Saldo" Checked="false" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkPedidoContrato" runat="server" Text=" Pedido Contrato" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkUsuario" runat="server" Text="Usuario" /></td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkObservaciones" runat="server" Text="Observaciones" /></td>
|
||||
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkFolioFiscal" runat="server" Text="Folio Fiscal (UUID)" /></td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkMailCliente" runat="server" Text="Mail Cliente" /></td>
|
||||
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkTotal" runat="server" Text=" *Total" Checked="true" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkFolioFiscal" runat="server" Text=" Folio Fiscal (UUID)" /></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChlMotivoDescuento" runat="server" Text=" Motivo Descuento" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkEstatusFacturacion" runat="server" Text="Estatus Facturación" /></td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkFolioFacturacion" runat="server" Text="Factura Cotización" /></td>
|
||||
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkCliente" runat="server" Text="Cliente" Checked="true" /></td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkCodigo" runat="server" Text="Código Cliente" /></td>
|
||||
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkMoneda" runat="server" Text=" *Moneda" Checked="true" /></td>
|
||||
<td style="text-align: left;"></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkAmortizacion" runat="server" Text=" Amortización" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkIEPS" runat="server" Text=" *IEPS" /></td>
|
||||
<td style="text-align: left;"></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkSeTimbro" runat="server" Text=" Se Timbró" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkTotalImpuestos" runat="server" Text="Impuestos Locales" /></td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkIEPS" runat="server" Text="IEPS" /></td>
|
||||
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkMoneda" runat="server" Text="Moneda" Checked="true" /></td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkSaldo" runat="server" Text="Saldo" Checked="false" /></td>
|
||||
</td>
|
||||
<td style="text-align: left;"></td>
|
||||
<td style="text-align: left;"></td>
|
||||
<td style="text-align: left;"><asp:CheckBox ID="ChkSeEnvioMail" runat="server" Text=" Se envió Mail" />&nbst</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-success" data-dismiss="modal" onclick="$('#BtnPersonalizar').click();">Personalizar</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||||
<div class="row">
|
||||
<div class="col-md-6" style="text-align:left">
|
||||
<asp:CheckBox ID="ChkGuardarPersonalizacion" runat="server" Text=" Guarda Personalización" TextAlign="Right" />
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<button type="button" class="btn btn-success" data-dismiss="modal" onclick="$('#BtnPersonalizar').click();">Personalizar</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -28,6 +28,9 @@ Partial Class RepVentaDetalle
|
||||
End Property
|
||||
Private Property DtVentas As DataTable
|
||||
Get
|
||||
If ViewState("DtVentas") Is Nothing Then
|
||||
ViewState("DtVentas") = New DataTable
|
||||
End If
|
||||
Return DirectCast(ViewState("DtVentas"), DataTable)
|
||||
End Get
|
||||
Set(value As DataTable)
|
||||
@@ -94,6 +97,20 @@ Partial Class RepVentaDetalle
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property Primeracontsulta As Boolean
|
||||
Get
|
||||
If ViewState("Primeracontsulta") Is Nothing Then
|
||||
ViewState("Primeracontsulta") = True
|
||||
End If
|
||||
Return Boolean.Parse(ViewState("Primeracontsulta").ToString)
|
||||
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
ViewState("Primeracontsulta") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
#End Region
|
||||
'pRivate ReadOnly Property ColumnasVisibles As
|
||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||
@@ -111,6 +128,8 @@ Partial Class RepVentaDetalle
|
||||
DVServicioDomicilio.Visible = True
|
||||
|
||||
End If
|
||||
PrePersonalizacion()
|
||||
CargaPersonalizacion()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
@@ -407,6 +426,16 @@ Partial Class RepVentaDetalle
|
||||
ImgImprimir.Enabled = True
|
||||
GvDatos.DataSource = AddRows(ObjVentas.DtResultados)
|
||||
GvVsh.DataSource = ObjVentas.DtResultados.FiltraParametros("CveVenta > 0")
|
||||
|
||||
If DtVentas.SUMD("Descuento") <= 0 Then
|
||||
GvDatos.Columns(5).Visible = False ' se oculta descuentos, si está vac+io
|
||||
Else
|
||||
If Primeracontsulta Then
|
||||
GvDatos.Columns(5).Visible = True
|
||||
ChkDescuento.Checked = True
|
||||
End If
|
||||
End If
|
||||
|
||||
Else
|
||||
GvDatos.DataSource = Nothing
|
||||
GvVsh.DataSource = Nothing
|
||||
@@ -416,8 +445,19 @@ Partial Class RepVentaDetalle
|
||||
If DtVentas IsNot Nothing AndAlso DtVentas.Rows.Count > 0 AndAlso DtVentas.SUMD("Descuento") <= 0 Then GvDatos.Columns(5).Visible = False ' se oculta descuentos, si está vac+io
|
||||
Agrupador = DdlGrupo.SelectedItem.Text
|
||||
|
||||
GvDatos.DataBind()
|
||||
GvDatosDataBind()
|
||||
GvVsh.DataBind()
|
||||
|
||||
Primeracontsulta = False
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub GvDatosDataBind()
|
||||
|
||||
GvDatos.DataSource = DtVentas
|
||||
GvDatos.DataBind()
|
||||
UPDatos.Update()
|
||||
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
@@ -526,8 +566,388 @@ Partial Class RepVentaDetalle
|
||||
|
||||
#Region "PERSONALIZAR COLUMNAS"
|
||||
|
||||
Private Sub PrePersonalizacion()
|
||||
|
||||
If UsuarioActual.Empresa.Funcionalidad(713) = "1" Then
|
||||
ChkIEPS.Visible = True
|
||||
Else
|
||||
ChkIEPS.Visible = False
|
||||
GvDatos.Columns(9).Visible = False
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub PersonalizaDefault()
|
||||
|
||||
ChkTipoDocto.Checked = True
|
||||
ChkFolio.Checked = True
|
||||
ChkFecha.Checked = True
|
||||
ChkSubTotal.Checked = True
|
||||
|
||||
If DtVentas.Rows.Count > 0 AndAlso DtVentas.SUMD("Descuento") > 0 Then
|
||||
ChkDescuento.Checked = True
|
||||
End If
|
||||
|
||||
ChkIVA.Checked = True
|
||||
If UsuarioActual.Empresa.Funcionalidad(713) = "1" Then
|
||||
ChkIEPS.Checked = True
|
||||
End If
|
||||
|
||||
ChkTotal.Checked = True
|
||||
ChkMoneda.Checked = True
|
||||
ChkSucursal.Checked = True
|
||||
ChkEstatusFactura.Checked = True
|
||||
ChkCliente.Checked = True
|
||||
|
||||
End Sub
|
||||
|
||||
Protected Sub LnkPersonalizar_Click(sender As Object, e As EventArgs)
|
||||
|
||||
ChkGuardarPersonalizacion.Checked = False
|
||||
RegistraScript("$('#DivPersonalizar').modal('show')")
|
||||
|
||||
End Sub
|
||||
|
||||
Protected Sub BtnPersonalizar_Click(sender As Object, e As System.EventArgs) Handles BtnPersonalizar.Click
|
||||
|
||||
If ChkGuardarPersonalizacion.Checked Then
|
||||
GuardaPersonalizacion()
|
||||
End If
|
||||
|
||||
Personaliza()
|
||||
GvDatosDataBind()
|
||||
UPDatos.Update()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub GuardaPersonalizacion()
|
||||
|
||||
Dim objUsuario As New ClsSisUsuarios
|
||||
Dim ListPersonalizada As New List(Of String)
|
||||
|
||||
If ChkOrdenCompra.Checked Then
|
||||
ListPersonalizada.Add("OrdenCompra")
|
||||
End If
|
||||
|
||||
If ChkFolio.Checked Then
|
||||
ListPersonalizada.Add("Folio")
|
||||
End If
|
||||
|
||||
If ChkPedidoContrato.Checked Then
|
||||
ListPersonalizada.Add("PedidoContrato")
|
||||
End If
|
||||
|
||||
|
||||
If ChkFolio.Checked Then
|
||||
ListPersonalizada.Add("Folio")
|
||||
End If
|
||||
|
||||
If ChkFecha.Checked Then
|
||||
ListPersonalizada.Add("Fecha")
|
||||
End If
|
||||
|
||||
If ChkCliente.Checked Then
|
||||
ListPersonalizada.Add("Cliente")
|
||||
End If
|
||||
|
||||
If ChkSubTotal.Checked Then
|
||||
ListPersonalizada.Add("SubTotal")
|
||||
End If
|
||||
|
||||
If ChkDescuento.Checked Then
|
||||
ListPersonalizada.Add("Descuento")
|
||||
End If
|
||||
|
||||
If ChlMotivoDescuento.Checked Then
|
||||
ListPersonalizada.Add("MotivoDescuento")
|
||||
End If
|
||||
|
||||
If ChkAmortizacion.Checked Then
|
||||
ListPersonalizada.Add("Amortizacion")
|
||||
End If
|
||||
|
||||
If ChkIVA.Checked Then
|
||||
ListPersonalizada.Add("IVA")
|
||||
End If
|
||||
|
||||
If ChkIEPS.Checked Then
|
||||
ListPersonalizada.Add("IEPS")
|
||||
End If
|
||||
|
||||
If ChkRetIVA.Checked Then
|
||||
ListPersonalizada.Add("RetIVA")
|
||||
End If
|
||||
|
||||
If ChkRetISR.Checked Then
|
||||
ListPersonalizada.Add("RetISR")
|
||||
End If
|
||||
|
||||
If ChkTotalImpuestos.Checked Then
|
||||
ListPersonalizada.Add("TotalImpuestos")
|
||||
End If
|
||||
|
||||
If ChkTotal.Checked Then
|
||||
ListPersonalizada.Add("Total")
|
||||
End If
|
||||
|
||||
If ChkMoneda.Checked Then
|
||||
ListPersonalizada.Add("Moneda")
|
||||
End If
|
||||
|
||||
If ChkSucursal.Checked Then
|
||||
ListPersonalizada.Add("Sucursal")
|
||||
End If
|
||||
|
||||
If ChkSucursalEjecucion.Checked Then
|
||||
ListPersonalizada.Add("SucursalEjecucion")
|
||||
End If
|
||||
|
||||
If ChkCodigo.Checked Then
|
||||
ListPersonalizada.Add("Codigo")
|
||||
End If
|
||||
|
||||
If ChkSucursalCliente.Checked Then
|
||||
ListPersonalizada.Add("SucursalCliente")
|
||||
End If
|
||||
|
||||
If ChkSucursalCobranza.Checked Then
|
||||
ListPersonalizada.Add("SucursalCobranza")
|
||||
End If
|
||||
|
||||
If ChkVendedor.Checked Then
|
||||
ListPersonalizada.Add("Vendedor")
|
||||
End If
|
||||
|
||||
If ChkEstatusFactura.Checked Then
|
||||
ListPersonalizada.Add("EstatusFactura")
|
||||
End If
|
||||
|
||||
If ChkMotivoCancelacion.Checked Then
|
||||
ListPersonalizada.Add("MotivoCancelacion")
|
||||
End If
|
||||
|
||||
If ChkSeTimbro.Checked Then
|
||||
ListPersonalizada.Add("SeTimbro")
|
||||
End If
|
||||
|
||||
If ChkSeEnvioMail.Checked Then
|
||||
ListPersonalizada.Add("SeEnvioMail")
|
||||
End If
|
||||
|
||||
If ChkCuentaContable.Checked Then
|
||||
ListPersonalizada.Add("CuentaContable")
|
||||
End If
|
||||
|
||||
If ChkUsuario.Checked Then
|
||||
ListPersonalizada.Add("Usuario")
|
||||
End If
|
||||
|
||||
If ChkObservaciones.Checked Then
|
||||
ListPersonalizada.Add("Observaciones")
|
||||
End If
|
||||
|
||||
If ChkFolioFiscal.Checked Then
|
||||
ListPersonalizada.Add("FolioFiscal")
|
||||
End If
|
||||
|
||||
If ChkMailCliente.Checked Then
|
||||
ListPersonalizada.Add("MailCliente")
|
||||
End If
|
||||
|
||||
If ChkEstatusFacturacion.Checked Then
|
||||
ListPersonalizada.Add("EstatusFacturacion")
|
||||
End If
|
||||
|
||||
If ChkFolioFacturacion.Checked Then
|
||||
ListPersonalizada.Add("FolioFacturacion")
|
||||
End If
|
||||
|
||||
If ChkSaldo.Checked Then
|
||||
ListPersonalizada.Add("Saldo")
|
||||
End If
|
||||
|
||||
If objUsuario.AddUsuariosPersonalizaciones(UsuarioActual, "RepVentaDetalles.aspx", String.Join("|", ListPersonalizada)) Then
|
||||
'Alert("Personalizacion guardada")
|
||||
End If
|
||||
|
||||
objUsuario.Dispose()
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub CargaPersonalizacion()
|
||||
|
||||
Dim strBasePersonalizacion As String = UsuarioActual.Personalizaciones("RepVentaDetalles.aspx")
|
||||
|
||||
If strBasePersonalizacion.Trim.Length > 0 Then
|
||||
|
||||
ChkTipoDocto.Checked = False
|
||||
ChkOrdenCompra.Checked = False
|
||||
ChkPedidoContrato.Checked = False
|
||||
|
||||
ChkFolio.Checked = False
|
||||
ChkFecha.Checked = False
|
||||
ChkCliente.Checked = False
|
||||
ChkSubTotal.Checked = False
|
||||
ChkDescuento.Checked = False
|
||||
ChlMotivoDescuento.Checked = False
|
||||
ChkAmortizacion.Checked = False
|
||||
ChkIVA.Checked = False
|
||||
ChkIEPS.Checked = False
|
||||
ChkRetIVA.Checked = False
|
||||
ChkRetISR.Checked = False
|
||||
ChkTotalImpuestos.Checked = False
|
||||
ChkTotal.Checked = False
|
||||
ChkMoneda.Checked = False
|
||||
ChkSucursal.Checked = False
|
||||
ChkSucursalEjecucion.Checked = False
|
||||
ChkCodigo.Checked = False
|
||||
ChkSucursalCliente.Checked = False
|
||||
ChkSucursalCobranza.Checked = False
|
||||
ChkSucursalEjecucion.Checked = False
|
||||
ChkVendedor.Checked = False
|
||||
ChkEstatusFactura.Checked = False
|
||||
ChkMotivoCancelacion.Checked = False
|
||||
ChkSeTimbro.Checked = False
|
||||
ChkSeEnvioMail.Checked = False
|
||||
ChkCuentaContable.Checked = False
|
||||
ChkUsuario.Checked = False
|
||||
ChkObservaciones.Checked = False
|
||||
ChkFolioFiscal.Checked = False
|
||||
ChkMailCliente.Checked = False
|
||||
ChkEstatusFacturacion.Checked = False
|
||||
ChkFolioFacturacion.Checked = False
|
||||
ChkSaldo.Checked = False
|
||||
|
||||
Dim Personalizaciones As String() = strBasePersonalizacion.Split("|"c)
|
||||
|
||||
For Each personalizacion As String In Personalizaciones
|
||||
Select Case personalizacion
|
||||
Case "TipoDocto"
|
||||
ChkTipoDocto.Checked = True
|
||||
Exit Select
|
||||
Case "OrdenCompra"
|
||||
ChkOrdenCompra.Checked = True
|
||||
Exit Select
|
||||
Case "PedidoContrato"
|
||||
ChkPedidoContrato.Checked = True
|
||||
Exit Select
|
||||
Case "Folio"
|
||||
ChkFolio.Checked = True
|
||||
Exit Select
|
||||
Case "Fecha"
|
||||
ChkFecha.Checked = True
|
||||
Exit Select
|
||||
Case "Cliente"
|
||||
ChkCliente.Checked = True
|
||||
Exit Select
|
||||
Case "SubTotal"
|
||||
ChkSubTotal.Checked = True
|
||||
Exit Select
|
||||
Case "Descuento"
|
||||
ChkDescuento.Checked = True
|
||||
Exit Select
|
||||
Case "MotivoDescuento"
|
||||
ChlMotivoDescuento.Checked = True
|
||||
Exit Select
|
||||
Case "Amortizacion"
|
||||
ChkAmortizacion.Checked = True
|
||||
Exit Select
|
||||
Case "IVA"
|
||||
ChkIVA.Checked = True
|
||||
Exit Select
|
||||
Case "IEPS"
|
||||
ChkIEPS.Checked = True
|
||||
Exit Select
|
||||
Case "RetIVA"
|
||||
ChkRetIVA.Checked = True
|
||||
Exit Select
|
||||
Case "RetISR"
|
||||
ChkRetISR.Checked = True
|
||||
Exit Select
|
||||
Case "TotalImpuestos"
|
||||
ChkTotalImpuestos.Checked = True
|
||||
Exit Select
|
||||
Case "Total"
|
||||
ChkTotal.Checked = True
|
||||
Exit Select
|
||||
Case "Moneda"
|
||||
ChkMoneda.Checked = True
|
||||
Exit Select
|
||||
Case "Sucursal"
|
||||
ChkSucursal.Checked = True
|
||||
Exit Select
|
||||
Case "SucursalEjecucion"
|
||||
ChkSucursalEjecucion.Checked = True
|
||||
Exit Select
|
||||
Case "Codigo"
|
||||
ChkCodigo.Checked = True
|
||||
Exit Select
|
||||
Case "SucursalCliente"
|
||||
ChkSucursalCliente.Checked = True
|
||||
Exit Select
|
||||
Case "SucursalCobranza"
|
||||
ChkSucursalCobranza.Checked = True
|
||||
Exit Select
|
||||
Case "SucursalEjecucion"
|
||||
ChkSucursalEjecucion.Checked = True
|
||||
Exit Select
|
||||
Case "Vendedor"
|
||||
ChkVendedor.Checked = True
|
||||
Exit Select
|
||||
Case "EstatusFactura"
|
||||
ChkEstatusFactura.Checked = True
|
||||
Exit Select
|
||||
Case "MotivoCancelacion"
|
||||
ChkMotivoCancelacion.Checked = True
|
||||
Exit Select
|
||||
Case "SeTimbro"
|
||||
ChkSeTimbro.Checked = True
|
||||
Exit Select
|
||||
Case "SeEnvioMail"
|
||||
ChkSeEnvioMail.Checked = True
|
||||
Exit Select
|
||||
Case "CuentaContable"
|
||||
ChkCuentaContable.Checked = True
|
||||
Exit Select
|
||||
Case "Usuario"
|
||||
ChkUsuario.Checked = True
|
||||
Exit Select
|
||||
Case "Observaciones"
|
||||
ChkObservaciones.Checked = True
|
||||
Exit Select
|
||||
Case "FolioFiscal"
|
||||
ChkFolioFiscal.Checked = True
|
||||
Exit Select
|
||||
Case "MailCliente"
|
||||
ChkMailCliente.Checked = True
|
||||
Exit Select
|
||||
Case "EstatusFacturacion"
|
||||
ChkEstatusFacturacion.Checked = True
|
||||
Exit Select
|
||||
Case "FolioFacturacion"
|
||||
ChkFolioFacturacion.Checked = True
|
||||
Exit Select
|
||||
Case "Saldo"
|
||||
ChkSaldo.Checked = True
|
||||
Exit Select
|
||||
Case Else
|
||||
Exit Select
|
||||
End Select
|
||||
Next
|
||||
|
||||
Personaliza()
|
||||
Else
|
||||
PersonalizaDefault()
|
||||
End If
|
||||
|
||||
UPPersonalizar.Update()
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub Personaliza()
|
||||
|
||||
GvDatos.Columns(0).Visible = ChkTipoDocto.Checked
|
||||
GvDatos.Columns(1).Visible = ChkFolio.Checked
|
||||
GvDatos.Columns(2).Visible = ChkFecha.Checked
|
||||
GvDatos.Columns(3).Visible = ChkCliente.Checked
|
||||
@@ -561,6 +981,8 @@ Partial Class RepVentaDetalle
|
||||
GvDatos.Columns(31).Visible = ChkEstatusFacturacion.Checked
|
||||
GvDatos.Columns(32).Visible = ChkFolioFacturacion.Checked
|
||||
GvDatos.Columns(33).Visible = ChkSaldo.Checked
|
||||
GvDatos.Columns(34).Visible = ChkOrdenCompra.Checked
|
||||
GvDatos.Columns(35).Visible = ChkPedidoContrato.Checked
|
||||
|
||||
Personalizo = 1
|
||||
If Personalizo = 1 Then
|
||||
@@ -568,7 +990,7 @@ Partial Class RepVentaDetalle
|
||||
Else
|
||||
ImgExcelPersonalizado.Visible = False
|
||||
End If
|
||||
UPDatos.Update()
|
||||
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
@@ -871,4 +1293,6 @@ Partial Class RepVentaDetalle
|
||||
#End Region
|
||||
|
||||
|
||||
|
||||
|
||||
End Class
|
||||
|
||||
@@ -69,10 +69,19 @@
|
||||
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
|
||||
<li>
|
||||
<asp:HyperLink NavigateUrl="#" data-toggle="modal" data-target="#DivPersonalizar" ID="ImgPersonalizar" runat="server"> <i class="fa fa-pencil"></i> Personalizar</asp:HyperLink>
|
||||
<asp:LinkButton ID="ImgExcelPersonalizado" runat="server" Visible="false"> <i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel Personalizado</asp:LinkButton>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkPErsonalizar" OnClick="LnkPErsonalizar_Click" runat="server"><i class="fa fa-pencil"></i>Personalizar Columnas</asp:LinkButton>
|
||||
<%--<asp:HyperLink NavigateUrl="#" data-toggle="modal" data-target="#DivPersonalizar" ID="ImgPersonalizar" runat="server"> <i class="fa fa-pencil"></i> Personalizar</asp:HyperLink>--%>
|
||||
</li>
|
||||
</ContentTemplate>
|
||||
<Triggers>
|
||||
<asp:PostBackTrigger ControlID="ImgExcelPersonalizado" />
|
||||
</Triggers>
|
||||
</asp:UpdatePanel>
|
||||
<asp:UpdatePanel ID="UpLnkHP" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
@@ -344,34 +353,51 @@
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" Width="99%" EmptyDataText="No se encontraron Ventas con los filtros especificados" ToolTip="Listado de Ventas" CssClass="table table-advance table-hover Widthall ScrollAD" data-sort="true" Style="text-align: center;" GridLines="None">
|
||||
<Columns>
|
||||
<%--0--%>
|
||||
<asp:TemplateField HeaderText="Grupo" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlGrupo" runat="server" Text='<%# Eval("GPO") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%--1--%>
|
||||
<asp:TemplateField HeaderText="Cantidad" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:N0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%--2--%>
|
||||
<asp:BoundField HeaderText="Sub Total" DataField="SubTotal" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||
<%--3--%>
|
||||
<asp:BoundField HeaderText="Descuento" DataField="Descuento" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||
<%--4--%>
|
||||
<asp:BoundField HeaderText="Amortización" DataField="Amortizacion" Visible="false" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||
|
||||
<%--5--%>
|
||||
<asp:BoundField HeaderText="Sub Total 2" DataField="SubTotal2" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||
|
||||
<%--6--%>
|
||||
<asp:BoundField HeaderText="IVA" DataField="IVA" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||
<%--7--%>
|
||||
<asp:BoundField HeaderText="IEPS" DataField="IEPS" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||
<%--8--%>
|
||||
<asp:BoundField HeaderText="Ret. IVA" DataField="RetIVA" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||
<%--9--%>
|
||||
<asp:BoundField HeaderText="Ret. ISR" DataField="RetISR" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||
<%--10--%>
|
||||
<asp:BoundField HeaderText="Imp. Locales" DataField="TotalImpuestos" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||
<%--11--%>
|
||||
<asp:BoundField HeaderText="Total" DataField="Total" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||
<%--12--%>
|
||||
<asp:BoundField HeaderText="Sub. Máximo" DataField="MAX_SubTotal" ItemStyle-Width="5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||
<%--13--%>
|
||||
<asp:BoundField HeaderText="Sub. Promedio" DataField="AVG_SubTotal" ItemStyle-Width="5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||
<%--14--%>
|
||||
<asp:BoundField HeaderText="Sub. Mínimo" DataField="MIN_SubTotal" ItemStyle-Width="5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||
<%--15--%>
|
||||
<asp:BoundField HeaderText="Tot. Máximo" DataField="MAX_Total" ItemStyle-Width="5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||
<%--16--%>
|
||||
<asp:BoundField HeaderText="Tot. Promedio" DataField="AVG_Total" ItemStyle-Width="5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||
<%--17--%>
|
||||
<asp:BoundField HeaderText="Tot. Mínimo" DataField="MIN_Total" ItemStyle-Width="5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||
<%--18--%>
|
||||
<asp:BoundField HeaderText="Tot. Refacturado" DataField="TotalRefacturado" ItemStyle-Width="5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||
</Columns>
|
||||
<RowStyle CssClass="Texto" />
|
||||
@@ -397,46 +423,127 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkRetIVA" runat="server" Text="Ret. IVA" /></td>
|
||||
<asp:CheckBox ID="ChkCantidad" runat="server" Text=" *Cantidad" /></td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkMinSub" runat="server" Text="SubTotal Mínimo" /></td>
|
||||
<asp:CheckBox ID="ChkMaxSub" runat="server" Text=" SubTotal Máximo" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkRetISR" runat="server" Text="Ret. ISR" /></td>
|
||||
<asp:CheckBox ID="ChkSubtotal" runat="server" Text=" Sub total" /></td>
|
||||
</td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkMaxTot" runat="server" Text="Total Máximo" /></td>
|
||||
<asp:CheckBox ID="ChkAVGSub" runat="server" Text=" SubTotal Promedio" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkMaxSub" runat="server" Text="SubTotal Máximo" /></td>
|
||||
<asp:CheckBox ID="ChkDescuentos" runat="server" Text=" *Descuentos" /></td>
|
||||
</td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkAvgTot" runat="server" Text="Total Promedio" /></td>
|
||||
<asp:CheckBox ID="ChkMinSub" runat="server" Text=" SubTotal Mínimo" />
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkAVGSub" runat="server" Text="SubTotal Promedio" /></td>
|
||||
<asp:CheckBox ID="ChkSubTotal2" runat="server" Text=" *Subtotal 2" />
|
||||
</td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkMinTot" runat="server" Text="Total Mínimo" /></td>
|
||||
<asp:CheckBox ID="ChkMaxTot" runat="server" Text=" Total Máximo" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkImpLoc" runat="server" Text="Impuestos Locales" /></td>
|
||||
<asp:CheckBox ID="ChkIVA" runat="server" Text=" *IVA" />
|
||||
</td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="CheckRefacturado" runat="server" Text="Refacturado" /></td>
|
||||
<asp:CheckBox ID="ChkAvgTot" runat="server" Text=" Total Promedio" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkSubTotal2" runat="server" Text="Subtotal 2" /></td>
|
||||
<asp:CheckBox ID="ChkRetIVA" runat="server" Text=" Ret. IVA" />
|
||||
|
||||
</td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkIEPS" runat="server" Text="IEPS" /></td>
|
||||
<asp:CheckBox ID="ChkMinTot" runat="server" Text=" Total Mínimo" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
|
||||
<asp:CheckBox ID="ChkRetISR" runat="server" Text=" Ret. ISR" />
|
||||
</td>
|
||||
<td style="text-align: left;">
|
||||
<asp:CheckBox ID="CheckRefacturado" runat="server" Text=" Refacturado" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
|
||||
<asp:CheckBox ID="ChkImpLoc" runat="server" Text=" Impuestos Locales" />
|
||||
</td>
|
||||
<td style="text-align: left;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
|
||||
<asp:CheckBox ID="ChkTotal" runat="server" Text=" *Total" />
|
||||
</td>
|
||||
<td style="text-align: left;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align: left;">
|
||||
|
||||
|
||||
<asp:CheckBox ID="ChkIEPS" runat="server" Text=" *IEPS" />
|
||||
</td>
|
||||
<td style="text-align: left;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-success" data-dismiss="modal" onclick="$('#BtnPersonalizar').click();">Personalizar</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6" style="text-align:left">
|
||||
<asp:CheckBox ID="ChkGuardarPersonalizacion" runat="server" Text=" Guarda Personalización" TextAlign="Right" />
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<button type="button" class="btn btn-success" data-dismiss="modal" onclick="$('#BtnPersonalizar').click();">Personalizar</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -61,6 +61,9 @@ Partial Class Ventas_RepVentas
|
||||
End Property
|
||||
Private Property DtVentas As DataTable
|
||||
Get
|
||||
If ViewState("DtVentas") Is Nothing Then
|
||||
ViewState("DtVentas") = New DataTable
|
||||
End If
|
||||
Return DirectCast(ViewState("DtVentas"), DataTable)
|
||||
End Get
|
||||
Set(value As DataTable)
|
||||
@@ -68,6 +71,28 @@ Partial Class Ventas_RepVentas
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Private Property Personalizo As Integer
|
||||
Get
|
||||
Return ViewState("Personalizo").ToString.ToEntero
|
||||
End Get
|
||||
|
||||
Set(value As Integer)
|
||||
ViewState("Personalizo") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Public Property Primeracontsulta As Boolean
|
||||
Get
|
||||
If ViewState("Primeracontsulta") Is Nothing Then
|
||||
ViewState("Primeracontsulta") = True
|
||||
End If
|
||||
Return Boolean.Parse(ViewState("Primeracontsulta").ToString)
|
||||
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
ViewState("Primeracontsulta") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
#End Region
|
||||
@@ -76,7 +101,8 @@ Partial Class Ventas_RepVentas
|
||||
If Not IsPostBack Then
|
||||
If UsuarioActual.CveEmpresa = 2 AndAlso UsuarioActual.CveUsuario.Contiene(77, 21) Then Response.Redirect("/Inicio.aspx")
|
||||
TipoCambio = 1
|
||||
TCEspecifico = -1
|
||||
TCEspecifico = -1
|
||||
Personalizo = 0
|
||||
CargaCombos()
|
||||
ConfiguraEmpresa()
|
||||
|
||||
@@ -121,7 +147,10 @@ Partial Class Ventas_RepVentas
|
||||
DVServicioDomicilio.Visible = True
|
||||
DivLblDistr.Visible = True
|
||||
DivDistr.Visible = True
|
||||
End If
|
||||
End If
|
||||
|
||||
PrePersonalizacion()
|
||||
CargaPersonalizacion()
|
||||
|
||||
End If
|
||||
|
||||
@@ -254,12 +283,34 @@ Partial Class Ventas_RepVentas
|
||||
GvDatos.DataSource = Nothing
|
||||
End If
|
||||
|
||||
If DtVentas.SUMD("Descuento") <= 0 Then GvDatos.Columns(3).Visible = False ' se oculta descuentos, si está vac+io
|
||||
If DtVentas.SUMD("Descuento") <= 0 Then
|
||||
GvDatos.Columns(3).Visible = False ' se oculta descuentos, si está vac+io
|
||||
'ChkDescuentos.Visible = False
|
||||
Else
|
||||
If Primeracontsulta Then
|
||||
GvDatos.Columns(3).Visible = True
|
||||
ChkDescuentos.Checked = True
|
||||
End If
|
||||
End If
|
||||
UPPersonalizar.Update()
|
||||
|
||||
Agrupador = DdlGrupo.SelectedItem.Text
|
||||
CveProyecto = DdlProyecto.SelectedValue.ToEntero
|
||||
ObjVentas.Dispose()
|
||||
GvDatos.DataBind()
|
||||
ObjVentas.Dispose()
|
||||
|
||||
|
||||
GvDatosDataBind()
|
||||
|
||||
|
||||
Primeracontsulta = False
|
||||
End Sub
|
||||
|
||||
Private Sub GvDatosDataBind()
|
||||
|
||||
GvDatos.DataSource = DtVentas
|
||||
GvDatos.DataBind()
|
||||
UPDatos.Update()
|
||||
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
@@ -474,25 +525,261 @@ Partial Class Ventas_RepVentas
|
||||
#End Region
|
||||
|
||||
#Region " PERSONALIZAR "
|
||||
Protected Sub BtnPersonalizar_Click(sender As Object, e As System.EventArgs)
|
||||
Personaliza()
|
||||
|
||||
|
||||
Private Sub PrePersonalizacion()
|
||||
'ChkDescuentos.Visible = False
|
||||
If UsuarioActual.Empresa.Funcionalidad(713) = "1" Then
|
||||
ChkIEPS.Visible = True
|
||||
Else
|
||||
ChkIEPS.Visible = False
|
||||
GvDatos.Columns(7).Visible = False
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Protected Sub LnkPErsonalizar_Click(sender As Object, e As EventArgs)
|
||||
ChkGuardarPersonalizacion.Checked = False
|
||||
RegistraScript("$('#DivPersonalizar').modal('show')")
|
||||
End Sub
|
||||
Protected Sub BtnPersonalizar_Click(sender As Object, e As System.EventArgs)
|
||||
|
||||
If ChkGuardarPersonalizacion.Checked Then
|
||||
GuardaPersonalizacion()
|
||||
End If
|
||||
|
||||
Personaliza()
|
||||
GvDatosDataBind()
|
||||
End Sub
|
||||
|
||||
Private Sub GuardaPersonalizacion()
|
||||
|
||||
Dim objUsuario As New ClsSisUsuarios
|
||||
Dim ListPersonalizada As New List(Of String)
|
||||
|
||||
'ChkCantidad.Checked = False
|
||||
'ChkSubtotal.Checked = False
|
||||
'ChkDescuentos.Checked = False
|
||||
'ChkIVA.Checked = False
|
||||
'ChkTotal.Checked = False
|
||||
|
||||
If ChkCantidad.Checked Then
|
||||
ListPersonalizada.Add("Cantidad")
|
||||
End If
|
||||
|
||||
If ChkSubtotal.Checked Then
|
||||
ListPersonalizada.Add("Subtotal")
|
||||
End If
|
||||
|
||||
If ChkDescuentos.Checked Then
|
||||
ListPersonalizada.Add("Descuentos")
|
||||
End If
|
||||
|
||||
If ChkIVA.Checked Then
|
||||
ListPersonalizada.Add("IVA")
|
||||
End If
|
||||
|
||||
If ChkTotal.Checked Then
|
||||
ListPersonalizada.Add("Total")
|
||||
End If
|
||||
|
||||
If ChkSubTotal2.Checked Then
|
||||
ListPersonalizada.Add("SubTotal2")
|
||||
End If
|
||||
If ChkIEPS.Checked Then
|
||||
ListPersonalizada.Add("IEPS")
|
||||
End If
|
||||
If ChkRetIVA.Checked Then
|
||||
ListPersonalizada.Add("RetIVA")
|
||||
End If
|
||||
If ChkRetISR.Checked Then
|
||||
ListPersonalizada.Add("RetISR")
|
||||
End If
|
||||
If ChkImpLoc.Checked Then
|
||||
ListPersonalizada.Add("ImpLoc")
|
||||
End If
|
||||
If ChkMinSub.Checked Then
|
||||
ListPersonalizada.Add("MinSub")
|
||||
End If
|
||||
If ChkAVGSub.Checked Then
|
||||
ListPersonalizada.Add("AVGSub")
|
||||
End If
|
||||
If ChkMaxSub.Checked Then
|
||||
ListPersonalizada.Add("MaxSub")
|
||||
End If
|
||||
If ChkMaxTot.Checked Then
|
||||
ListPersonalizada.Add("MaxTot")
|
||||
End If
|
||||
If ChkAvgTot.Checked Then
|
||||
ListPersonalizada.Add("AvgTot")
|
||||
End If
|
||||
If ChkMinTot.Checked Then
|
||||
ListPersonalizada.Add("MinTot")
|
||||
End If
|
||||
If CheckRefacturado.Checked Then
|
||||
ListPersonalizada.Add("CheckRefacturado")
|
||||
End If
|
||||
|
||||
If ChkCantidad.Checked Then
|
||||
ListPersonalizada.Add("Cantidad")
|
||||
End If
|
||||
|
||||
|
||||
If objUsuario.AddUsuariosPersonalizaciones(UsuarioActual, "RepVentas.aspx", String.Join("|", ListPersonalizada)) Then
|
||||
'Alert("Personalizacion guardada")
|
||||
End If
|
||||
|
||||
objUsuario.Dispose()
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub CargaPersonalizacion()
|
||||
|
||||
|
||||
Dim strBasePersonalizacion As String = UsuarioActual.Personalizaciones("RepVentas.aspx")
|
||||
|
||||
If strBasePersonalizacion.Trim.Length > 0 Then
|
||||
|
||||
ChkCantidad.Checked = False
|
||||
ChkSubtotal.Checked = False
|
||||
ChkDescuentos.Checked = False
|
||||
ChkIVA.Checked = False
|
||||
ChkTotal.Checked = False
|
||||
|
||||
ChkSubTotal2.Checked = False
|
||||
ChkIEPS.Checked = False
|
||||
ChkRetIVA.Checked = False
|
||||
ChkRetISR.Checked = False
|
||||
ChkImpLoc.Checked = False
|
||||
ChkMinSub.Checked = False
|
||||
ChkAVGSub.Checked = False
|
||||
ChkMaxSub.Checked = False
|
||||
ChkMaxTot.Checked = False
|
||||
ChkAvgTot.Checked = False
|
||||
ChkMinTot.Checked = False
|
||||
CheckRefacturado.Checked = False
|
||||
|
||||
Dim Personalizaciones As String() = strBasePersonalizacion.Split("|"c)
|
||||
|
||||
For Each personalizacion As String In Personalizaciones
|
||||
|
||||
Select Case personalizacion
|
||||
|
||||
Case "Cantidad"
|
||||
ChkCantidad.Checked = True
|
||||
Exit Select
|
||||
Case "Subtotal"
|
||||
ChkSubtotal.Checked = True
|
||||
Exit Select
|
||||
Case "Descuentos"
|
||||
ChkDescuentos.Checked = True
|
||||
Exit Select
|
||||
Case "IVA"
|
||||
ChkIVA.Checked = True
|
||||
Exit Select
|
||||
Case "Total"
|
||||
ChkTotal.Checked = True
|
||||
Exit Select
|
||||
Case "SubTotal2"
|
||||
ChkSubTotal2.Checked = True
|
||||
Exit Select
|
||||
Case "IEPS"
|
||||
ChkIEPS.Checked = True
|
||||
Exit Select
|
||||
Case "RetIVA"
|
||||
ChkRetIVA.Checked = True
|
||||
Exit Select
|
||||
Case "RetISR"
|
||||
ChkRetISR.Checked = True
|
||||
Exit Select
|
||||
Case "ImpLoc"
|
||||
ChkImpLoc.Checked = True
|
||||
Exit Select
|
||||
Case "MinSub"
|
||||
ChkMinSub.Checked = True
|
||||
Exit Select
|
||||
Case "AVGSub"
|
||||
ChkAVGSub.Checked = True
|
||||
Exit Select
|
||||
Case "MaxSub"
|
||||
ChkMaxSub.Checked = True
|
||||
Exit Select
|
||||
Case "MaxTot"
|
||||
ChkMaxTot.Checked = True
|
||||
Exit Select
|
||||
Case "AvgTot"
|
||||
ChkAvgTot.Checked = True
|
||||
Exit Select
|
||||
Case "MinTot"
|
||||
ChkMinTot.Checked = True
|
||||
Exit Select
|
||||
Case "CheckRefacturado"
|
||||
CheckRefacturado.Checked = True
|
||||
Exit Select
|
||||
Case Else
|
||||
Exit Select
|
||||
End Select
|
||||
|
||||
Next
|
||||
|
||||
|
||||
Personaliza()
|
||||
Else
|
||||
PersonalizaDefault()
|
||||
End If
|
||||
UPPersonalizar.Update()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub PersonalizaDefault()
|
||||
ChkCantidad.Checked = True
|
||||
'ChkSubtotal.Checked = True
|
||||
|
||||
If DtVentas.Rows.Count > 0 AndAlso DtVentas.SUMD("Descuento") > 0 Then
|
||||
ChkDescuentos.Checked = True
|
||||
End If
|
||||
|
||||
ChkSubTotal2.Checked = True
|
||||
ChkIVA.Checked = True
|
||||
If UsuarioActual.Empresa.Funcionalidad(713) = "1" Then
|
||||
ChkIEPS.Checked = True
|
||||
End If
|
||||
'ChkRetIVA.Checked = True
|
||||
'ChkRetISR.Checked = True
|
||||
'ChkImpLoc.Checked = True
|
||||
ChkTotal.Checked = True
|
||||
End Sub
|
||||
|
||||
Private Sub Personaliza()
|
||||
|
||||
|
||||
GvDatos.Columns(1).Visible = ChkCantidad.Checked
|
||||
GvDatos.Columns(2).Visible = ChkSubtotal.Checked
|
||||
GvDatos.Columns(3).Visible = ChkDescuentos.Checked
|
||||
GvDatos.Columns(6).Visible = ChkIVA.Checked
|
||||
GvDatos.Columns(11).Visible = ChkTotal.Checked
|
||||
|
||||
GvDatos.Columns(5).Visible = ChkSubTotal2.Checked
|
||||
GvDatos.Columns(7).Visible = ChkIEPS.Checked
|
||||
GvDatos.Columns(8).Visible = ChkRetIVA.Checked
|
||||
GvDatos.Columns(9).Visible = ChkRetISR.Checked
|
||||
GvDatos.Columns(10).Visible = ChkImpLoc.Checked
|
||||
GvDatos.Columns(12).Visible = ChkMinSub.Checked
|
||||
GvDatos.Columns(12).Visible = ChkMaxSub.Checked
|
||||
GvDatos.Columns(13).Visible = ChkAVGSub.Checked
|
||||
GvDatos.Columns(14).Visible = ChkMaxSub.Checked
|
||||
|
||||
GvDatos.Columns(14).Visible = ChkMinSub.Checked
|
||||
|
||||
GvDatos.Columns(15).Visible = ChkMaxTot.Checked
|
||||
GvDatos.Columns(16).Visible = ChkAvgTot.Checked
|
||||
GvDatos.Columns(17).Visible = ChkMinTot.Checked
|
||||
GvDatos.Columns(18).Visible = CheckRefacturado.Checked
|
||||
|
||||
Personalizo = 1
|
||||
If Personalizo = 1 Then
|
||||
ImgExcelPersonalizado.Visible = True
|
||||
Else
|
||||
ImgExcelPersonalizado.Visible = False
|
||||
End If
|
||||
|
||||
UPDatos.Update()
|
||||
End Sub
|
||||
@@ -510,7 +797,7 @@ Partial Class Ventas_RepVentas
|
||||
Private Sub GenerarPDF(Optional Formato As String = "PDF")
|
||||
If DtVentas IsNot Nothing Then
|
||||
Dim StrFiltro As New StringBuilder
|
||||
StrFiltro.AppendFormat(" <b>Agrupado por</b>: {0}", DdlGrupo.SelectedItem.Text)
|
||||
StrFiltro.AppendFormat(" <b>Agrupado por</b>: {0}", DdlGrupo.SelectedItem.Text)
|
||||
Dim Archivo As New System.IO.FileInfo(String.Format("{0}Formatos/RepVentas.rdlc", UsuarioActual.Empresa.Ruta))
|
||||
Dim ruta As String = ""
|
||||
|
||||
@@ -743,5 +1030,13 @@ Partial Class Ventas_RepVentas
|
||||
|
||||
End Sub
|
||||
|
||||
Protected Sub ImgExcelPersonalizado_Click(sender As Object, e As EventArgs) Handles ImgExcelPersonalizado.Click
|
||||
'GvVsh.Visible = True
|
||||
'GvVsh.ExportToExcel("DetalleVentas_" & Now.ToShortDateString)
|
||||
'GvVsh.Visible = False
|
||||
GvDatos.ExportToExcel("Ventas_" & Now.ToShortDateString & ".xls")
|
||||
'GvDatos.ExportToExcelG("DetalleVentas_" & Now.ToShortDateString & ".xlsx")
|
||||
End Sub
|
||||
|
||||
|
||||
End Class
|
||||
|
||||
Reference in New Issue
Block a user