Exemple #1
0
        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            Infomation.IsPreview = false;

            switch (SenarioForReport.senario_ForReport)
            {
            case SenarioForReport.Senario_ForReport.CarCooling:
                //场景Car的
                //StringListForCarReport.CarList[];
                StringListForCarReport.IniStringList_ForCar();

                break;

            case SenarioForReport.Senario_ForReport.CarNoise:
                //场景Car的
                //StringListForCarReport.CarList[];
                StringListForCarReport.IniStringList_ForCar();

                break;

            case SenarioForReport.Senario_ForReport.ChillerNormialCondition:     //名义工况.
                StringListForCarReport.IniStringList_ForChiller();

                break;

            case SenarioForReport.Senario_ForReport.ChillerPartialCondition:     //部分工况
                StringListForCarReport.IniStringList_ForChiller();

                break;

            case SenarioForReport.Senario_ForReport.ChillerChangCondition:     //变工况
                StringListForCarReport.IniStringList_ForChiller();

                break;

            case SenarioForReport.Senario_ForReport.ChillerMaxCondition:     //最大工况
                StringListForCarReport.IniStringList_ForChiller();


                break;
            }

            ReportParameterMySelf_ForChiller.RP20PartialLoad = "--";

            ReportParameterMySelf_ForChiller.RP21PartialLoadName = "部分负荷率 %:";
        }
Exemple #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            var hwnd = new WindowInteropHelper(this).Handle;

            SetWindowLong(hwnd, GWL_STYLE, GetWindowLong(hwnd, GWL_STYLE) & ~WS_SYSMENU);

            ////这个早应该在项目工程中初始化!
            //DoubleListForReport_FromFrontPanel.IniData_ForCar();



            switch (SenarioForReport.senario_ForReport)
            {
            case SenarioForReport.Senario_ForReport.CarCooling:
                //场景Car的
                //StringListForCarReport.CarList[];
                StringListForCarReport.IniStringList_ForCar();
                if (Infomation.IsPreview)
                {
                    //public static string RP25TestResult = "待定";
                    Report.ReportParameterMySelf.RP25TestResult            = "待定";
                    Report.ReportParameterMySelf_ForChiller.RP23TestResult = "待定";
                    DBOperateForReport.GetLastInfoRecordFromDateBase(DBPath_ForReport.DBPath_ForReportChild);
                }
                else
                {
                    //这个是通用的
                    StringListForCarReport.GetDoubleDataFromFrontPanel_ForCar(DoubleListForReport_FromFrontPanel.DoubleDataForReport);
                }

                break;

            case SenarioForReport.Senario_ForReport.CarNoise:
                //场景Car的
                //StringListForCarReport.CarList[];
                StringListForCarReport.IniStringList_ForCar();
                if (Infomation.IsPreview)
                {
                    Report.ReportParameterMySelf.RP25TestResult            = "待定";
                    Report.ReportParameterMySelf_ForChiller.RP23TestResult = "待定";
                    DBOperateForReport.GetLastInfoRecordFromDateBase(DBPath_ForReport.DBPath_ForReportChild);
                }
                else
                {
                    //这个是通用的
                    StringListForCarReport.GetDoubleDataFromFrontPanel_ForCar(DoubleListForReport_FromFrontPanel.DoubleDataForReport);
                }

                break;

            case SenarioForReport.Senario_ForReport.ChillerNormialCondition:     //名义工况.
                StringListForCarReport.IniStringList_ForChiller();

                ReportParameterMySelf_ForChiller.RP20PartialLoad     = "";
                ReportParameterMySelf_ForChiller.RP21PartialLoadName = "";

                if (Infomation.IsPreview)
                {
                    Report.ReportParameterMySelf.RP25TestResult            = "待定";
                    Report.ReportParameterMySelf_ForChiller.RP23TestResult = "待定";
                    DBOperateForReport.GetLastInfoRecordFromDateBase(DBPath_ForReport.DBPath_ForReportChild);
                }
                else
                {
                    StringListForCarReport.GetDoubleDataFromFrontPanel_ForChiller(DoubleListForReport_FromFrontPanel.DoubleDataForReport);
                }

                break;

            case SenarioForReport.Senario_ForReport.ChillerPartialCondition:     //部分工况
                StringListForCarReport.IniStringList_ForChiller();
                if (Infomation.IsPreview)
                {
                    Report.ReportParameterMySelf.RP25TestResult            = "待定";
                    Report.ReportParameterMySelf_ForChiller.RP23TestResult = "待定";
                    DBOperateForReport.GetLastInfoRecordFromDateBase(DBPath_ForReport.DBPath_ForReportChild);
                }
                else
                {
                    StringListForCarReport.GetDoubleDataFromFrontPanel_ForChiller(DoubleListForReport_FromFrontPanel.DoubleDataForReport);
                }

                break;

            case SenarioForReport.Senario_ForReport.ChillerChangCondition:     //变工况
                StringListForCarReport.IniStringList_ForChiller();

                ReportParameterMySelf_ForChiller.RP20PartialLoad     = "";
                ReportParameterMySelf_ForChiller.RP21PartialLoadName = "";

                if (Infomation.IsPreview)
                {
                    Report.ReportParameterMySelf.RP25TestResult            = "待定";
                    Report.ReportParameterMySelf_ForChiller.RP23TestResult = "待定";
                    DBOperateForReport.GetLastInfoRecordFromDateBase(DBPath_ForReport.DBPath_ForReportChild);
                }
                else
                {
                    StringListForCarReport.GetDoubleDataFromFrontPanel_ForChiller(DoubleListForReport_FromFrontPanel.DoubleDataForReport);
                }

                break;

            case SenarioForReport.Senario_ForReport.ChillerMaxCondition:     //最大工况
                StringListForCarReport.IniStringList_ForChiller();
                ReportParameterMySelf_ForChiller.RP20PartialLoad     = "";
                ReportParameterMySelf_ForChiller.RP21PartialLoadName = "";


                if (Infomation.IsPreview)
                {
                    Report.ReportParameterMySelf.RP25TestResult            = "待定";
                    Report.ReportParameterMySelf_ForChiller.RP23TestResult = "待定";
                    DBOperateForReport.GetLastInfoRecordFromDateBase(DBPath_ForReport.DBPath_ForReportChild);
                }
                else
                {
                    StringListForCarReport.GetDoubleDataFromFrontPanel_ForChiller(DoubleListForReport_FromFrontPanel.DoubleDataForReport);
                }

                break;
            }


            BuildReport(1);
        }