diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/BasePlcHelper.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/BasePlcHelper.cs
index 5eb0437..1719838 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/BasePlcHelper.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/BasePlcHelper.cs
@@ -2008,6 +2008,46 @@ namespace Mesnac.Action.ChemicalWeighing
+
+
+
+
+
+
+ public DataKeyValue enableDB_B1 { get; set; }
+ public DataKeyValue enableDB_B2 { get; set; }
+ public DataKeyValue enableDB_B3 { get; set; }
+ public DataKeyValue enableDB_B4 { get; set; }
+ public DataKeyValue enableDB_B5 { get; set; }
+ public DataKeyValue enableDB_B6 { get; set; }
+ public DataKeyValue enableDB_B7 { get; set; }
+ public DataKeyValue enableDB_B8 { get; set; }
+ public DataKeyValue enableDB_B9 { get; set; }
+ public DataKeyValue enableDB_B10 { get; set; }
+ public DataKeyValue enableDB_B11 { get; set; }
+ public DataKeyValue enableDB_B12 { get; set; }
+ public DataKeyValue enableWater_S1 { get; set; }
+ public DataKeyValue enableWater_S2 { get; set; }
+ public DataKeyValue enableDryD1 { get; set; }
+ public DataKeyValue enableDryD2 { get; set; }
+ public DataKeyValue enableDryD3 { get; set; }
+ public DataKeyValue enableDryD4 { get; set; }
+ public DataKeyValue enableDryG1 { get; set; }
+ public DataKeyValue enableDryG2 { get; set; }
+ public DataKeyValue enableDryG3 { get; set; }
+ public DataKeyValue enableDryG4 { get; set; }
+ public DataKeyValue enableDryG5 { get; set; }
+ public DataKeyValue enableDryG6 { get; set; }
+ public DataKeyValue enableDryG7 { get; set; }
+ public DataKeyValue enableDryG8 { get; set; }
+ public DataKeyValue enableDryM1 { get; set; }
+ public DataKeyValue enableDryM2 { get; set; }
+ public DataKeyValue enableDryM3 { get; set; }
+ public DataKeyValue enableDryM4 { get; set; }
+ public DataKeyValue enableDryM5 { get; set; }
+ public DataKeyValue enableDryM6 { get; set; }
+ public DataKeyValue enableDryM7 { get; set; }
+ public DataKeyValue enableDryM8 { get; set; }
public DataKeyValue DryerD1Recip0_Bin { get; set; }
public DataKeyValue DryerD1Recip0_Set { get; set; }
public DataKeyValue DryerD1Recip0_Tolerance { get; set; }
@@ -2586,52 +2626,52 @@ namespace Mesnac.Action.ChemicalWeighing
public DataKeyValue Gelat_G8Recip1_Bin { get; set; }
public DataKeyValue Gelat_G8Recip1_Set { get; set; }
public DataKeyValue Gelat_G8Recip1_Tolerance { get; set; }
- public DataKeyValue WaterSC_G9_RD_Recip0_Bin { get; set; }
- public DataKeyValue WaterSC_G9_RD_Recip0_Set { get; set; }
- public DataKeyValue WaterSC_G9_RD_Recip0_Tolerance { get; set; }
- public DataKeyValue WaterSC_G9_RD_Recip1_Bin { get; set; }
- public DataKeyValue WaterSC_G9_RD_Recip1_Set { get; set; }
- public DataKeyValue WaterSC_G9_RD_Recip1_Tolerance { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step0_mixCode { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step0_mixTime { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step0_mixTemp { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step0_mixSpeed { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step1_mixCode { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step1_mixTime { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step1_mixTemp { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step1_mixSpeed { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step2_mixCode { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step2_mixTime { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step2_mixTemp { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step2_mixSpeed { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step3_mixCode { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step3_mixTime { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step3_mixTemp { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step3_mixSpeed { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step4_mixCode { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step4_mixTime { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step4_mixTemp { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step4_mixSpeed { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step5_mixCode { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step5_mixTime { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step5_mixTemp { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step5_mixSpeed { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step6_mixCode { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step6_mixTime { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step6_mixTemp { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step6_mixSpeed { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step7_mixCode { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step7_mixTime { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step7_mixTemp { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step7_mixSpeed { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step8_mixCode { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step8_mixTime { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step8_mixTemp { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step8_mixSpeed { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step9_mixCode { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step9_mixTime { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step9_mixTemp { get; set; }
- public DataKeyValue WaterSC_G9_RD_Step9_mixSpeed { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Recip0_Bin { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Recip0_Set { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Recip0_Tolerance { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Recip1_Bin { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Recip1_Set { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Recip1_Tolerance { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step0_mixCode { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step0_mixTime { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step0_mixTemp { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step0_mixSpeed { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step1_mixCode { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step1_mixTime { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step1_mixTemp { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step1_mixSpeed { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step2_mixCode { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step2_mixTime { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step2_mixTemp { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step2_mixSpeed { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step3_mixCode { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step3_mixTime { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step3_mixTemp { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step3_mixSpeed { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step4_mixCode { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step4_mixTime { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step4_mixTemp { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step4_mixSpeed { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step5_mixCode { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step5_mixTime { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step5_mixTemp { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step5_mixSpeed { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step6_mixCode { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step6_mixTime { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step6_mixTemp { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step6_mixSpeed { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step7_mixCode { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step7_mixTime { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step7_mixTemp { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step7_mixSpeed { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step8_mixCode { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step8_mixTime { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step8_mixTemp { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step8_mixSpeed { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step9_mixCode { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step9_mixTime { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step9_mixTemp { get; set; }
+ public DataKeyValue WaterSC_G8_RD_Step9_mixSpeed { get; set; }
public DataKeyValue Weter_M1Step0_mixCode { get; set; }
public DataKeyValue Weter_M1Step0_mixTime { get; set; }
public DataKeyValue Weter_M1Step0_mixTemp { get; set; }
@@ -3088,12 +3128,15 @@ namespace Mesnac.Action.ChemicalWeighing
public DataKeyValue Weter_M8Step5_mixSpeed { get; set; }
public DataKeyValue Weter_M8Step5_setValue { get; set; }
public DataKeyValue Weter_M8Step5_tolerance { get; set; }
+
public DataKeyValue Weter_M8Step6_mixCode { get; set; }
public DataKeyValue Weter_M8Step6_mixTime { get; set; }
public DataKeyValue Weter_M8Step6_mixTemp { get; set; }
public DataKeyValue Weter_M8Step6_mixSpeed { get; set; }
public DataKeyValue Weter_M8Step6_setValue { get; set; }
public DataKeyValue Weter_M8Step6_tolerance { get; set; }
+
+
public DataKeyValue Weter_M8Step7_mixCode { get; set; }
public DataKeyValue Weter_M8Step7_mixTime { get; set; }
public DataKeyValue Weter_M8Step7_mixTemp { get; set; }
@@ -3115,11 +3158,5 @@ namespace Mesnac.Action.ChemicalWeighing
-
- public DataKeyValue test { get; set; }
- public DataKeyValue tst0 { get; set; }
- public DataKeyValue tst1 { get; set; }
- public DataKeyValue tst2 { get; set; }
-
}
}
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixA.Designer.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixA.Designer.cs
new file mode 100644
index 0000000..4315a09
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixA.Designer.cs
@@ -0,0 +1,145 @@
+using System.ComponentModel;
+using System.Drawing;
+using System.Windows.Forms;
+
+namespace Mesnac.Action.ChemicalWeighing.LjMixManager
+{
+ partial class FrmMixA
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.btnCancel = new System.Windows.Forms.Button();
+ this.btnOK = new System.Windows.Forms.Button();
+ this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.DrpMixA = new System.Windows.Forms.ComboBox();
+ this.label5 = new System.Windows.Forms.Label();
+ this.DrpMetageA = new System.Windows.Forms.ComboBox();
+ this.label4 = new System.Windows.Forms.Label();
+ this.groupBox1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // btnCancel
+ //
+ this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+ this.btnCancel.Location = new System.Drawing.Point(290, 421);
+ this.btnCancel.Margin = new System.Windows.Forms.Padding(5);
+ this.btnCancel.Name = "btnCancel";
+ this.btnCancel.Size = new System.Drawing.Size(98, 45);
+ this.btnCancel.TabIndex = 68;
+ this.btnCancel.Text = "取消";
+ this.btnCancel.UseVisualStyleBackColor = true;
+ this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
+ //
+ // btnOK
+ //
+ this.btnOK.Location = new System.Drawing.Point(118, 421);
+ this.btnOK.Margin = new System.Windows.Forms.Padding(5);
+ this.btnOK.Name = "btnOK";
+ this.btnOK.Size = new System.Drawing.Size(98, 45);
+ this.btnOK.TabIndex = 67;
+ this.btnOK.Text = "确认";
+ this.btnOK.UseVisualStyleBackColor = true;
+ this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
+ //
+ // groupBox1
+ //
+ this.groupBox1.Controls.Add(this.DrpMixA);
+ this.groupBox1.Controls.Add(this.label5);
+ this.groupBox1.Controls.Add(this.DrpMetageA);
+ this.groupBox1.Controls.Add(this.label4);
+ this.groupBox1.Location = new System.Drawing.Point(60, 182);
+ this.groupBox1.Margin = new System.Windows.Forms.Padding(2);
+ this.groupBox1.Name = "groupBox1";
+ this.groupBox1.Padding = new System.Windows.Forms.Padding(2);
+ this.groupBox1.Size = new System.Drawing.Size(426, 127);
+ this.groupBox1.TabIndex = 64;
+ this.groupBox1.TabStop = false;
+ this.groupBox1.Text = "干混机";
+ //
+ // DrpMixA
+ //
+ this.DrpMixA.FormattingEnabled = true;
+ this.DrpMixA.Location = new System.Drawing.Point(121, 73);
+ this.DrpMixA.Name = "DrpMixA";
+ this.DrpMixA.Size = new System.Drawing.Size(126, 20);
+ this.DrpMixA.TabIndex = 52;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(27, 75);
+ this.label5.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(59, 12);
+ this.label5.TabIndex = 49;
+ this.label5.Text = "混合步骤:";
+ //
+ // DrpMetageA
+ //
+ this.DrpMetageA.FormattingEnabled = true;
+ this.DrpMetageA.Location = new System.Drawing.Point(121, 39);
+ this.DrpMetageA.Name = "DrpMetageA";
+ this.DrpMetageA.Size = new System.Drawing.Size(126, 20);
+ this.DrpMetageA.TabIndex = 52;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(27, 41);
+ this.label4.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(59, 12);
+ this.label4.TabIndex = 49;
+ this.label4.Text = "粉料称量:";
+ //
+ // FrmMixA
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(546, 699);
+ this.Controls.Add(this.btnCancel);
+ this.Controls.Add(this.btnOK);
+ this.Controls.Add(this.groupBox1);
+ this.Name = "FrmMixA";
+ this.Text = "干混机配方管理";
+ this.groupBox1.ResumeLayout(false);
+ this.groupBox1.PerformLayout();
+ this.ResumeLayout(false);
+ }
+
+ private System.Windows.Forms.Button btnCancel;
+ private System.Windows.Forms.Button btnOK;
+ private System.Windows.Forms.GroupBox groupBox1;
+ private System.Windows.Forms.ComboBox DrpMixA;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.ComboBox DrpMetageA;
+ private System.Windows.Forms.Label label4;
+
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixA.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixA.cs
new file mode 100644
index 0000000..a91de95
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixA.cs
@@ -0,0 +1,85 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Windows.Forms;
+using DevExpress.Utils;
+using Mesnac.Action.ChemicalWeighing.LjMaterial;
+using Mesnac.Action.ChemicalWeighing.LjMetageFormula;
+using Mesnac.Action.ChemicalWeighing.LjMixFormula;
+
+namespace Mesnac.Action.ChemicalWeighing.LjMixManager
+{
+ public partial class FrmMixA : Form
+ {
+ public FrmMixA()
+ {
+ InitializeComponent();
+ }
+
+ private int _id = 0;
+
+ public FrmMixA(int id) : this()
+ {
+ this._id = id;
+
+ FillController();
+ }
+
+ private LjMixManagerView view;
+ private void FillController()
+ {
+ view = LjMixManagerDb.GetById(_id);
+ IEnumerable ien = MetageFormulaDb.GetMetageNmaValue();
+
+ var drpA = ien.ToList();
+ FillComboBox(DrpMetageA);
+ DrpMetageA.DataSource = drpA;
+ Checked(DrpMetageA, view.MetageAId);
+
+ var lsAMixList = MixDb.GetMyNameValueStrs(2);
+ FillComboBox(DrpMixA);
+ DrpMixA.DataSource = lsAMixList;
+ Checked(DrpMixA,view.MixAId);
+ }
+
+
+
+ private void btnCancel_Click(object sender, EventArgs e)
+ {
+ this.Close();
+
+ }
+
+ private void FillComboBox(ComboBox combo)
+ {
+ combo.ValueMember = "Id";
+ combo.DisplayMember = "Name";
+ }
+
+ private void Checked(ComboBox alBox,string checkId)
+ {
+ foreach (MyNameValueStr combo in alBox.Items)
+ {
+ if (combo.Id == checkId)
+ {
+ alBox.SelectedItem = combo;
+ break;
+ }
+ }
+ }
+
+ private void btnOK_Click(object sender, EventArgs e)
+ {
+ view.MetageAId = DrpMetageA.SelectedValue.ToString();
+ view.MetageAName = DrpMetageA.Text;
+
+ view.MixAId = DrpMixA.SelectedValue.ToString();
+ view.MixAName = DrpMixA.Text;
+ view.UpdateTime=DateTime.Now;
+
+ LjMixManagerDb.UpdateMixA(view);
+ view.Id = _id;
+ this.DialogResult = DialogResult.OK;
+ }
+ }
+}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixA.resx b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixA.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixA.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixB.Designer.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixB.Designer.cs
new file mode 100644
index 0000000..b7826e8
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixB.Designer.cs
@@ -0,0 +1,165 @@
+namespace Mesnac.Action.ChemicalWeighing.LjMixManager
+{
+ partial class FrmMixB
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.btnCancel = new System.Windows.Forms.Button();
+ this.btnOK = new System.Windows.Forms.Button();
+ this.groupBox2 = new System.Windows.Forms.GroupBox();
+ this.DrpMixB = new System.Windows.Forms.ComboBox();
+ this.label8 = new System.Windows.Forms.Label();
+ this.DrpMetageB2 = new System.Windows.Forms.ComboBox();
+ this.label6 = new System.Windows.Forms.Label();
+ this.DrpMetageB1 = new System.Windows.Forms.ComboBox();
+ this.label7 = new System.Windows.Forms.Label();
+ this.groupBox2.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // btnCancel
+ //
+ this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+ this.btnCancel.Location = new System.Drawing.Point(282, 444);
+ this.btnCancel.Margin = new System.Windows.Forms.Padding(5);
+ this.btnCancel.Name = "btnCancel";
+ this.btnCancel.Size = new System.Drawing.Size(98, 45);
+ this.btnCancel.TabIndex = 67;
+ this.btnCancel.Text = "取消";
+ this.btnCancel.UseVisualStyleBackColor = true;
+ this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
+ //
+ // btnOK
+ //
+ this.btnOK.Location = new System.Drawing.Point(110, 444);
+ this.btnOK.Margin = new System.Windows.Forms.Padding(5);
+ this.btnOK.Name = "btnOK";
+ this.btnOK.Size = new System.Drawing.Size(98, 45);
+ this.btnOK.TabIndex = 66;
+ this.btnOK.Text = "确认";
+ this.btnOK.UseVisualStyleBackColor = true;
+ this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
+ //
+ // groupBox2
+ //
+ this.groupBox2.Controls.Add(this.DrpMixB);
+ this.groupBox2.Controls.Add(this.label8);
+ this.groupBox2.Controls.Add(this.DrpMetageB2);
+ this.groupBox2.Controls.Add(this.label6);
+ this.groupBox2.Controls.Add(this.DrpMetageB1);
+ this.groupBox2.Controls.Add(this.label7);
+ this.groupBox2.Location = new System.Drawing.Point(77, 121);
+ this.groupBox2.Margin = new System.Windows.Forms.Padding(2);
+ this.groupBox2.Name = "groupBox2";
+ this.groupBox2.Padding = new System.Windows.Forms.Padding(2);
+ this.groupBox2.Size = new System.Drawing.Size(426, 157);
+ this.groupBox2.TabIndex = 64;
+ this.groupBox2.TabStop = false;
+ this.groupBox2.Text = "糊化机";
+ //
+ // DrpMixB
+ //
+ this.DrpMixB.FormattingEnabled = true;
+ this.DrpMixB.Location = new System.Drawing.Point(121, 103);
+ this.DrpMixB.Name = "DrpMixB";
+ this.DrpMixB.Size = new System.Drawing.Size(126, 20);
+ this.DrpMixB.TabIndex = 52;
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(27, 108);
+ this.label8.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(59, 12);
+ this.label8.TabIndex = 49;
+ this.label8.Text = "混合步骤:";
+ //
+ // DrpMetageB2
+ //
+ this.DrpMetageB2.FormattingEnabled = true;
+ this.DrpMetageB2.Location = new System.Drawing.Point(121, 73);
+ this.DrpMetageB2.Name = "DrpMetageB2";
+ this.DrpMetageB2.Size = new System.Drawing.Size(126, 20);
+ this.DrpMetageB2.TabIndex = 52;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(27, 75);
+ this.label6.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(47, 12);
+ this.label6.TabIndex = 49;
+ this.label6.Text = "水称量:";
+ //
+ // DrpMetageB1
+ //
+ this.DrpMetageB1.FormattingEnabled = true;
+ this.DrpMetageB1.Location = new System.Drawing.Point(121, 39);
+ this.DrpMetageB1.Name = "DrpMetageB1";
+ this.DrpMetageB1.Size = new System.Drawing.Size(126, 20);
+ this.DrpMetageB1.TabIndex = 52;
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(27, 41);
+ this.label7.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(59, 12);
+ this.label7.TabIndex = 49;
+ this.label7.Text = "粉料称量:";
+ //
+ // FrmMixB
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(573, 742);
+ this.Controls.Add(this.btnCancel);
+ this.Controls.Add(this.btnOK);
+ this.Controls.Add(this.groupBox2);
+ this.Name = "FrmMixB";
+ this.Text = "FrmMixB";
+ this.groupBox2.ResumeLayout(false);
+ this.groupBox2.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button btnCancel;
+ private System.Windows.Forms.Button btnOK;
+ private System.Windows.Forms.GroupBox groupBox2;
+ private System.Windows.Forms.ComboBox DrpMixB;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.ComboBox DrpMetageB2;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.ComboBox DrpMetageB1;
+ private System.Windows.Forms.Label label7;
+ }
+}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixB.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixB.cs
new file mode 100644
index 0000000..e9a0898
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixB.cs
@@ -0,0 +1,105 @@
+using Mesnac.Action.ChemicalWeighing.LjMaterial;
+using Mesnac.Action.ChemicalWeighing.LjMetageFormula;
+using Mesnac.Action.ChemicalWeighing.LjMixFormula;
+using Mesnac.Action.ChemicalWeighing.LjProdcutLine;
+
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Mesnac.Action.ChemicalWeighing.LjMixManager
+{
+ ///
+ ///
+ ///
+ public partial class FrmMixB : Form
+ {
+ public FrmMixB()
+ {
+ InitializeComponent();
+ }
+ private int _id = 0;
+
+ public FrmMixB(int id) : this()
+ {
+ _id = id;
+ FillController();
+ }
+
+ private LjMixManagerView _view;
+
+ private void FillController()
+ {
+
+
+
+ IEnumerable ien = MetageFormulaDb.GetMetageNmaValue();
+ var drpA = ien.ToList();
+ var drpB = ien.ToList();
+ var drpC = ien.ToList();
+
+
+
+
+ FillComboBox(DrpMetageB1);
+ DrpMetageB1.DataSource = drpB;
+ FillComboBox(DrpMetageB2);
+ DrpMetageB2.DataSource = drpC;
+ var lsBMixList = MixDb.GetMyNameValueStrs(1);
+ DrpMixB.DataSource = lsBMixList;
+ FillComboBox(DrpMixB);
+ _view = LjMixManagerDb.GetById(_id);
+ Checked(DrpMetageB1, _view.MetageB1Id);
+ Checked(DrpMetageB2, _view.MetageB2Id);
+ Checked(DrpMixB, _view.MixBId);
+
+
+ }
+
+
+ private void btnCancel_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+
+
+
+ private void FillComboBox(ComboBox combo)
+ {
+ combo.ValueMember = "Id";
+ combo.DisplayMember = "Name";
+ }
+
+ private void Checked(ComboBox alBox, string checkId)
+ {
+ foreach (MyNameValueStr combo in alBox.Items)
+ {
+ if (combo.Id == checkId)
+ {
+ alBox.SelectedItem = combo;
+ break;
+ }
+ }
+ }
+
+ private void btnOK_Click(object sender, EventArgs e)
+ {
+
+ _view.Id = _id;
+ _view.MetageB1Id = DrpMetageB1.SelectedValue.ToString();
+ _view.MetageB1Name = DrpMetageB1.Text;
+ _view.MetageB2Id = DrpMetageB2.SelectedValue.ToString();
+ _view.MetageB2Name = DrpMetageB2.Text;
+ _view.MixBId = DrpMixB.SelectedValue.ToString();
+ _view.MixBName=DrpMixB.Text;
+ LjMixManagerDb.UpdateMixB(_view);
+ this.DialogResult = DialogResult.OK;
+ }
+ }
+}
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixB.resx b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixB.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixB.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixC.Designer.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixC.Designer.cs
new file mode 100644
index 0000000..a319d05
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixC.Designer.cs
@@ -0,0 +1,116 @@
+namespace Mesnac.Action.ChemicalWeighing.LjMixManager
+{
+ partial class FrmMixC
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.btnCancel = new System.Windows.Forms.Button();
+ this.btnOK = new System.Windows.Forms.Button();
+ this.groupBox3 = new System.Windows.Forms.GroupBox();
+ this.DrpMixC = new System.Windows.Forms.ComboBox();
+ this.label9 = new System.Windows.Forms.Label();
+ this.groupBox3.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // btnCancel
+ //
+ this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+ this.btnCancel.Location = new System.Drawing.Point(271, 336);
+ this.btnCancel.Margin = new System.Windows.Forms.Padding(5);
+ this.btnCancel.Name = "btnCancel";
+ this.btnCancel.Size = new System.Drawing.Size(98, 45);
+ this.btnCancel.TabIndex = 66;
+ this.btnCancel.Text = "取消";
+ this.btnCancel.UseVisualStyleBackColor = true;
+ this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
+ //
+ // btnOK
+ //
+ this.btnOK.Location = new System.Drawing.Point(99, 336);
+ this.btnOK.Margin = new System.Windows.Forms.Padding(5);
+ this.btnOK.Name = "btnOK";
+ this.btnOK.Size = new System.Drawing.Size(98, 45);
+ this.btnOK.TabIndex = 65;
+ this.btnOK.Text = "确认";
+ this.btnOK.UseVisualStyleBackColor = true;
+ this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
+ //
+ // groupBox3
+ //
+ this.groupBox3.Controls.Add(this.DrpMixC);
+ this.groupBox3.Controls.Add(this.label9);
+ this.groupBox3.Location = new System.Drawing.Point(52, 70);
+ this.groupBox3.Margin = new System.Windows.Forms.Padding(2);
+ this.groupBox3.Name = "groupBox3";
+ this.groupBox3.Padding = new System.Windows.Forms.Padding(2);
+ this.groupBox3.Size = new System.Drawing.Size(426, 127);
+ this.groupBox3.TabIndex = 64;
+ this.groupBox3.TabStop = false;
+ this.groupBox3.Text = "湿混机";
+ //
+ // DrpMixC
+ //
+ this.DrpMixC.FormattingEnabled = true;
+ this.DrpMixC.Location = new System.Drawing.Point(121, 73);
+ this.DrpMixC.Name = "DrpMixC";
+ this.DrpMixC.Size = new System.Drawing.Size(126, 20);
+ this.DrpMixC.TabIndex = 52;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(27, 75);
+ this.label9.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(59, 12);
+ this.label9.TabIndex = 49;
+ this.label9.Text = "混合步骤:";
+ //
+ // FrmMixC
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(565, 618);
+ this.Controls.Add(this.btnCancel);
+ this.Controls.Add(this.btnOK);
+ this.Controls.Add(this.groupBox3);
+ this.Name = "FrmMixC";
+ this.Text = "FrmMixC";
+ this.groupBox3.ResumeLayout(false);
+ this.groupBox3.PerformLayout();
+ this.ResumeLayout(false);
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button btnCancel;
+ private System.Windows.Forms.Button btnOK;
+ private System.Windows.Forms.GroupBox groupBox3;
+ private System.Windows.Forms.ComboBox DrpMixC;
+ private System.Windows.Forms.Label label9;
+ }
+}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixC.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixC.cs
new file mode 100644
index 0000000..ccd10e6
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixC.cs
@@ -0,0 +1,76 @@
+using Mesnac.Action.ChemicalWeighing.LjMaterial;
+using Mesnac.Action.ChemicalWeighing.LjMixFormula;
+using Mesnac.Action.ChemicalWeighing.LjPlanning;
+
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Mesnac.Action.ChemicalWeighing.LjMixManager
+{
+ public partial class FrmMixC : Form
+ {
+ public FrmMixC()
+ {
+ InitializeComponent();
+ }
+
+ private int _id = 0;
+ private LjMixManagerView _view;
+ public FrmMixC(int id) : this()
+ {
+ this._id = id;
+ var lsCMixList = MixDb.GetMyNameValueStrs(3);
+ DrpMixC.DataSource = lsCMixList;
+ FillComboBox(DrpMixC);
+
+
+ _view = LjMixManagerDb.GetById(_id);
+ if (_view != null)
+ {
+ Checked(DrpMixC, _view.MixCId);
+
+ }
+
+ }
+
+ private void FillComboBox(ComboBox combo)
+ {
+ combo.ValueMember = "Id";
+ combo.DisplayMember = "Name";
+ }
+
+ private void Checked(ComboBox alBox, string checkId)
+ {
+ foreach (MyNameValueStr combo in alBox.Items)
+ {
+ if (combo.Id == checkId)
+ {
+ alBox.SelectedItem = combo;
+ break;
+ }
+ }
+ }
+
+ private void btnCancel_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+
+ private void btnOK_Click(object sender, EventArgs e)
+ {
+ _view.Id = _id;
+ _view.MixCId = DrpMixC.SelectedValue.ToString();
+ _view.MixCName = DrpMixC.Text;
+
+ LjMixManagerDb.UpdateMixC(_view);
+ this.DialogResult = DialogResult.OK;
+ }
+ }
+}
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixC.resx b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixC.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixC.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixManager.Designer.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixManager.Designer.cs
new file mode 100644
index 0000000..f5891ab
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixManager.Designer.cs
@@ -0,0 +1,273 @@
+using System.ComponentModel;
+using System.Drawing;
+using System.Windows.Forms;
+
+namespace Mesnac.Action.ChemicalWeighing.LjMixManager
+{
+ partial class FrmMixManager
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.groupBox3 = new System.Windows.Forms.GroupBox();
+ this.DrpMixC = new System.Windows.Forms.ComboBox();
+ this.label9 = new System.Windows.Forms.Label();
+ this.groupBox2 = new System.Windows.Forms.GroupBox();
+ this.DrpMixB = new System.Windows.Forms.ComboBox();
+ this.label8 = new System.Windows.Forms.Label();
+ this.DrpMetageB2 = new System.Windows.Forms.ComboBox();
+ this.label6 = new System.Windows.Forms.Label();
+ this.DrpMetageB1 = new System.Windows.Forms.ComboBox();
+ this.label7 = new System.Windows.Forms.Label();
+ this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.DrpMixA = new System.Windows.Forms.ComboBox();
+ this.label5 = new System.Windows.Forms.Label();
+ this.DrpMetageA = new System.Windows.Forms.ComboBox();
+ this.label4 = new System.Windows.Forms.Label();
+ this.btnCancel = new System.Windows.Forms.Button();
+ this.btnOK = new System.Windows.Forms.Button();
+ this.groupBox3.SuspendLayout();
+ this.groupBox2.SuspendLayout();
+ this.groupBox1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // groupBox3
+ //
+ this.groupBox3.Controls.Add(this.DrpMixC);
+ this.groupBox3.Controls.Add(this.label9);
+ this.groupBox3.Location = new System.Drawing.Point(94, 423);
+ this.groupBox3.Margin = new System.Windows.Forms.Padding(2);
+ this.groupBox3.Name = "groupBox3";
+ this.groupBox3.Padding = new System.Windows.Forms.Padding(2);
+ this.groupBox3.Size = new System.Drawing.Size(426, 127);
+ this.groupBox3.TabIndex = 61;
+ this.groupBox3.TabStop = false;
+ this.groupBox3.Text = "湿混机";
+ //
+ // DrpMixC
+ //
+ this.DrpMixC.FormattingEnabled = true;
+ this.DrpMixC.Location = new System.Drawing.Point(121, 73);
+ this.DrpMixC.Name = "DrpMixC";
+ this.DrpMixC.Size = new System.Drawing.Size(126, 20);
+ this.DrpMixC.TabIndex = 52;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(27, 75);
+ this.label9.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(59, 12);
+ this.label9.TabIndex = 49;
+ this.label9.Text = "混合步骤:";
+ //
+ // groupBox2
+ //
+ this.groupBox2.Controls.Add(this.DrpMixB);
+ this.groupBox2.Controls.Add(this.label8);
+ this.groupBox2.Controls.Add(this.DrpMetageB2);
+ this.groupBox2.Controls.Add(this.label6);
+ this.groupBox2.Controls.Add(this.DrpMetageB1);
+ this.groupBox2.Controls.Add(this.label7);
+ this.groupBox2.Location = new System.Drawing.Point(94, 235);
+ this.groupBox2.Margin = new System.Windows.Forms.Padding(2);
+ this.groupBox2.Name = "groupBox2";
+ this.groupBox2.Padding = new System.Windows.Forms.Padding(2);
+ this.groupBox2.Size = new System.Drawing.Size(426, 157);
+ this.groupBox2.TabIndex = 60;
+ this.groupBox2.TabStop = false;
+ this.groupBox2.Text = "糊化机";
+ //
+ // DrpMixB
+ //
+ this.DrpMixB.FormattingEnabled = true;
+ this.DrpMixB.Location = new System.Drawing.Point(121, 103);
+ this.DrpMixB.Name = "DrpMixB";
+ this.DrpMixB.Size = new System.Drawing.Size(126, 20);
+ this.DrpMixB.TabIndex = 52;
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(27, 108);
+ this.label8.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(59, 12);
+ this.label8.TabIndex = 49;
+ this.label8.Text = "混合步骤:";
+ //
+ // DrpMetageB2
+ //
+ this.DrpMetageB2.FormattingEnabled = true;
+ this.DrpMetageB2.Location = new System.Drawing.Point(121, 73);
+ this.DrpMetageB2.Name = "DrpMetageB2";
+ this.DrpMetageB2.Size = new System.Drawing.Size(126, 20);
+ this.DrpMetageB2.TabIndex = 52;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(27, 75);
+ this.label6.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(47, 12);
+ this.label6.TabIndex = 49;
+ this.label6.Text = "水称量:";
+ //
+ // DrpMetageB1
+ //
+ this.DrpMetageB1.FormattingEnabled = true;
+ this.DrpMetageB1.Location = new System.Drawing.Point(121, 39);
+ this.DrpMetageB1.Name = "DrpMetageB1";
+ this.DrpMetageB1.Size = new System.Drawing.Size(126, 20);
+ this.DrpMetageB1.TabIndex = 52;
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(27, 41);
+ this.label7.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(59, 12);
+ this.label7.TabIndex = 49;
+ this.label7.Text = "粉料称量:";
+ //
+ // groupBox1
+ //
+ this.groupBox1.Controls.Add(this.DrpMixA);
+ this.groupBox1.Controls.Add(this.label5);
+ this.groupBox1.Controls.Add(this.DrpMetageA);
+ this.groupBox1.Controls.Add(this.label4);
+ this.groupBox1.Location = new System.Drawing.Point(94, 77);
+ this.groupBox1.Margin = new System.Windows.Forms.Padding(2);
+ this.groupBox1.Name = "groupBox1";
+ this.groupBox1.Padding = new System.Windows.Forms.Padding(2);
+ this.groupBox1.Size = new System.Drawing.Size(426, 127);
+ this.groupBox1.TabIndex = 59;
+ this.groupBox1.TabStop = false;
+ this.groupBox1.Text = "干混机";
+ //
+ // DrpMixA
+ //
+ this.DrpMixA.FormattingEnabled = true;
+ this.DrpMixA.Location = new System.Drawing.Point(121, 73);
+ this.DrpMixA.Name = "DrpMixA";
+ this.DrpMixA.Size = new System.Drawing.Size(126, 20);
+ this.DrpMixA.TabIndex = 52;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(27, 75);
+ this.label5.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(59, 12);
+ this.label5.TabIndex = 49;
+ this.label5.Text = "混合步骤:";
+ //
+ // DrpMetageA
+ //
+ this.DrpMetageA.FormattingEnabled = true;
+ this.DrpMetageA.Location = new System.Drawing.Point(121, 39);
+ this.DrpMetageA.Name = "DrpMetageA";
+ this.DrpMetageA.Size = new System.Drawing.Size(126, 20);
+ this.DrpMetageA.TabIndex = 52;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(27, 41);
+ this.label4.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(59, 12);
+ this.label4.TabIndex = 49;
+ this.label4.Text = "粉料称量:";
+ //
+ // btnCancel
+ //
+ this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+ this.btnCancel.Location = new System.Drawing.Point(282, 690);
+ this.btnCancel.Margin = new System.Windows.Forms.Padding(5);
+ this.btnCancel.Name = "btnCancel";
+ this.btnCancel.Size = new System.Drawing.Size(98, 45);
+ this.btnCancel.TabIndex = 63;
+ this.btnCancel.Text = "取消";
+ this.btnCancel.UseVisualStyleBackColor = true;
+ //
+ // btnOK
+ //
+ this.btnOK.Location = new System.Drawing.Point(110, 690);
+ this.btnOK.Margin = new System.Windows.Forms.Padding(5);
+ this.btnOK.Name = "btnOK";
+ this.btnOK.Size = new System.Drawing.Size(98, 45);
+ this.btnOK.TabIndex = 62;
+ this.btnOK.Text = "确认";
+ this.btnOK.UseVisualStyleBackColor = true;
+ //
+ // FrmMixManager
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(636, 858);
+ this.Controls.Add(this.btnCancel);
+ this.Controls.Add(this.btnOK);
+ this.Controls.Add(this.groupBox3);
+ this.Controls.Add(this.groupBox2);
+ this.Controls.Add(this.groupBox1);
+ this.Name = "FrmMixManager";
+ this.Text = "设备配方";
+ this.groupBox3.ResumeLayout(false);
+ this.groupBox3.PerformLayout();
+ this.groupBox2.ResumeLayout(false);
+ this.groupBox2.PerformLayout();
+ this.groupBox1.ResumeLayout(false);
+ this.groupBox1.PerformLayout();
+ this.ResumeLayout(false);
+ }
+
+ private System.Windows.Forms.GroupBox groupBox3;
+ private System.Windows.Forms.ComboBox DrpMixC;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.GroupBox groupBox2;
+ private System.Windows.Forms.ComboBox DrpMixB;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.ComboBox DrpMetageB2;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.ComboBox DrpMetageB1;
+ private System.Windows.Forms.Label label7;
+ private System.Windows.Forms.GroupBox groupBox1;
+ private System.Windows.Forms.ComboBox DrpMixA;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.ComboBox DrpMetageA;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Button btnCancel;
+ private System.Windows.Forms.Button btnOK;
+
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixManager.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixManager.cs
new file mode 100644
index 0000000..5d4479c
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixManager.cs
@@ -0,0 +1,19 @@
+using System.Windows.Forms;
+
+namespace Mesnac.Action.ChemicalWeighing.LjMixManager
+{
+ public partial class FrmMixManager : Form
+ {
+ public FrmMixManager()
+ {
+ InitializeComponent();
+ }
+
+ int _id = 0;
+ public FrmMixManager(int id):this()
+ {
+
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixManager.resx b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixManager.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixManager.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/InItDbAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/InItDbAction.cs
new file mode 100644
index 0000000..05f56c9
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/InItDbAction.cs
@@ -0,0 +1,70 @@
+using System;
+using System.Data;
+using System.Linq;
+using Mesnac.Action.Base;
+using Mesnac.Action.ChemicalWeighing.LjMaterial;
+
+namespace Mesnac.Action.ChemicalWeighing.LjMixManager
+{
+ public class InItDbAction:ChemicalWeighingAction, IAction
+ {
+ private DbMCControl _materialGridControl = null; //物料列表控件
+ private RuntimeParameter _runtime;
+ public void Run(RuntimeParameter runtime)
+ {
+ base.RunIni(runtime); //必须调用
+ this._runtime = runtime;
+
+ UpdateAction.OnUpdate -= Process_Event;
+ UpdateAction.OnUpdate += Process_Event;
+ // //
+ // // UpAction.OnHandler -= Process_Event;
+ // // UpAction.OnHandler += Process_Event;
+ // //
+ // //
+ // AddAction.OnAdd -= Process_Event;
+ // AddAction.OnAdd += Process_Event;
+ //
+ DbMCControl materialGridControl =
+ this.GetDbMCControlByKey(Mesnac.Basic.DataSourceFactory.MCDbType.Local, "lj_mix_manager")
+ .FirstOrDefault(); //获取物料数据控件
+ this._materialGridControl = materialGridControl;
+ FileControl();
+ }
+
+ private void FileControl()
+ {
+ DataTable table =
+ DBHelp.GetTable(@"select Id, CreateTime, UpdateTime, MetageAId, MetageAName, MixAId, MixAName, MetageB1Id, MetageB1Name,
+ MetageB2Id, MetageB2Name, MixBId, MixBName, MixCId, MixCName, RecipeType, Remark, DryId, DryName from lj_mix_manager;");
+
+ if (this._materialGridControl != null && this._materialGridControl.BaseControl != null)
+ {
+ this._materialGridControl.BaseControl.BindDataSource = null;
+ this._materialGridControl.BaseControl.BindDataSource = table;
+ //DBLog("成功!");
+ }
+ else
+ {
+ ICSharpCode.Core.LoggingService.Warn("刷新物料信息失败:物料数据控件为Null...");
+ }
+ }
+
+
+ #region 事件处理方法
+
+ private void Process_Event(object sender, EventArgs e)
+ {
+ if (sender is RuntimeParameter)
+ {
+ this.Run(sender as RuntimeParameter);
+ }
+ else
+ {
+ this.Run(this._runtime);
+ }
+ }
+
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/LjMixManager.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/LjMixManager.cs
new file mode 100644
index 0000000..bda7997
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/LjMixManager.cs
@@ -0,0 +1,42 @@
+using System;
+
+namespace Mesnac.Action.ChemicalWeighing.LjMixManager
+{
+ public class LjMixManagerView
+ {
+ public int Id { get; set; }
+
+ public DateTime CreateTime { get; set; }
+ public DateTime UpdateTime { get; set; }
+
+ public string MetageAId { get; set; }
+ public string MetageAName { get; set; }
+
+ public string MixAId { get; set; }
+ public string MixAName { get; set; }
+
+ public string MetageB1Id { get; set; }
+
+ public string MetageB1Name { get; set; }
+
+ public string MetageB2Id { get; set; }
+
+ public string MetageB2Name { get; set; }
+
+ public string MixBId { get; set; }
+
+ public string MixBName { get; set; }
+
+ public string MixCId { get; set; }
+
+ public string MixCName { get; set; }
+
+ public int RecipeType { get; set; }
+
+ public string Remark { get; set; }
+
+
+ public int DryId { get; set;}
+ public string DryName { get; set;}
+ }
+}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/LjMixManagerDb.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/LjMixManagerDb.cs
new file mode 100644
index 0000000..b06ab98
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/LjMixManagerDb.cs
@@ -0,0 +1,231 @@
+using System;
+using System.Data;
+using System.Text;
+using Mesnac.Action.ChemicalWeighing.LjMaterial;
+using Mesnac.Action.ChemicalWeighing.LjPlanning;
+
+namespace Mesnac.Action.ChemicalWeighing.LjMixManager
+{
+ public class LjMixManagerDb:DBHelp
+ {
+
+ public static LjMixManagerView GetById(int id)
+ {
+
+
+ var sql =
+ " select Id, CreateTime, UpdateTime, MetageAId, MetageAName, MixAId, MixAName, MetageB1Id, MetageB1Name," +
+ " MetageB2Id, MetageB2Name, MixBId, MixBName, MixCId, MixCName, RecipeType, Remark, DryId, DryName from lj_mix_manager where id=" +
+ id;
+
+ DataTable dt = GetTable(sql);
+
+ LjMixManagerView view = new LjMixManagerView();
+
+ if (dt.Rows.Count == 1)
+ {
+ DataRow dr = dt.Rows[0];
+
+
+ if (dr["CreateTime"] != null)
+ {
+ view.CreateTime = Convert.ToDateTime(dr["CreateTime"]);
+ }
+
+ if (dr["UpdateTime"] != null)
+ {
+ view.UpdateTime = Convert.ToDateTime(dr["UpdateTime"]);
+ }
+
+
+
+
+ if (dr["MetageAId"] != null)
+ {
+ view.MetageAId = dr["MetageAId"].ToString();
+ }
+
+ if (dr["MetageAName"] != null)
+ {
+ view.MetageAName = dr["MetageAName"].ToString();
+ }
+
+ if (dr["MixAId"] != null)
+ {
+ view.MixAId = dr["MetageAId"].ToString();
+ }
+
+ if (dr["MixAName"] != null)
+ {
+ view.MixAName = dr["MixAName"].ToString();
+ }
+
+
+
+ if (dr["MetageB1Id"] != null)
+ {
+ view.MetageB1Id = dr["MetageB1Id"].ToString();
+ }
+
+ if (dr["MetageB1Name"] != null)
+ {
+ view.MetageB1Name = dr["MetageB1Name"].ToString();
+ }
+
+ if (dr["MetageB2Id"] != null)
+ {
+ view.MetageB2Id = dr["MetageB2Id"].ToString();
+ }
+
+ if (dr["MetageB2Name"] != null)
+ {
+ view.MetageB2Name = dr["MetageB2Name"].ToString();
+ }
+
+ if (dr["MixBId"] != null)
+ {
+ view.MixBId = dr["MixBId"].ToString();
+ }
+
+ if (dr["MixBName"] != null)
+ {
+ view.MixBName = dr["MixBName"].ToString();
+ }
+
+
+ if (dr["MixBId"] != null)
+ {
+ view.MixBId = dr["MixBId"].ToString();
+ }
+
+ if (dr["MixBName"] != null)
+ {
+ view.MixBName = dr["MixBName"].ToString();
+ }
+
+ if (dr["MixCId"] != null)
+ {
+ view.MixCId = dr["MixCId"].ToString();
+ }
+
+ if (dr["MixCName"] != null)
+ {
+ view.MixCName = dr["MixCName"].ToString();
+ }
+
+
+ // if (dr["RecipeType"] != null)
+ // {
+ // view.RecipeType = Convert.ToInt32(dr["RecipeType"]);
+ // }
+
+ if (dr["Remark"] != null)
+ {
+ view.Remark = dr["Remark"].ToString();
+ }
+
+
+ view.DryId = Convert.ToInt32(dr["DryId"]);
+ view.DryName = dr["DryName"].ToString();
+
+
+ view.Id = id;
+
+ }
+
+
+ return view;
+ }
+
+ public static void Update(LjMixManagerView view)
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append(" update lj_planning ");
+
+ //sb.Append($" CreateTime='{view.CreateTime}', ");
+ sb.Append($" UpdateTime='{view.UpdateTime}', ");
+
+ sb.Append($" MetageAId='{view.MetageAId}', ");
+ sb.Append($" MetageAName='{view.MetageAName}', ");
+ sb.Append($" MixAId='{view.MixAId}', ");
+ sb.Append($" MixAName='{view.MixAName}', ");
+
+ sb.Append($" MetageB1Id='{view.MetageB1Id}', ");
+ sb.Append($" MetageB1Name='{view.MetageB1Name}', ");
+ sb.Append($" MetageB2Id='{view.MetageB2Id}', ");
+ sb.Append($" MetageB2Name='{view.MetageB2Name}', ");
+ sb.Append($" MixBId='{view.MixBId}', ");
+ sb.Append($" MixBName='{view.MixBName}', ");
+
+ sb.Append($" MixCId='{view.MixCId}', ");
+ sb.Append($" MixCName='{view.MixCName}', ");
+ sb.Append($" RecipeType='{view.RecipeType}', ");
+
+ sb.Append($" Remark='{view.Remark}', ");
+
+ sb.Append($" DryId={view.DryId}, ");
+ sb.Append($" DryName='{view.DryName}' ");
+
+
+ sb.Append($" where id={view.Id}");
+
+ ExecuteNonQuery(sb.ToString());
+ }
+
+
+
+
+ public static void UpdateMixA(LjMixManagerView view)
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append(" update lj_mix_manager ");
+
+ sb.Append($" set UpdateTime='{view.UpdateTime}', ");
+ sb.Append($" MetageAId='{view.MetageAId}', ");
+ sb.Append($" MetageAName='{view.MetageAName}', ");
+ sb.Append($" MixAId='{view.MixAId}', ");
+ sb.Append($" MixAName='{view.MixAName}' ");
+ sb.Append($" where id={view.Id}");
+
+ ExecuteNonQuery(sb.ToString());
+ }
+
+
+ public static void UpdateMixB(LjMixManagerView view)
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append(" update lj_mix_manager ");
+
+ sb.Append($" set UpdateTime='{view.UpdateTime}', ");
+
+ sb.Append($" MetageB1Id='{view.MetageB1Id}', ");
+ sb.Append($" MetageB1Name='{view.MetageB1Name}', ");
+
+ sb.Append($" MetageB2Id='{view.MetageB2Id}', ");
+ sb.Append($" MetageB2Name='{view.MetageB2Name}', ");
+
+ sb.Append($" MixBId='{view.MixBId}', ");
+ sb.Append($" MixBName='{view.MixBName}' ");
+ sb.Append($" where id={view.Id}");
+
+ ExecuteNonQuery(sb.ToString());
+ }
+
+
+ public static void UpdateMixC(LjMixManagerView view)
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append(" update lj_mix_manager ");
+
+ sb.Append($" set UpdateTime='{view.UpdateTime}', ");
+
+
+
+ sb.Append($" MixCId='{view.MixCId}', ");
+ sb.Append($" MixCName='{view.MixCName}' ");
+ sb.Append($" where id={view.Id}");
+
+ ExecuteNonQuery(sb.ToString());
+ }
+ }
+}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/LjMixManagerPlc.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/LjMixManagerPlc.cs
new file mode 100644
index 0000000..800bb67
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/LjMixManagerPlc.cs
@@ -0,0 +1,3227 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Microsoft.Office.Interop.Excel;
+
+namespace Mesnac.Action.ChemicalWeighing.LjMixManager
+{
+
+
+
+ public class LjMixManagerPlc
+ {
+ ///
+ /// 干混机1
+ ///
+ ///
+ ///
+ public static void DownD1Recipe(List recipePlcViews, List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip0_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip0_Tolerance, view.TolErance);
+
+
+
+ }
+
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip1_Bin,
+ new object[] { view.Bin });
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip1_Tolerance, view.TolErance);
+
+ }
+
+ if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip2_Bin,
+ new object[] { view.Bin });
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip2_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip2_Tolerance, view.TolErance);
+
+ }
+
+ if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip3_Bin,
+ new object[] { view.Bin });
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip3_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip3_Tolerance, view.TolErance);
+
+ }
+ }
+
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step0_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step1_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step2_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step3_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step4_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step5_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step6_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step7_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step8_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step9_mixSpeed, view.MixSpeed);
+ }
+
+ }
+
+ }
+
+
+
+
+
+ public static void DownD2Recipe(List recipePlcViews, List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Recip0_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip0_Tolerance, view.TolErance);
+
+ }
+
+
+
+ if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Recip2_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip2_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip2_Tolerance, view.TolErance);
+
+ }
+
+
+
+ if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Recip2_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip2_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip2_Tolerance, view.TolErance);
+
+ }
+
+
+
+ if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Recip3_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip3_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip3_Tolerance, view.TolErance);
+
+ }
+
+
+
+
+
+
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step0_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step2_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step2_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step3_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step4_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step5_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step6_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step7_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step8_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step9_mixSpeed, view.MixSpeed);
+ }
+
+ }
+
+ }
+
+ public static void DownD3Recipe(List recipePlcViews, List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip0_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip0_Tolerance, view.TolErance);
+
+ }
+
+
+
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip1_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip1_Tolerance, view.TolErance);
+
+ }
+
+
+
+ if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip2_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip2_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip2_Tolerance, view.TolErance);
+
+ }
+
+
+
+ if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip3_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip3_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip3_Tolerance, view.TolErance);
+
+ }
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step0_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step1_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step2_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step3_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step4_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step5_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step6_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step7_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step8_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step9_mixSpeed, view.MixSpeed);
+ }
+
+ }
+ }
+
+
+ public static void DownD4Recipe(List recipePlcViews, List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip0_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip0_Tolerance, view.TolErance);
+
+ }
+
+
+
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip1_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip1_Tolerance, view.TolErance);
+
+ }
+
+
+
+ if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip2_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip2_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip2_Tolerance, view.TolErance);
+
+ }
+
+
+
+ if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip3_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip3_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip3_Tolerance, view.TolErance);
+
+ }
+
+
+
+
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step0_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step1_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step2_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step3_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step4_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step5_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step6_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step7_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step8_mixSpeed, view.MixSpeed);
+ }
+
+ if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step9_mixSpeed, view.MixSpeed);
+ }
+
+
+ }
+ }
+
+
+
+
+ public static void DownG1Recipe(List recipePlcViews,List reShui,List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG1Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG1Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG1Recip0_Tolerance, view.TolErance);
+
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG1Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG1Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG1Recip1_Tolerance, view.TolErance);
+
+ }
+
+
+
+ }
+
+
+ for (int i = 0; i < reShui.Count(); i++)
+ {
+ var view = reShui[i];
+
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCRecip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCRecip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCRecip0_Tolerance, view.TolErance);
+
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCRecip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCRecip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCRecip1_Tolerance, view.TolErance);
+
+ }
+
+
+
+ }
+
+
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+
+
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep0_mixSpeed, view.MixSpeed);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep1_mixSpeed, view.MixSpeed);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep2_mixSpeed, view.MixSpeed);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep3_mixSpeed, view.MixSpeed);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep4_mixSpeed, view.MixSpeed);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep5_mixSpeed, view.MixSpeed);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep6_mixSpeed, view.MixSpeed);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep7_mixSpeed, view.MixSpeed);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep8_mixSpeed, view.MixSpeed);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCStep9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCStep9_mixSpeed, view.MixSpeed);
+ }
+
+
+
+
+
+
+ }
+ }
+
+
+ public static void DownG2Recipe(List recipePlcViews, List reShui,
+ List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG2Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG2Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG2Recip0_Tolerance, view.TolErance);
+
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG2Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG2Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG2Recip1_Tolerance, view.TolErance);
+
+ }
+
+ }
+
+ for (int i = 0; i < reShui.Count(); i++)
+ {
+ var view = reShui[i];
+
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Recip0_Tolerance, view.TolErance);
+
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Recip1_Tolerance, view.TolErance);
+
+ }
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step0_mixSpeed, view.MixSpeed);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step1_mixSpeed, view.MixSpeed);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step2_mixSpeed, view.MixSpeed);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step3_mixSpeed, view.MixSpeed);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step4_mixSpeed, view.MixSpeed);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step5_mixSpeed, view.MixSpeed);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step6_mixSpeed, view.MixSpeed);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step7_mixSpeed, view.MixSpeed);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step8_mixSpeed, view.MixSpeed);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_B_Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_B_Step9_mixSpeed, view.MixSpeed);
+ }
+
+
+ }
+ }
+ public static void DownG3Recipe(List recipePlcViews, List reShui,
+ List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Gelat_G3Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G3Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G3Recip0_Tolerance, view.TolErance);
+
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Gelat_G3Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G3Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G3Recip1_Tolerance, view.TolErance);
+
+ }
+ }
+
+ for (int i = 0; i < reShui.Count(); i++)
+ {
+ var view = reShui[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Recip0_Tolerance, view.TolErance);
+
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Recip1_Tolerance, view.TolErance);
+
+ }
+
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step0_mixSpeed, view.MixSpeed);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step1_mixSpeed, view.MixSpeed);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step2_mixSpeed, view.MixSpeed);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step3_mixSpeed, view.MixSpeed);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step4_mixSpeed, view.MixSpeed);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step5_mixSpeed, view.MixSpeed);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step6_mixSpeed, view.MixSpeed);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step7_mixSpeed, view.MixSpeed);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step8_mixSpeed, view.MixSpeed);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_C_Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_C_Step9_mixSpeed, view.MixSpeed);
+ }
+
+
+ }
+ }
+ public static void DownG4Recipe(List recipePlcViews, List reShui,
+ List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Gelat_G4Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G4Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G4Recip0_Tolerance, view.TolErance);
+
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Gelat_G4Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G4Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G4Recip1_Tolerance, view.TolErance);
+
+ }
+
+ }
+
+ for (int i = 0; i < reShui.Count(); i++)
+ {
+ var view = reShui[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Recip0_Tolerance, view.TolErance);
+
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Recip1_Tolerance, view.TolErance);
+
+ }
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step0_mixSpeed, view.MixSpeed);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step1_mixSpeed, view.MixSpeed);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step2_mixSpeed, view.MixSpeed);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step3_mixSpeed, view.MixSpeed);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step4_mixSpeed, view.MixSpeed);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step5_mixSpeed, view.MixSpeed);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step6_mixSpeed, view.MixSpeed);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step7_mixSpeed, view.MixSpeed);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step8_mixSpeed, view.MixSpeed);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_D_Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_D_Step9_mixSpeed, view.MixSpeed);
+ }
+
+ }
+ }
+ public static void DownG5Recipe(List recipePlcViews, List reShui,
+ List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Gelat_G5Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G5Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G5Recip0_Tolerance, view.TolErance);
+
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Gelat_G5Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G5Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G5Recip1_Tolerance, view.TolErance);
+
+ }
+ }
+
+ for (int i = 0; i < reShui.Count(); i++)
+ {
+ var view = reShui[i];
+ if (i == 0)
+
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Recip0_Tolerance, view.TolErance);
+
+ }
+ if (i == 1)
+
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Recip1_Tolerance, view.TolErance);
+
+ }
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+
+
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step0_mixSpeed, view.MixSpeed);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step1_mixSpeed, view.MixSpeed);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step2_mixSpeed, view.MixSpeed);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step3_mixSpeed, view.MixSpeed);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step4_mixSpeed, view.MixSpeed);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step5_mixSpeed, view.MixSpeed);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step6_mixSpeed, view.MixSpeed);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step7_mixSpeed, view.MixSpeed);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step8_mixSpeed, view.MixSpeed);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G5_RD_Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G5_RD_Step9_mixSpeed, view.MixSpeed);
+ }
+
+
+
+
+
+ }
+ }
+ public static void DownG6Recipe(List recipePlcViews, List reShui,
+ List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Gelat_G6Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G6Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G6Recip0_Tolerance, view.TolErance);
+
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Gelat_G6Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G6Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G6Recip1_Tolerance, view.TolErance);
+
+ }
+ }
+
+ for (int i = 0; i < reShui.Count(); i++)
+ {
+ var view = reShui[i];
+
+ if (i == 0)
+
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Recip0_Tolerance, view.TolErance);
+
+ }
+ if (i == 1)
+
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Recip1_Tolerance, view.TolErance);
+
+ }
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step0_mixSpeed, view.MixSpeed);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step1_mixSpeed, view.MixSpeed);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step2_mixSpeed, view.MixSpeed);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step3_mixSpeed, view.MixSpeed);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step4_mixSpeed, view.MixSpeed);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step5_mixSpeed, view.MixSpeed);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step6_mixSpeed, view.MixSpeed);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step7_mixSpeed, view.MixSpeed);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step8_mixSpeed, view.MixSpeed);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G6_RD_Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G6_RD_Step9_mixSpeed, view.MixSpeed);
+ }
+
+ }
+ }
+ public static void DownG7Recipe(List recipePlcViews, List reShui,
+ List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Gelat_G7Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G7Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G7Recip0_Tolerance, view.TolErance);
+
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Gelat_G7Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G7Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G7Recip1_Tolerance, view.TolErance);
+
+ }
+ }
+
+ for (int i = 0; i < reShui.Count(); i++)
+ {
+ var view = reShui[i];
+ if (i == 0)
+
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Recip0_Tolerance, view.TolErance);
+
+ }
+ if (i == 1)
+
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Recip1_Tolerance, view.TolErance);
+
+ }
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step0_mixSpeed, view.MixSpeed);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step1_mixSpeed, view.MixSpeed);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step2_mixSpeed, view.MixSpeed);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step3_mixSpeed, view.MixSpeed);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step4_mixSpeed, view.MixSpeed);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step5_mixSpeed, view.MixSpeed);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step6_mixSpeed, view.MixSpeed);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step7_mixSpeed, view.MixSpeed);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step8_mixSpeed, view.MixSpeed);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G7_RD_Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G7_RD_Step9_mixSpeed, view.MixSpeed);
+ }
+
+ }
+ }
+ public static void DownG8Recipe(List recipePlcViews, List reShui,
+ List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Gelat_G8Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G8Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G8Recip0_Tolerance, view.TolErance);
+
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Gelat_G8Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G8Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Gelat_G8Recip1_Tolerance, view.TolErance);
+
+ }
+ }
+
+ for (int i = 0; i < reShui.Count(); i++)
+ {
+ var view = reShui[i];
+
+ if (i == 0)
+
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Recip0_Tolerance, view.TolErance);
+
+ }
+ if (i == 1)
+
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Recip1_Tolerance, view.TolErance);
+
+ }
+
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step0_mixSpeed, view.MixSpeed);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step1_mixSpeed, view.MixSpeed);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step2_mixSpeed, view.MixSpeed);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step3_mixSpeed, view.MixSpeed);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step4_mixSpeed, view.MixSpeed);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step5_mixSpeed, view.MixSpeed);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step6_mixSpeed, view.MixSpeed);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step7_mixSpeed, view.MixSpeed);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step8_mixSpeed, view.MixSpeed);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSC_G8_RD_Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSC_G8_RD_Step9_mixSpeed, view.MixSpeed);
+ }
+
+ }
+ }
+
+
+ public static void DownM1Recipe(List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipeSteps.Count; i++)
+ {
+ var view = recipeSteps[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step0_mixSpeed, view.MixSpeed);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step1_mixSpeed, view.MixSpeed);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step2_mixSpeed, view.MixSpeed);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step3_mixSpeed, view.MixSpeed);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step4_mixSpeed, view.MixSpeed);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step5_mixSpeed, view.MixSpeed);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step6_mixSpeed, view.MixSpeed);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step7_mixSpeed, view.MixSpeed);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step8_mixSpeed, view.MixSpeed);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M1Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step9_mixSpeed, view.MixSpeed);
+ }
+
+
+ }
+ }
+
+
+
+ public static void DownM2Recipe(List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipeSteps.Count; i++)
+ {
+ var view = recipeSteps[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step0_mixSpeed, view.MixSpeed);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step1_mixSpeed, view.MixSpeed);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step2_mixSpeed, view.MixSpeed);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step3_mixSpeed, view.MixSpeed);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step4_mixSpeed, view.MixSpeed);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step5_mixSpeed, view.MixSpeed);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step6_mixSpeed, view.MixSpeed);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step7_mixSpeed, view.MixSpeed);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step8_mixSpeed, view.MixSpeed);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M2Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step9_mixSpeed, view.MixSpeed);
+ }
+ }
+ }
+ public static void DownM3Recipe(List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipeSteps.Count; i++)
+ {
+ var view = recipeSteps[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step0_mixSpeed, view.MixSpeed);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step1_mixSpeed, view.MixSpeed);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step2_mixSpeed, view.MixSpeed);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step3_mixSpeed, view.MixSpeed);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step4_mixSpeed, view.MixSpeed);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step5_mixSpeed, view.MixSpeed);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step6_mixSpeed, view.MixSpeed);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step7_mixSpeed, view.MixSpeed);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step8_mixSpeed, view.MixSpeed);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M3Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step9_mixSpeed, view.MixSpeed);
+ }
+
+ }
+ }
+
+ public static void DownM4Recipe(List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipeSteps.Count; i++)
+ {
+ var view = recipeSteps[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step0_mixSpeed, view.MixSpeed);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step1_mixSpeed, view.MixSpeed);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step2_mixSpeed, view.MixSpeed);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step3_mixSpeed, view.MixSpeed);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step4_mixSpeed, view.MixSpeed);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step5_mixSpeed, view.MixSpeed);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step6_mixSpeed, view.MixSpeed);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step7_mixSpeed, view.MixSpeed);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step8_mixSpeed, view.MixSpeed);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M4Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step9_mixSpeed, view.MixSpeed);
+ }
+
+ }
+ }
+ public static void DownM5Recipe(List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipeSteps.Count; i++)
+ {
+ var view = recipeSteps[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step0_mixSpeed, view.MixSpeed);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step1_mixSpeed, view.MixSpeed);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step2_mixSpeed, view.MixSpeed);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step3_mixSpeed, view.MixSpeed);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step4_mixSpeed, view.MixSpeed);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step5_mixSpeed, view.MixSpeed);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step6_mixSpeed, view.MixSpeed);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step7_mixSpeed, view.MixSpeed);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step8_mixSpeed, view.MixSpeed);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M5Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step9_mixSpeed, view.MixSpeed);
+ }
+
+ }
+ }
+ public static void DownM6Recipe(List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipeSteps.Count; i++)
+ {
+ var view = recipeSteps[i];
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step0_mixSpeed, view.MixSpeed);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step1_mixSpeed, view.MixSpeed);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step2_mixSpeed, view.MixSpeed);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step3_mixSpeed, view.MixSpeed);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step4_mixSpeed, view.MixSpeed);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step5_mixSpeed, view.MixSpeed);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step6_mixSpeed, view.MixSpeed);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step7_mixSpeed, view.MixSpeed);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step8_mixSpeed, view.MixSpeed);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M6Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step9_mixSpeed, view.MixSpeed);
+ }
+
+
+ }
+ }
+ public static void DownM7Recipe(List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipeSteps.Count; i++)
+ {
+ var view = recipeSteps[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step0_mixSpeed, view.MixSpeed);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step1_mixSpeed, view.MixSpeed);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step2_mixSpeed, view.MixSpeed);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step3_mixSpeed, view.MixSpeed);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step4_mixSpeed, view.MixSpeed);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step5_mixSpeed, view.MixSpeed);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step6_mixSpeed, view.MixSpeed);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step7_mixSpeed, view.MixSpeed);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step8_mixSpeed, view.MixSpeed);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M7Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step9_mixSpeed, view.MixSpeed);
+ }
+ }
+ }
+ public static void DownM8Recipe(List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipeSteps.Count; i++)
+ {
+ var view = recipeSteps[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step0_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step0_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step0_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step0_mixSpeed, view.MixSpeed);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step1_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step1_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step1_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step1_mixSpeed, view.MixSpeed);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step2_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step2_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step2_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step2_mixSpeed, view.MixSpeed);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step3_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step3_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step3_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step3_mixSpeed, view.MixSpeed);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step4_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step4_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step4_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step4_mixSpeed, view.MixSpeed);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step5_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step5_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step5_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step5_mixSpeed, view.MixSpeed);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step6_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step6_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step6_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step6_mixSpeed, view.MixSpeed);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step7_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step7_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step7_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step7_mixSpeed, view.MixSpeed);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step8_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step8_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step8_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step8_mixSpeed, view.MixSpeed);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step9_mixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.Weter_M8Step9_mixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step9_mixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step9_mixSpeed, view.MixSpeed);
+ }
+ }
+ }
+
+
+
+
+ }
+}
+
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/RecipePlcView.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/RecipePlcView.cs
new file mode 100644
index 0000000..cc4b1ac
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/RecipePlcView.cs
@@ -0,0 +1,17 @@
+namespace Mesnac.Action.ChemicalWeighing.LjMixManager
+{
+ public class RecipePlcView
+ {
+ public int Bin { get; set; }
+ public float Set { get; set; }
+ public float TolErance { get; set; }
+ }
+
+ public class Step
+ {
+ public int MixCode { get; set; }
+ public int MixTime { get; set; }
+ public float MixTemp { get; set; }
+ public float MixSpeed { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/UpdateAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/UpdateAction.cs
new file mode 100644
index 0000000..ae600f5
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/UpdateAction.cs
@@ -0,0 +1,95 @@
+
+using System;
+using System.Linq;
+using System.Windows.Forms;
+using Mesnac.Action.Base;
+namespace Mesnac.Action.ChemicalWeighing.LjMixManager
+{
+ public class UpdateAction:ChemicalWeighingAction, IAction
+ {
+ private DbMCControl _materialGridControl = null; //物料列表控件
+ private RuntimeParameter _runtime;
+
+
+ public static event EventHandler OnUpdate;
+
+ public void Run(RuntimeParameter runtime)
+ {
+ base.RunIni(runtime); //必须调用
+ this._runtime = runtime;
+ DbMCControl materialGridControl =
+ this.GetDbMCControlByKey(Mesnac.Basic.DataSourceFactory.MCDbType.Local, "lj_mix_manager")
+ .FirstOrDefault(); //获取物料数据控件
+ this._materialGridControl = materialGridControl;
+
+ DataGridView clientGridView = this._materialGridControl.BaseControl as DataGridView;
+
+ //验证是否选中某物料
+ if (clientGridView.SelectedRows.Count != 1)
+ {
+
+ MessageBox.Show("请选择要修改的数据", Mesnac.Basic.LanguageHelper.Caption,
+ MessageBoxButtons.OK, MessageBoxIcon.Information);
+ this._runtime.IsReturn = true;
+ return;
+ }
+
+ var dataGridViewRow = clientGridView.SelectedRows[0];
+ var id = Convert.ToInt32(dataGridViewRow.Cells["Id"].Value);
+
+ DialogResult result = DialogResult.OK;
+ FrmMixA mixA = null;
+ FrmMixB mixB= null;
+ FrmMixC mixC= null;
+ if (id < 5)
+ {
+ mixA = new FrmMixA(id);
+ result = mixA.ShowDialog();
+ }
+ else
+ {
+ if (id < 13)
+ {
+ mixB = new FrmMixB(id);
+ result = mixB.ShowDialog();
+ }
+ else
+ {
+ mixC = new FrmMixC(id);
+ result = mixC.ShowDialog();
+ }
+ }
+
+
+ this._runtime.BaseControl.MCEnabled = false;
+ if (result == DialogResult.OK)
+ {
+ if (OnUpdate != null)
+ {
+ OnUpdate(this._runtime.BaseControl.MCRoot, System.EventArgs.Empty);
+ }
+
+ if (mixA != null)
+ {
+ mixA.Dispose();
+ }
+
+ if (mixB != null)
+ {
+ mixB.Dispose();
+ }
+
+ if (mixC != null)
+ {
+ mixC.Dispose();
+ }
+
+ }
+
+ this._runtime.BaseControl.MCEnabled = true;
+
+ }
+
+
+ }
+}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/AddAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/AddAction.cs
new file mode 100644
index 0000000..c348949
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/AddAction.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Windows.Forms;
+using Mesnac.Action.Base;
+using Mesnac.Action.ChemicalWeighing.LjProdcutLine;
+
+namespace Mesnac.Action.ChemicalWeighing.LjPlanning
+{
+ public class AddAction:ChemicalWeighingAction, IAction
+ {
+ public static event EventHandler OnAdd;
+ private DbMCControl _materialGridControl = null; //物料列表控件
+ private RuntimeParameter _runtime;
+ public void Run(RuntimeParameter runtime)
+ {
+ base.RunIni(runtime); //必须调用
+ this._runtime = runtime;
+
+
+ FrmPlanning frm = new FrmPlanning();
+ DialogResult result = frm.ShowDialog();
+ this._runtime.BaseControl.MCEnabled = false;
+ if (result == DialogResult.OK)
+ {
+ if (OnAdd != null)
+ {
+ OnAdd(this._runtime.BaseControl.MCRoot, System.EventArgs.Empty);
+ }
+
+ frm.Dispose();
+
+ }
+
+ this._runtime.BaseControl.MCEnabled = true;
+ }
+ }
+}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/DelAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/DelAction.cs
new file mode 100644
index 0000000..82f73d0
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/DelAction.cs
@@ -0,0 +1,46 @@
+using System;
+using System.Linq;
+using System.Windows.Forms;
+using Mesnac.Action.Base;
+
+namespace Mesnac.Action.ChemicalWeighing.LjPlanning
+{
+ public class DelAction:ChemicalWeighingAction, IAction
+ {
+ private DbMCControl _materialGridControl = null; //物料列表控件
+ private RuntimeParameter _runtime;
+
+
+ public static event EventHandler OnUpdate;
+
+ public void Run(RuntimeParameter runtime)
+ {
+ base.RunIni(runtime); //必须调用
+ this._runtime = runtime;
+ DbMCControl materialGridControl =
+ this.GetDbMCControlByKey(Mesnac.Basic.DataSourceFactory.MCDbType.Local, "lj_planning")
+ .FirstOrDefault(); //获取物料数据控件
+ this._materialGridControl = materialGridControl;
+
+ DataGridView clientGridView = this._materialGridControl.BaseControl as DataGridView;
+
+ //验证是否选中某物料
+ if (clientGridView.SelectedRows.Count != 1)
+ {
+
+ MessageBox.Show("请选择要修改的数据", Mesnac.Basic.LanguageHelper.Caption,
+ MessageBoxButtons.OK, MessageBoxIcon.Information);
+ this._runtime.IsReturn = true;
+ return;
+ }
+
+ var dataGridViewRow = clientGridView.SelectedRows[0];
+ var id = Convert.ToInt32(dataGridViewRow.Cells["Id"].Value);
+
+
+
+
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/FrmPlanning.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/FrmPlanning.cs
index ec0bd6c..213a2d3 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/FrmPlanning.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/FrmPlanning.cs
@@ -158,6 +158,10 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
view.MixCName=DrpMixC.Text;
+ view.ProductLineId = Convert.ToInt32(DrpProductLine.SelectedValue);
+ view.ProductLineName = label1.Text;
+
+
//需要设计状态 0 未开始 -1 异常退出 1 完成
if (_id == 0)
@@ -174,6 +178,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
LjPlanningDb.Update(view);
}
+ this.DialogResult = DialogResult.OK;
+
}
}
}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/InItDbAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/InItDbAction.cs
new file mode 100644
index 0000000..e0328c5
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/InItDbAction.cs
@@ -0,0 +1,64 @@
+using System;
+using System.Data;
+using System.Linq;
+using Mesnac.Action.Base;
+using Mesnac.Action.ChemicalWeighing.LjMaterial;
+
+namespace Mesnac.Action.ChemicalWeighing.LjPlanning
+{
+ public class InItDbAction:ChemicalWeighingAction, IAction
+ {
+ private DbMCControl _materialGridControl = null; //物料列表控件
+ private RuntimeParameter _runtime;
+ public void Run(RuntimeParameter runtime)
+ {
+ base.RunIni(runtime); //必须调用
+ this._runtime = runtime;
+
+
+ AddAction.OnAdd -= Process_Event;
+ AddAction.OnAdd += Process_Event;
+
+ DbMCControl materialGridControl =
+ this.GetDbMCControlByKey(Mesnac.Basic.DataSourceFactory.MCDbType.Local, "lj_planning")
+ .FirstOrDefault(); //获取物料数据控件
+ this._materialGridControl = materialGridControl;
+ FileControl();
+ }
+
+ private void FileControl()
+ {
+ DataTable table =
+ DBHelp.GetTable(@"select Id, No, Status, CreateTime, UpdateTime, BegTime, EndTime, NumCar, Share, MetageAId, MetageAName, MixAId,
+ MixAName, MetageB1Id, MetageB1Name, MetageB2Id, MetageB2Name, MixBId, MixBName, MixCId, MixCName, RecipeType, Remark, ProductLineId, ProductLineName from lj_planning");
+
+ if (this._materialGridControl != null && this._materialGridControl.BaseControl != null)
+ {
+ this._materialGridControl.BaseControl.BindDataSource = null;
+ this._materialGridControl.BaseControl.BindDataSource = table;
+ //DBLog("成功!");
+ }
+ else
+ {
+ ICSharpCode.Core.LoggingService.Warn("刷新物料信息失败:物料数据控件为Null...");
+ }
+ }
+
+
+ #region 事件处理方法
+
+ private void Process_Event(object sender, EventArgs e)
+ {
+ if (sender is RuntimeParameter)
+ {
+ this.Run(sender as RuntimeParameter);
+ }
+ else
+ {
+ this.Run(this._runtime);
+ }
+ }
+
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningDb.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningDb.cs
index bb22c00..3ede6c9 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningDb.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningDb.cs
@@ -232,6 +232,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
view.Remark = dr["Remark"].ToString();
}
+
view.ProductLineId = Convert.ToInt32(dr["ProductLineId"]);
view.ProductLineName = dr["ProductLineName"].ToString();
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs
new file mode 100644
index 0000000..167ceb6
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs
@@ -0,0 +1,7 @@
+namespace Mesnac.Action.ChemicalWeighing.LjPlanning
+{
+ public class LjPlanningPlcHelp
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/UpdateAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/UpdateAction.cs
new file mode 100644
index 0000000..5d16ece
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/UpdateAction.cs
@@ -0,0 +1,10 @@
+using System;
+using System.Linq;
+using System.Windows.Forms;
+using Mesnac.Action.Base;
+using Mesnac.Action.ChemicalWeighing.LjPressure;
+
+namespace Mesnac.Action.ChemicalWeighing.LjPlanning
+{
+
+}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj
index d487c8e..952dd64 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj
@@ -303,14 +303,49 @@
+
+ Form
+
+
+ FrmMixA.cs
+
+
+ Form
+
+
+ FrmMixB.cs
+
+
+ Form
+
+
+ FrmMixC.cs
+
+
+ Form
+
+
+ FrmMixManager.cs
+
+
+
+
+
+
+
+
+
Form
FrmPlanning.cs
+
+
+
Form
@@ -629,6 +664,18 @@
FrmMixFormula.cs
+
+ FrmMixA.cs
+
+
+ FrmMixB.cs
+
+
+ FrmMixC.cs
+
+
+ FrmMixManager.cs
+
FrmPlanning.cs
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs
index 46fd55c..7904fd2 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs
@@ -9,6 +9,7 @@ using Mesnac.Action.Base;
using Mesnac.Action.ChemicalWeighing.Entity;
using Mesnac.Action.ChemicalWeighing.LjMetageFormula;
using Mesnac.Action.ChemicalWeighing.LjMixFormula;
+using Mesnac.Action.ChemicalWeighing.LjMixManager;
using Mesnac.Action.ChemicalWeighing.LjPlanning;
using Mesnac.Action.ChemicalWeighing.LjProdcutLine;
using Mesnac.Basic;
@@ -37,7 +38,7 @@ namespace Mesnac.Action.ChemicalWeighing.Test
// dbHelper.CommandText = sql;
- FrmPlanning frmMetageFormula = new FrmPlanning();
+ FrmMixA frmMetageFormula = new FrmMixA(1);
frmMetageFormula.Show();
diff --git a/Main/MCEdit/Data/EventConfig/小料称量/榄菊生产计划管理.xml b/Main/MCEdit/Data/EventConfig/小料称量/榄菊生产计划管理.xml
new file mode 100644
index 0000000..b81d3a8
--- /dev/null
+++ b/Main/MCEdit/Data/EventConfig/小料称量/榄菊生产计划管理.xml
@@ -0,0 +1,59 @@
+
+
+
+
+
+ 初始计划管理
+ 初始计划管理
+
+
+ 修改计划管理
+ 修改计划管理
+
+
+
+ 添加计划管理
+ 添加计划管理
+
+
+
+ 删除计划管理
+ 删除计划管理
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Main/MCEdit/Data/EventConfig/小料称量/榄菊设备数据管理.xml b/Main/MCEdit/Data/EventConfig/小料称量/榄菊设备数据管理.xml
new file mode 100644
index 0000000..aacea2b
--- /dev/null
+++ b/Main/MCEdit/Data/EventConfig/小料称量/榄菊设备数据管理.xml
@@ -0,0 +1,60 @@
+
+
+
+
+
+ 初始设备数据
+ 初始设备数据
+
+
+
+ 修改设备数据
+ 修改设备数据
+
+
+
+ 同步设备数据
+ 同步设备数据
+
+
+
+ 下发设备数据
+ 下发设备数据
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Main/MCEdit/Data/MCProject/SCWSProject2.mprj b/Main/MCEdit/Data/MCProject/SCWSProject2.mprj
index 98222c6..689a16b 100644
--- a/Main/MCEdit/Data/MCProject/SCWSProject2.mprj
+++ b/Main/MCEdit/Data/MCProject/SCWSProject2.mprj
@@ -40,6 +40,7 @@
+
diff --git a/Main/MCEdit/Data/MCProject/nodeDevice.xml b/Main/MCEdit/Data/MCProject/nodeDevice.xml
index b558563..f2388e1 100644
--- a/Main/MCEdit/Data/MCProject/nodeDevice.xml
+++ b/Main/MCEdit/Data/MCProject/nodeDevice.xml
@@ -2610,7 +2610,7 @@
-
+
diff --git a/Main/MCEdit/Data/MCProject/nodeForm/FormPlan.xml b/Main/MCEdit/Data/MCProject/nodeForm/FormPlan.xml
index a6b017c..0a1337e 100644
--- a/Main/MCEdit/Data/MCProject/nodeForm/FormPlan.xml
+++ b/Main/MCEdit/Data/MCProject/nodeForm/FormPlan.xml
@@ -3,7 +3,7 @@