Update con funzione di conteggio num pezzi in gitterbox
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@376 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
@@ -1,47 +1,50 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_spostaDataMatrix.ascx.cs"
|
||||
Inherits="GMW.WebUserControls.mod_spostaDataMatrix" %>
|
||||
<asp:Panel runat="server" ID="pnlAll" CssClass="gitterBoxAttesa" Height="100%">
|
||||
<div style="height:100%;">
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblGitterBoxAttivo" Font-Size="36pt" />
|
||||
</div>
|
||||
<div class="msgBoxGitterBox">
|
||||
<asp:Label runat="server" ID="lblMessaggi" Text="visualizzazione messaggi utente" Font-Size="18pt" />
|
||||
</div>
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblBarcode" Text="Barcode" />
|
||||
<br />
|
||||
<asp:TextBox runat="server" ID="txtBarcode" Height="40px" Width="480px" Font-Size="32pt" />
|
||||
</div>
|
||||
<div style="font-size:8pt; text-align:center; margin-top:10px; margin-left:30%; margin-right:30%;">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AutoGenerateColumns="False"
|
||||
PageSize="18" CellPadding="4" DataSourceID="ods" ForeColor="#333333" GridLines="None">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctitRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
|
||||
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||
<Columns>
|
||||
<asp:BoundField DataField="CodDataMatrix" HeaderText="CodDataMatrix" SortExpression="CodDataMatrix"
|
||||
DataFormatString="<b>{0}</b>" HtmlEncode="false" />
|
||||
<asp:BoundField DataField="NumConchiglia" HeaderText="NumConchiglia" SortExpression="NumConchiglia"
|
||||
DataFormatString="{0}" />
|
||||
<asp:BoundField DataField="NumDisegno" HeaderText="NumDisegno" SortExpression="NumDisegno"
|
||||
DataFormatString="{0}" />
|
||||
<asp:BoundField DataField="EsponenteDisegno" HeaderText="EsponenteDisegno" SortExpression="EsponenteDisegno"
|
||||
DataFormatString="{0}" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByGitterbox" TypeName="GMW_data.DS_DataMatrixTableAdapters.ElencoDataMatrixTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="0" Name="CodGitterbox" SessionField="currGitterBox"
|
||||
Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div style="height: 100%;">
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblGitterBoxAttivo" Font-Size="36pt" />
|
||||
</div>
|
||||
<div class="msgBoxGitterBox">
|
||||
<asp:Label runat="server" ID="lblMessaggi" Text="visualizzazione messaggi utente"
|
||||
Font-Size="18pt" />
|
||||
</div>
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblBarcode" Text="Barcode" />
|
||||
<br />
|
||||
<asp:TextBox runat="server" ID="txtBarcode" Height="40px" Width="480px" Font-Size="32pt" />
|
||||
</div>
|
||||
<div style="font-size: 8pt; text-align: center; margin-top: 10px; margin-left: 30%;
|
||||
margin-right: 30%;">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AutoGenerateColumns="False"
|
||||
PageSize="18" CellPadding="4" DataSourceID="ods" ForeColor="#333333" GridLines="None">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctitRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
|
||||
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||
<Columns>
|
||||
<asp:BoundField DataField="CodDataMatrix" HeaderText="CodDataMatrix" SortExpression="CodDataMatrix"
|
||||
DataFormatString="<b>{0}</b>" HtmlEncode="false" />
|
||||
<asp:BoundField DataField="NumConchiglia" HeaderText="NumConchiglia" SortExpression="NumConchiglia"
|
||||
DataFormatString="{0}" />
|
||||
<asp:BoundField DataField="NumDisegno" HeaderText="NumDisegno" SortExpression="NumDisegno"
|
||||
DataFormatString="{0}" />
|
||||
<asp:BoundField DataField="EsponenteDisegno" HeaderText="EsponenteDisegno" SortExpression="EsponenteDisegno"
|
||||
DataFormatString="{0}" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByGitterbox" TypeName="GMW_data.DS_DataMatrixTableAdapters.ElencoDataMatrixTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="0" Name="CodGitterbox" SessionField="currGitterBox"
|
||||
Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:Label runat="server" ID="lblPezziGitterbox" Font-Size="28pt" />
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
|
||||
@@ -25,6 +25,7 @@ namespace GMW.WebUserControls
|
||||
pnlAll.CssClass = "gitterBoxAttesa";
|
||||
}
|
||||
checkBarcode();
|
||||
lblPezziGitterbox.Text = string.Format("{0} pz.", pezziGitterbox);
|
||||
if (currGitterBox != "")
|
||||
{
|
||||
lblGitterBoxAttivo.Text = string.Format("Gitterbox selezionato <b>{0}</b>", currGitterBox);
|
||||
@@ -35,6 +36,23 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// num pezzi del gitterbox
|
||||
/// </summary>
|
||||
public int pezziGitterbox
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = (int)MagClass.magazzino.taElencoCartellini.getByUdc(currGitterBox)[0].Qta;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// indica il gitterbox correntemente selezionato
|
||||
/// </summary>
|
||||
protected string currGitterBox
|
||||
@@ -257,7 +275,7 @@ namespace GMW.WebUserControls
|
||||
/// <summary>
|
||||
/// indica se i caratteri vadano forzati a maiuscoli
|
||||
/// </summary>
|
||||
public bool forceUppsercase
|
||||
public bool forceUppercase
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
@@ -75,5 +75,14 @@ namespace GMW.WebUserControls {
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
|
||||
|
||||
/// <summary>
|
||||
/// lblPezziGitterbox control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPezziGitterbox;
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -196,8 +196,6 @@
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="SqlScripts\GMW_00390.sql" />
|
||||
<None Include="SqlScripts\GMW_00387.sql" />
|
||||
<None Include="SqlScripts\GMW_00386.sql" />
|
||||
<None Include="SqlScripts\GMW_00385.sql" />
|
||||
<None Include="SqlScripts\GMW_00370.sql" />
|
||||
<None Include="SqlScripts\GMW_00365.sql" />
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -350,7 +350,7 @@
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW"
|
||||
"ProductCode" = "8:{4CB59469-16ED-4876-9B3A-C521C608927F}"
|
||||
"PackageCode" = "8:{FB916AE8-61FC-47ED-851C-CCEBA33A2744}"
|
||||
"PackageCode" = "8:{F06DA73C-172D-45BD-9C9C-AD0862B7D0A0}"
|
||||
"UpgradeCode" = "8:{C9BC0732-DC92-4336-BAC9-A05A5D2A97C0}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:FALSE"
|
||||
|
||||
Binary file not shown.
@@ -302,7 +302,7 @@
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW_test"
|
||||
"ProductCode" = "8:{657D16D4-B3E6-4307-868B-3BE8E732C46D}"
|
||||
"PackageCode" = "8:{A5FBDCFB-DDDE-4562-B78C-77D41CFB9349}"
|
||||
"PackageCode" = "8:{3689D6EB-2830-4354-A460-761F805B11D7}"
|
||||
"UpgradeCode" = "8:{6FD64E39-D93B-4ADA-ADF3-303A1BCA49C2}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:TRUE"
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user