/// <summary> /// 创建SpecialConfig。 /// </summary> /// <returns>SpecialConfig</returns> public static SpecialConfig CreateSpecialConfig() { var specialConfig = new SpecialConfig { CreateDate = DateTime.Now, }; specialConfig.GenerateNewIdentity(); return specialConfig; }
/// <summary> /// 创建特定选型 /// </summary> /// <param name="position">位置信息</param> /// <param name="description">描述</param> /// <param name="item">附件项</param> /// <param name="parentAcConfig">父项构型</param> /// <param name="startDate">开始时间</param> /// <param name="endDate">结束时间</param> /// <param name="contractAircraft">合同飞机</param> /// <returns></returns> public static SpecialConfig CreateSpecialConfig(int position, string description, Item item, AcConfig parentAcConfig, DateTime startDate, DateTime? endDate, ContractAircraft contractAircraft) { var specialConfig = new SpecialConfig(); specialConfig.GenerateNewIdentity(); specialConfig.CreateDate = DateTime.Now; specialConfig.SetPosition((Position)position); specialConfig.SetDescription(description); specialConfig.SetItem(item); specialConfig.SetParentItem(parentAcConfig); specialConfig.SetContractAircraf(contractAircraft); specialConfig.SetStartDate(startDate); specialConfig.SetEndDate(endDate); return specialConfig; }