| | |
| | | using DevExpress.XtraBars; |
| | | using DevExpress.XtraBars.Docking; |
| | | using DevExpress.XtraBars.Docking2010.Views; |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraEditors; |
| | | using IStation.DataProvider.temp; |
| | | using IStation.WinFormUI; |
| | | using IStation.WinFormUI.MonitorDataSet; |
| | | using IStation.WinFormUI.Project; |
| | | using IStation.WinFormUI.Scene; |
| | | using IStation.WinFrmUI.Scatl; |
| | |
| | | _app.Visible = false; |
| | | }; |
| | | |
| | | var project = new BLL.Project().QueryById(GlobalParas.ProjectId); |
| | | var project = new BLL.Project().GetById(GlobalParas.ProjectId); |
| | | if (project != null) |
| | | { |
| | | this.barStaticProjectCaption.Caption = project.Name; |
| | |
| | | return; |
| | | } |
| | | var bll = new BLL.Project(); |
| | | var project = bll.QueryById(GlobalParas.ProjectId); |
| | | var project = bll.GetById(GlobalParas.ProjectId); |
| | | project.UpdateTime = DateTime.Now; |
| | | bll.Update(project); |
| | | } |
| | |
| | | #endregion |
| | | |
| | | private void accProjectItem_Click(object sender, EventArgs e) |
| | | { |
| | | { |
| | | //DataImportExportHelper.Import(GlobalParas.ProjectId); |
| | | |
| | | |
| | | var scene = SceneTempCreate.GetScene(GlobalParas.ProjectId); |
| | | var bol= GeneralMonitorDataImportHelper.Import(GlobalParas.ProjectId,scene.Id,scene.DataSourcesMappers); |
| | | var bol = GeneralMonitorDataImportHelper.Import(GlobalParas.ProjectId, scene.Id, scene.DataSourcesMappers); |
| | | if (!bol) |
| | | { |
| | | MessageBox.Show("导入失败!"); |
| | |
| | | ProjectHelper.OtherSaveProject(GlobalParas.ProjectId); |
| | | } |
| | | |
| | | |
| | | |
| | | private void accordionControlElement3_Click(object sender, EventArgs e) |
| | | { |
| | | var scene = SceneTempCreate.GetScene(GlobalParas.ProjectId); |
| | | var curvePage = new CurveCompareChartMgr(); |
| | | var logic = new BLL.LogicTree().GetByLogicTypeAndLogicId(GlobalParas.ProjectId,scene.BelongType,scene.BelongId); |
| | | curvePage.InitialDataSource(GlobalParas.ProjectId, scene.Id,logic); |
| | | CreatePage(curvePage,new SurfaceGuid() { DockType= eDockType.Tab,Function="曲线比较",Modular= eModular.Project}); |
| | | } |
| | | |
| | | private void accordionControlElement2_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | var scene = SceneTempCreate.GetScene(GlobalParas.ProjectId); |
| | | var curvePage = new FilterDataMgrPage(); |
| | | var logic = new BLL.LogicTree().GetByLogicTypeAndLogicId(GlobalParas.ProjectId, scene.BelongType, scene.BelongId); |
| | | curvePage.InitialDataSource(GlobalParas.ProjectId, scene.Id, logic); |
| | | CreatePage(curvePage, new SurfaceGuid() { DockType = eDockType.Tab, Function = "数据筛查", Modular = eModular.Project }); |
| | | } |
| | | } |
| | | } |