Beispiel #1
0
        public void OnGetPrinterSetting(ref AllParam allParam, ref bool bChangeProperty)
        {
            try
            {
                if (_printerProperty.EPSONLCD_DEFINED)
                {
                    m_epsonBaseSetting.OnGetPrinterSetting(ref allParam.PrinterSetting, ref allParam.EpsonAllParam);
                }
                else
                {
                    m_BaseSetting.OnGetPrinterSetting(ref allParam.PrinterSetting);
                }

                m_BaseSetting.OnGetExtendedSettingsChange(ref allParam.ExtendedSettings);

                if (this.m_TabControlSetting.TabPages.Contains(this.m_TabPageCaliSetting))
                {
                    m_CalibrationSetting.OnGetPrinterSetting(allParam);
                }
                m_PreferenceSetting.OnGetPreference(ref allParam.Preference);
                m_SeviceSetting.OnGetProperty(ref allParam.PrinterProperty, ref bChangeProperty);
                //m_RealTimeSetting.OnGetPrinterSetting(ref allParam.PrinterSetting);
                m_MoveSetting.OnGetPrinterSetting(ref allParam.PrinterSetting);
                if (allParam.PrinterProperty.bSupportWhiteInk || allParam.PrinterProperty.bSupportWhiteInkYoffset)
                {
                    spotColorSetting1.OnGetPrinterSetting(ref allParam.PrinterSetting);
                    spotColorSetting1.OnGetExtendedSettingsChange(ref allParam.ExtendedSettings);
                }

                if (_printerProperty.EPSONLCD_DEFINED)
                {
                    m_SeviceSetting.OnGetServiceSetting(ref allParam.EpsonAllParam.sCaliConfig);
                    EpsonLCD.SetCaliConfig(allParam.EpsonAllParam.sCaliConfig);
                }

                //else
                {
                    SSeviceSetting sSeviceSet = allParam.SeviceSetting;
                    m_SeviceSetting.OnGetServiceSetting(ref sSeviceSet);
                    if (allParam.Preference.ScanningAxis == CoreConst.AXIS_X ||
                        allParam.Preference.ScanningAxis == CoreConst.AXIS_4)
                    {
                        sSeviceSet.scanningAxis = allParam.Preference.ScanningAxis;
                    }
                    else
                    {
                        sSeviceSet.scanningAxis = CoreConst.AXIS_X;
                    }

                    CoreInterface.SetSeviceSetting(ref sSeviceSet);
                    allParam.SeviceSetting = sSeviceSet;
                }
                SDoubleSidePrint doubleSide = allParam.DoubleSidePrint;
                doublePrintSetting1.OnGetScorpionSettings(ref doubleSide);
                allParam.DoubleSidePrint = doubleSide;

                //获取3D打印页签中的控件值
                m_Printer3DSetting.OnGetPrinterSetting(allParam);
                //获取用户设置的值
                userExtensionSetting.OnGetPrinterSetting(allParam);
                defineUVPowerLevel1.OnGetPrinterSetting(ref allParam.PrinterSetting, ref allParam.UvPowerLevelMap);
                //判断是否显示打印模式
                if ((UIFunctionOnOff.SupportPrintMode && PubFunc.IsFactoryUser()))
                {
                    jobConfigModes1.OnGetPrinterSetting();
                }

                if (UIFunctionOnOff.SupportMediaMode)
                {
                    mediaConfigs1.OnGetPrinterSetting();
                }

                if (UIFunctionOnOff.SupportCloseNozzle)
                {
                    closeColorNozzle1.OnGetPrinterSetting(ref allParam);
                }

                if (SPrinterProperty.IsJianRui())
                {
                    workposSetting1.OnGetPrinterSetting(ref allParam.PrinterSetting);
                }
                if (UIFunctionOnOff.SupportDebugQuality)
                {
                    debugQuality1.OnGetPrinterSetting(ref allParam);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }