public void OnGetPrinterSetting(ref SPrinterSetting ss)
        {
            if (bColorJet)
            {
                //ColorJet 通用参数
                _manualCleanParamData.nXStartPos = (uint)Math.Round((UIPreference.ToInchLength(m_CurrentUnit, (float)m_NumericUpDownXStartPos.Value)) *
                                                                    m_sPrinterProperty.fPulsePerInchX);
                _manualCleanParamData.bySwapHeaders = (byte)(m_ComboBoxHeaderNumPerTime.SelectedIndex + 1);
                _manualCleanParamData.nFlag         = BitConverter.ToUInt32(System.Text.Encoding.ASCII.GetBytes("CJCA"), 0);
                //ColorJet A+系统参数
                {
                    _manualCleanParamData.OriginOffset = (byte)(this.numericOriginOffset.Value);
                    _manualCleanParamData.ySpeedHz     = Decimal.ToUInt16(this.numericSpeed.Value);
                    _manualCleanParamData.yZeroDelay   = Decimal.ToUInt16(this.numericDelayTime.Value);
                    _manualCleanParamData.DisableFlag  = (byte)(checkBoxFunctionOn.Checked ? 0 : 1);
                }
                //_manualCleanParamData.cleanBeltOutTime = (uint) ((float)numCleanBeltTime.Value*1000f);

                this.m_ButtonStartClean.Enabled = bCanCleanFlg = true;
                if (EpsonLCD.SetManualCleanParam(_manualCleanParamData) == false)
                {
                    string info = ResString.GetEnumDisplayName(typeof(UIError), UIError.SetCleanParamFail);
                    MessageBox.Show(info, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
                    this.m_ButtonStartClean.Enabled = bCanCleanFlg = false;
                }
            }
        }
 /// <summary>
 /// 设置清洗参数
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void m_ButtonSet_Click(object sender, EventArgs e)
 {
     this.m_ButtonStartClean.Enabled = bCanCleanFlg = true;
     OnGetPrinterSetting(ref m_PrinterSetting);
     if (EpsonLCD.SetManualCleanParam(_manualCleanParamData) == false)
     {
         string info = ResString.GetEnumDisplayName(typeof(UIError), UIError.SetCleanParamFail);
         MessageBox.Show(info, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
         this.m_ButtonStartClean.Enabled = bCanCleanFlg = false;
     }
 }
        public void OnGetPrinterSetting(ref SPrinterSetting ss)
        {
            if (bColorJet)
            {
                if (_isSsystem)
                {
                    _manualCleanParamData.nFlag = BitConverter.ToUInt32(System.Text.Encoding.ASCII.GetBytes("CJCS"), 0);
                }
                else
                {
                    _manualCleanParamData.nFlag = BitConverter.ToUInt32(System.Text.Encoding.ASCII.GetBytes("CJCA"), 0);
                }
                //ColorJet S系统参数
                {
                    _manualCleanParamData.autoWetWaitTime = (byte)(this.numericWetWaitTime.Value);
                    _manualCleanParamData.autoWetFlag     = (byte)(checkBoxWetFlag.Checked ? 1 : 0);
                }
                //ColorJet A+系统参数
                {
                    _manualCleanParamData.ySpeedHz    = Decimal.ToUInt16(this.numericSpeed.Value);
                    _manualCleanParamData.yZeroDelay  = Decimal.ToUInt16(this.numericDelayTime.Value);
                    _manualCleanParamData.DisableFlag = (byte)(checkBoxFunctionOn.Checked ? 0 : 1);
                }
                _manualCleanParamData.cleanBeltOutTime = (uint)numCleanBeltTime.Value;

                _manualCleanParamData.pressInkTime    = (uint)numericPressInkTime.Value;
                _manualCleanParamData.wiperCleanStart = (uint)numericWiperCleanStart.Value;

                this.m_ButtonStartClean.Enabled = bCanCleanFlg = true;

                if (EpsonLCD.SetManualCleanParam(_manualCleanParamData) == false)
                {
                    string info = ResString.GetEnumDisplayName(typeof(UIError), UIError.SetCleanParamFail);
                    MessageBox.Show(info, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
                    this.m_ButtonStartClean.Enabled = bCanCleanFlg = false;
                }
            }
        }