using Lskj.PubTaskPlan.Control; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; namespace Lskj.PubTaskPlan.Model { public class DayControlModel { private DayControl MianFormDayControl; public DayControlModel(DayControl dayControl, DataRow dataRow) { if (dayControl != null) { MianFormDayControl = dayControl; D_Day = dataRow != null && dataRow.Table.Columns.Contains("D_Day") ? Convert.ToInt32(dataRow["D_Day"] + "") : 1; } } /// /// 按天,执行间隔 /// public int D_Day { get { return (int)MianFormDayControl.spin_interval.Value; } set { MianFormDayControl.spin_interval.Value = value; } } } }