private static void LoadData(List<PlansData> _lstPlansData)
{
PlansData _planData1 = new PlansData()
{
LstPlan = new List<Plan>()
{
new Plan(){PlanName= "木工轻钢割断墙" }
},
LstPlanDate = new List<PlanDate>()
{
new PlanDate(){StartDate=DateTime.Now,EndDate=DateTime.Now.AddDays(3),Explain= "基准时间" ,IsReadOnly= true },
new PlanDate(){StartDate=DateTime.Now.AddDays(1),EndDate=DateTime.Now.AddDays(4),Explain= "计划时间" ,CanGreaterThanNow= true },
new PlanDate(){StartDate=DateTime.Now.AddDays(2),EndDate=DateTime.Now.AddDays(5),Explain= "实际时间" ,IsFlish= true ,AllowBlank= false }
}
};
_lstPlansData.Add(_planData1);
PlansData _planData2 = new PlansData()
{
LstPlan = new List<Plan>()
{
new Plan(){PlanName= "贴文化石,刷漆" }
},
LstPlanDate = new List<PlanDate>()
{
new PlanDate(){StartDate=DateTime.Now.AddDays(5),EndDate=DateTime.Now.AddDays(16),Explain= "计划时间" ,CanGreaterThanNow= true },
new PlanDate(){StartDate=DateTime.Now.AddDays(4),EndDate=DateTime.Now.AddDays(15),Explain= "实际时间" }
}
};
_lstPlansData.Add(_planData2);
PlansData _planData3 = new PlansData()
{
LstPlan = new List<Plan>()
{
new Plan(){PlanName= "石膏板吊棚" }
},
LstPlanDate = new List<PlanDate>()
{
new PlanDate(){StartDate=DateTime.Now.AddDays(5),EndDate=DateTime.Now.AddDays(18),Explain= "基准时间" ,IsReadOnly= true ,CanGreaterThanNow= true },
new PlanDate(){StartDate=DateTime.Now.AddDays(8),EndDate=DateTime.Now.AddDays(12),Explain= "计划时间" },
}
};
_lstPlansData.Add(_planData3);
PlansData _planData4 = new PlansData()
{
LstPlan = new List<Plan>()
{
new Plan(){PlanName= "大白乳胶漆" }
},
LstPlanDate = new List<PlanDate>()
{
new PlanDate(){StartDate=DateTime.Now.AddDays(15),EndDate=DateTime.Now.AddDays(18),Explain= "基准时间" ,IsReadOnly= true },
new PlanDate(){StartDate=DateTime.Now.AddDays(19),EndDate=DateTime.Now.AddDays(25),Explain= "计划时间" },
new PlanDate(){StartDate=DateTime.Now,EndDate=DateTime.Now.AddDays(5),Explain= "实际时间" }
}
};
_lstPlansData.Add(_planData4);
PlansData _planData5 = new PlansData()
{
LstPlan = new List<Plan>()
{
new Plan(){PlanName= "铺地板" }
},
LstPlanDate = new List<PlanDate>()
{
new PlanDate(){StartDate=DateTime.Now.AddDays(3),EndDate=DateTime.Now.AddDays(5),Explain= "基准时间" },
new PlanDate(){StartDate=DateTime.Now.AddDays(6),EndDate=DateTime.Now.AddDays(15),Explain= "计划时间" },
new PlanDate(){StartDate=DateTime.Now.AddDays(7),EndDate=DateTime.Now.AddDays(19),Explain= "实际时间" }
}
};
_lstPlansData.Add(_planData5);
PlansData _planData6 = new PlansData()
{
LstPlan = new List<Plan>()
{
new Plan(){PlanName= "测试1" }
},
LstPlanDate = new List<PlanDate>()
{
new PlanDate(){StartDate=DateTime.Now,EndDate=DateTime.Now,Explain= "基准时间" },
new PlanDate(){StartDate=DateTime.Now.AddDays(6),EndDate=DateTime.Now.AddDays(15),Explain= "计划时间" },
new PlanDate(){StartDate=DateTime.Now.AddDays(79),EndDate=DateTime.Now.AddDays(79),Explain= "实际时间" }
}
};
_lstPlansData.Add(_planData6);
}
|