add - 手动控制添加

dep_nodyang
wangsr 1 year ago
parent 868917498f
commit 865c17e169

@ -0,0 +1,24 @@
using Mesnac.Action.Base;
using Mesnac.Controls.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Mesnac.Action.ChemicalWeighing.ManualControl
{
public class InitAction : ChemicalWeighingAction, IAction
{
public void Run(RuntimeParameter runtime)
{
base.RunIni(runtime); //必须要调用的
List<DbMCControl> mcControllist = GetAllDbMCControlsByOption(DbOptionTypes.Query);//获取所有待初始化控件
//IBaseControl startdate = mcControllist.Where(t => t.BaseControl.MCKey != null && t.BaseControl.MCKey.ToLower() == "startdate").FirstOrDefault().BaseControl;
MessageBox.Show("LoadingSuccess!");
}
}
}

@ -0,0 +1,41 @@
using Mesnac.Action.Base;
using Mesnac.Controls.Base;
using Mesnac.Controls.Default;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Mesnac.Action.ChemicalWeighing.ManualControl
{
class ManualControlAction : ChemicalWeighingAction, IAction
{
private RuntimeParameter _runtime;
public void Run(RuntimeParameter runtime)
{
base.RunIni(runtime); //必须要调用
this._runtime = runtime;
List<DbMCControl> mcControllist = GetAllDbMCControlsByOption(DbOptionTypes.Query);//获取所有待初始化控件
var Bottom1 = runtime.Sender;
if (Bottom1 is MCButton)
{
MCButton button = (MCButton)Bottom1;
string val = button.MCValue.ToString();
string mcKey = button.MCKey.ToString();
}
MessageBox.Show("ClickSuccess!");
}
}
}

@ -485,6 +485,8 @@
<DependentUpon>Loading.cs</DependentUpon> <DependentUpon>Loading.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="LoadingHelper.cs" /> <Compile Include="LoadingHelper.cs" />
<Compile Include="ManualControl\InitAction.cs" />
<Compile Include="ManualControl\ManualControlAction.cs" />
<Compile Include="MaterialManage\BarcodeReport.cs"> <Compile Include="MaterialManage\BarcodeReport.cs">
<SubType>Component</SubType> <SubType>Component</SubType>
</Compile> </Compile>

