Files
lserp_cs_6.0/插件库/Lskj.PubTaskPlan.dll/Model/WeekControlModel.cs
T
cyf ab56a9bcf7 基线 SVN r240
SVN-Revision: r240
2025-02-06 06:46:06 +00:00

40 lines
1.3 KiB
C#

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 WeekControlModel
{
private WeekControl MianFormWeekControl;
public WeekControlModel(WeekControl weekControl, DataRow dataRow)
{
if (weekControl != null)
{
MianFormWeekControl = weekControl;
W_Week = dataRow != null && dataRow.Table.Columns.Contains("W_Week") ? Convert.ToInt32(dataRow["W_Week"] + "") : 1;
W_DayOfWeek = dataRow != null && dataRow.Table.Columns.Contains("W_DayOfWeek") ? dataRow["W_DayOfWeek"] + "" : "";
}
}
/// <summary>
/// 按周,执行间隔
/// </summary>
public int W_Week
{
get { return (int)MianFormWeekControl.spin_interval.Value; }
set { MianFormWeekControl.spin_interval.Value = value; }
}
/// <summary>
/// 按周,星期几
/// </summary>
public string W_DayOfWeek
{
get { return MianFormWeekControl.checkComBox_dayOfWeek.EditValue + ""; }
set { MianFormWeekControl.checkComBox_dayOfWeek.EditValue = value; }
}
}
}