Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -84,15 +84,16 @@
|
||||
<asp:ListItem Value="general">general</asp:ListItem>
|
||||
<asp:ListItem Value="optima">optima</asp:ListItem>
|
||||
<asp:ListItem Value="motobateria">motobateria</asp:ListItem>
|
||||
<asp:ListItem Value="auxiliar">Auxiliar</asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
<label class="col-md-1 truncate">Estatus:</label>
|
||||
<div class="col-md-2">
|
||||
<asp:DropDownList ID="DdlEstatus" runat="server" CssClass="select2me" Width="100px" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
||||
<asp:ListItem Text="Activo" Value="1" Selected="True"></asp:ListItem>
|
||||
<asp:ListItem Text="Activo" Value="1" Selected="True"></asp:ListItem>
|
||||
<asp:ListItem Text="Enviado" Value="2"></asp:ListItem>
|
||||
<asp:ListItem Text="Cerrado" Value="0"></asp:ListItem>
|
||||
<asp:ListItem Text="Cerrado" Value="0"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
<label class="col-md-1 truncate">SubProyecto:</label>
|
||||
@@ -122,7 +123,7 @@
|
||||
|
||||
<asp:GridView ID="GvFolioGarantia" runat="server" AutoGenerateColumns="False"
|
||||
DataKeyNames="CveFolioGarantia,FolioGarantia,CveEstatus,Estatus,CveUsuario,Usuario,FechaIng,SubProyecto,CveSubProyecto,tipoFolio,Limite,CveMovimiento,Area"
|
||||
EmptyDataText="No se encontraron registros"
|
||||
EmptyDataText="No se encontraron registros"
|
||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn"
|
||||
data-sort="true"
|
||||
data-freezerows="1"
|
||||
@@ -143,19 +144,19 @@
|
||||
<asp:Literal ID="LblLimite" runat="server" Text='<%# Eval("Limite") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SubProyecto" >
|
||||
<asp:TemplateField HeaderText="SubProyecto">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblSubProyecto" runat="server" Text='<%# Eval("SubProyecto")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField HeaderText="Estatus" >
|
||||
<asp:TemplateField HeaderText="Estatus">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblPuntos" runat="server" Text='<%# Eval("Estatus")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="AreaTexto" HeaderText="Área" />
|
||||
<asp:TemplateField HeaderText="Fecha Ing." ItemStyle-HorizontalAlign="Center" >
|
||||
<asp:BoundField DataField="AreaTexto" HeaderText="Área" />
|
||||
<asp:TemplateField HeaderText="Fecha Ing." ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="lblFecha" runat="server" Text='<%# Eval("FechaIng", "{0:d}")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
@@ -170,9 +171,9 @@
|
||||
<asp:Literal ID="lblUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:HyperLinkField HeaderText="Mov. Salida" DataTextField="FolioAlmacen" DataNavigateUrlFields="CveMovimiento" DataNavigateUrlFormatString="/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}" Target="_blank" ControlStyle-CssClass="Texto"/>
|
||||
<asp:HyperLinkField HeaderText="Mov. Salida" DataTextField="FolioAlmacen" DataNavigateUrlFields="CveMovimiento" DataNavigateUrlFormatString="/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}" Target="_blank" ControlStyle-CssClass="Texto" />
|
||||
|
||||
<asp:TemplateField HeaderText="Notas" ItemStyle-Width ="120px" >
|
||||
<asp:TemplateField HeaderText="Notas" ItemStyle-Width="120px">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblSerieFolioNotas" runat="server" Text='<%# Eval("SerieFolioNotas") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
@@ -181,10 +182,10 @@
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="ImgVer" OnClick="ImgVer_Click" runat="server" AlternateText="Editar" CausesValidation="False"
|
||||
CssClass="btn btn-primary btn-circle btn-sm" Text="<i class='fa fa-bars'></i>" />
|
||||
|
||||
|
||||
<asp:LinkButton ID="ImgE" OnClick="Edit_ClickFolioGarantia" runat="server" AlternateText="Editar" CausesValidation="False"
|
||||
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||||
|
||||
|
||||
<asp:LinkButton ID="imgD" OnClick="Remove_ClickFolioGarantia" runat="server" AlternateText="Eliminar" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="confirmar" data-btn-ok-label="si" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
@@ -258,10 +259,10 @@
|
||||
<asp:TextBox ID="TxtFolioGarantia" CssClass="form-control" runat="server" MaxLength="70" CausesValidation="true"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RfvTxtFolioGarantia" runat="server" ControlToValidate="TxtFolioGarantia" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Folio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpFolioGarantia"></asp:RequiredFieldValidator>
|
||||
<asp:RegularExpressionValidator ID="REVFolioGarantia"
|
||||
ControlToValidate="TxtFolioGarantia" runat="server" CssClass="help-block errorimput"
|
||||
ErrorMessage="solo números" ValidationGroup="GrpFolioGarantia"
|
||||
ValidationExpression="\d+">
|
||||
</asp:RegularExpressionValidator>
|
||||
ControlToValidate="TxtFolioGarantia" runat="server" CssClass="help-block errorimput"
|
||||
ErrorMessage="solo números" ValidationGroup="GrpFolioGarantia"
|
||||
ValidationExpression="\d+">
|
||||
</asp:RegularExpressionValidator>
|
||||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" Enabled="True" TargetControlID="TxtFolioGarantia" FilterType="Numbers" FilterMode="ValidChars"></ajax:FilteredTextBoxExtender>
|
||||
<label for="<%= TxtFolioGarantia.ClientID.ToString()%>">Folio:</label>
|
||||
<i></i>
|
||||
@@ -269,8 +270,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright" style="padding-top:0px!important">
|
||||
<div class="form-group form-md-line-input input-iconright" style="padding-top: 0px!important">
|
||||
<asp:Label runat="server" ID="lblSubProyecto" for="<%= DdlSubProyectos.ClientID.ToString()%>">SubProyecto:</asp:Label></br>
|
||||
|
||||
<asp:DropDownList ID="DdlSubProyectos" runat="server" CssClass="form-control input-sm select2me" DataValueField="CveSubProyecto" DataTextField="SubProyecto" Class="table-group-action-input form-control input-inline input-small input-sm" Width="100%" AutoPostBack="true"></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVProducto2" InitialValue="-1" runat="server" ControlToValidate="DdlSubProyectos" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''SubProyecto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpFolioGarantia"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEProducto2" runat="server" HighlightCssClass="vco" TargetControlID="RFVProducto2" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
@@ -286,10 +288,12 @@
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:Label runat="server" ID="LblTipoFolio" for="<%= DdlTipoFolioModal.ClientID.ToString()%>">Tipo Folio:</asp:Label></br>
|
||||
|
||||
<asp:DropDownList ID="DdlTipoFolioModal" runat="server" CssClass="form-control input-sm select2me" Width="50%" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Value="general" Selected="True">General</asp:ListItem>
|
||||
<asp:ListItem Value="optima">Optima</asp:ListItem>
|
||||
<asp:ListItem Value="motobateria">Motobateria</asp:ListItem>
|
||||
<asp:ListItem Value="auxiliar">Auxiliar</asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<i></i>
|
||||
</div>
|
||||
@@ -297,6 +301,7 @@
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:Label runat="server" ID="LblArea" for="<%= DdlArea.ClientID.ToString()%>">Área:</asp:Label></br>
|
||||
|
||||
<asp:DropDownList ID="DdlArea" runat="server" CssClass="form-control input-sm select2me" Width="50%" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Value="1" Selected="True">Piso</asp:ListItem>
|
||||
<asp:ListItem Value="2">Almacén</asp:ListItem>
|
||||
@@ -308,7 +313,7 @@
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= DdlEstatusEditar.ClientID.ToString()%>" style="margin-bottom:0px">Estatus:</label></br>
|
||||
<label for="<%= DdlEstatusEditar.ClientID.ToString()%>" style="margin-bottom: 0px">Estatus:</label></br>
|
||||
<asp:DropDownList ID="DdlEstatusEditar" runat="server" CssClass="select2me" Width="100px" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
<asp:ListItem Text="Activo" Value="1"></asp:ListItem>
|
||||
|
||||
@@ -1284,6 +1284,7 @@ Partial Class Bancos_IE
|
||||
ViewState("CveCliente") = "-1"
|
||||
|
||||
CargaProveedor(HdnCveProveedor.Value.ToEntero, "-1")
|
||||
CargaCuentasDepositos()
|
||||
End Sub
|
||||
|
||||
Private Sub CargaProveedor(ByVal CveProveedor As Integer, RFC As String)
|
||||
@@ -4098,11 +4099,17 @@ Partial Class Bancos_IE
|
||||
|
||||
Dim dtc As DataTable = Nothing
|
||||
|
||||
If CveProveedor > 0 Then
|
||||
dtc = GlobalDTProveedoresCuentas(UsuarioActual.CveEmpresa, CveProveedor:=CveProveedor)
|
||||
Dim CveProveedorTemp As Integer = CveProveedor
|
||||
|
||||
If DdlProveedores.SelectedValue.ToEntero > 0 Then
|
||||
CveProveedorTemp = DdlProveedores.SelectedValue.ToEntero
|
||||
End If
|
||||
|
||||
If CveProveedorTemp > 0 Then
|
||||
dtc = GlobalDTProveedoresCuentas(UsuarioActual.CveEmpresa, CveProveedor:=CveProveedorTemp)
|
||||
ElseIf CveCliente > 0 Then
|
||||
dtc = GlobalDTCuentasDepositosClientes(UsuarioActual.CveEmpresa, CveCliente:=CveCliente)
|
||||
ElseIf cvepersonal > 0 Then
|
||||
ElseIf CvePersonal > 0 Then
|
||||
dtc = GlobalDTCuentasDepositosPersonales(UsuarioActual.CveEmpresa, CvePersonal:=CvePersonal)
|
||||
End If
|
||||
|
||||
@@ -4216,14 +4223,14 @@ Partial Class Bancos_IE
|
||||
|
||||
ElseIf OpBanco = 3 Then
|
||||
If dtc.Rows.Count > 0 Then
|
||||
DdlCuentaDeposito.DataSource = dtc.FiltraParametros("EstatusPagoElectronicoScotia = 'True' AND Estatus ='True'")
|
||||
DdlCuentaDeposito.DataSource = dtc.FiltraParametros(" Estatus ='True'")
|
||||
DdlCuentaDeposito.DataBind()
|
||||
DdlCuentaDeposito.Items.Insert(0, New ListItem("Seleccione una cuenta", "-1"))
|
||||
End If
|
||||
|
||||
If dtc.FiltraParametros("EstatusPagoElectronicoScotia = 'True' AND Estatus ='True'").Rows.Count > 0 Then
|
||||
If dtc.FiltraParametros(" Estatus ='True'").Rows.Count > 0 Then
|
||||
trCuentaDeposito.Visible = True
|
||||
DdlCuentaDeposito.Items.Insert(0, New ListItem("Seleccione una cuenta", "-1"))
|
||||
'DdlCuentaDeposito.Items.Insert(0, New ListItem("Seleccione una cuenta", "-1"))
|
||||
Else
|
||||
BtnGuardar.Enabled = False
|
||||
Alert("El Beneficiario no tiene una cuenta activa en Scotiabank, dela de alta o seleccione otro método de pago", TipoMensaje.MsgAdvertencia)
|
||||
@@ -4265,6 +4272,19 @@ Partial Class Bancos_IE
|
||||
End If
|
||||
End If
|
||||
|
||||
|
||||
If Request("Opcion") IsNot Nothing AndAlso Request("Opcion").ToString.Contiene("EGSSINFACT", "EGSCREDITO") Then
|
||||
If DdlTipoTransaccion.SelectedValue.Contiene("9") AndAlso OpBanco = 3 Then
|
||||
RBL.Items(1).Enabled = False
|
||||
RBL.Items(2).Enabled = False
|
||||
Else
|
||||
RBL.Items(1).Enabled = True
|
||||
RBL.Items(2).Enabled = True
|
||||
End If
|
||||
End If
|
||||
|
||||
|
||||
UPPP.Update()
|
||||
UpGuardar.Update()
|
||||
UpCuentaDeposito.Update()
|
||||
UpDatos.Update()
|
||||
@@ -4500,6 +4520,7 @@ Partial Class Bancos_IE
|
||||
DdlProveedores_selectedindexchange(DdlProveedores, Nothing)
|
||||
DdlProveedores.SelectedText = RazonSocial
|
||||
' BuscaCargaProveedor()
|
||||
|
||||
End If
|
||||
CveOCSolicitudAnticipo = DrOC("CveOC").ToString.ToEntero
|
||||
Else
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
<div class="col-md-6">
|
||||
<asp:UpdatePanel runat="server" ID="UpComandosGeneracion" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet light xspadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
@@ -79,7 +79,7 @@
|
||||
<div class="row" style="margin-left: 0px; margin-right: 0px;">
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet light xspadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
@@ -127,7 +127,7 @@
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet light xspadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
@@ -178,7 +178,7 @@
|
||||
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet light xspadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
|
||||
@@ -277,6 +277,8 @@ Partial Class Bancos_PagoElectronico
|
||||
|
||||
If DTPendientes IsNot Nothing AndAlso DTPendientes.Rows.Count > 0 Then
|
||||
CargaDatosInformativos()
|
||||
Else
|
||||
VistaComandoGeneracion()
|
||||
End If
|
||||
|
||||
End Sub
|
||||
@@ -946,7 +948,7 @@ Partial Class Bancos_PagoElectronico
|
||||
|
||||
Dim correo As String = dr("Correo").ToString.Trim
|
||||
If correo.Trim.Length = 0 Then
|
||||
SBErrores.Append($"Email no definido en fila {idx + 1}. Debe ser un correo electrónico válido.<br>")
|
||||
SBErrores.Append($" {nombreBen} Email no definido en fila {idx + 1}. Debe ser un correo electrónico válido.<br>")
|
||||
ErrorLayout = True
|
||||
End If
|
||||
|
||||
|
||||
@@ -964,7 +964,9 @@ public partial class Export_ExpDetalle : ClsPaginas
|
||||
}
|
||||
string TipoCambio = ModExtensiones.ToDecimal(DTExportaciones.FiltroPrimeroValor("TipoCambio")).ToString("#,###.####");
|
||||
string MedioTransporte = DTExportaciones.FiltroPrimeroValor("MedioTransporte");
|
||||
MedioTransporte = MedioTransporte != "-1" ? MedioTransporte : "";
|
||||
string TipoContenedor = DTExportaciones.FiltroPrimeroValor("TipoContenedor");
|
||||
TipoContenedor = TipoContenedor != "-1" ? TipoContenedor : "";
|
||||
string ClienteConsignatario = DTExportaciones.FiltroPrimeroValor("ClienteConsignatario");
|
||||
string DirConsignatario = DTExportaciones.FiltroPrimeroValor("DirConsignatario");
|
||||
string RFCCon = DTExportaciones.FiltroPrimeroValor("RFCCon");
|
||||
@@ -992,6 +994,7 @@ public partial class Export_ExpDetalle : ClsPaginas
|
||||
string Patente = DTExportaciones.FiltroPrimeroValor("Patente");
|
||||
string AgenteExt = DTExportaciones.FiltroPrimeroValor("AgenteExt");
|
||||
string TaxId = DTExportaciones.FiltroPrimeroValor("TaxId");
|
||||
string Notas = DTExportaciones.FiltroPrimeroValor("Notas");
|
||||
|
||||
List <ReportParameter> para = new List<ReportParameter>();
|
||||
para.Add(new ReportParameter("CveExportacion", CveExportacion.ToString()));
|
||||
@@ -1056,6 +1059,7 @@ public partial class Export_ExpDetalle : ClsPaginas
|
||||
para.Add(new ReportParameter("Patente", Patente));
|
||||
para.Add(new ReportParameter("AgenteExt", AgenteExt));
|
||||
para.Add(new ReportParameter("TaxId", TaxId));
|
||||
para.Add(new ReportParameter("Notas", Notas));
|
||||
|
||||
List <ReportDataSource> lrds = new List<ReportDataSource>();
|
||||
ReportDataSource RDSExportaciones = new ReportDataSource();
|
||||
@@ -1074,12 +1078,14 @@ public partial class Export_ExpDetalle : ClsPaginas
|
||||
DTPartidas.Columns.Add("ValorUnitarioMN", typeof(decimal));
|
||||
DTPartidas.Columns["ValorUnitarioUSD"].DefaultValue = 0.0m;
|
||||
DTPartidas.Columns["ValorUnitarioMN"].DefaultValue = 0.0m;
|
||||
DataRow RowPartida = DTPartidas.Rows[0];
|
||||
decimal cantidad = Convert.ToDecimal(RowPartida["Cantidad"]);
|
||||
if (cantidad > 0)
|
||||
foreach (DataRow row in DTPartidas.Rows)
|
||||
{
|
||||
RowPartida["ValorUnitarioUSD"] = Convert.ToDecimal(RowPartida["Precio"]) / cantidad;
|
||||
RowPartida["ValorUnitarioMN"] = Convert.ToDecimal(RowPartida["ValorTotalMXP"]) / cantidad;
|
||||
decimal cantidad = Convert.ToDecimal(row["Cantidad"]);
|
||||
if (cantidad > 0)
|
||||
{
|
||||
row["ValorUnitarioUSD"] = Convert.ToDecimal(row["Precio"]) / cantidad;
|
||||
row["ValorUnitarioMN"] = Convert.ToDecimal(row["ValorTotalMXP"]) / cantidad;
|
||||
}
|
||||
}
|
||||
ReportDataSource RDSPartidas = new ReportDataSource();
|
||||
RDSPartidas.Name = "DsPartidas";
|
||||
|
||||
@@ -17494,7 +17494,7 @@ Partial Class Ventas
|
||||
End If
|
||||
|
||||
'AGREGAR LOS ANTICIPOS, DEV, IxC QUE ESTEN EN PUBLICO GENERAL
|
||||
If Me.TmpDTAnticiposNCIxCCliente IsNot Nothing AndAlso UsuarioActual.CveEmpresa.Contiene(189, 190, 192, 195, 197) Then
|
||||
If Me.TmpDTAnticiposNCIxCCliente IsNot Nothing AndAlso UsuarioActual.CveEmpresa.Contiene(190, 192, 195, 197) Then
|
||||
Dim CveClientePublicoGeneral = UsuarioActual.Empresa.Funcionalidad(714).ToEntero()
|
||||
If CveClientePublicoGeneral > 0 Then
|
||||
If CveCliente <> CveClientePublicoGeneral Then
|
||||
|
||||
Reference in New Issue
Block a user