public void OnPreferenceChange(UIPreference up) { try { if (_printerProperty.EPSONLCD_DEFINED) { m_epsonBaseSetting.OnPreferenceChange(up); } else { m_BaseSetting.OnPreferenceChange(up); } if (this.m_TabControlSetting.TabPages.Contains(this.m_TabPageCaliSetting)) { m_CalibrationSetting.OnPreferenceChange(up); } m_PreferenceSetting.OnPreferenceChange(up); //m_RealTimeSetting.OnPreferenceChange(up); m_MoveSetting.OnPreferenceChange(up); spotColorSetting1.OnPreferenceChange(up); doublePrintSetting1.OnPreferenceChange(up); m_Printer3DSetting.OnPreferenceChange(up); userExtensionSetting.OnPreferenceChange(up); if (SPrinterProperty.IsJianRui()) { workposSetting1.OnPreferenceChange(up); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public void OnPrinterSettingChange(AllParam allParam) { try { SPrinterSetting ss = allParam.PrinterSetting; EpsonExAllParam epsonAllparam = allParam.EpsonAllParam; if (allParam.PrinterProperty.EPSONLCD_DEFINED) { m_epsonBaseSetting.OnPrinterSettingChange(ss, epsonAllparam); } else { m_BaseSetting.OnPrinterSettingChange(ss); } m_BaseSetting.OnExtendedSettingsChange(allParam.ExtendedSettings); if (this.m_TabControlSetting.TabPages.Contains(this.m_TabPageCaliSetting)) { m_CalibrationSetting.OnPrinterSettingChange(allParam); } m_SeviceSetting.OnPrinterSettingChange(ss, epsonAllparam.sCaliConfig); m_SeviceSetting.OnServiceSettingChange(allParam.SeviceSetting, epsonAllparam.sCaliConfig); //m_RealTimeSetting.OnPrinterSettingChange(ss); m_MoveSetting.OnPrinterSettingChange(ss); spotColorSetting1.OnPrinterSettingChange(ss); spotColorSetting1.OnExtendedSettingsChange(allParam.ExtendedSettings); this.doublePrintSetting1.OnScorpionSettingsChanged(allParam.DoubleSidePrint); this.m_Printer3DSetting.OnPrinterSettingChange(allParam); this.userExtensionSetting.OnPrinterSettingChange(allParam); defineUVPowerLevel1.OnPrinterSettingChange(allParam); closeColorNozzle1.OnPrinterSettingChange(allParam); customCloseNozzle1.OnPrinterSettingChange(ss); if (SPrinterProperty.IsJianRui()) { workposSetting1.OnPrinterSettingChange(allParam.PrinterSetting); } if (PubFunc.SupportDebugQuality()) { debugQuality1.OnPrinterSettingChange(allParam); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
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); } }
public void OnPrinterPropertyChange(SPrinterProperty sp) { try { _printerProperty = sp; m_TabPagePrinterSetting.SuspendLayout(); this.m_TabControlSetting.SuspendLayout(); this.SuspendLayout(); if (sp.EPSONLCD_DEFINED) { this.m_BaseSetting.Dock = DockStyle.None; this.m_BaseSetting.Visible = false; this.m_epsonBaseSetting.Visible = true; this.m_epsonBaseSetting.Dock = DockStyle.Fill; } else { this.m_epsonBaseSetting.Dock = DockStyle.None; this.m_epsonBaseSetting.Visible = false; this.m_BaseSetting.Visible = true; this.m_BaseSetting.Dock = DockStyle.Fill; } this.m_TabControlSetting.ResumeLayout(false); this.m_TabPagePrinterSetting.ResumeLayout(false); this.ResumeLayout(false); if (this.m_TabControlSetting.TabPages.Contains(this.m_TabPageCaliSetting)) { this.m_TabControlSetting.TabPages.Remove(this.m_TabPageCaliSetting); } if (sp.EPSONLCD_DEFINED) { //if (this.m_TabControlSetting.TabPages.Contains(this.m_TabPageCaliSetting)) // this.m_TabControlSetting.TabPages.Remove(this.m_TabPageCaliSetting); if (this.m_TabControlSetting.TabPages.Contains(this.m_TabPageMoveSetting)) { this.m_TabControlSetting.TabPages.Remove(this.m_TabPageMoveSetting); } } #if !ALLWIN //if (sp.IsDocan()) { if (this.m_TabControlSetting.TabPages.Contains(this.tabPageUVPowerLevel)) { this.m_TabControlSetting.TabPages.Remove(this.tabPageUVPowerLevel); } } #endif if (sp.EPSONLCD_DEFINED) { m_epsonBaseSetting.OnPrinterPropertyChange(sp); } else { m_BaseSetting.OnPrinterPropertyChange(sp); } if (this.m_TabControlSetting.TabPages.Contains(this.m_TabPageCaliSetting)) { m_CalibrationSetting.OnPrinterPropertyChange(sp); } m_SeviceSetting.OnPrinterPropertyChange(sp); m_MoveSetting.OnPrinterPropertyChange(sp); spotColorSetting1.OnPrinterPropertyChange(sp); this.m_PreferenceSetting.OnPrinterPropertyChange(sp); this.m_Printer3DSetting.OnPrinterPropertyChange(sp); this.userExtensionSetting.OnPrinterPropertyChange(sp); doublePrintSetting1.OnPrinterPropertyChange(sp); // m_RealTimeSetting.OnPrinterPropertyChange(sp); bool bNoRealPage = ((sp.ePrinterHead == PrinterHeadEnum.Xaar_XJ128_80W) || (sp.ePrinterHead == PrinterHeadEnum.Xaar_XJ128_40W)); // if( bNoRealPage && m_TabControlSetting.TabPages.Contains(m_TabPageRealTime)) // { // m_TabControlSetting.TabPages.Remove(m_TabPageRealTime); // } // else if(!bNoRealPage && !m_TabControlSetting.TabPages.Contains(m_TabPageRealTime)) // { // m_TabControlSetting.TabPages.Add(m_TabPageRealTime); // } bool bFacUser = (PubFunc.GetUserPermission() != (int)UserPermission.Operator); if (!bFacUser && m_TabControlSetting.TabPages.Contains(m_TabPageService)) { m_TabControlSetting.TabPages.Remove(m_TabPageService); } else if (bFacUser && !m_TabControlSetting.TabPages.Contains(m_TabPageService)) { m_TabControlSetting.TabPages.Add(m_TabPageService); } //bool isInwearSimpleUi = SPrinterProperty.IsInwearSimpleUi(); if (!(sp.bSupportWhiteInk)) { this.m_TabControlSetting.TabPages.Remove(this.m_TabPageWriteColor); } m_TabControlSetting.SelectedIndex = 0; SwitchToAdvancedMode(PubFunc.IsKingColorAdvancedMode || PubFunc.Is3DPrintMachine()); if (!PubFunc.SupportDoubleSidePrint) { this.m_TabControlSetting.TabPages.Remove(this.m_tabPageDoublePrint); } //判断是否为3D打印 if (!PubFunc.Is3DPrintMachine() && !PubFunc.IsKINCOLOR_FLAT_UV() && this.m_TabControlSetting.TabPages.Contains(this.m_TabPage_3DPrinter)) { this.m_TabControlSetting.TabPages.Remove(this.m_TabPage_3DPrinter); } //判断是否需要显示用户扩展设置 if (!PubFunc.IsUserExtensionFormNeed() && this.m_TabControlSetting.TabPages.Contains(this.tabPageUserExtention)) { this.m_TabControlSetting.TabPages.Remove(this.tabPageUserExtention); } //判断是否显示打印模式 if ((!UIFunctionOnOff.SupportPrintMode || !PubFunc.IsFactoryUser()) && this.m_TabControlSetting.TabPages.Contains(this.tabPagJobModes)) { this.m_TabControlSetting.TabPages.Remove(this.tabPagJobModes); } if (!UIFunctionOnOff.SupportMediaMode || !PubFunc.IsFactoryUser() && this.m_TabControlSetting.TabPages.Contains(this.tabPageMediaMode)) { this.m_TabControlSetting.TabPages.Remove(this.tabPageMediaMode); } if (!sp.ShowGzPurgeControl() && this.m_TabControlSetting.TabPages.Contains(tabPagePressureSet)) { this.m_TabControlSetting.TabPages.Remove(this.tabPagePressureSet); } else { temperatureSetting1.Visible = !SPrinterProperty.IsGONGZENG_DOUBLE_SIDE(); pressureSetting1.OnPrinterPropertyChange(sp); } if (!UIFunctionOnOff.SupportCloseNozzle) { this.m_TabControlSetting.TabPages.Remove(this.m_tabPageCloseColorNozzle); } if (!PubFunc.IsCustomCloseNozzle()) { this.m_TabControlSetting.TabPages.Remove(this.m_tabPageCustomCloseNozzle); } if (!SPrinterProperty.IsJianRui()) { this.m_TabControlSetting.TabPages.Remove(this.m_tabPageWorkPosSetting); } else { workposSetting1.OnPrinterPropertyChange(sp); } if (!PubFunc.SupportDebugQuality()) { this.m_TabControlSetting.TabPages.Remove(this.m_tabPageCustomDebugQuality); } else { debugQuality1.OnPrinterPropertyChange(sp); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }