add - 添加计划状态下拉框 数据库变更

dep_nodyang
wangsr 1 year ago
parent 6e98ca3d4c
commit 65848c2175

@ -1,8 +1,11 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using Mesnac.Action.Base;
using Mesnac.Action.ChemicalWeighing.LjMaterial;
using Mesnac.Controls.Base;
using Mesnac.Controls.Default;
namespace Mesnac.Action.ChemicalWeighing.LjPlanning
{
@ -10,6 +13,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
{
private DbMCControl _materialGridControl = null; //物料列表控件
private RuntimeParameter _runtime;
private MCCombobox PlanStatus;
public void Run(RuntimeParameter runtime)
{
base.RunIni(runtime); //必须调用
@ -30,6 +34,15 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
this.GetDbMCControlByKey(Mesnac.Basic.DataSourceFactory.MCDbType.Local, "lj_planning")
.FirstOrDefault(); //获取物料数据控件
this._materialGridControl = materialGridControl;
List<DbMCControl> mcControllist = GetAllDbMCControlsByOption(DbOptionTypes.Query);//获取所有待初始化控件
PlanStatus = mcControllist.FirstOrDefault(t => t.BaseControl.MCKey != null && t.BaseControl.MCKey == "PlanStatus").BaseControl as MCCombobox;
String sql = @"select statusid as CmbValue ,statusname as CmbDisplay from lj_planning_status";
DataTable dataTable = DBHelp.GetTable(sql);
PlanStatus.DataSource = dataTable;
FileControl();
}

@ -169,9 +169,6 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\PlugInPlatform\Mesnac.PlugIn.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Office.Interop.Excel">
<HintPath>..\..\Microsoft.Office.Interop.Excel.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />

Loading…
Cancel
Save