Merge branch 'ES3' into develop

This commit is contained in:
Samuele E. Locatelli
2020-01-03 18:43:13 +01:00
9 changed files with 1019 additions and 38 deletions
+12
View File
@@ -22,6 +22,18 @@ namespace ES3
}
cmp_numRowConfWeek.eh_newNum += Cmp_numRowConfWeek_eh_newNum;
cmp_numRowParams.eh_newNum += Cmp_numRowParams_eh_newNum;
cmp_machParams.eh_selected += Cmp_machParams_eh_selected;
cmp_machParams.eh_reset += Cmp_machParams_eh_reset;
}
private void Cmp_machParams_eh_reset(object sender, EventArgs e)
{
cmp_machStats.idxMacchinaSel = "";
}
private void Cmp_machParams_eh_selected(object sender, EventArgs e)
{
cmp_machStats.idxMacchinaSel = cmp_machParams.idxMacchinaSel;
}
private void Cmp_numRowParams_eh_newNum(object sender, EventArgs e)
+1 -1
View File
@@ -3,7 +3,7 @@
<div class="row">
<div class="col-12">
<asp:ObjectDataSource ID="odsConfWeek" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_PlanTableAdapters.selConfWeekTableAdapter"></asp:ObjectDataSource>
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="IdxMacchina" DataSourceID="ods" CssClass="table table-sm table-striped" AllowPaging="True" AllowSorting="True">
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="IdxMacchina" DataSourceID="ods" CssClass="table table-sm table-striped" AllowPaging="True" AllowSorting="True" OnSelectedIndexChanged="grView_SelectedIndexChanged">
<HeaderStyle CssClass="table-primary" />
<PagerStyle CssClass="active GridPager" />
<PagerSettings Mode="NumericFirstLast" />
+28 -11
View File
@@ -10,6 +10,8 @@ namespace ES3.WebUserControls
{
public partial class cmp_machParams : System.Web.UI.UserControl
{
public event EventHandler eh_selected;
public event EventHandler eh_reset;
protected void Page_Load(object sender, EventArgs e)
{
@@ -50,21 +52,12 @@ namespace ES3.WebUserControls
/// </summary>
public void resetSelezione()
{
#if false
memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
#endif
grView.SelectedIndex = -1;
doUpdate();
#if false
divEditQta.Visible = false;
mod_newPromessaODL.Visible = false;
lbtNewPODL.Visible = true;
lblWarning.Visible = false;
if (eh_resetSelezione != null)
if (eh_reset!= null)
{
eh_resetSelezione(this, new EventArgs());
eh_reset(this, new EventArgs());
}
#endif
}
protected void lbtAddNew_Click(object sender, EventArgs e)
@@ -81,5 +74,29 @@ namespace ES3.WebUserControls
if (e.InputParameters["SetupTime"] == null) e.InputParameters["SetupTime"] = "1";
if (e.InputParameters["CodConfAper"] == null) e.InputParameters["CodConfAper"] = "0";
}
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
// raise dell'evento
if (eh_selected != null)
{
eh_selected(this, new EventArgs());
}
}
/// <summary>
/// Idx macchina selezionata
/// </summary>
public string idxMacchinaSel
{
get
{
string answ = "";
if (grView.SelectedIndex >= 0)
{
answ = grView.SelectedValue.ToString();
}
return answ;
}
}
}
}
+74 -6
View File
@@ -2,11 +2,79 @@
<div class="row">
<div class="col-12">
Statistiche SINGOLA macchina:
<ul>
<li>OEE 1Y/3M/1M/1W</li>
<li>Setup 1Y/3M/1M/1W</li>
<li>Ore/Week 1Y/3M/1M/1W</li>
</ul>
<asp:FormView ID="frmView" runat="server" DataSourceID="ods" Width="100%">
<EmptyDataTemplate>
<div class="row text-center">
<div class="col table-danger mx-3">
No Stats Available
</div>
</div>
</EmptyDataTemplate>
<ItemTemplate>
<div class="card bg-success">
<div class="card-header text-center text-light py-1">
<h4><b>OEE</b> %</h4>
</div>
<div class="card-body bg-light py-1">
<div class="row text-center">
<div class="col">
TOT
<h4>
<asp:Label ID="OEE_AllLabel" runat="server" Text='<%# Eval("OEE_All","{0:P1}") %>' /></h4>
</div>
<div class="col">
30gg
<h4>
<asp:Label ID="OEE_1MLabel" runat="server" Text='<%# Eval("OEE_1M","{0:P1}") %>' /></h4>
</div>
</div>
</div>
</div>
<div class="card bg-warning my-2">
<div class="card-header text-center text-dark py-1">
<h4><b>SetUp</b> min</h4>
</div>
<div class="card-body bg-light py-1">
<div class="row text-center">
<div class="col">
TOT
<h4>
<asp:Label ID="SetUp_AllLabel" runat="server" Text='<%# Eval("SetUp_All","{0:N1}") %>' /></h4>
</div>
<div class="col">
30gg
<h4>
<asp:Label ID="SetUp_1MLabel" runat="server" Text='<%# Eval("SetUp_1M","{0:N1}") %>' /></h4>
</div>
</div>
</div>
</div>
<div class="card bg-info my-2">
<div class="card-header text-center text-dark py-1">
<h4><b>Work Hrs</b> /week</h4>
</div>
<div class="card-body bg-light py-1">
<div class="row text-center">
<div class="col">
TOT
<h4>
<asp:Label ID="WeekHrsLabel" runat="server" Text='<%# Eval("WeekHrs","{0:N1}") %>' /></h4>
</div>
<div class="col">
30gg
<h4>
<asp:Label ID="WeekHrs_1MLabel" runat="server" Text='<%# Eval("WeekHrs_1M","{0:N1}") %>' /></h4>
</div>
</div>
</div>
</div>
</ItemTemplate>
</asp:FormView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_PlanTableAdapters.planHistStatMacTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="hfIdxMacchina" DefaultValue="0" Name="IdxMacchina" PropertyName="Value" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:HiddenField runat="server" ID="hfIdxMacchina" />
</div>
</div>
+23
View File
@@ -13,5 +13,28 @@ namespace ES3.WebUserControls
{
}
/// <summary>
/// Idx macchina selezionata
/// </summary>
public string idxMacchinaSel
{
set
{
hfIdxMacchina.Value = value;
frmView.DataBind();
if (!string.IsNullOrEmpty(value))
{
//frmView.Visible = true;
}
else
{
//frmView.Visible = false;
}
}
get
{
return hfIdxMacchina.Value;
}
}
}
}
+27
View File
@@ -13,5 +13,32 @@ namespace ES3.WebUserControls
public partial class cmp_machStats
{
/// <summary>
/// Controllo frmView.
/// </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.FormView frmView;
/// <summary>
/// Controllo ods.
/// </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.ObjectDataSource ods;
/// <summary>
/// Controllo hfIdxMacchina.
/// </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.HiddenField hfIdxMacchina;
}
}
+789
View File
@@ -50,6 +50,8 @@ namespace MapoDb {
private selConfWeekDataTable tableselConfWeek;
private planHistStatMacDataTable tableplanHistStatMac;
private global::System.Data.DataRelation relationFK_MachineParams_ConfWeek;
private global::System.Data.DataRelation relationFK_MachineParams_ConfWeek1;
@@ -121,6 +123,9 @@ namespace MapoDb {
if ((ds.Tables["selConfWeek"] != null)) {
base.Tables.Add(new selConfWeekDataTable(ds.Tables["selConfWeek"]));
}
if ((ds.Tables["planHistStatMac"] != null)) {
base.Tables.Add(new planHistStatMacDataTable(ds.Tables["planHistStatMac"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -269,6 +274,16 @@ namespace MapoDb {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public planHistStatMacDataTable planHistStatMac {
get {
return this.tableplanHistStatMac;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -375,6 +390,9 @@ namespace MapoDb {
if ((ds.Tables["selConfWeek"] != null)) {
base.Tables.Add(new selConfWeekDataTable(ds.Tables["selConfWeek"]));
}
if ((ds.Tables["planHistStatMac"] != null)) {
base.Tables.Add(new planHistStatMacDataTable(ds.Tables["planHistStatMac"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -486,6 +504,12 @@ namespace MapoDb {
this.tableselConfWeek.InitVars();
}
}
this.tableplanHistStatMac = ((planHistStatMacDataTable)(base.Tables["planHistStatMac"]));
if ((initTable == true)) {
if ((this.tableplanHistStatMac != null)) {
this.tableplanHistStatMac.InitVars();
}
}
this.relationFK_MachineParams_ConfWeek = this.Relations["FK_MachineParams_ConfWeek"];
this.relationFK_MachineParams_ConfWeek1 = this.Relations["FK_MachineParams_ConfWeek1"];
}
@@ -524,6 +548,8 @@ namespace MapoDb {
base.Tables.Add(this.tableMachineParams);
this.tableselConfWeek = new selConfWeekDataTable();
base.Tables.Add(this.tableselConfWeek);
this.tableplanHistStatMac = new planHistStatMacDataTable();
base.Tables.Add(this.tableplanHistStatMac);
this.relationFK_MachineParams_ConfWeek = new global::System.Data.DataRelation("FK_MachineParams_ConfWeek", new global::System.Data.DataColumn[] {
this.tableConfWeek.CodConfAperColumn}, new global::System.Data.DataColumn[] {
this.tableMachineParams.CodConfAperColumn}, false);
@@ -612,6 +638,12 @@ namespace MapoDb {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private bool ShouldSerializeplanHistStatMac() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -706,6 +738,9 @@ namespace MapoDb {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void selConfWeekRowChangeEventHandler(object sender, selConfWeekRowChangeEvent e);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void planHistStatMacRowChangeEventHandler(object sender, planHistStatMacRowChangeEvent e);
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
@@ -5497,6 +5532,345 @@ namespace MapoDb {
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class planHistStatMacDataTable : global::System.Data.TypedTableBase<planHistStatMacRow> {
private global::System.Data.DataColumn columnIdxMacchina;
private global::System.Data.DataColumn columnOEE_All;
private global::System.Data.DataColumn columnOEE_1M;
private global::System.Data.DataColumn columnSetUp_All;
private global::System.Data.DataColumn columnSetUp_1M;
private global::System.Data.DataColumn columnWeekHrs;
private global::System.Data.DataColumn columnWeekHrs_1M;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public planHistStatMacDataTable() {
this.TableName = "planHistStatMac";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal planHistStatMacDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected planHistStatMacDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn IdxMacchinaColumn {
get {
return this.columnIdxMacchina;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn OEE_AllColumn {
get {
return this.columnOEE_All;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn OEE_1MColumn {
get {
return this.columnOEE_1M;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn SetUp_AllColumn {
get {
return this.columnSetUp_All;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn SetUp_1MColumn {
get {
return this.columnSetUp_1M;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn WeekHrsColumn {
get {
return this.columnWeekHrs;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn WeekHrs_1MColumn {
get {
return this.columnWeekHrs_1M;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public planHistStatMacRow this[int index] {
get {
return ((planHistStatMacRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event planHistStatMacRowChangeEventHandler planHistStatMacRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event planHistStatMacRowChangeEventHandler planHistStatMacRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event planHistStatMacRowChangeEventHandler planHistStatMacRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event planHistStatMacRowChangeEventHandler planHistStatMacRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void AddplanHistStatMacRow(planHistStatMacRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public planHistStatMacRow AddplanHistStatMacRow(string IdxMacchina, double OEE_All, double OEE_1M, double SetUp_All, double SetUp_1M, double WeekHrs, double WeekHrs_1M) {
planHistStatMacRow rowplanHistStatMacRow = ((planHistStatMacRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
IdxMacchina,
OEE_All,
OEE_1M,
SetUp_All,
SetUp_1M,
WeekHrs,
WeekHrs_1M};
rowplanHistStatMacRow.ItemArray = columnValuesArray;
this.Rows.Add(rowplanHistStatMacRow);
return rowplanHistStatMacRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public override global::System.Data.DataTable Clone() {
planHistStatMacDataTable cln = ((planHistStatMacDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new planHistStatMacDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.columnIdxMacchina = base.Columns["IdxMacchina"];
this.columnOEE_All = base.Columns["OEE_All"];
this.columnOEE_1M = base.Columns["OEE_1M"];
this.columnSetUp_All = base.Columns["SetUp_All"];
this.columnSetUp_1M = base.Columns["SetUp_1M"];
this.columnWeekHrs = base.Columns["WeekHrs"];
this.columnWeekHrs_1M = base.Columns["WeekHrs_1M"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitClass() {
this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnIdxMacchina);
this.columnOEE_All = new global::System.Data.DataColumn("OEE_All", typeof(double), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnOEE_All);
this.columnOEE_1M = new global::System.Data.DataColumn("OEE_1M", typeof(double), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnOEE_1M);
this.columnSetUp_All = new global::System.Data.DataColumn("SetUp_All", typeof(double), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnSetUp_All);
this.columnSetUp_1M = new global::System.Data.DataColumn("SetUp_1M", typeof(double), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnSetUp_1M);
this.columnWeekHrs = new global::System.Data.DataColumn("WeekHrs", typeof(double), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnWeekHrs);
this.columnWeekHrs_1M = new global::System.Data.DataColumn("WeekHrs_1M", typeof(double), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnWeekHrs_1M);
this.columnIdxMacchina.AllowDBNull = false;
this.columnIdxMacchina.MaxLength = 50;
this.columnOEE_All.ReadOnly = true;
this.columnOEE_1M.ReadOnly = true;
this.columnSetUp_All.ReadOnly = true;
this.columnSetUp_1M.ReadOnly = true;
this.columnWeekHrs.ReadOnly = true;
this.columnWeekHrs_1M.ReadOnly = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public planHistStatMacRow NewplanHistStatMacRow() {
return ((planHistStatMacRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new planHistStatMacRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(planHistStatMacRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.planHistStatMacRowChanged != null)) {
this.planHistStatMacRowChanged(this, new planHistStatMacRowChangeEvent(((planHistStatMacRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.planHistStatMacRowChanging != null)) {
this.planHistStatMacRowChanging(this, new planHistStatMacRowChangeEvent(((planHistStatMacRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.planHistStatMacRowDeleted != null)) {
this.planHistStatMacRowDeleted(this, new planHistStatMacRowChangeEvent(((planHistStatMacRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.planHistStatMacRowDeleting != null)) {
this.planHistStatMacRowDeleting(this, new planHistStatMacRowChangeEvent(((planHistStatMacRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void RemoveplanHistStatMacRow(planHistStatMacRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
DS_Plan ds = new DS_Plan();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "planHistStatMacDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
@@ -7463,6 +7837,200 @@ namespace MapoDb {
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class planHistStatMacRow : global::System.Data.DataRow {
private planHistStatMacDataTable tableplanHistStatMac;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal planHistStatMacRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableplanHistStatMac = ((planHistStatMacDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string IdxMacchina {
get {
return ((string)(this[this.tableplanHistStatMac.IdxMacchinaColumn]));
}
set {
this[this.tableplanHistStatMac.IdxMacchinaColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public double OEE_All {
get {
try {
return ((double)(this[this.tableplanHistStatMac.OEE_AllColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'OEE_All\' nella tabella \'planHistStatMac\' è DBNull.", e);
}
}
set {
this[this.tableplanHistStatMac.OEE_AllColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public double OEE_1M {
get {
try {
return ((double)(this[this.tableplanHistStatMac.OEE_1MColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'OEE_1M\' nella tabella \'planHistStatMac\' è DBNull.", e);
}
}
set {
this[this.tableplanHistStatMac.OEE_1MColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public double SetUp_All {
get {
try {
return ((double)(this[this.tableplanHistStatMac.SetUp_AllColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'SetUp_All\' nella tabella \'planHistStatMac\' è DBNull.", e);
}
}
set {
this[this.tableplanHistStatMac.SetUp_AllColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public double SetUp_1M {
get {
try {
return ((double)(this[this.tableplanHistStatMac.SetUp_1MColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'SetUp_1M\' nella tabella \'planHistStatMac\' è DBNull.", e);
}
}
set {
this[this.tableplanHistStatMac.SetUp_1MColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public double WeekHrs {
get {
try {
return ((double)(this[this.tableplanHistStatMac.WeekHrsColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'WeekHrs\' nella tabella \'planHistStatMac\' è DBNull.", e);
}
}
set {
this[this.tableplanHistStatMac.WeekHrsColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public double WeekHrs_1M {
get {
try {
return ((double)(this[this.tableplanHistStatMac.WeekHrs_1MColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'WeekHrs_1M\' nella tabella \'planHistStatMac\' è DBNull.", e);
}
}
set {
this[this.tableplanHistStatMac.WeekHrs_1MColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsOEE_AllNull() {
return this.IsNull(this.tableplanHistStatMac.OEE_AllColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetOEE_AllNull() {
this[this.tableplanHistStatMac.OEE_AllColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsOEE_1MNull() {
return this.IsNull(this.tableplanHistStatMac.OEE_1MColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetOEE_1MNull() {
this[this.tableplanHistStatMac.OEE_1MColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsSetUp_AllNull() {
return this.IsNull(this.tableplanHistStatMac.SetUp_AllColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetSetUp_AllNull() {
this[this.tableplanHistStatMac.SetUp_AllColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsSetUp_1MNull() {
return this.IsNull(this.tableplanHistStatMac.SetUp_1MColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetSetUp_1MNull() {
this[this.tableplanHistStatMac.SetUp_1MColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsWeekHrsNull() {
return this.IsNull(this.tableplanHistStatMac.WeekHrsColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetWeekHrsNull() {
this[this.tableplanHistStatMac.WeekHrsColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsWeekHrs_1MNull() {
return this.IsNull(this.tableplanHistStatMac.WeekHrs_1MColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetWeekHrs_1MNull() {
this[this.tableplanHistStatMac.WeekHrs_1MColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Row event argument class
///</summary>
@@ -7904,6 +8472,40 @@ namespace MapoDb {
}
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public class planHistStatMacRowChangeEvent : global::System.EventArgs {
private planHistStatMacRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public planHistStatMacRowChangeEvent(planHistStatMacRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public planHistStatMacRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
namespace MapoDb.DS_PlanTableAdapters {
@@ -11799,6 +12401,193 @@ SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Cod
}
}
/// <summary>
///Represents the connection and commands used to retrieve and save data.
///</summary>
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.ComponentModel.DataObjectAttribute(true)]
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public partial class planHistStatMacTableAdapter : global::System.ComponentModel.Component {
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
private global::System.Data.SqlClient.SqlConnection _connection;
private global::System.Data.SqlClient.SqlTransaction _transaction;
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
private bool _clearBeforeFill;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public planHistStatMacTableAdapter() {
this.ClearBeforeFill = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
get {
if ((this._adapter == null)) {
this.InitAdapter();
}
return this._adapter;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal global::System.Data.SqlClient.SqlConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
}
return this._connection;
}
set {
this._connection = value;
if ((this.Adapter.InsertCommand != null)) {
this.Adapter.InsertCommand.Connection = value;
}
if ((this.Adapter.DeleteCommand != null)) {
this.Adapter.DeleteCommand.Connection = value;
}
if ((this.Adapter.UpdateCommand != null)) {
this.Adapter.UpdateCommand.Connection = value;
}
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
if ((this.CommandCollection[i] != null)) {
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
}
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal global::System.Data.SqlClient.SqlTransaction Transaction {
get {
return this._transaction;
}
set {
this._transaction = value;
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
this.CommandCollection[i].Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.DeleteCommand != null))) {
this.Adapter.DeleteCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.InsertCommand != null))) {
this.Adapter.InsertCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.UpdateCommand != null))) {
this.Adapter.UpdateCommand.Transaction = this._transaction;
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
get {
if ((this._commandCollection == null)) {
this.InitCommandCollection();
}
return this._commandCollection;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool ClearBeforeFill {
get {
return this._clearBeforeFill;
}
set {
this._clearBeforeFill = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitAdapter() {
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "planHistStatMac";
tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina");
tableMapping.ColumnMappings.Add("OEE_All", "OEE_All");
tableMapping.ColumnMappings.Add("OEE_1M", "OEE_1M");
tableMapping.ColumnMappings.Add("SetUp_All", "SetUp_All");
tableMapping.ColumnMappings.Add("SetUp_1M", "SetUp_1M");
tableMapping.ColumnMappings.Add("WeekHrs", "WeekHrs");
tableMapping.ColumnMappings.Add("WeekHrs_1M", "WeekHrs_1M");
this._adapter.TableMappings.Add(tableMapping);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.SqlClient.SqlConnection();
this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonPro_ES3ConnectionString;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "dbo.stp_HPSM_filt";
this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
public virtual int Fill(DS_Plan.planHistStatMacDataTable dataTable, string IdxMacchina) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((IdxMacchina == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina));
}
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable);
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
public virtual DS_Plan.planHistStatMacDataTable GetData(string IdxMacchina) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((IdxMacchina == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina));
}
DS_Plan.planHistStatMacDataTable dataTable = new DS_Plan.planHistStatMacDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
}
/// <summary>
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///</summary>
+44
View File
@@ -734,6 +734,31 @@ FROM v_selConfWeek
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="planHistStatMacTableAdapter" GeneratorDataComponentClassName="planHistStatMacTableAdapter" Name="planHistStatMac" UserDataComponentName="planHistStatMacTableAdapter">
<MainSource>
<DbSource ConnectionRef="MoonPro_ES3ConnectionString (Settings)" DbObjectName="MoonPro_ES3.dbo.stp_HPSM_filt" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_HPSM_filt</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="IdxMacchina" DataSetColumn="IdxMacchina" />
<Mapping SourceColumn="OEE_All" DataSetColumn="OEE_All" />
<Mapping SourceColumn="OEE_1M" DataSetColumn="OEE_1M" />
<Mapping SourceColumn="SetUp_All" DataSetColumn="SetUp_All" />
<Mapping SourceColumn="SetUp_1M" DataSetColumn="SetUp_1M" />
<Mapping SourceColumn="WeekHrs" DataSetColumn="WeekHrs" />
<Mapping SourceColumn="WeekHrs_1M" DataSetColumn="WeekHrs_1M" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -1172,6 +1197,25 @@ FROM v_selConfWeek
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="planHistStatMac" msprop:Generator_TableClassName="planHistStatMacDataTable" msprop:Generator_TableVarName="tableplanHistStatMac" msprop:Generator_TablePropName="planHistStatMac" msprop:Generator_RowDeletingName="planHistStatMacRowDeleting" msprop:Generator_RowChangingName="planHistStatMacRowChanging" msprop:Generator_RowEvHandlerName="planHistStatMacRowChangeEventHandler" msprop:Generator_RowDeletedName="planHistStatMacRowDeleted" msprop:Generator_UserTableName="planHistStatMac" msprop:Generator_RowChangedName="planHistStatMacRowChanged" msprop:Generator_RowEvArgName="planHistStatMacRowChangeEvent" msprop:Generator_RowClassName="planHistStatMacRow">
<xs:complexType>
<xs:sequence>
<xs:element name="IdxMacchina" msprop:Generator_ColumnVarNameInTable="columnIdxMacchina" msprop:Generator_ColumnPropNameInRow="IdxMacchina" msprop:Generator_ColumnPropNameInTable="IdxMacchinaColumn" msprop:Generator_UserColumnName="IdxMacchina">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="OEE_All" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnOEE_All" msprop:Generator_ColumnPropNameInRow="OEE_All" msprop:Generator_ColumnPropNameInTable="OEE_AllColumn" msprop:Generator_UserColumnName="OEE_All" type="xs:double" minOccurs="0" />
<xs:element name="OEE_1M" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnOEE_1M" msprop:Generator_ColumnPropNameInRow="OEE_1M" msprop:Generator_ColumnPropNameInTable="OEE_1MColumn" msprop:Generator_UserColumnName="OEE_1M" type="xs:double" minOccurs="0" />
<xs:element name="SetUp_All" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnSetUp_All" msprop:Generator_ColumnPropNameInRow="SetUp_All" msprop:Generator_ColumnPropNameInTable="SetUp_AllColumn" msprop:Generator_UserColumnName="SetUp_All" type="xs:double" minOccurs="0" />
<xs:element name="SetUp_1M" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnSetUp_1M" msprop:Generator_ColumnPropNameInRow="SetUp_1M" msprop:Generator_ColumnPropNameInTable="SetUp_1MColumn" msprop:Generator_UserColumnName="SetUp_1M" type="xs:double" minOccurs="0" />
<xs:element name="WeekHrs" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnWeekHrs" msprop:Generator_ColumnPropNameInRow="WeekHrs" msprop:Generator_ColumnPropNameInTable="WeekHrsColumn" msprop:Generator_UserColumnName="WeekHrs" type="xs:double" minOccurs="0" />
<xs:element name="WeekHrs_1M" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnWeekHrs_1M" msprop:Generator_ColumnPropNameInRow="WeekHrs_1M" msprop:Generator_ColumnPropNameInTable="WeekHrs_1MColumn" msprop:Generator_UserColumnName="WeekHrs_1M" type="xs:double" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
+21 -20
View File
@@ -4,24 +4,25 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="194" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="81" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:planStatsGlobal" ZOrder="12" X="108" Y="55" Height="227" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
<Shape ID="DesignTable:planStatsArt" ZOrder="14" X="448" Y="61" Height="250" Width="255" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="168" />
<Shape ID="DesignTable:planStatsGroup" ZOrder="15" X="113" Y="292" Height="204" Width="278" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
<Shape ID="DesignTable:planStatsMacc" ZOrder="13" X="437" Y="357" Height="227" Width="270" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
<Shape ID="DesignTable:Richieste" ZOrder="9" X="91" Y="651" Height="457" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
<Shape ID="DesignTable:PromesseIN" ZOrder="11" X="484" Y="681" Height="365" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
<Shape ID="DesignTable:PromesseOUT" ZOrder="10" X="833" Y="591" Height="457" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
<Shape ID="DesignTable:ConfWeek" ZOrder="8" X="739" Y="56" Height="267" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
<Shape ID="DesignTable:CalStop" ZOrder="7" X="950" Y="61" Height="215" Width="223" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="89" />
<Shape ID="DesignTable:CalDisp" ZOrder="2" X="1169" Y="630" Height="191" Width="248" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:ConfWeek1" ZOrder="6" X="1207" Y="71" Height="319" Width="249" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="260" />
<Shape ID="DesignTable:MachineParams" ZOrder="5" X="899" Y="342" Height="230" Width="221" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
<Shape ID="DesignTable:selConfWeek" ZOrder="1" X="1187" Y="975" Height="115" Width="220" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:planStatsGlobal" ZOrder="13" X="108" Y="55" Height="191" Width="226" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:planStatsArt" ZOrder="15" X="448" Y="61" Height="210" Width="217" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:planStatsGroup" ZOrder="16" X="106" Y="255" Height="172" Width="226" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:planStatsMacc" ZOrder="14" X="448" Y="292" Height="191" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:Richieste" ZOrder="10" X="90" Y="676" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:PromesseIN" ZOrder="12" X="484" Y="681" Height="305" Width="214" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:PromesseOUT" ZOrder="11" X="833" Y="591" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:ConfWeek" ZOrder="9" X="739" Y="56" Height="267" Width="205" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
<Shape ID="DesignTable:CalStop" ZOrder="8" X="950" Y="61" Height="153" Width="276" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:CalDisp" ZOrder="3" X="1169" Y="630" Height="191" Width="273" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:ConfWeek1" ZOrder="7" X="1207" Y="71" Height="267" Width="212" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
<Shape ID="DesignTable:MachineParams" ZOrder="6" X="899" Y="342" Height="210" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:selConfWeek" ZOrder="2" X="1187" Y="975" Height="115" Width="220" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:planHistStatMac" ZOrder="1" X="106" Y="437" Height="210" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_MachineParams_ConfWeek" ZOrder="4" LineWidth="11">
<Connector ID="DesignRelation:FK_MachineParams_ConfWeek" ZOrder="5" LineWidth="11">
<RoutePoints>
<Point>
<X>826</X>
@@ -37,18 +38,18 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_MachineParams_ConfWeek1" ZOrder="3" LineWidth="11">
<Connector ID="DesignRelation:FK_MachineParams_ConfWeek1" ZOrder="4" LineWidth="11">
<RoutePoints>
<Point>
<X>1441</X>
<Y>390</Y>
<X>1419</X>
<Y>338</Y>
</Point>
<Point>
<X>1441</X>
<X>1419</X>
<Y>482</Y>
</Point>
<Point>
<X>1120</X>
<X>1199</X>
<Y>482</Y>
</Point>
</RoutePoints>