201 lines
8.4 KiB
Plaintext
201 lines
8.4 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_gestKIT.ascx.cs" Inherits="MoonProAdmin.WebUserControls.mod_gestKIT" %>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="card-deck">
|
|
<div class="card">
|
|
<div class="card-header bg-primary text-light">
|
|
<h4>Composizione KIT</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<b>Ordini selezionati:</b>
|
|
<asp:GridView runat="server" ID="grViewWSK" DataSourceID="odsWSK" AutoGenerateColumns="False" DataKeyNames="KeyFilt,CodOrd" CssClass="table table-sm table-striped">
|
|
<EmptyDataTemplate>
|
|
Nessun Ordine caricato
|
|
</EmptyDataTemplate>
|
|
<Columns>
|
|
<asp:BoundField DataField="CodOrd" HeaderText="OPR" ReadOnly="True" SortExpression="CodOrd" ItemStyle-CssClass="text-nowrap" />
|
|
<asp:BoundField DataField="CodArt" HeaderText="Cod.Art" SortExpression="CodArt" ItemStyle-CssClass="font-weight-bold" />
|
|
<asp:BoundField DataField="DescArt" HeaderText="Desc.Art" SortExpression="DescArt" ItemStyle-CssClass="small" />
|
|
<asp:BoundField DataField="Qta" HeaderText="Qta" SortExpression="Qta" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
<asp:ObjectDataSource runat="server" ID="odsWSK" OldValuesParameterFormatString="original_{0}" SelectMethod="getByFilt" TypeName="MapoDb.DS_IntServTableAdapters.WipSetupKitTableAdapter">
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="hlCodKitTemp" Name="KeyFilt" PropertyName="Value" Type="String" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
<asp:HiddenField runat="server" ID="hlCodKitTemp" />
|
|
<ul>
|
|
<li><b>esempio KIT: 8060A00</b></li>
|
|
<li>OPR18-20381</li>
|
|
<li>OPR18-21855</li>
|
|
<li>OPR18-21856</li>
|
|
<li>OPR18-21857</li>
|
|
<li>OPR18-22974 (NON VA BENE A313)</li>
|
|
</ul>
|
|
</div>
|
|
<div class="card-footer py-1 bg-primary text-light">
|
|
Cod temp: <b><%: hlCodKitTemp.Value %></b>
|
|
</div>
|
|
</div>
|
|
<div class="card">
|
|
<div class="card-header bg-success text-light">
|
|
<h4>Verifica KIT</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<b>Elenco KIT compatibili</b>
|
|
<asp:GridView runat="server" ID="grViewKitSel" DataSourceID="odsKitSel" AutoGenerateColumns="False" CssClass="table table-striped table-sm" DataKeyNames="CodArtParent" OnSelectedIndexChanged="grViewKitSel_SelectedIndexChanged">
|
|
<Columns>
|
|
<asp:BoundField DataField="CodArtParent" HeaderText="Codice KIT" SortExpression="CodArtParent" />
|
|
<asp:BoundField DataField="TotalScore" HeaderText="Coerenza KIT" ReadOnly="True" SortExpression="TotalScore" DataFormatString="{0:P2}" ItemStyle-HorizontalAlign="Right" />
|
|
<asp:TemplateField HeaderText="Azione">
|
|
<ItemTemplate>
|
|
<asp:LinkButton runat="server" ID="lbtCreatePODL" Visible='<%# Eval("TotalScore","{0:P0}") == "100%" %>' CssClass="btn btn-success btn-sm" ToolTip="Crea ordine KIT" CommandName="select">
|
|
<i class="fa fa-plus-square"></i> Prom.ODL <i class="fa fa-plus-square"></i>
|
|
</asp:LinkButton>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
|
|
</asp:GridView>
|
|
<asp:ObjectDataSource runat="server" ID="odsKitSel" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_IntServTableAdapters.TKS_SearchTableAdapter">
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="hfCodArtList" DefaultValue="###" Name="CodArtChildMulti" PropertyName="Value" Type="String" />
|
|
<asp:Parameter DefaultValue="3" Name="maxResult" Type="Int32" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
<asp:HiddenField runat="server" ID="hfCodArtList" />
|
|
</div>
|
|
<div class="card-footer py-1 bg-secondary text-light">
|
|
altro
|
|
</div>
|
|
</div>
|
|
<div class="card">
|
|
<div class="card-header bg-secondary text-light">
|
|
<h4>INFO</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
centro
|
|
Elenco KIT con commesse (RED) + elenco kit con ARTICOLI (green)
|
|
<ol>
|
|
<li><s>cmd x reset e ripartire a fare NUOVO kit</s></li>
|
|
<li><s>lettura del barcode</s></li>
|
|
<li><s>recupero OPR</s></li>
|
|
<li><s>decodifica come articolo</s></li>
|
|
<li><s>lista di ordini KIT collegati ad OPR IN ROSSO</s></li>
|
|
<li>eventuale lista di ordini KIT collegati ad articolo IN VERDE</li>
|
|
<li><s>salvataggio OPR in lista (redis session)</s></li>
|
|
<li><s>ricerca KIT con articolo(i)</s></li>
|
|
<li><s>controllo kit completo</s></li>
|
|
<li><s>comando conferma e crea KIT</s></li>
|
|
<li>lascio filtro OPR/articolo x mostrare ordine (nei 2 modi rosso/verde)</li>
|
|
<li><s>cmd x reset e ripartire a fare NUOVO kit</s></li>
|
|
</ol>
|
|
</div>
|
|
<div class="card-footer py-1 bg-secondary text-light">
|
|
altro
|
|
</div>
|
|
</div>
|
|
<div class="card">
|
|
<div class="card-header bg-danger text-light">
|
|
<h4>KIT già composti</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<b>Elenco KIT già associati agli ordini</b>
|
|
<asp:GridView runat="server" ID="grViewIstanzeKIT" DataSourceID="odsIstanzeKIT" AutoGenerateColumns="False" DataKeyNames="KeyKit,KeyExtOrd" CssClass="table table-sm table-striped table-danger">
|
|
<EmptyDataTemplate>
|
|
Nessun Record (Ordini associati a KIT)
|
|
</EmptyDataTemplate>
|
|
<Columns>
|
|
<asp:BoundField DataField="KeyKit" HeaderText="Cod.KIT" ReadOnly="True" SortExpression="KeyKit" />
|
|
<asp:BoundField DataField="KeyExtOrd" HeaderText="KeyExtOrd" ReadOnly="True" SortExpression="KeyExtOrd" />
|
|
<asp:BoundField DataField="CodArtParent" HeaderText="Art.KIT" SortExpression="CodArtParent" />
|
|
<asp:BoundField DataField="CodArtChild" HeaderText="Cod.Art" SortExpression="CodArtChild" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
<asp:ObjectDataSource ID="odsIstanzeKIT" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByExtOrd" TypeName="MapoDb.DS_IntServTableAdapters.IstanzeKITTableAdapter">
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="hfCodOrdList" Name="KeyExtOrd" PropertyName="Value" Type="String" DefaultValue="" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
<asp:HiddenField runat="server" ID="hfCodOrdList" />
|
|
</div>
|
|
<div class="card-footer py-1 bg-secondary text-light">
|
|
altro
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
|
|
<asp:HiddenField ID="hlLastInput" runat="server" />
|
|
<asp:Label runat="server" ID="lblOut" CssClass="text-danger" />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<%--TESTDB: MoonPro
|
|
select * from Config where chiave like 'regexp%'
|
|
|
|
|
|
TESTDB: IS_Colcom
|
|
|
|
|
|
|
|
exec stp_IstanzeKit_Search 'K1800000001', '', '', ''
|
|
exec stp_IstanzeKit_Search '', 'OPR-123456', '', ''
|
|
exec stp_IstanzeKit_Search '', '', 'A101000', ''
|
|
exec stp_IstanzeKit_Search '', '', '', 'A101001'
|
|
|
|
|
|
exec stp_TemplateKit_Search '8060A00',''
|
|
exec stp_TemplateKit_Search '','8060A313'
|
|
|
|
|
|
select * from TransitoDati
|
|
|
|
select * from IstanzeKIT
|
|
|
|
|
|
select top 1 * from TransitoDati where ValueOUT LIKE '%8060A0%'
|
|
select top 1 * from TransitoDati where ValueOUT LIKE '%8060A1%'
|
|
select top 1 * from TransitoDati where ValueOUT LIKE '%8060A2%'
|
|
select top 1 * from TransitoDati where ValueOUT LIKE '%8060A313%'
|
|
|
|
-- esempio KIT: 8060A00
|
|
-- OPR18-20381
|
|
-- OPR18-21855
|
|
-- OPR18-21856
|
|
-- OPR18-22974
|
|
|
|
select * from TemplateKIT order by CodArtChild DESC
|
|
exec stp_TKS_Search '1010A1,1010A2,'
|
|
exec stp_TKS_Search '8060A0,'
|
|
exec stp_TKS_Search '8060A1,'
|
|
exec stp_TKS_Search '8060A2,'
|
|
exec stp_TKS_Search '8060A313,'
|
|
exec stp_TKS_Search '8060A0,8060A1,8060A2,8060A313,'
|
|
|
|
exec stp_TKS_Search 'V10616D,'
|
|
exec stp_TKS_Search 'M06606,'
|
|
|
|
exec stp_TemplateKit_Search '1050A00',''
|
|
exec stp_TemplateKit_Search '1040A00',''
|
|
exec stp_TemplateKit_Search '6606A00',''
|
|
exec stp_TemplateKit_Search '6610A00',''
|
|
|
|
--truncate table IstanzeKIT
|
|
--truncate table Counters
|
|
|
|
select * from IstanzeKIT
|
|
|
|
|
|
exec stp_IstKit_byKeyExtOrd 'OPR-123321,OPR-123456,'
|
|
|
|
exec stp_IstKit_getKey
|
|
|
|
--%>
|