Merge branch 'master' of http://oirigoyen@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -124,6 +124,8 @@ Public Class Timbres
|
|||||||
|
|
||||||
Timbre.Receptor.RFC = drT("DestinatarioRFC").ToString
|
Timbre.Receptor.RFC = drT("DestinatarioRFC").ToString
|
||||||
Timbre.Receptor.Nombre = drT("DestinatarioNombre").ToString
|
Timbre.Receptor.Nombre = drT("DestinatarioNombre").ToString
|
||||||
|
Timbre.Receptor.DomicilioFiscalReceptor = drT("DirDesCP").ToString
|
||||||
|
Timbre.Receptor.RegimenFiscalReceptor = drT("CodigoRegimenFiscalReceptor").ToString
|
||||||
|
|
||||||
CveMovimiento = drT("CveMovimientoAlmacen").ToString.ToEntero
|
CveMovimiento = drT("CveMovimientoAlmacen").ToString.ToEntero
|
||||||
FechaSalida = drT("FechaEntrega").ToString.ToDateTime
|
FechaSalida = drT("FechaEntrega").ToString.ToDateTime
|
||||||
@@ -182,18 +184,6 @@ Public Class Timbres
|
|||||||
CartaPorte.FiguraTransporte.AutoTransporte.Remolques.Add(Rem2)
|
CartaPorte.FiguraTransporte.AutoTransporte.Remolques.Add(Rem2)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
If drT("ClaveTipoRemolque1").ToString <> "" Then
|
|
||||||
Dim Rem1 As New CFDICartaPorteRemolque With {.SubTipoRemolque = drT("ClaveTipoRemolque1"), .Placa = drT("PlacaRemolque1")}
|
|
||||||
CartaPorte.FiguraTransporte.AutoTransporte.Remolques.Add(Rem1)
|
|
||||||
End If
|
|
||||||
|
|
||||||
If drT("ClaveTipoRemolque2").ToString <> "" Then
|
|
||||||
Dim Rem2 As New CFDICartaPorteRemolque With {.SubTipoRemolque = drT("ClaveTipoRemolque2"), .Placa = drT("PlacaRemolque2")}
|
|
||||||
CartaPorte.FiguraTransporte.AutoTransporte.Remolques.Add(Rem2)
|
|
||||||
End If
|
|
||||||
|
|
||||||
|
|
||||||
Dim DomOrigen As CFDICartaPorteDomicilio = Nothing
|
Dim DomOrigen As CFDICartaPorteDomicilio = Nothing
|
||||||
DomOrigen = New CFDICartaPorteDomicilio With {.Calle = drT("DirOriCalle").ToString,
|
DomOrigen = New CFDICartaPorteDomicilio With {.Calle = drT("DirOriCalle").ToString,
|
||||||
.Colonia = drT("DirOriClaveSATColonia").ToString,
|
.Colonia = drT("DirOriClaveSATColonia").ToString,
|
||||||
@@ -283,7 +273,7 @@ Public Class Timbres
|
|||||||
.ClaveUnidad = drr("SATClaveUM").ToString,
|
.ClaveUnidad = drr("SATClaveUM").ToString,
|
||||||
.Unidad = drr("UM").ToString,
|
.Unidad = drr("UM").ToString,
|
||||||
.Dimensiones = drr("Dimensiones").ToString,
|
.Dimensiones = drr("Dimensiones").ToString,
|
||||||
.PesoenKg = drr("PesoKg").ToString.ToDecimal,
|
.PesoenKg = drr("PesoKg").ToString.ToDecimal * drr("Cantidad").ToString.ToDecimal,
|
||||||
.MaterialPeligroso = If(drr("ClaveMaterialPeligroso").ToString <> "", "Sí", ""),
|
.MaterialPeligroso = If(drr("ClaveMaterialPeligroso").ToString <> "", "Sí", ""),
|
||||||
.ClaveMaterialPeligroso = drr("ClaveMaterialPeligroso").ToString,
|
.ClaveMaterialPeligroso = drr("ClaveMaterialPeligroso").ToString,
|
||||||
.Embalaje = drr("ClaveEmbalaje").ToString,
|
.Embalaje = drr("ClaveEmbalaje").ToString,
|
||||||
@@ -294,7 +284,7 @@ Public Class Timbres
|
|||||||
.UUIDComercioExt = ""
|
.UUIDComercioExt = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
Dim DetalleMercancia As New CFDICartaPorteMercanciaDetalleMercancia With {.PesoNeto = drr("PesoKg").ToString.ToDecimal, .NumPiezas = drr("Cantidad").ToString.ToDecimal}
|
Dim DetalleMercancia As New CFDICartaPorteMercanciaDetalleMercancia With {.PesoNeto = drr("PesoKg").ToString.ToDecimal * drr("Cantidad").ToString.ToDecimal, .NumPiezas = drr("Cantidad").ToString.ToDecimal}
|
||||||
conceptoCarta.DetalleMercancia = DetalleMercancia
|
conceptoCarta.DetalleMercancia = DetalleMercancia
|
||||||
|
|
||||||
Dim MercanciaTransporta As New CFDICartaPorteMercanciaTransporta With {.Cantidad = drr("Cantidad").ToString.ToDecimal, .IDOrigen = "OR000001", .IDDestino = "DE000001"}
|
Dim MercanciaTransporta As New CFDICartaPorteMercanciaTransporta With {.Cantidad = drr("Cantidad").ToString.ToDecimal, .IDOrigen = "OR000001", .IDDestino = "DE000001"}
|
||||||
|
|||||||
Binary file not shown.
@@ -295,9 +295,6 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
|
|
||||||
If Not IsPostBack Then
|
If Not IsPostBack Then
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If UsuarioActual.CveUsuario = 100 AndAlso IfNull(Request("Regenera"), "").ToString = "1" Then
|
If UsuarioActual.CveUsuario = 100 AndAlso IfNull(Request("Regenera"), "").ToString = "1" Then
|
||||||
RegeneraRM(Request("CveMovimiento").ToString.ToEntero, 119)
|
RegeneraRM(Request("CveMovimiento").ToString.ToEntero, 119)
|
||||||
Exit Sub
|
Exit Sub
|
||||||
@@ -337,7 +334,6 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
divGuia.Visible = True
|
divGuia.Visible = True
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
|
|
||||||
If Request("CveMovimiento") IsNot Nothing AndAlso Request("CveMovimiento").ToString.ToEntero > 0 Then
|
If Request("CveMovimiento") IsNot Nothing AndAlso Request("CveMovimiento").ToString.ToEntero > 0 Then
|
||||||
If UsuarioActual.CveRol = 1 AndAlso UsuarioActual.CveEmpresa = 140 Then
|
If UsuarioActual.CveRol = 1 AndAlso UsuarioActual.CveEmpresa = 140 Then
|
||||||
LnkGenerarVirtual.Visible = True
|
LnkGenerarVirtual.Visible = True
|
||||||
@@ -371,6 +367,11 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
ActivaConsumoInterno()
|
ActivaConsumoInterno()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If Request("CveEntregaAlmacen") IsNot Nothing AndAlso Request("CveEntregaAlmacen").ToString.ToEntero > 0 Then
|
||||||
|
CargaDatosEntregaAlmacen(Request("CveEntregaAlmacen").ToString.ToEntero)
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
'BLOQUEA PERMISOS
|
'BLOQUEA PERMISOS
|
||||||
BtnGuardar.Enabled = PermiteGuardar()
|
BtnGuardar.Enabled = PermiteGuardar()
|
||||||
BtnEliminar.Enabled = PermiteEliminar()
|
BtnEliminar.Enabled = PermiteEliminar()
|
||||||
@@ -549,16 +550,13 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
|
|
||||||
|
|
||||||
'Llenar el dropdownlist de almacén
|
'Llenar el dropdownlist de almacén
|
||||||
If Not IfNull(Request("CI"), -1).ToString.ToEntero > 0 Then
|
If Not IfNull(Request("CI"), -1).ToString.ToEntero > 0 AndAlso Not IfNull(Request("CveEntregaAlmacen"), -1).ToString.ToEntero > 0 Then
|
||||||
DdlAlmacen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1).FiltraParametros("CveTipoAlmacen NOT IN (9,11)") 'GlobalDTAlmacen(UsuarioActual.CveEmpresa)
|
DdlAlmacen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1).FiltraParametros("CveTipoAlmacen NOT IN (9,11)") 'GlobalDTAlmacen(UsuarioActual.CveEmpresa)
|
||||||
'ElseIf UsuarioActual.CveUsuario.Contiene(1) Then
|
'ElseIf UsuarioActual.CveUsuario.Contiene(1) Then
|
||||||
' DdlAlmacen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1).FiltraParametros("CveTipoAlmacen NOT IN (9,11) or CveAlmacen = 651e") 'GlobalDTAlmacen(UsuarioActual.CveEmpresa)
|
' DdlAlmacen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1).FiltraParametros("CveTipoAlmacen NOT IN (9,11) or CveAlmacen = 651e") 'GlobalDTAlmacen(UsuarioActual.CveEmpresa)
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DdlAlmacenInventarioFisico.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1).FiltraParametros("CveTipoAlmacen NOT IN (9,11)") 'GlobalDTAlmacen(UsuarioActual.CveEmpresa)
|
DdlAlmacenInventarioFisico.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1).FiltraParametros("CveTipoAlmacen NOT IN (9,11)") 'GlobalDTAlmacen(UsuarioActual.CveEmpresa)
|
||||||
DdlAlmacenCambioVigencias.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1).FiltraParametros("CveTipoAlmacen NOT IN (9,11)")
|
DdlAlmacenCambioVigencias.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1).FiltraParametros("CveTipoAlmacen NOT IN (9,11)")
|
||||||
|
|
||||||
@@ -574,7 +572,7 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
DdlAlmacenInventarioFisico.DataBind()
|
DdlAlmacenInventarioFisico.DataBind()
|
||||||
DdlAlmacenCambioVigencias.DataBind()
|
DdlAlmacenCambioVigencias.DataBind()
|
||||||
|
|
||||||
If IsNothing(Request("CveMovimiento")) Then
|
If IsNothing(Request("CveMovimiento")) And IsNothing(Request("CveEntregaAlmacen")) Then
|
||||||
DdlAlmacen.SelectedValueExist(UsuarioActual.CveAlmacen)
|
DdlAlmacen.SelectedValueExist(UsuarioActual.CveAlmacen)
|
||||||
DdlAlmacen_SelectedIndexChanged(DdlAlmacen, EventArgs.Empty)
|
DdlAlmacen_SelectedIndexChanged(DdlAlmacen, EventArgs.Empty)
|
||||||
End If
|
End If
|
||||||
@@ -660,8 +658,6 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
GvM.Columns(8).Visible = False
|
GvM.Columns(8).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If Mov.GetMovimientos(tCveMovimiento, pCveConcepto, pFolio, UsuarioActual.CveEmpresa) AndAlso Mov.DtResultados.Rows.Count = 1 Then
|
If Mov.GetMovimientos(tCveMovimiento, pCveConcepto, pFolio, UsuarioActual.CveEmpresa) AndAlso Mov.DtResultados.Rows.Count = 1 Then
|
||||||
|
|
||||||
CveMovimiento = Mov.CveMovimiento
|
CveMovimiento = Mov.CveMovimiento
|
||||||
@@ -672,7 +668,6 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
Folio = Mov.Folio
|
Folio = Mov.Folio
|
||||||
Dim drM As DataRow = DtMov.Rows(0)
|
Dim drM As DataRow = DtMov.Rows(0)
|
||||||
|
|
||||||
|
|
||||||
If DtMov.Rows(0)("CveConcepto").ToString.ToEntero = 2 Then
|
If DtMov.Rows(0)("CveConcepto").ToString.ToEntero = 2 Then
|
||||||
HplTraspaso.Visible = True
|
HplTraspaso.Visible = True
|
||||||
HplTraspaso.NavigateUrl = $"/Inventarios/TraspasoAlmacen.aspx?CveEntrada={DtMov.Rows(0)("CveMovimiento").ToString}"
|
HplTraspaso.NavigateUrl = $"/Inventarios/TraspasoAlmacen.aspx?CveEntrada={DtMov.Rows(0)("CveMovimiento").ToString}"
|
||||||
@@ -1048,6 +1043,32 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub CargaDatosEntregaAlmacen(CveEntregaAlmacen As Integer)
|
||||||
|
'RECARGA ALMACENES SOLO DE recepcion de usados
|
||||||
|
DdlAlmacen.Items.Clear()
|
||||||
|
DdlAlmacen.DataBind()
|
||||||
|
Dim dttA As DataTable = Nothing
|
||||||
|
dttA = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1).FiltraParametros("CveTipoAlmacen IN (1,22,27)")
|
||||||
|
|
||||||
|
DdlAlmacen.DataSource = dttA
|
||||||
|
DdlAlmacen.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
DdlAlmacen.DataBind()
|
||||||
|
DdlAlmacen.SelectedIndex = 1 'toma el primer renglón
|
||||||
|
|
||||||
|
Dim ObjGenerales As New ClsGenerales()
|
||||||
|
|
||||||
|
If (ObjGenerales.GetEntregaAlmacenRutaDetalle(CveEntregaAlmacen)) Then
|
||||||
|
|
||||||
|
For Each dr As DataRow In ObjGenerales.DtResultados.Rows
|
||||||
|
AddNew(dr("CvePS").ToString.ToEntero, dr("CodigoPS").ToString, dr("CveUnidadMedida").ToString.ToEntero, dr("Abreviatura").ToString, dr("Cantidad").ToString.ToDecimal,
|
||||||
|
0, "", "", "", "", "E", "", MinFecha, 0, "")
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
ObjGenerales.Dispose()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
Private Sub BloqueaEdicionEncabezado()
|
Private Sub BloqueaEdicionEncabezado()
|
||||||
|
|
||||||
|
|
||||||
@@ -1923,7 +1944,7 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
|
|
||||||
If Not ErrorAC And Not ErrorMovInv Then
|
If Not ErrorAC And Not ErrorMovInv Then
|
||||||
Dim Msg As New StringBuilder
|
Dim Msg As New StringBuilder
|
||||||
Msg.AppendFormat("<br/>El Movimiento se registro con el Folio: <b>{0}</b>", ObjInventario.Folio)
|
Msg.AppendFormat("<br/>El Movimiento se registro con el Folio: <b><a href='/Inventarios/EntradasSalidas.aspx?CveMovimiento={1}'>{0}</a></b>", ObjInventario.Folio, ObjInventario.CveMovimiento)
|
||||||
Msg.AppendFormat("<br/><br/> <a class=""Texto"" target='_blank' href=""/Compras/PopUpVerFactura.aspx?P={0}"">Imprimir Movimiento</a> ", Encripta(String.Format("OP=Alm&CveMovimiento={0}", CveMovimiento)))
|
Msg.AppendFormat("<br/><br/> <a class=""Texto"" target='_blank' href=""/Compras/PopUpVerFactura.aspx?P={0}"">Imprimir Movimiento</a> ", Encripta(String.Format("OP=Alm&CveMovimiento={0}", CveMovimiento)))
|
||||||
|
|
||||||
If RetornoVirtual IsNot Nothing Then
|
If RetornoVirtual IsNot Nothing Then
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ using System.Text;
|
|||||||
public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
DataTable DTGenerarDocumentos
|
DataTable DTGenerarDocumentos
|
||||||
{
|
{
|
||||||
get {
|
get {
|
||||||
@@ -837,16 +836,12 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
|||||||
}
|
}
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
ProcesoOK = ObjGenerales.UpdateInvEntregaAlmacenRuta(CveEntregaAlmacen, DdlmodalRecoleccionDireccion.SelectedValue.ToEntero(), -1, DdlChofer.SelectedValue.ToEntero(), DdlUnidadCamion.SelectedValue.ToEntero(), TxtFechaEntrega.Text.ToDate(), UsuarioActual.CveEmpresa);
|
ProcesoOK = ObjGenerales.UpdateInvEntregaAlmacenRuta(CveEntregaAlmacen, DdlmodalRecoleccionDireccion.SelectedValue.ToEntero(), -1, DdlChofer.SelectedValue.ToEntero(), DdlUnidadCamion.SelectedValue.ToEntero(), TxtFechaEntrega.Text.ToDate(), UsuarioActual.CveEmpresa);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (ProcesoOK)
|
if (ProcesoOK)
|
||||||
{
|
{
|
||||||
ObjGenerales.Commit();
|
ObjGenerales.Commit();
|
||||||
@@ -877,10 +872,8 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
|||||||
|
|
||||||
ObjGenerales.Dispose();
|
ObjGenerales.Dispose();
|
||||||
CargaDatosRecoleccion();
|
CargaDatosRecoleccion();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
protected void LnkModalGvModalPSRecoleccionEliminar_Click(object sender, EventArgs e)
|
protected void LnkModalGvModalPSRecoleccionEliminar_Click(object sender, EventArgs e)
|
||||||
@@ -891,7 +884,6 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
|||||||
if (CveEntregaAlmacen > 0)
|
if (CveEntregaAlmacen > 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
int CveEntregaAlmacenDetalleEliminar = GvRow.DataKey("CveEntregaAlmacenDetalle").ToEntero();
|
int CveEntregaAlmacenDetalleEliminar = GvRow.DataKey("CveEntregaAlmacenDetalle").ToEntero();
|
||||||
ClsGenerales ObjGenerales = new ClsGenerales();
|
ClsGenerales ObjGenerales = new ClsGenerales();
|
||||||
|
|
||||||
@@ -908,7 +900,6 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
|||||||
DTRecoleccion.AcceptChanges();
|
DTRecoleccion.AcceptChanges();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CargaDatosRecoleccionDetallePS();
|
CargaDatosRecoleccionDetallePS();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -946,8 +937,6 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
|||||||
CargaDatosRecoleccionDetallePS();
|
CargaDatosRecoleccionDetallePS();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void LimpiarControlesPS()
|
private void LimpiarControlesPS()
|
||||||
{
|
{
|
||||||
TxtModalRecoleccionCantidad.Text = "";
|
TxtModalRecoleccionCantidad.Text = "";
|
||||||
@@ -1027,7 +1016,6 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void gvR_RowDataBound(object sender, GridViewRowEventArgs e)
|
protected void gvR_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||||
|
|||||||
@@ -149,6 +149,7 @@
|
|||||||
<asp:LinkButton ID="LnkEditar" runat="server" OnClick="imgEditar_Click" AlternateText="Editar" ToolTip="Actualizar" CausesValidation="False" CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-pencil'></i>" />
|
<asp:LinkButton ID="LnkEditar" runat="server" OnClick="imgEditar_Click" AlternateText="Editar" ToolTip="Actualizar" CausesValidation="False" CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-pencil'></i>" />
|
||||||
<asp:LinkButton ID="LnkTimbrar" runat="server" OnClick="LnkTimbrar_Click" AlternateText="Timbrar" ToolTip="Timbrar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-external-link'></i>" />
|
<asp:LinkButton ID="LnkTimbrar" runat="server" OnClick="LnkTimbrar_Click" AlternateText="Timbrar" ToolTip="Timbrar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-external-link'></i>" />
|
||||||
<asp:LinkButton ID="LnkCancelaTimbre" runat="server" OnClick="LnkCancelaTimbre_Click" AlternateText="Cancelar timbre" ToolTip="Cancelar timbre" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-times'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar cancelación?" data-btn-ok-label="si" />
|
<asp:LinkButton ID="LnkCancelaTimbre" runat="server" OnClick="LnkCancelaTimbre_Click" AlternateText="Cancelar timbre" ToolTip="Cancelar timbre" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-times'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar cancelación?" data-btn-ok-label="si" />
|
||||||
|
<asp:HyperLink ID="HplR" runat="server" visible="false" AlternateText="Registrar" ToolTip="Registrar entrada" CssClass="btn btn-circle btn-sm yellow" Text="<i class='fa fa-location-arrow'></i>" />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<HeaderStyle HorizontalAlign="Left" />
|
<HeaderStyle HorizontalAlign="Left" />
|
||||||
<ItemStyle HorizontalAlign="Left" Width="75px" />
|
<ItemStyle HorizontalAlign="Left" Width="75px" />
|
||||||
@@ -156,8 +157,8 @@
|
|||||||
|
|
||||||
<asp:TemplateField ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center" HeaderText="Direcciones" Visible="false">
|
<asp:TemplateField ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center" HeaderText="Direcciones" Visible="false">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:LinkButton ID="LnkEditarDirOrigen" Visible="false" runat="server" OnClick="EditDireccionOrigen_Click" AlternateText="Editar" ToolTip="Actualzar dirección Origen" CausesValidation="False" CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-location-arrow'></i>" />
|
<asp:LinkButton ID="LnkEditarDirOrigen" Visible="false" runat="server" OnClick="EditDireccionOrigen_Click" AlternateText="Editar" ToolTip="Actualizar dirección Origen" CausesValidation="False" CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-location-arrow'></i>" />
|
||||||
<asp:LinkButton ID="LnkEditarDirDestino" Visible="false" runat="server" OnClick="EditDireccionDestino_Click" AlternateText="Editar" ToolTip="Actualziar Dierccion Destino" CausesValidation="False" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-location-arrow'></i>" />
|
<asp:LinkButton ID="LnkEditarDirDestino" Visible="false" runat="server" OnClick="EditDireccionDestino_Click" AlternateText="Editar" ToolTip="Actualizar dirección Destino" CausesValidation="False" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-location-arrow'></i>" />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<HeaderStyle HorizontalAlign="Center" />
|
<HeaderStyle HorizontalAlign="Center" />
|
||||||
<ItemStyle HorizontalAlign="Left" Width="50px" />
|
<ItemStyle HorizontalAlign="Left" Width="50px" />
|
||||||
|
|||||||
@@ -384,9 +384,6 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
{
|
{
|
||||||
DdlRemolque2.SelectedValueExist(GvRow.DataKey("CveCamionRemolque2"));
|
DdlRemolque2.SelectedValueExist(GvRow.DataKey("CveCamionRemolque2"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CveDireccionOrigen = GvRow.DataKey("CveDireccionOrigen").ToEntero();
|
CveDireccionOrigen = GvRow.DataKey("CveDireccionOrigen").ToEntero();
|
||||||
CveDireccionDestino = GvRow.DataKey("CveDireccionDestino").ToEntero();
|
CveDireccionDestino = GvRow.DataKey("CveDireccionDestino").ToEntero();
|
||||||
|
|
||||||
@@ -617,9 +614,7 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
{
|
{
|
||||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||||
{
|
{
|
||||||
|
|
||||||
e.Row.Cells[11].Text = "";
|
e.Row.Cells[11].Text = "";
|
||||||
|
|
||||||
LinkButton LnkEditar = e.Row.FCLinkButton("LnkEditar");
|
LinkButton LnkEditar = e.Row.FCLinkButton("LnkEditar");
|
||||||
LinkButton LnkTimbrar = e.Row.FCLinkButton("LnkTimbrar");
|
LinkButton LnkTimbrar = e.Row.FCLinkButton("LnkTimbrar");
|
||||||
LinkButton LnkCancelaTimbre = e.Row.FCLinkButton("LnkCancelaTimbre");
|
LinkButton LnkCancelaTimbre = e.Row.FCLinkButton("LnkCancelaTimbre");
|
||||||
@@ -635,11 +630,11 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (e.Row.DataKey("TimbreTipoDocto") == "Man")
|
if (e.Row.DataKey("Tipo") == "R" && e.Row.DataKey("Estatus") == "1")
|
||||||
//{
|
{
|
||||||
// e.Row.FCLinkButton("LnkEditarDirOrigen").Visible = true;
|
e.Row.FCHyperLink("HplR").Visible = true;
|
||||||
// e.Row.FCLinkButton("LnkEditarDirDestino").Visible = true;
|
e.Row.FCHyperLink("HplR").NavigateUrl = "/Inventarios/EntradasSalidas.aspx?CveEntregaAlmacen=" + e.Row.DBCampo("CveEntregaAlmacen");
|
||||||
//}
|
}
|
||||||
|
|
||||||
if (e.Row.DataKey("Estatus").ToEntero() == 1)
|
if (e.Row.DataKey("Estatus").ToEntero() == 1)
|
||||||
{
|
{
|
||||||
@@ -688,15 +683,10 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
default:
|
default:
|
||||||
e.Row.FCLabel("LtTipo").CssClass = "label label-sm label-warning";
|
e.Row.FCLabel("LtTipo").CssClass = "label label-sm label-warning";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void CargaPersonalChofer()
|
private void CargaPersonalChofer()
|
||||||
{
|
{
|
||||||
DdlModalChofer.Items.Clear();
|
DdlModalChofer.Items.Clear();
|
||||||
@@ -707,18 +697,10 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
{
|
{
|
||||||
DdlModalChofer.DataSource = ObjAcar.DtResultados;
|
DdlModalChofer.DataSource = ObjAcar.DtResultados;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ObjAcar.Dispose();
|
ObjAcar.Dispose();
|
||||||
|
|
||||||
|
|
||||||
DdlModalChofer.DataBind();
|
DdlModalChofer.DataBind();
|
||||||
|
|
||||||
DdlModalChofer.Items.Insert(0, new ListItem("Seleccione Uno", "-1"));
|
DdlModalChofer.Items.Insert(0, new ListItem("Seleccione Uno", "-1"));
|
||||||
|
|
||||||
|
|
||||||
UpModalEditarentrega.Update();
|
UpModalEditarentrega.Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -745,7 +727,6 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UpModalEditarentrega.Update();
|
UpModalEditarentrega.Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -780,15 +761,11 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected void DdlConfigAuto_SelectedIndexChanged(object sender, EventArgs e)
|
protected void DdlConfigAuto_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
ValidaConfiguracionVeiculo();
|
ValidaConfiguracionVeiculo();
|
||||||
}
|
}
|
||||||
|
private void ValidaConfiguracionVeiculo()
|
||||||
|
|
||||||
private void ValidaConfiguracionVeiculo()
|
|
||||||
{
|
{
|
||||||
DvRemolque1.Visible = false;
|
DvRemolque1.Visible = false;
|
||||||
DvRemolque2.Visible = false;
|
DvRemolque2.Visible = false;
|
||||||
@@ -804,7 +781,6 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
{
|
{
|
||||||
string Remolque = ObjGrales.DtResultados.FiltroPrimeroValor("Remolque", $" CveConfigAutoTransporte ='{DdlConfigAuto.SelectedValue.ToEntero()}'");
|
string Remolque = ObjGrales.DtResultados.FiltroPrimeroValor("Remolque", $" CveConfigAutoTransporte ='{DdlConfigAuto.SelectedValue.ToEntero()}'");
|
||||||
|
|
||||||
|
|
||||||
if (Remolque == "1")
|
if (Remolque == "1")
|
||||||
{
|
{
|
||||||
RequiereRemolque = true;
|
RequiereRemolque = true;
|
||||||
@@ -831,9 +807,6 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
MostrarRemolques = false;
|
MostrarRemolques = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (RequiereRemolque | MostrarRemolques)
|
if (RequiereRemolque | MostrarRemolques)
|
||||||
DvRemolque1.Visible = true;
|
DvRemolque1.Visible = true;
|
||||||
|
|
||||||
@@ -842,7 +815,6 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
else
|
else
|
||||||
DvConfiguracionVeiculo.Visible = true;
|
DvConfiguracionVeiculo.Visible = true;
|
||||||
|
|
||||||
|
|
||||||
UpModalEditarentrega.Update();
|
UpModalEditarentrega.Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -859,13 +831,11 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
if (ObjInv.GetCamiones(-1, UsuarioActual.CveEmpresa, 2))
|
if (ObjInv.GetCamiones(-1, UsuarioActual.CveEmpresa, 2))
|
||||||
DdlRemolque2.DataSource = ObjInv.DtResultados.FiltraParametros($"CveCamion <> {DdlRemolque1.SelectedValue.ToEntero()}");
|
DdlRemolque2.DataSource = ObjInv.DtResultados.FiltraParametros($"CveCamion <> {DdlRemolque1.SelectedValue.ToEntero()}");
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
DdlRemolque2.DataBind();
|
DdlRemolque2.DataBind();
|
||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
DvRemolque2.Visible = false;
|
DvRemolque2.Visible = false;
|
||||||
@@ -886,7 +856,6 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
if (RequiereRemolque & DdlRemolque1.SelectedValue.ToEntero() > 0)
|
if (RequiereRemolque & DdlRemolque1.SelectedValue.ToEntero() > 0)
|
||||||
Respuesta = true;
|
Respuesta = true;
|
||||||
|
|
||||||
|
|
||||||
return Respuesta;
|
return Respuesta;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -901,7 +870,6 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
if (ObjInv.GetCamiones(-1, UsuarioActual.CveEmpresa, 1))
|
if (ObjInv.GetCamiones(-1, UsuarioActual.CveEmpresa, 1))
|
||||||
DdlModalCamion.DataSource = ObjInv.DtResultados;
|
DdlModalCamion.DataSource = ObjInv.DtResultados;
|
||||||
|
|
||||||
|
|
||||||
if (ObjInv.GetCamiones(-1, UsuarioActual.CveEmpresa, 2))
|
if (ObjInv.GetCamiones(-1, UsuarioActual.CveEmpresa, 2))
|
||||||
DdlRemolque1.DataSource = ObjInv.DtResultados;
|
DdlRemolque1.DataSource = ObjInv.DtResultados;
|
||||||
}
|
}
|
||||||
@@ -989,7 +957,6 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
CargaDirClienteColonia();
|
CargaDirClienteColonia();
|
||||||
CargaDirClienteLocalidad();
|
CargaDirClienteLocalidad();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void DdlDirClienteEstado_SelectedIndexChanged(object sender, EventArgs e)
|
protected void DdlDirClienteEstado_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
CargaDirClienteMunicipio();
|
CargaDirClienteMunicipio();
|
||||||
@@ -1003,13 +970,11 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
CargaDirClienteLocalidad();
|
CargaDirClienteLocalidad();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void BtnDirClienteValidar_Click(object sender, EventArgs e)
|
protected void BtnDirClienteValidar_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
DirClientevalidaCodigoPostal();
|
DirClientevalidaCodigoPostal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void DdlDirClienteColonia_SelectedIndexChanged(object sender, EventArgs e)
|
protected void DdlDirClienteColonia_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
DirClientevalidaCodigoPostal();
|
DirClientevalidaCodigoPostal();
|
||||||
@@ -1112,10 +1077,8 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
CargaDatos();
|
CargaDatos();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ModalActualizaDirecciones(CveTimbre);
|
ModalActualizaDirecciones(CveTimbre);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LnkAgregarDireccion_Click(object sender, EventArgs e)
|
private void LnkAgregarDireccion_Click(object sender, EventArgs e)
|
||||||
@@ -1128,8 +1091,6 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
CargaCombosDirecionesClientesSAT();
|
CargaCombosDirecionesClientesSAT();
|
||||||
TxtFechaLlegada.Text = "";
|
TxtFechaLlegada.Text = "";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
UpModalDVDireccionEnvio.Update();
|
UpModalDVDireccionEnvio.Update();
|
||||||
RegistraScript("$('#divAddDireccionEnvio').modal('show');");
|
RegistraScript("$('#divAddDireccionEnvio').modal('show');");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4463,6 +4463,7 @@
|
|||||||
|
|
||||||
<asp:BoundField DataField="Cantidad" HeaderText="Cantidad" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" ControlStyle-BorderWidth="150px" />
|
<asp:BoundField DataField="Cantidad" HeaderText="Cantidad" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" ControlStyle-BorderWidth="150px" />
|
||||||
<asp:BoundField DataField="Puntos" HeaderText="Puntos" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField DataField="Puntos" HeaderText="Puntos" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
<asp:BoundField DataField="AcumPuntos" HeaderText="AcumPuntos" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField DataField="ImporteCargo" HeaderText="Imp.Cargo" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" ControlStyle-BorderWidth="150px" />
|
<asp:BoundField DataField="ImporteCargo" HeaderText="Imp.Cargo" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" ControlStyle-BorderWidth="150px" />
|
||||||
<asp:BoundField DataField="ImporteBonificacion" HeaderText="Imp. Bonificación" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" ControlStyle-BorderWidth="150px" />
|
<asp:BoundField DataField="ImporteBonificacion" HeaderText="Imp. Bonificación" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" ControlStyle-BorderWidth="150px" />
|
||||||
<asp:BoundField DataField="ImporteCompra" HeaderText="Imp. Compra" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" ControlStyle-BorderWidth="150px" />
|
<asp:BoundField DataField="ImporteCompra" HeaderText="Imp. Compra" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" ControlStyle-BorderWidth="150px" />
|
||||||
|
|||||||
Reference in New Issue
Block a user