frmIntensiveExport.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace LYFZ.Software.MainBusiness.DoorCityProcess
  6. {
  7. public class frmIntensiveExport : LYFZ.Software.UI.DoorCityProcess.frmIntensiveExport
  8. {
  9. public frmIntensiveExport() {
  10. this.rdoAllJingxiu.Click += rdoAllJingxiu_Click;
  11. this.rdoEarlyRepairPiece.Click += rdoAllJingxiu_Click;
  12. this.rdoOriginalPiece.Click += rdoAllJingxiu_Click;
  13. this.rdoSelectJingxiu.Click += rdoAllJingxiu_Click;
  14. this.btnOK.Click += btnOK_Click;
  15. this.btnCancel.Click += btnCancel_Click;
  16. }
  17. void btnCancel_Click(object sender, EventArgs e)
  18. {
  19. this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
  20. }
  21. void btnOK_Click(object sender, EventArgs e)
  22. {
  23. this.DialogResult = System.Windows.Forms.DialogResult.OK;
  24. }
  25. int _exportType = 0;
  26. /// <summary>
  27. /// 导出类型
  28. /// </summary>
  29. public int ExportType
  30. {
  31. get { return _exportType; }
  32. set { _exportType = value; }
  33. }
  34. void rdoAllJingxiu_Click(object sender, EventArgs e)
  35. {
  36. try
  37. {
  38. ComponentLibrary.RadioButtonEx rdoBtn = (ComponentLibrary.RadioButtonEx)sender;
  39. _exportType = Convert.ToInt32(rdoBtn.Tag.ToString());
  40. if (_exportType == 0)
  41. {
  42. this.chkExportbarcode.Hide();
  43. }
  44. else
  45. {
  46. this.chkExportbarcode.Show();
  47. }
  48. }
  49. catch (Exception ex)
  50. {
  51. MessageBoxCustom.Show(String.Format("选择导片类型时出错:"+ex.Message));
  52. }
  53. }
  54. }
  55. }