add - 干混机报表事件:初始化、查询、明细加载、导出

master
wangsr 1 year ago
parent 918e13579f
commit e369e85122

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mesnac.Action.ChemicalWeighing.Report.DryMixer
{
internal class ExportAction
{
}
}

@ -0,0 +1,38 @@
using Mesnac.Action.Base;
using Mesnac.Controls.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mesnac.Action.ChemicalWeighing.Report.DryMixer
{
/// <summary>
/// 干混机报表窗体初始化事件
/// </summary>
public class InitFormAction : ChemicalWeighingAction, IAction
{
public void Run(RuntimeParameter runtime)
{
base.RunIni(runtime); //必须要调用的
ICSharpCode.Core.LoggingService<InitFormAction>.Debug("干混机报表-窗体初始化...");
#region 获取界面控件
DbMCControl clientGridControl = this.GetDbMCControlByKey(Mesnac.Basic.DataSourceFactory.MCDbType.Local, "Report_DryMixer").FirstOrDefault(); //获取本机台计划网格控件
if (clientGridControl == null)
{
ICSharpCode.Core.LoggingService<InitFormAction>.Error("{干混机报表-窗体加载} 缺少日志网格控件...");
return;
}
#endregion
List<DbMCControl> mcControllist = GetAllDbMCControlsByOption(DbOptionTypes.Query);//获取所有待初始化控件
IBaseControl startdate = mcControllist.Where(t => t.BaseControl.MCKey != null && t.BaseControl.MCKey.ToLower() == "startdate").FirstOrDefault().BaseControl;
startdate.MCValue = DateTime.Now.AddDays(-1);
}
}
}

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mesnac.Action.ChemicalWeighing.Report.DryMixer
{
internal class SelectAction
{
}
}

@ -154,6 +154,10 @@
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Actions\ChemicalWeighing\Mesnac.Action.ChemicalWeighing\Mesnac.Action.ChemicalWeighing.csproj">
<Project>{90cc2d8a-dec5-4d2a-82c9-f7a033060dc1}</Project>
<Name>Mesnac.Action.ChemicalWeighing</Name>
</ProjectReference>
<ProjectReference Include="..\..\Controls\Mesnac.Controls.Base\Mesnac.Controls.Base.csproj">
<Project>{18BCAA9F-D601-43B6-B443-E6B126ADF540}</Project>
<Name>Mesnac.Controls.Base</Name>
@ -215,6 +219,10 @@
<SubType>Designer</SubType>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Data\EventConfig\小料称量\榄菊报表.干混机报表.xml">
<SubType>Designer</SubType>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Data\EventConfig\小料称量\榄菊日罐物料.xml">
<SubType>Designer</SubType>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

Loading…
Cancel
Save