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.

25 lines
822 B
C#

using Mesnac.Action.Base;
using Mesnac.Controls.Base;
namespace Mesnac.Action.Default.SynchroData
{
public class ClearForm : DatabaseAction, IAction
{
public void Run(RuntimeParameter runtime)
{
base.RunIni(runtime); //必须调用
foreach (DbMCControl control in GetAllDbMCControls())
{
if ((!string.IsNullOrWhiteSpace(control.DesignSource)) &&
(!string.IsNullOrWhiteSpace(control.DataTable)) &&
(!string.IsNullOrWhiteSpace(control.DataField)) &&
control.BaseControl.DbOptionType == DbOptionTypes.Modify &&
(control.BaseControl != runtime.Sender))
{
control.BaseControl.MCValue = null;
}
}
}
}
}