OrderReportExportOptionsSuperSmallForm.cs 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. namespace LYFZ.Software.MainBusiness.CameraControlBook.SuperSmallForm
  10. {
  11. public partial class OrderReportExportOptionsSuperSmallForm : LYFZ.Software.UI.CameraControlBook.SuperSmallForm.OrderReportExportOptionsSuperSmallForm
  12. {
  13. public OrderReportExportOptionsSuperSmallForm()
  14. {
  15. this.chkExportDataCurrent.Click += chkExportDataCurrent_Click;
  16. this.chkExportDataAll.Click += chkExportDataAll_Click;
  17. this.chkExportDataByPhotesgrap.Click += chkExportDataByPhotesgrap_Click;
  18. this.btnExport.Click += btnExport_Click;
  19. this.btnCancel.Click += btnCancel_Click;
  20. }
  21. /// <summary>
  22. /// 是否保存
  23. /// </summary>
  24. public bool IsSaveed = false;
  25. /// <summary>
  26. /// 是否导出当前页,true为当前页,false为所有
  27. /// </summary>
  28. public bool IsExportCurrent = false;
  29. public bool isExportPhotograph = false;
  30. /// <summary>
  31. /// 导出当前
  32. /// </summary>
  33. /// <param name="sender"></param>
  34. /// <param name="e"></param>
  35. void chkExportDataCurrent_Click(object sender, EventArgs e)
  36. {
  37. this.chkExportDataCurrent.Checked = true;
  38. this.chkExportDataAll.Checked = false;
  39. this.chkExportDataByPhotesgrap.Checked = false;
  40. }
  41. /// <summary>
  42. /// 导出所有
  43. /// </summary>
  44. /// <param name="sender"></param>
  45. /// <param name="e"></param>
  46. void chkExportDataAll_Click(object sender, EventArgs e)
  47. {
  48. this.chkExportDataAll.Checked = true;
  49. this.chkExportDataCurrent.Checked = false;
  50. this.chkExportDataByPhotesgrap.Checked = false;
  51. }
  52. /// <summary>
  53. /// 按拍照时间导出数据
  54. /// </summary>
  55. /// <param name="sender"></param>
  56. /// <param name="e"></param>
  57. void chkExportDataByPhotesgrap_Click(object sender, EventArgs e)
  58. {
  59. this.chkExportDataAll.Checked = false;
  60. this.chkExportDataCurrent.Checked = false;
  61. this.chkExportDataByPhotesgrap.Checked = true;
  62. }
  63. /// <summary>
  64. /// 导出
  65. /// </summary>
  66. /// <param name="sender"></param>
  67. /// <param name="e"></param>
  68. void btnExport_Click(object sender, EventArgs e)
  69. {
  70. if (!this.chkExportDataCurrent.Checked && !this.chkExportDataAll.Checked && !this.chkExportDataByPhotesgrap.Checked)
  71. { MessageBoxCustom.Show("请选择导出类型!"); return; }
  72. this.IsSaveed = true;
  73. this.IsExportCurrent = this.chkExportDataCurrent.Checked;
  74. this.isExportPhotograph = this.chkExportDataByPhotesgrap.Checked;
  75. this.Close();
  76. }
  77. /// <summary>
  78. /// 关闭
  79. /// </summary>
  80. /// <param name="sender"></param>
  81. /// <param name="e"></param>
  82. void btnCancel_Click(object sender, EventArgs e)
  83. {
  84. this.Close();
  85. }
  86. }
  87. }