carta porte
This commit is contained in:
@@ -777,13 +777,14 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
If drM("CveEstatusTimbrado").ToString.ToEntero > 0 Then
|
If drM("CveEstatusTimbrado").ToString.ToEntero > 0 Then
|
||||||
HplDescargaXml.Visible = True
|
HplDescargaXml.Visible = True
|
||||||
HplDescargaXml.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=DesXmlTra&CVEMOVIMIENTO={0}&EXT={1}&FOLIO={2}&TIPODOCTO={3}", CveMovimiento, "XML", drM("TimbreSerieFolio"), "Tra")))
|
HplDescargaXml.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=DesXmlTra&CVEMOVIMIENTO={0}&EXT={1}&FOLIO={2}&TIPODOCTO={3}", CveMovimiento, "XML", drM("TimbreSerieFolio"), "Tra")))
|
||||||
HplDescargaPdf.Visible = True
|
|
||||||
HplDescargaPdf.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=DesPdfTra&CVEMOVIMIENTO={0}&EXT={1}&FOLIO={2}&TIPODOCTO={3}", CveMovimiento, "PDF", drM("TimbreSerieFolio"), "Tra")))
|
|
||||||
|
|
||||||
If drM("AplicaCP").ToString = "True" Then
|
If drM("AplicaCP").ToString = "True" Then
|
||||||
HplCartaPorteTimbre.Visible = True
|
HplCartaPorteTimbre.Visible = True
|
||||||
HplCartaPorteTimbre.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=CARPOTIMBRE&CVEMOV={0}", CveMovimiento)))
|
HplCartaPorteTimbre.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=CARPOTIMBRE&CVEMOV={0}&CVETIMBRE={1}", CveMovimiento, drM("CveTimbre"))))
|
||||||
Else
|
Else
|
||||||
|
HplDescargaPdf.Visible = True
|
||||||
|
HplDescargaPdf.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=DesPdfTra&CVEMOVIMIENTO={0}&EXT={1}&FOLIO={2}&TIPODOCTO={3}", CveMovimiento, "PDF", drM("TimbreSerieFolio"), "Tra")))
|
||||||
|
|
||||||
HplCartaPorte.Visible = True
|
HplCartaPorte.Visible = True
|
||||||
HplCartaPorte.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=CARPO&CVEMOV={0}", CveMovimiento)))
|
HplCartaPorte.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=CARPO&CVEMOV={0}", CveMovimiento)))
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -931,9 +931,15 @@ Partial Class Inventarios_EntregaAlmacen
|
|||||||
Protected Sub GvDatos_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvDatos.RowDataBound
|
Protected Sub GvDatos_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvDatos.RowDataBound
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
|
|
||||||
If CBool(e.Row.DBCampo("AplicaSerie")) Then
|
'código temporal
|
||||||
|
Dim AplicaSerie As Boolean = CBool(e.Row.DBCampo("AplicaSerie"))
|
||||||
|
If UsuarioActual.CveEmpresa = 140 AndAlso Not CveSubProyecto.Contiene(11793, 11993, 11794, 11795) Then
|
||||||
|
AplicaSerie = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If AplicaSerie Then
|
||||||
e.Row.FCButton("BtnSerie").Visible = True
|
e.Row.FCButton("BtnSerie").Visible = True
|
||||||
e.Row.FCButton("BtnSerie").Text = If(e.Row.DBCampo("Inv_CveMetodoInventario").ToString() = "5", "Serie", "Lote-Batch")
|
e.Row.FCButton("BtnSerie").Text = "Serie"
|
||||||
e.Row.FCButton("BtnSerie").CommandArgument = String.Format("{0}°{1}°{2}°{3}°{4}°{5}", e.Row.DBCampo("CvePS"), e.Row.DBCampo("CveUM"), e.Row.DBCampo("PS"), e.Row.DBCampo("CantidadF"), e.Row.DBCampo("Consec"), e.Row.DBCampo("Inv_CveMetodoInventario"))
|
e.Row.FCButton("BtnSerie").CommandArgument = String.Format("{0}°{1}°{2}°{3}°{4}°{5}", e.Row.DBCampo("CvePS"), e.Row.DBCampo("CveUM"), e.Row.DBCampo("PS"), e.Row.DBCampo("CantidadF"), e.Row.DBCampo("Consec"), e.Row.DBCampo("Inv_CveMetodoInventario"))
|
||||||
e.Row.FCTextBox("TbCantidadF").Enabled = False
|
e.Row.FCTextBox("TbCantidadF").Enabled = False
|
||||||
e.Row.FCCheckBox("cbInv").Enabled = False
|
e.Row.FCCheckBox("cbInv").Enabled = False
|
||||||
@@ -1040,7 +1046,7 @@ Partial Class Inventarios_EntregaAlmacen
|
|||||||
e.Row.FCTextBox("TbCantidadF").Text = "0"
|
e.Row.FCTextBox("TbCantidadF").Text = "0"
|
||||||
'NO BLOQUEA PARA ROL AD
|
'NO BLOQUEA PARA ROL AD
|
||||||
If UsuarioActual.CveRol = 1 Then
|
If UsuarioActual.CveRol = 1 Then
|
||||||
If e.Row.DBCampo("Inv_CveMetodoInventario").Contiene("5", "6") Then
|
If AplicaSerie Then
|
||||||
e.Row.FCTextBox("TbCantidadF").Enabled = False
|
e.Row.FCTextBox("TbCantidadF").Enabled = False
|
||||||
Else
|
Else
|
||||||
e.Row.FCTextBox("TbCantidadF").Text = e.Row.DBCampo("CantidadF").ToDecimal.ToString("#,##0.######")
|
e.Row.FCTextBox("TbCantidadF").Text = e.Row.DBCampo("CantidadF").ToDecimal.ToString("#,##0.######")
|
||||||
@@ -1094,18 +1100,20 @@ Partial Class Inventarios_EntregaAlmacen
|
|||||||
CveUMSerie = Argumentos(1).ToEntero()
|
CveUMSerie = Argumentos(1).ToEntero()
|
||||||
PSSerie = Argumentos(2).ToString()
|
PSSerie = Argumentos(2).ToString()
|
||||||
CveConsecSerie = Argumentos(4).ToEntero()
|
CveConsecSerie = Argumentos(4).ToEntero()
|
||||||
CveMetodoInventario = Argumentos(5).ToEntero()
|
CveMetodoInventario = Argumentos(5).ToEntero()
|
||||||
|
|
||||||
If CveMetodoInventario = 5 Then
|
|
||||||
RegistraScript("$('#DivSerie').modal('show')")
|
If CveMetodoInventario = 6 Then
|
||||||
CargaSerie()
|
|
||||||
UpSerie.Update()
|
|
||||||
ElseIf CveMetodoInventario = 6 Then
|
|
||||||
RegistraScript("$('#DivLote').modal('show')")
|
RegistraScript("$('#DivLote').modal('show')")
|
||||||
CargaLote()
|
CargaLote()
|
||||||
UpLoteBatch.Update()
|
UpLoteBatch.Update()
|
||||||
End If
|
Else
|
||||||
|
RegistraScript("$('#DivSerie').modal('show')")
|
||||||
|
CargaSerie()
|
||||||
|
UpSerie.Update()
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region " AGREGA POR SERIE/LOTE "
|
#Region " AGREGA POR SERIE/LOTE "
|
||||||
@@ -1193,7 +1201,7 @@ Partial Class Inventarios_EntregaAlmacen
|
|||||||
'SI TIENE SALIDA POR SERIE LOTE, BLOQUEAMOS CHECK Y TXTCANTIDAD
|
'SI TIENE SALIDA POR SERIE LOTE, BLOQUEAMOS CHECK Y TXTCANTIDAD
|
||||||
Dim Contador = 0
|
Dim Contador = 0
|
||||||
For Each Gvr As GridViewRow In GvDatos.Rows
|
For Each Gvr As GridViewRow In GvDatos.Rows
|
||||||
If Gvr.DataKey("AplicaSerieLote") = "True" Then
|
If Gvr.DataKey("AplicaSerie") = "True" Then
|
||||||
Contador = DtDatosDetalle.FiltraParametros(String.Format("ConsecId = {0}", Gvr.DataKey("Consec"))).Rows.Count
|
Contador = DtDatosDetalle.FiltraParametros(String.Format("ConsecId = {0}", Gvr.DataKey("Consec"))).Rows.Count
|
||||||
Gvr.FCCheckBox("cbInv").Enabled = False
|
Gvr.FCCheckBox("cbInv").Enabled = False
|
||||||
Gvr.FCCheckBox("cbInv").Checked = True
|
Gvr.FCCheckBox("cbInv").Checked = True
|
||||||
@@ -2319,8 +2327,9 @@ Partial Class Inventarios_EntregaAlmacen
|
|||||||
Dim CveTamaño As Integer = RowGarantia("CveTamaño").ToString().ToEntero()
|
Dim CveTamaño As Integer = RowGarantia("CveTamaño").ToString().ToEntero()
|
||||||
Dim CveUM As Integer = RowGarantia("CveUnidadMedida").ToString().ToEntero()
|
Dim CveUM As Integer = RowGarantia("CveUnidadMedida").ToString().ToEntero()
|
||||||
Dim PU As Decimal = RowGarantia("Importe").ToString().ToDecimal() ' / RowGarantia("Cantidad").ToString().ToDouble()
|
Dim PU As Decimal = RowGarantia("Importe").ToString().ToDecimal() ' / RowGarantia("Cantidad").ToString().ToDouble()
|
||||||
|
Dim Serie As String = RowGarantia("Comprobante").ToString
|
||||||
|
|
||||||
If Not ObjInventario.AddMovimientoDetalle(CveMovimientoGarantia, RowGarantia("Cantidad").ToString().ToDouble(), CveUM, CvePS, PU) Then
|
If Not ObjInventario.AddMovimientoDetalle(CveMovimientoGarantia, RowGarantia("Cantidad").ToString().ToDouble(), CveUM, CvePS, PU, Serie:=Serie) Then
|
||||||
ErrorMovInv = True
|
ErrorMovInv = True
|
||||||
TextoError.AppendFormat("Ocurrió un error al procesar los conceptos de traspaso de apartado. Por favor vuelva a intentar.")
|
TextoError.AppendFormat("Ocurrió un error al procesar los conceptos de traspaso de apartado. Por favor vuelva a intentar.")
|
||||||
Exit For
|
Exit For
|
||||||
|
|||||||
@@ -60,8 +60,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<label class="col-md-1 " style="width: 90px;">Fecha Inicial:</label>
|
<label class="col-md-1 " style="width: 90px;">Fecha Inicial:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 138px !important; padding: 0px; margin-bottom: -10px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px; margin-bottom: -10px;">
|
||||||
<asp:TextBox ID="TxtFechaI" runat="server" CssClass="form-control" CausesValidation="true" Width="98%" MaxLength="10"></asp:TextBox>
|
<asp:TextBox ID="TxtFechaI" runat="server" CssClass="form-control" CausesValidation="true" Width="80px" MaxLength="10"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
<asp:LinkButton ID="imgCalendarioI" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="imgCalendarioI" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
</span>
|
</span>
|
||||||
@@ -76,8 +76,8 @@
|
|||||||
|
|
||||||
<label class="col-md-1 " style="width: 80px;">Fecha Final:</label>
|
<label class="col-md-1 " style="width: 80px;">Fecha Final:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 138px !important; padding: 0px; margin-bottom: -10px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px; margin-bottom: -10px;">
|
||||||
<asp:TextBox ID="TxtFechaF" runat="server" CssClass="form-control" CausesValidation="true" Width="98%" MaxLength="10"></asp:TextBox>
|
<asp:TextBox ID="TxtFechaF" runat="server" CssClass="form-control" CausesValidation="true" Width="80px" MaxLength="10"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
<label class="col-md-1 " style="width: 90px;">Fecha Inicial:</label>
|
<label class="col-md-1 " style="width: 90px;">Fecha Inicial:</label>
|
||||||
<div class="col-md-1" style="min-width: 115px">
|
<div class="col-md-1" style="min-width: 115px">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 138px !important; padding: 0px; margin-bottom: -10px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||||||
<asp:TextBox ID="TxtFechaI" runat="server" CssClass="form-control" CausesValidation="true" Width="80px" MaxLength="10"></asp:TextBox>
|
<asp:TextBox ID="TxtFechaI" runat="server" CssClass="form-control" CausesValidation="true" Width="80px" MaxLength="10"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
<asp:LinkButton ID="imgCalendarioI" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="imgCalendarioI" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
<label class="col-md-1 " style="width: 80px;">Fecha Final:</label>
|
<label class="col-md-1 " style="width: 80px;">Fecha Final:</label>
|
||||||
<div class="col-md-1" style="min-width: 115px">
|
<div class="col-md-1" style="min-width: 115px">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 138px !important; padding: 0px; margin-bottom: -10px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||||||
<asp:TextBox ID="TxtFechaF" runat="server" CssClass="form-control" CausesValidation="true" Width="80px" MaxLength="10"></asp:TextBox>
|
<asp:TextBox ID="TxtFechaF" runat="server" CssClass="form-control" CausesValidation="true" Width="80px" MaxLength="10"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
|||||||
@@ -347,7 +347,9 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
MensajeAlert.AppendFormat("<ul><li>{0}</li></ul>", ObjTimbres.MsgError);
|
MensajeAlert.AppendFormat("<ul><li>{0}</li></ul>", ObjTimbres.MsgError);
|
||||||
|
Alert(MensajeAlert.ToString(), ModExtensiones.TipoMensaje.MsgError);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void LnkCancelaTimbre_Click(object sender, EventArgs e)
|
protected void LnkCancelaTimbre_Click(object sender, EventArgs e)
|
||||||
|
|||||||
@@ -1381,13 +1381,23 @@ Partial Class Inventarios_TraspasoAlmacen
|
|||||||
DdlSeccionAlmacen.Visible = CBool(drP("AplicaSeccion"))
|
DdlSeccionAlmacen.Visible = CBool(drP("AplicaSeccion"))
|
||||||
'GvDatos.Columns(5).Visible = CBool(drP("AplicaSeccion"))
|
'GvDatos.Columns(5).Visible = CBool(drP("AplicaSeccion"))
|
||||||
|
|
||||||
|
Dim AplicaSerie As Boolean = CBool(drP("AplicaSerie"))
|
||||||
|
|
||||||
ThSerie.Visible = CBool(drP("AplicaSerie"))
|
'codigo temporal
|
||||||
TdSerie.Visible = CBool(drP("AplicaSerie"))
|
If UsuarioActual.CveEmpresa = 140 Then
|
||||||
TxtnSerie.Visible = CBool(drP("AplicaSerie"))
|
Dim CveSubProyecto As Integer = GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveSubProyecto", $"CveAlmacen = {DdlAlmacenOrigen.SelectedValue}").ToEntero
|
||||||
|
|
||||||
|
If Not CveSubProyecto.Contiene(11793, 11993, 11794, 11795) Then
|
||||||
|
AplicaSerie = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
ThSerie.Visible = AplicaSerie
|
||||||
|
TdSerie.Visible = AplicaSerie
|
||||||
|
TxtnSerie.Visible = AplicaSerie
|
||||||
'GvDatos.Columns(6).Visible = CBool(drP("AplicaSerie"))
|
'GvDatos.Columns(6).Visible = CBool(drP("AplicaSerie"))
|
||||||
|
|
||||||
|
|
||||||
TxtnLote.Visible = CBool(drP("AplicaLote"))
|
TxtnLote.Visible = CBool(drP("AplicaLote"))
|
||||||
ThLote.Visible = CBool(drP("AplicaLote"))
|
ThLote.Visible = CBool(drP("AplicaLote"))
|
||||||
TdLote.Visible = CBool(drP("AplicaLote"))
|
TdLote.Visible = CBool(drP("AplicaLote"))
|
||||||
|
|||||||
Reference in New Issue
Block a user