using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LYFZ.Software.MainBusiness.DoorCityProcess { public class frmIntensiveExport : LYFZ.Software.UI.DoorCityProcess.frmIntensiveExport { public frmIntensiveExport() { this.rdoAllJingxiu.Click += rdoAllJingxiu_Click; this.rdoEarlyRepairPiece.Click += rdoAllJingxiu_Click; this.rdoOriginalPiece.Click += rdoAllJingxiu_Click; this.rdoSelectJingxiu.Click += rdoAllJingxiu_Click; this.btnOK.Click += btnOK_Click; this.btnCancel.Click += btnCancel_Click; } void btnCancel_Click(object sender, EventArgs e) { this.DialogResult = System.Windows.Forms.DialogResult.Cancel; } void btnOK_Click(object sender, EventArgs e) { this.DialogResult = System.Windows.Forms.DialogResult.OK; } int _exportType = 0; /// /// 导出类型 /// public int ExportType { get { return _exportType; } set { _exportType = value; } } void rdoAllJingxiu_Click(object sender, EventArgs e) { try { ComponentLibrary.RadioButtonEx rdoBtn = (ComponentLibrary.RadioButtonEx)sender; _exportType = Convert.ToInt32(rdoBtn.Tag.ToString()); if (_exportType == 0) { this.chkExportbarcode.Hide(); } else { this.chkExportbarcode.Show(); } } catch (Exception ex) { MessageBoxCustom.Show(String.Format("选择导片类型时出错:"+ex.Message)); } } } }