formattazione stages PROD
This commit is contained in:
@@ -2,93 +2,78 @@
|
||||
|
||||
|
||||
|
||||
<div runat="server" id="divBlock" class="alert alert-primary border border-primary border-thick row" role="alert">
|
||||
<asp:Label runat="server" ID="lblTitle" />
|
||||
<asp:HiddenField runat="server" ID="hfStatus" />
|
||||
<asp:HiddenField runat="server" ID="hfStatusEnd" />
|
||||
<asp:HiddenField ID="hfBatchID" runat="server" />
|
||||
<asp:FormView ID="frmView" runat="server" Width="100%" DataKeyNames="SheetID" DataSourceID="ods">
|
||||
<ItemTemplate>
|
||||
SheetID:
|
||||
<asp:Label ID="SheetIDLabel" runat="server" Text='<%# Eval("SheetID") %>' />
|
||||
<br />
|
||||
StackID:
|
||||
<asp:Label ID="StackIDLabel" runat="server" Text='<%# Bind("StackID") %>' />
|
||||
<br />
|
||||
ShStatus:
|
||||
<asp:Label ID="ShStatusLabel" runat="server" Text='<%# Bind("ShStatus") %>' />
|
||||
<br />
|
||||
SheetIndex:
|
||||
<asp:Label ID="SheetIndexLabel" runat="server" Text='<%# Bind("SheetIndex") %>' />
|
||||
<br />
|
||||
IsNext:
|
||||
<asp:Label ID="IsNextLabel" runat="server" Text='<%# Bind("IsNext") %>' />
|
||||
<br />
|
||||
MatID:
|
||||
<asp:Label ID="MatIDLabel" runat="server" Text='<%# Bind("MatID") %>' />
|
||||
<br />
|
||||
WrkTimeEst:
|
||||
<asp:Label ID="WrkTimeEstLabel" runat="server" Text='<%# Bind("WrkTimeEst") %>' />
|
||||
<br />
|
||||
WrkTimeReal:
|
||||
<asp:Label ID="WrkTimeRealLabel" runat="server" Text='<%# Bind("WrkTimeReal") %>' />
|
||||
<br />
|
||||
Prepared:
|
||||
<asp:Label ID="PreparedLabel" runat="server" Text='<%# Bind("Prepared") %>' />
|
||||
<br />
|
||||
PrntStart:
|
||||
<asp:Label ID="PrntStartLabel" runat="server" Text='<%# Bind("PrntStart") %>' />
|
||||
<br />
|
||||
PrntEnd:
|
||||
<asp:Label ID="PrntEndLabel" runat="server" Text='<%# Bind("PrntEnd") %>' />
|
||||
<br />
|
||||
WrkStart:
|
||||
<asp:Label ID="WrkStartLabel" runat="server" Text='<%# Bind("WrkStart") %>' />
|
||||
<br />
|
||||
WrkEnd:
|
||||
<asp:Label ID="WrkEndLabel" runat="server" Text='<%# Bind("WrkEnd") %>' />
|
||||
<br />
|
||||
UnlStart:
|
||||
<asp:Label ID="UnlStartLabel" runat="server" Text='<%# Bind("UnlStart") %>' />
|
||||
<br />
|
||||
UnlEnd:
|
||||
<asp:Label ID="UnlEndLabel" runat="server" Text='<%# Bind("UnlEnd") %>' />
|
||||
<br />
|
||||
RemnantID:
|
||||
<asp:Label ID="RemnantIDLabel" runat="server" Text='<%# Bind("RemnantID") %>' />
|
||||
<br />
|
||||
PrintFilePath:
|
||||
<asp:Label ID="PrintFilePathLabel" runat="server" Text='<%# Bind("PrintFilePath") %>' />
|
||||
<br />
|
||||
CncFilePath:
|
||||
<asp:Label ID="CncFilePathLabel" runat="server" Text='<%# Bind("CncFilePath") %>' />
|
||||
<br />
|
||||
DrawFilePath:
|
||||
<asp:Label ID="DrawFilePathLabel" runat="server" Text='<%# Bind("DrawFilePath") %>' />
|
||||
<br />
|
||||
MatExtCode:
|
||||
<asp:Label ID="MatExtCodeLabel" runat="server" Text='<%# Bind("MatExtCode") %>' />
|
||||
<br />
|
||||
MatDesc:
|
||||
<asp:Label ID="MatDescLabel" runat="server" Text='<%# Bind("MatDesc") %>' />
|
||||
<br />
|
||||
L_mm:
|
||||
<asp:Label ID="L_mmLabel" runat="server" Text='<%# Bind("L_mm") %>' />
|
||||
<br />
|
||||
W_mm:
|
||||
<asp:Label ID="W_mmLabel" runat="server" Text='<%# Bind("W_mm") %>' />
|
||||
<br />
|
||||
T_mm:
|
||||
<asp:Label ID="T_mmLabel" runat="server" Text='<%# Bind("T_mm") %>' />
|
||||
<br />
|
||||
<asp:HiddenField runat="server" ID="hfStatus" />
|
||||
<asp:HiddenField runat="server" ID="hfStatusEnd" />
|
||||
<asp:HiddenField ID="hfBatchID" runat="server" />
|
||||
<asp:FormView ID="frmView" runat="server" Width="100%" DataKeyNames="SheetID" DataSourceID="ods">
|
||||
<ItemTemplate>
|
||||
<div runat="server" id="divBlock" class='<%# "row small alert border-thick px-0 " + getCss(Eval("ShStatus")) %>' role="alert">
|
||||
<div class="col-12">
|
||||
<h4>
|
||||
<asp:Label runat="server" ID="lblTitle" Text='<%# getTitle(Eval("ShStatus")) %>' /></h4>
|
||||
</div>
|
||||
<div class="col-8 text-left">
|
||||
<b>
|
||||
<asp:Label ID="MatExtCodeLabel" runat="server" Text='<%# Eval("MatExtCode") %>' /></b>
|
||||
</div>
|
||||
<div class="col-4 text-right">
|
||||
Stack: <b>
|
||||
<asp:Label ID="StackIDLabel" runat="server" Text='<%# Eval("StackID") %>' /></b>
|
||||
</div>
|
||||
<div class="col-8 text-left">
|
||||
<asp:Label ID="MatDescLabel" runat="server" Text='<%# Eval("MatDesc") %>' />
|
||||
</div>
|
||||
<div class="col-4 text-right">
|
||||
Sheet: <b>
|
||||
<asp:Label ID="SheetIndexLabel" runat="server" Text='<%# Eval("SheetIndex") %>' /></b>
|
||||
</div>
|
||||
<div class="col-4 text-center">
|
||||
L (mm)<br />
|
||||
<asp:Label ID="L_mmLabel" runat="server" Text='<%# Eval("L_mm") %>' />
|
||||
</div>
|
||||
<div class="col-4 text-center">
|
||||
W (mm)<br />
|
||||
<asp:Label ID="W_mmLabel" runat="server" Text='<%# Eval("W_mm") %>' />
|
||||
</div>
|
||||
<div class="col-4 text-center">
|
||||
T (mm)<br />
|
||||
<asp:Label ID="T_mmLabel" runat="server" Text='<%# Eval("T_mm") %>' />
|
||||
</div>
|
||||
<div class="col-2 text-left">
|
||||
<i class="fa fa-qrcode" aria-hidden="true"></i>
|
||||
</div>
|
||||
<div class="col-5 text-right">
|
||||
<asp:Label ID="PrntStartLabel" runat="server" Text='<%# Eval("PrntStart","{0:HH:mm:ss}") %>' />
|
||||
</div>
|
||||
<div class="col-5 text-right">
|
||||
<asp:Label ID="PrntEndLabel" runat="server" Text='<%# Eval("PrntEnd","{0:HH:mm:ss}") %>' />
|
||||
</div>
|
||||
<div class="col-2 text-left">
|
||||
<i class="fa fa-scissors" aria-hidden="true"></i>
|
||||
</div>
|
||||
<div class="col-5 text-right">
|
||||
<asp:Label ID="WrkStartLabel" runat="server" Text='<%# Eval("WrkStart","{0:HH:mm:ss}") %>' />
|
||||
</div>
|
||||
<div class="col-5 text-right">
|
||||
<asp:Label ID="WrkEndLabel" runat="server" Text='<%# Eval("WrkEnd","{0:HH:mm:ss}") %>' />
|
||||
</div>
|
||||
<div class="col-2 text-left">
|
||||
<i class="fa fa-download" aria-hidden="true"></i>
|
||||
</div>
|
||||
<div class="col-5 text-right">
|
||||
<asp:Label ID="UnlStartLabel" runat="server" Text='<%# Eval("UnlStart") %>' />
|
||||
</div>
|
||||
<div class="col-5 text-right">
|
||||
<asp:Label ID="UnlEndLabel" runat="server" Text='<%# Eval("UnlEnd") %>' />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</ItemTemplate>
|
||||
</asp:FormView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByMLStatus" TypeName="AppData.DS_AppTableAdapters.SheetListTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hfBatchID" DefaultValue="0" Name="BatchID" PropertyName="Value" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="hfStatus" DefaultValue="-1" Name="ShStatusStart" PropertyName="Value" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="hfStatusEnd" DefaultValue="-1" Name="ShStatusEnd" PropertyName="Value" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:FormView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByMLStatus" TypeName="AppData.DS_AppTableAdapters.SheetListTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hfBatchID" DefaultValue="0" Name="BatchID" PropertyName="Value" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="hfStatus" DefaultValue="-1" Name="ShStatusStart" PropertyName="Value" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="hfStatusEnd" DefaultValue="-1" Name="ShStatusEnd" PropertyName="Value" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
|
||||
@@ -54,11 +54,13 @@ namespace NKC_WF.WebUserControls
|
||||
}
|
||||
}
|
||||
|
||||
private void fixCss()
|
||||
public string getCss(object _status)
|
||||
{
|
||||
string answ = "";
|
||||
int status = -10;
|
||||
int.TryParse(_status.ToString(), out status);
|
||||
string colore = "dark";
|
||||
divBlock.Attributes.Remove("class");
|
||||
switch (StatusReqStart)
|
||||
switch (status)
|
||||
{
|
||||
case -1:
|
||||
colore = "primary";
|
||||
@@ -76,39 +78,39 @@ namespace NKC_WF.WebUserControls
|
||||
colore = "secondary";
|
||||
break;
|
||||
}
|
||||
string classe = $"alert alert-{colore} border border-{colore} border-thick row";
|
||||
divBlock.Attributes.Add("class", classe);
|
||||
answ = $"alert-{colore} border border-{colore}";
|
||||
return answ;
|
||||
}
|
||||
|
||||
public void doUpdate()
|
||||
{
|
||||
// imposto css
|
||||
fixCss();
|
||||
// imposto titolo
|
||||
fixTitle();
|
||||
// sistemo filtraggio frmView
|
||||
}
|
||||
|
||||
private void fixTitle()
|
||||
public string getTitle(object _status)
|
||||
{
|
||||
switch (StatusReqStart)
|
||||
string answ = "";
|
||||
int status = -10;
|
||||
int.TryParse(_status.ToString(), out status);
|
||||
switch (status)
|
||||
{
|
||||
case -1:
|
||||
lblTitle.Text = traduci("LoadData");
|
||||
answ = traduci("LoadData");
|
||||
break;
|
||||
case 1:
|
||||
lblTitle.Text = traduci("PrintData");
|
||||
answ = traduci("PrintData");
|
||||
break;
|
||||
case 3:
|
||||
lblTitle.Text = traduci("MachineData");
|
||||
answ = traduci("MachineData");
|
||||
break;
|
||||
case 5:
|
||||
lblTitle.Text = traduci("UnloadData");
|
||||
answ = traduci("UnloadData");
|
||||
break;
|
||||
default:
|
||||
lblTitle.Text = traduci("NA");
|
||||
answ = traduci("NA");
|
||||
break;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,24 +12,6 @@ namespace NKC_WF.WebUserControls {
|
||||
|
||||
public partial class cmp_ML_ShDet {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divBlock.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divBlock;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTitle.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTitle;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfStatus.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user