|
|
@ -32,6 +32,8 @@ using NewLife.Security;
|
|
|
|
using ProductionSystem.Untils.Tool;
|
|
|
|
using ProductionSystem.Untils.Tool;
|
|
|
|
using DevExpress.Data.Diagram.Core;
|
|
|
|
using DevExpress.Data.Diagram.Core;
|
|
|
|
using SqlSugar;
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
using ProductionSystem_Model.DbModel;
|
|
|
|
|
|
|
|
using NewLife.Reflection;
|
|
|
|
|
|
|
|
|
|
|
|
namespace ProductionSystem.Forms
|
|
|
|
namespace ProductionSystem.Forms
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -746,17 +748,19 @@ namespace ProductionSystem.Forms
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ProductStepService stepService = new ProductStepService();
|
|
|
|
|
|
|
|
|
|
|
|
var d1300Value = GetPlcValue("D1300");
|
|
|
|
var d1300Value = GetPlcValue("D1300");
|
|
|
|
|
|
|
|
|
|
|
|
string[] str = new[] { "COM9", "COM10" };
|
|
|
|
string[] str = new[] { "COM9", "COM10" };
|
|
|
|
//步骤1水泵1空载
|
|
|
|
//步骤1水泵1空载
|
|
|
|
if(Convert.ToInt32(Double.Parse(d1300Value).ToString("0")) == 0)
|
|
|
|
if(Convert.ToInt32(Double.Parse(d1300Value).ToString("0")) == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
T_Product_Step step=new T_Product_Step();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
middleIsCanRound = false;
|
|
|
|
middleIsCanRound = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -789,7 +793,17 @@ namespace ProductionSystem.Forms
|
|
|
|
|
|
|
|
|
|
|
|
var ya= uxTool.ToAction();
|
|
|
|
var ya= uxTool.ToAction();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
step.Id = Guid.NewGuid().ToString("N");
|
|
|
|
|
|
|
|
step.ReturnValue = uxTool.Val;
|
|
|
|
|
|
|
|
step.WriteValue = uxTool.Write;
|
|
|
|
|
|
|
|
step.CreateTime = DateTime.Now;
|
|
|
|
|
|
|
|
step.ProductType = Program.ProductType;
|
|
|
|
|
|
|
|
step.EquipmentName = "SB1";
|
|
|
|
|
|
|
|
step.StepName = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stepService.AddProductStep(step);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Thread.Sleep(2000);
|
|
|
|
Thread.Sleep(2000);
|
|
|
|
|
|
|
|
|
|
|
|