You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mesnac.Action.Base;
using Mesnac.Controls.Default;
using System.Windows.Forms;
using System.Data;
using Mesnac.Codd.Session;
using Mesnac.Controls.Base;
namespace Mesnac.Action.Default
{
public class MaterialParaSelect : DatabaseAction, IAction
{
public void Run(Controls.Base.IBaseControl sender, string design, string runtime)
{
base.Run(sender); //必须调用
string source = string.Empty;
IBaseControl lst = this.GetMCControlByKey("a1").FirstOrDefault();
source = this.GetDataSourceName(DbType.local);
DbHelper dbHelper;
if (!DbHelpers.TryGetValue(source, out dbHelper))
{
return;
}
dbHelper.ClearParameter();
dbHelper.CommandType = CommandType.Text;
string sqlstr = "SELECT * FROM [SytBig]";
dbHelper.CommandText = sqlstr;
lst.MCValue = dbHelper.ToDataTable();
}
}
}