void menuAZOVSTALIDSEquipmentListExport_Click(object sender, EventArgs e) { if (DatabaseManager.Databases.Count <= 0) { Flute.Service.MessageBoxWinForm.Error("设备清单导出", "程序还没有载入任何IDS数据库.", ""); return; } DataSet dataSet = DatabaseManager.Databases[DatabaseManager.CurrentKey].DatabaseSource; IDrawing azovstalEquipmentList = new AZOVSTALEquipmentList(this.IdsFrame.Systems); azovstalEquipmentList.Export("", "", IDSHelper.CreateIDSDesignInfo(dataSet.Tables[TblDesignInfo.TblName])); return; }
void menuAZOVSTALIDSEquipmentListExport_Click(object sender, EventArgs e) { if (DatabaseManager.Databases.Count <= 0) { Flute.Service.MessageBoxWinForm.Error("设备清单导出", "程序还没有载入任何IDS数据库.", ""); return; } DataSet dataSet = DatabaseManager.Databases[DatabaseManager.CurrentKey].DatabaseSource; IDSSystemCollection systems = IDSHelper.CreateIDSSystems(dataSet.Tables[TblIDSLoop.TblName], dataSet.Tables[TblIDSHierarchy.TblName], dataSet.Tables[TblIDSEquipment.TblName], dataSet.Tables[TblIDSSubEquipment.TblName], dataSet.Tables[TblIDSRepository.TblName], dataSet.Tables[TblIDSCable.TblName], dataSet.Tables[TblIDSMountingScheme.TblName]); IDrawing azovstalEquipmentList = new AZOVSTALEquipmentList(systems); azovstalEquipmentList.Export("", "", IDSHelper.CreateIDSDesignInfo(dataSet.Tables[TblDesignInfo.TblName])); return; }