fix selezione doppia linea RX e RX Dtx x non confondere i particolari
This commit is contained in:
+34
-1
@@ -22,6 +22,34 @@ namespace GMW
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// codice Linea corrente (x scambio norm/Dtx)
|
||||
/// </summary>
|
||||
public string codLinea
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("LineaRx");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("LineaRx", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// codice Cella corrente (x scambio norm/Dtx)
|
||||
/// </summary>
|
||||
public string codCella
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("CellaRx");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("CellaRx", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// caricamento pagina!
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
@@ -31,6 +59,9 @@ namespace GMW
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
calcolaPostazione();
|
||||
// resetto linea!
|
||||
Postazione.currCodLinea = codLinea;
|
||||
Postazione.currCodCella = codCella;
|
||||
// fix css...
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// fix storico
|
||||
@@ -112,6 +143,8 @@ namespace GMW
|
||||
}
|
||||
protected void lbtDT_Click(object sender, EventArgs e)
|
||||
{
|
||||
codLinea = Postazione.currCodLinea;
|
||||
codCella = Postazione.currCodCella;
|
||||
Response.Redirect("PostRX_DT");
|
||||
}
|
||||
|
||||
@@ -285,7 +318,7 @@ namespace GMW
|
||||
private void calcolaPostazione()
|
||||
{
|
||||
Postazione.IP = Request.UserHostName;
|
||||
Postazione.setup();
|
||||
Postazione.setupPrinter();
|
||||
// mostro warning se postazione non configurata...
|
||||
if (Postazione.printer == "n.d.")
|
||||
{
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@
|
||||
<asp:DropDownList ID="ddlLinea" runat="server" AutoPostBack="True" DataSourceID="odsLinea" DataTextField="label" DataValueField="value" OnSelectedIndexChanged="ddlLinea_SelectedIndexChanged" CssClass="btn btn-primary btn-lg dropdown-toggle"></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsLinea" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selLineeTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:Parameter DefaultValue="W50" Name="conditio" Type="String" />
|
||||
<asp:Parameter DefaultValue="W51" Name="conditio" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
|
||||
+34
-1
@@ -22,6 +22,34 @@ namespace GMW
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// codice linea corrente (x scambio norm/Dtx)
|
||||
/// </summary>
|
||||
public string codLinea
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("LineaRxDtx");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("LineaRxDtx", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// codice Cella corrente (x scambio norm/Dtx)
|
||||
/// </summary>
|
||||
public string codCella
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("CellaRxDtx");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("CellaRxDtx", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// caricamento pagina!
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
@@ -31,6 +59,9 @@ namespace GMW
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
calcolaPostazione();
|
||||
// resetto linea!
|
||||
Postazione.currCodLinea = codLinea;
|
||||
Postazione.currCodCella = codCella;
|
||||
// fix css...
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// fix storico
|
||||
@@ -114,6 +145,8 @@ namespace GMW
|
||||
|
||||
protected void lbtNT_Click(object sender, EventArgs e)
|
||||
{
|
||||
codLinea = Postazione.currCodLinea;
|
||||
codCella = Postazione.currCodCella;
|
||||
Response.Redirect("PostRX");
|
||||
}
|
||||
protected void lbtDT_Click(object sender, EventArgs e)
|
||||
@@ -293,7 +326,7 @@ namespace GMW
|
||||
private void calcolaPostazione()
|
||||
{
|
||||
Postazione.IP = Request.UserHostName;
|
||||
Postazione.setup();
|
||||
Postazione.setupPrinter();
|
||||
// mostro warning se postazione non configurata...
|
||||
if (Postazione.printer == "n.d.")
|
||||
{
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
<div id="divModoInput" runat="server" style="width: 320px; margin: auto; text-align: center;">
|
||||
<asp:RadioButtonList ID="rblInputMode" runat="server" AutoPostBack="true" OnSelectedIndexChanged="rblInputMode_SelectedIndexChanged" class="btn-group" RepeatDirection="Horizontal" RepeatLayout="Flow">
|
||||
<asp:ListItem Value="BARCODE" Selected="True" class="btn btn-default btn-lg"></asp:ListItem>
|
||||
<asp:ListItem Value="ELENCO" class="btn btn-default btn-lg"></asp:ListItem>
|
||||
<%-- <asp:ListItem Value="ELENCO" class="btn btn-default btn-lg"></asp:ListItem>--%>
|
||||
</asp:RadioButtonList>
|
||||
</div>
|
||||
<div id="divElenco" runat="server">
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -155,7 +155,7 @@ namespace GMW_data
|
||||
/// <summary>
|
||||
/// effettua calcolo parametri postazioen dato IP
|
||||
/// </summary>
|
||||
public static void setup()
|
||||
public static void setupPrinter()
|
||||
{
|
||||
name = dnsUtils.DetermineCompName(IP);
|
||||
// cerco stampante x postazione
|
||||
|
||||
@@ -9,5 +9,8 @@
|
||||
<add name="GMW_data.Properties.Settings.SP_produzioneConnectionString"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SP_produzione;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="GMW_data.Properties.Settings.SP_DataMatrixConnectionString"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SP_DataMatrix;Integrated Security=True"
|
||||
providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user