/// <summary> /// 获取处理器 /// </summary> /// <param name="v"></param> public static ProjectProcessor GetProcessor(VersionEnum v) { ProjectProcessor processor = null; switch (v) { case VersionEnum.V2003: if (Instance._Processor2003 == null) { Instance._Processor2003 = new Project2003Processor(); } processor = Instance._Processor2003; break; case VersionEnum.V2007: if (Instance._Processor2007 == null) { Instance._Processor2007 = new Project2007Processor(); } processor = Instance._Processor2007; break; } return(processor); }
/// <summary> /// 获取Ms Project数据表结构的DataSet形式 /// </summary> /// <param name="v"></param> /// <returns></returns> public static DataSet GetSchemaDataSet(VersionEnum v) { ProjectProcessor processor = GetProcessor(v); DataSet ds = processor.GetSchemaDataSet(); // ds.DataSetName = MsProjectWBSPropertyCatalogEnum.Project.ToString(); ds.Namespace = MSPROJECT_XML_NAMESPACE; return(ds); }