@ -22,7 +22,7 @@ namespace Mesnac.Action.ChemicalWeighing.ProjectDebug
this.StartPosition = FormStartPosition.CenterScreen; this.StartPosition = FormStartPosition.CenterScreen;
} }
private void btn_Set_Click(object sender, EventArgs e) private void btn_Set_Click(object sender, EventArgs e) //来源 响应
{ {
if (textBox1.Text == "") if (textBox1.Text == "")
{ {

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8" ?>
<ActionService>
<Design>
<Path path="手动控制">
<Action action="ADA275CDEAD840DF86FE00B6238E43D7">
<Caption>窗体初始化</Caption>
<Remark>窗体初始化</Remark>
</Action>
<Action action="8A6A773898644EB9ACAFBDC8FD66DF3C">
<Caption>按钮事件</Caption>
<Remark>按钮事件</Remark>
</Action>
</Path>
</Design>
<DesignToRuntime>
<!--窗体初始化-->
<Design action="ADA275CDEAD840DF86FE00B6238E43D7">
<Runtime action="05B9ABD3876B47B9AC6947F48F4960A9"/>
</Design>
<Design action="8A6A773898644EB9ACAFBDC8FD66DF3C">
<Runtime action="1762C720919C41F4B8A9AF7C640F336E"/>
</Design>
</DesignToRuntime>
<Runtime>
<Import assembly = "Data/Action/ChemicalWeighing/Mesnac.Action.ChemicalWeighing.dll">
<Action action="05B9ABD3876B47B9AC6947F48F4960A9" class="Mesnac.Action.ChemicalWeighing.ManualControl.InitAction"/>
<Action action="1762C720919C41F4B8A9AF7C640F336E" class="Mesnac.Action.ChemicalWeighing.ManualControl.ManualControlAction"/>
</Import>
</Runtime>
</ActionService>

@ -25,6 +25,7 @@
<Node Name="糊化机报表" Text="糊化机报表" ToolTipText="糊化机报表" Tag="糊化机报表" ImageIndex="3" SelectedImageIndex="3" /> <Node Name="糊化机报表" Text="糊化机报表" ToolTipText="糊化机报表" Tag="糊化机报表" ImageIndex="3" SelectedImageIndex="3" />
<Node Name="FormOliveEQSetting" Text="榄菊设备参数" ToolTipText="FormOliveEQSetting" Tag="FormOliveEQSetting" ImageIndex="3" SelectedImageIndex="3" /> <Node Name="FormOliveEQSetting" Text="榄菊设备参数" ToolTipText="FormOliveEQSetting" Tag="FormOliveEQSetting" ImageIndex="3" SelectedImageIndex="3" />
<Node Name="FormLJRecipeData" Text="榄菊配方管理" ToolTipText="FormLJRecipeData" Tag="FormLJRecipeData" ImageIndex="3" SelectedImageIndex="3" /> <Node Name="FormLJRecipeData" Text="榄菊配方管理" ToolTipText="FormLJRecipeData" Tag="FormLJRecipeData" ImageIndex="3" SelectedImageIndex="3" />
<Node Name="ManualWaterControl" Text="手动控制" ToolTipText="ManualControl" Tag="ManualWaterControl" ImageIndex="3" SelectedImageIndex="3" />
</Node> </Node>
<Node Name="nodeDevice" Text="设备" ToolTipText="" Tag="nodeDevice" ImageIndex="2" SelectedImageIndex="2"> <Node Name="nodeDevice" Text="设备" ToolTipText="" Tag="nodeDevice" ImageIndex="2" SelectedImageIndex="2">
<Node Name="ParametersWithPc" Text="ParametersWithPc" ToolTipText="" Tag="ParametersWithPc" ImageIndex="5" SelectedImageIndex="5" /> <Node Name="ParametersWithPc" Text="ParametersWithPc" ToolTipText="" Tag="ParametersWithPc" ImageIndex="5" SelectedImageIndex="5" />

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -0,0 +1,28 @@
<Object type="Mesnac.Gui.Common.FrmRunTemplate, Mesnac.Gui.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="手动水控制" children="Controls">
<Property name="LoadActionList">
<Binary>AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL</Binary>
</Property>
<Property name="ActivatedActionList">
<Binary>AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL</Binary>
</Property>
<Property name="ReloadActionList">
<Binary>AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL</Binary>
</Property>
<Property name="RefreshDataActionList">
<Binary>AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL</Binary>
</Property>
<Property name="BHaveAction">False</Property>
<Property name="MCPurview">False</Property>
<Property name="AllowOriginalSizeShow">False</Property>
<Property name="BackColor">Control</Property>
<Property name="Size">600, 401</Property>
<Property name="StartPosition">WindowsDefaultLocation</Property>
<Property name="Text">ManualWaterControl</Property>
<Property name="WindowState">Normal</Property>
<Property name="BackgroundImage" />
<Property name="BackgroundImageLayout">Tile</Property>
<Property name="Font">宋体, 9pt</Property>
<Property name="ForeColor">ControlText</Property>
<Property name="Name">手动水控制</Property>
</Object>

@ -218,6 +218,9 @@
<Content Include="Data\EventConfig\小料称量\业务基础.系统日志.xml"> <Content Include="Data\EventConfig\小料称量\业务基础.系统日志.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content> </Content>
<Content Include="Data\EventConfig\小料称量\手动控制.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Data\EventConfig\小料称量\设备细节报表.xml"> <Content Include="Data\EventConfig\小料称量\设备细节报表.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content> </Content>

Loading…
Cancel
Save