Guardar Modelo y BCI
This commit is contained in:
@@ -2658,24 +2658,41 @@
|
|||||||
<br />
|
<br />
|
||||||
<asp:TextBox ID="TxtObsPS" runat="server" Height="100%" Width="100%" TextMode="MultiLine" CausesValidation="true" MaxLength="500"></asp:TextBox>
|
<asp:TextBox ID="TxtObsPS" runat="server" Height="100%" Width="100%" TextMode="MultiLine" CausesValidation="true" MaxLength="500"></asp:TextBox>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-5" id="DivRecepcionUsados" runat="server" visible="false">
|
</div>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12" id="DivRecepcionUsados" runat="server" visible="false">
|
||||||
<asp:GridView ID="GvRecepcionUsados" runat="server" GridLines="None" ShowHeaderWhenEmpty="true" CssClass="table table-hover table-striped ScrollAD mysmallbtn"
|
<asp:GridView ID="GvRecepcionUsados" runat="server" GridLines="None" ShowHeaderWhenEmpty="true" CssClass="table table-hover table-striped ScrollAD mysmallbtn"
|
||||||
data-sort="true" BorderWidth="1" BorderColor="#D3D3D3" CellSpacing="0" Width="100%" AutoGenerateColumns="False" data-height="100"
|
data-sort="true" BorderWidth="1" BorderColor="#D3D3D3" CellSpacing="0" Width="100%" AutoGenerateColumns="False" data-height="100"
|
||||||
DataKeyNames="CvePSCargo,CveUM,Cargo,CveTamaño">
|
DataKeyNames="CvePSCargo,CveUM,Cargo,CveTamaño">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField DataField="CodigoPS" HeaderText="Tamaño" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="70%" />
|
<asp:BoundField DataField="CodigoPS" HeaderText="Tamaño" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="35%" />
|
||||||
<asp:TemplateField HeaderText="Cantidad" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="30%">
|
<asp:TemplateField HeaderText="Cantidad" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="20%">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:TextBox ID="TxtCantidad" runat="server" Width="80%"></asp:TextBox>
|
<asp:TextBox ID="TxtCantidad" CssClass="form-control linewhitsize" runat="server" Width="90%" Height="30px"></asp:TextBox>
|
||||||
<ajax:FilteredTextBoxExtender ID="FTBECantidad" runat="server" TargetControlID="TxtCantidad" FilterType="Custom, Numbers" ValidChars="." />
|
<ajax:FilteredTextBoxExtender ID="FTBECantidad" runat="server" TargetControlID="TxtCantidad" FilterType="Custom, Numbers" ValidChars="." />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Modelo" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="30%">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:DropDownList ID="DdlModeloAuto" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="ModeloMarca" DataValueField="CveModeloAuto" >
|
||||||
|
</asp:DropDownList>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="BCI" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="25%">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:DropDownList ID="DdlBCIUsado" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="BCI" DataValueField="CveBCIUsado" Width="90%">
|
||||||
|
</asp:DropDownList>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%-- <br />
|
<%-- <br />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<label>BCI:</label>
|
<label>BCI:</label>
|
||||||
|
|||||||
@@ -2770,6 +2770,13 @@ Partial Class PV
|
|||||||
'Muestra la tabla de tamaños
|
'Muestra la tabla de tamaños
|
||||||
If drPS("CveTamaño").ToString().ToEntero() > 0 Then
|
If drPS("CveTamaño").ToString().ToEntero() > 0 Then
|
||||||
DivRecepcionUsados.Visible = True
|
DivRecepcionUsados.Visible = True
|
||||||
|
If DdlTipoComprobante.SelectedValue <> "Rem" Then
|
||||||
|
GvRecepcionUsados.Columns(2).Visible = False
|
||||||
|
GvRecepcionUsados.Columns(3).Visible = False
|
||||||
|
Else
|
||||||
|
GvRecepcionUsados.Columns(2).Visible = True
|
||||||
|
GvRecepcionUsados.Columns(3).Visible = True
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
DdlUnidadMedida.Items.Clear()
|
DdlUnidadMedida.Items.Clear()
|
||||||
@@ -4904,6 +4911,7 @@ Partial Class PV
|
|||||||
GvRecepcionUsados.DataSource = DtTamanios
|
GvRecepcionUsados.DataSource = DtTamanios
|
||||||
GvRecepcionUsadosModal.DataSource = DtTamanios
|
GvRecepcionUsadosModal.DataSource = DtTamanios
|
||||||
|
|
||||||
|
|
||||||
DdlFolioGarantia.DataBind()
|
DdlFolioGarantia.DataBind()
|
||||||
DdlTipoUso.DataBind()
|
DdlTipoUso.DataBind()
|
||||||
DdlTipoDefecto.DataBind()
|
DdlTipoDefecto.DataBind()
|
||||||
@@ -4919,6 +4927,25 @@ Partial Class PV
|
|||||||
DivChkAjuste.Visible = True
|
DivChkAjuste.Visible = True
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub GvRecepcionUsados_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvRecepcionUsados.RowDataBound
|
||||||
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
|
|
||||||
|
Dim ObjGral As New ClsGenerales
|
||||||
|
If ObjGral.BCIUsadoGet(UsuarioActual.CveEmpresa) Then
|
||||||
|
e.Row.FCDropDownList("DdlBCIUsado").DataSource = ObjGral.DtResultados
|
||||||
|
End If
|
||||||
|
'DdlBCIUsado.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
'DdlBCIUsado.SelectedValueExist(-1)
|
||||||
|
e.Row.FCDropDownList("DdlBCIUsado").DataBind()
|
||||||
|
'e.Row.FCDropDownList("DdlBCIUsado").SelectedValue = e.Row.DBCampo("CveBCIUsado")
|
||||||
|
|
||||||
|
If ObjGral.ModelosAutosGet(UsuarioActual.CveEmpresa) Then
|
||||||
|
e.Row.FCDropDownList("DdlModeloAuto").DataSource = ObjGral.DtResultados
|
||||||
|
End If
|
||||||
|
e.Row.FCDropDownList("DdlModeloAuto").DataBind()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaPSAjuste()
|
Private Sub CargaPSAjuste()
|
||||||
DdlPSAjuste.Items.Clear()
|
DdlPSAjuste.Items.Clear()
|
||||||
DtPUFacturas.Rows.Clear()
|
DtPUFacturas.Rows.Clear()
|
||||||
@@ -5321,8 +5348,8 @@ Partial Class PV
|
|||||||
Row("CveUM") = Gvr.DataKey("CveUM").ToEntero
|
Row("CveUM") = Gvr.DataKey("CveUM").ToEntero
|
||||||
Row("CveVentaDetalle") = -1
|
Row("CveVentaDetalle") = -1
|
||||||
Row("PU") = Gvr.DataKey("Cargo").ToDouble
|
Row("PU") = Gvr.DataKey("Cargo").ToDouble
|
||||||
Row("CveBCIUsado") = -1
|
Row("CveBCIUsado") = Gvr.FCDropDownList("DdlBCIUsado").SelectedValue.ToEntero
|
||||||
Row("CveModeloAuto") = -1
|
Row("CveModeloAuto") = Gvr.FCDropDownList("DdlModeloAuto").SelectedValue.ToEntero
|
||||||
TmpDTRecepcionUsados.Rows.Add(Row)
|
TmpDTRecepcionUsados.Rows.Add(Row)
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user