RepVentas Cartas porte, Consignaciones, serie lote
This commit is contained in:
@@ -361,8 +361,7 @@
|
||||
<th width="100px">
|
||||
<asp:Literal ID="LtCantidad" Text="Cantidad" runat="server" />
|
||||
</th>
|
||||
<th width="300px">Clasificación
|
||||
<br />
|
||||
<th width="300px">
|
||||
Producto
|
||||
</th>
|
||||
<th width="90px">Unidad</th>
|
||||
@@ -390,14 +389,18 @@
|
||||
<td style="text-align: left;" align="center">
|
||||
<div class="psagregar">
|
||||
<div class="comboxes">
|
||||
<asp:DropDownList ID="DdlClasificacion" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Class="form-control input-sm select2me">
|
||||
<%-- <asp:DropDownList ID="DdlClasificacion" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Class="form-control input-sm select2me">
|
||||
<asp:ListItem Selected="True" Text="Seleccione la Clasificación (Todas)" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<br />
|
||||
<asp:DropDownList ID="DdlProducto" runat="server" DataTextField="PSCodigo" AutoPostBack="true" DataValueField="CvePS" Class="form-control input-sm select2me"></asp:DropDownList>
|
||||
<select id="DdlProductows" runat="server" class="form-control"></select><asp:Button ID="myhidenbutton" runat="server" Text="Button" Style="display: none;" />
|
||||
<br />--%>
|
||||
<%--<asp:DropDownList ID="DdlProducto" runat="server" DataTextField="PSCodigo" AutoPostBack="true" DataValueField="CvePS" Class="form-control input-sm select2me"></asp:DropDownList>--%>
|
||||
|
||||
<ADS:Dropdownlost Onselectedindexchange="DdlProducto_selectedindexchange" runat="server" ID="DdlProducto" CssStyle="width:100%%;" CssClass="DdlPS" CssClassDdl="select2me " DataTextField="PSCodigo" DataValueField="CvePS" />
|
||||
|
||||
|
||||
<%-- <select id="DdlProductows" runat="server" class="form-control"></select><asp:Button ID="myhidenbutton" runat="server" Text="Button" Style="display: none;" />
|
||||
<asp:HiddenField ID="HFProducto" runat="server" />
|
||||
<asp:HiddenField ID="HFTProducto" runat="server" />
|
||||
<asp:HiddenField ID="HFTProducto" runat="server" />--%>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
@@ -725,7 +728,8 @@
|
||||
<script type="text/javascript">
|
||||
|
||||
function AddItem(Text, Value, idproductows) {
|
||||
// Create an Option object <%= DdlProductows.ClientID%>
|
||||
|
||||
<%-- Create an Option object <%= DdlProductows.ClientID%> --%>
|
||||
|
||||
var opt = document.createElement("option");
|
||||
|
||||
@@ -741,7 +745,7 @@
|
||||
}
|
||||
|
||||
|
||||
Sys.Application.add_load(function (s, e) {
|
||||
<%-- Sys.Application.add_load(function (s, e) {
|
||||
|
||||
var Tam = TamañoVentana();
|
||||
var Alto = Tam.height - 300;
|
||||
@@ -805,73 +809,73 @@
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
});--%>
|
||||
|
||||
var DdlProductows = '-1';
|
||||
var DdlProducto = '-1';
|
||||
var HFProducto = '-1';
|
||||
var HFTProducto = '-1';
|
||||
var Myhidenbutton = '-1';
|
||||
function Asigna105(tDdlProductows, tDdlProducto, tHFProducto, tHFTProducto, tsMyhidenbutton) {
|
||||
//function Asigna105(tDdlProductows, tDdlProducto, tHFProducto, tHFTProducto, tsMyhidenbutton) {
|
||||
|
||||
|
||||
DdlProductoWS = tDdlProductows;
|
||||
DdlProducto = tDdlProducto;
|
||||
HFProducto = tHFProducto;
|
||||
tHFTProducto = tHFTProducto;
|
||||
Myhidenbutton = tsMyhidenbutton;
|
||||
// DdlProductoWS = tDdlProductows;
|
||||
// DdlProducto = tDdlProducto;
|
||||
// HFProducto = tHFProducto;
|
||||
// tHFTProducto = tHFTProducto;
|
||||
// Myhidenbutton = tsMyhidenbutton;
|
||||
|
||||
Asigna1052(DdlProductows, DdlProducto, HFProducto, HFTProducto, sMyhidenbutton);
|
||||
}
|
||||
// Asigna1052(DdlProductows, DdlProducto, HFProducto, HFTProducto, sMyhidenbutton);
|
||||
//}
|
||||
|
||||
function Asigna1052(DdlProductows, DdlProducto, HFProducto, HFTProducto, sMyhidenbutton) {
|
||||
//function Asigna1052(DdlProductows, DdlProducto, HFProducto, HFTProducto, sMyhidenbutton) {
|
||||
|
||||
if ($(DdlProductows)) {
|
||||
if (!($(HFProducto).val() === '')) {
|
||||
AddItem($(HFTProducto).val(), $(HFProducto).val(), DdlProductows.replace('#', ''));
|
||||
}
|
||||
}
|
||||
if ($(DdlProductows).data('creado') === '1') { } else {
|
||||
$(DdlProductows).data('creado', '1')
|
||||
$(DdlProductows).select2({
|
||||
ajax: {
|
||||
url: "/Ashx/SIGWeb.ashx",
|
||||
dataType: 'json',
|
||||
delay: 250,
|
||||
data: function (params) {
|
||||
return {
|
||||
Name: params.term, // search term
|
||||
Metodo: 'getps'
|
||||
};
|
||||
},
|
||||
processResults: function (data, params) {
|
||||
params.page = params.page || 1;
|
||||
// if ($(DdlProductows)) {
|
||||
// if (!($(HFProducto).val() === '')) {
|
||||
// AddItem($(HFTProducto).val(), $(HFProducto).val(), DdlProductows.replace('#', ''));
|
||||
// }
|
||||
// }
|
||||
// if ($(DdlProductows).data('creado') === '1') { } else {
|
||||
// $(DdlProductows).data('creado', '1')
|
||||
// $(DdlProductows).select2({
|
||||
// ajax: {
|
||||
// url: "/Ashx/SIGWeb.ashx",
|
||||
// dataType: 'json',
|
||||
// delay: 250,
|
||||
// data: function (params) {
|
||||
// return {
|
||||
// Name: params.term, // search term
|
||||
// Metodo: 'getps'
|
||||
// };
|
||||
// },
|
||||
// processResults: function (data, params) {
|
||||
// params.page = params.page || 1;
|
||||
|
||||
return {
|
||||
results: data,
|
||||
pagination: {
|
||||
more: (params.page * 30) < data.total_count
|
||||
}
|
||||
};
|
||||
},
|
||||
cache: true
|
||||
},
|
||||
escapeMarkup: function (markup) { return markup; }, // let our custom formatter work
|
||||
minimumInputLength: 3
|
||||
});
|
||||
}
|
||||
if ($(DdlProductows)) {
|
||||
if (!($(HFProducto).val() === '')) {
|
||||
AddItem($(HFTProducto).val(), $(HFProducto).val(), DdlProductows.replace('#', ''));
|
||||
}
|
||||
$(DdlProductows).on("select2:select", function (e) { console.log(e); $(HFProducto).val(e.params.data.id); $(HFTProducto).val(e.params.data.text); $(sMyhidenbutton).click(); });
|
||||
}
|
||||
if ($(DdlProducto)) {
|
||||
$(DdlProducto).on("select2:select", function (e) { console.log(e); $(HFProducto).val(e.params.data.id); $(HFTProducto).val(e.params.data.text); });
|
||||
// return {
|
||||
// results: data,
|
||||
// pagination: {
|
||||
// more: (params.page * 30) < data.total_count
|
||||
// }
|
||||
// };
|
||||
// },
|
||||
// cache: true
|
||||
// },
|
||||
// escapeMarkup: function (markup) { return markup; }, // let our custom formatter work
|
||||
// minimumInputLength: 3
|
||||
// });
|
||||
// }
|
||||
// if ($(DdlProductows)) {
|
||||
// if (!($(HFProducto).val() === '')) {
|
||||
// AddItem($(HFTProducto).val(), $(HFProducto).val(), DdlProductows.replace('#', ''));
|
||||
// }
|
||||
// $(DdlProductows).on("select2:select", function (e) { console.log(e); $(HFProducto).val(e.params.data.id); $(HFTProducto).val(e.params.data.text); $(sMyhidenbutton).click(); });
|
||||
// }
|
||||
// if ($(DdlProducto)) {
|
||||
// $(DdlProducto).on("select2:select", function (e) { console.log(e); $(HFProducto).val(e.params.data.id); $(HFTProducto).val(e.params.data.text); });
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
}
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user