/// <summary> /// 创建附件项。 /// </summary> /// <param name="name">项名称</param> /// <param name="itemNo">项号</param> /// <param name="fiNumber">功能标识号</param> /// <param name="description">描述</param> /// <returns></returns> public static Item CreateItem(string name, string itemNo, string fiNumber, string description,bool isLife) { var item = new Item(); item.GenerateNewIdentity(); item.SetDescription(description); item.SetName(name); item.SetIsLife(isLife); item.SetItemNoOrFiNumber(itemNo, fiNumber); return item; }
/// <summary> /// 创建附件项。 /// </summary> /// <returns>Item</returns> public static Item CreateItem() { var item = new Item(); item.GenerateNewIdentity(); return item; }