-- cambio de es presupuestal a "no requiere unidad"
This commit is contained in:
@@ -379,7 +379,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-4">Es Solo Cotización</label>
|
<label class="col-md-4">NO Requiere Unidad</label>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<asp:CheckBox runat="server" ID="ChkEsPresupuestal" CssClass="make-switchsd" data-size="small" Checked="true" />
|
<asp:CheckBox runat="server" ID="ChkEsPresupuestal" CssClass="make-switchsd" data-size="small" Checked="true" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -280,11 +280,11 @@ Partial Class RepContratoDetalle
|
|||||||
CargaEventoBitacora()
|
CargaEventoBitacora()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If CveVentaRemision > 0 Then
|
'If CveVentaRemision > 0 Then
|
||||||
DVFactura.Visible = True
|
' DVFactura.Visible = True
|
||||||
ChkEsPresupuestal.Enabled = False
|
' ChkEsPresupuestal.Enabled = False
|
||||||
ChkEsPresupuestal.Checked = False
|
' ChkEsPresupuestal.Checked = False
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -639,24 +639,24 @@ Partial Class RepContratoDetalle
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Not ErrorProceso AndAlso Not CveVentaRemision > 0 AndAlso ChkEsPresupuestal.Checked = False Then
|
'If Not ErrorProceso AndAlso Not CveVentaRemision > 0 AndAlso ChkEsPresupuestal.Checked = False Then
|
||||||
'CveVentaRemision
|
' 'CveVentaRemision
|
||||||
Dim ObsRemisionPartida As String = $"{DdlTipoAF.SelectedItem.Text}-{ TxtDescripcion.Text}-{TxtFolio.Text}"
|
' Dim ObsRemisionPartida As String = $"{DdlTipoAF.SelectedItem.Text}-{ TxtDescripcion.Text}-{TxtFolio.Text}"
|
||||||
|
|
||||||
Dim Respuesta As New RespuestaFacturacion()
|
' Dim Respuesta As New RespuestaFacturacion()
|
||||||
Dim CvePS As Integer = 907784
|
' Dim CvePS As Integer = 907784
|
||||||
Respuesta = GeneraRemision(CveContrato, ObsRemisionPartida, TxtImporte.Text.ToDecimal, CvePS, ObjContratos.IniciaTransacSQL, DdlSubProyecto.SelectedValue.ToEntero)
|
' Respuesta = GeneraRemision(CveContrato, ObsRemisionPartida, TxtImporte.Text.ToDecimal, CvePS, ObjContratos.IniciaTransacSQL, DdlSubProyecto.SelectedValue.ToEntero)
|
||||||
|
|
||||||
If Respuesta.CveVenta > 0 Then
|
' If Respuesta.CveVenta > 0 Then
|
||||||
CveVentaRemision = Respuesta.CveVenta
|
' CveVentaRemision = Respuesta.CveVenta
|
||||||
SerieFolioRemision = Respuesta.SerieFolio
|
' SerieFolioRemision = Respuesta.SerieFolio
|
||||||
ErrorProceso = False
|
' ErrorProceso = False
|
||||||
SeGeneroRemision = True
|
' SeGeneroRemision = True
|
||||||
Else
|
' Else
|
||||||
ErrorProceso = True
|
' ErrorProceso = True
|
||||||
Alert("se presento un error al generar la remisión", TipoMensaje.MsgAdvertencia)
|
' Alert("se presento un error al generar la remisión", TipoMensaje.MsgAdvertencia)
|
||||||
End If
|
' End If
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
If Not ErrorProceso Then
|
If Not ErrorProceso Then
|
||||||
ObjContratos.Commit()
|
ObjContratos.Commit()
|
||||||
|
|||||||
@@ -119,8 +119,8 @@
|
|||||||
<%-- Centro de Costos --%>
|
<%-- Centro de Costos --%>
|
||||||
<label class="col-md-1 truncate ">Centro de Costos</label>
|
<label class="col-md-1 truncate ">Centro de Costos</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlCentroCostos" data-text="Todos" AppendDataBoundItems="true"
|
<asp:DropDownList ID="DdlCentroCostos" data-text="Todos" AppendDataBoundItems="true"
|
||||||
DataTextField="" DataValueField="" CssClass="form-control ddlFiltros input-sm select2me"
|
DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control ddlFiltros input-sm select2me"
|
||||||
Style="width: 100%;" runat="server">
|
Style="width: 100%;" runat="server">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
@@ -204,6 +204,11 @@
|
|||||||
<asp:Literal ID="LtlFechaFinal" runat="server" Text='<%# Eval("FechaFinal", "{0:d}") %>'></asp:Literal>
|
<asp:Literal ID="LtlFechaFinal" runat="server" Text='<%# Eval("FechaFinal", "{0:d}") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Rem/Invoice" >
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:HyperLink ID="HplRem" runat="server" NavigateUrl='<%#Eval("CveVentaRemision", "/Ventas/Ventas.aspx?CveVenta={0}") %>' Text='<%# Eval("RemisionSerieFolio") %>'></asp:HyperLink>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
<%-- Columnas Ocultas --%>
|
<%-- Columnas Ocultas --%>
|
||||||
<asp:TemplateField HeaderText="Chofer 1" Visible="false">
|
<asp:TemplateField HeaderText="Chofer 1" Visible="false">
|
||||||
@@ -223,6 +228,7 @@
|
|||||||
<asp:Literal ID="LtUnidad" runat="server" Text='<%# Eval("NombreAF") %>'></asp:Literal>
|
<asp:Literal ID="LtUnidad" runat="server" Text='<%# Eval("NombreAF") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="F. Ingreso" >
|
<asp:TemplateField HeaderText="F. Ingreso" >
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtFingreso" runat="server" Text='<%# Eval("FechaIng","{0:d}") %>'></asp:Literal>
|
<asp:Literal ID="LtFingreso" runat="server" Text='<%# Eval("FechaIng","{0:d}") %>'></asp:Literal>
|
||||||
@@ -511,7 +517,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="row my-1">
|
<div class="row my-1">
|
||||||
<label class="col-md-4">Es Presupuestal</label>
|
<label class="col-md-4">NO Requiere Unidad</label>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<asp:CheckBox runat="server" ID="ChkEsPresupuestal" CssClass="make-switchsd" data-size="small" Checked="true" />
|
<asp:CheckBox runat="server" ID="ChkEsPresupuestal" CssClass="make-switchsd" data-size="small" Checked="true" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ Partial Class ListadoContratos
|
|||||||
DdlEstatus.DataBind()
|
DdlEstatus.DataBind()
|
||||||
DdlEstatus.Items.Insert(0, New ListItem("Todos", "-1"))
|
DdlEstatus.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
|
|
||||||
CargarCentrosDeCosto(Nothing, Nothing, Nothing, LblSubProyectoModal)
|
CargarCentrosDeCosto(Nothing, DdlCentroCostos, Nothing, LblSubProyectoModal)
|
||||||
|
|
||||||
DdlSubProyectoModal.DataSource = GlobalDTSubProyectos(UsuarioActual.CveEmpresa)
|
DdlSubProyectoModal.DataSource = GlobalDTSubProyectos(UsuarioActual.CveEmpresa)
|
||||||
DdlSubProyectoModal.DataBind()
|
DdlSubProyectoModal.DataBind()
|
||||||
@@ -180,7 +180,7 @@ Partial Class ListadoContratos
|
|||||||
End If
|
End If
|
||||||
Anexo.Text = ""
|
Anexo.Text = ""
|
||||||
|
|
||||||
If ErrorProceso = False AndAlso Not ChkEsPresupuestal.Checked Then
|
If ErrorProceso = False Then
|
||||||
|
|
||||||
Dim ObsRemisionPartida As String = $"{DdlTipoAF.SelectedItem.Text}-{ TxtDescripcion.Text}-{LbFolio.Text}"
|
Dim ObsRemisionPartida As String = $"{DdlTipoAF.SelectedItem.Text}-{ TxtDescripcion.Text}-{LbFolio.Text}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user