基线 SVN r240

SVN-Revision: r240
This commit is contained in:
cyf
2025-02-06 06:46:06 +00:00
commit ab56a9bcf7
5317 changed files with 902274 additions and 0 deletions
@@ -0,0 +1,39 @@
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; }
}
}
}