12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace LYFZ.Software.MainBusiness.CameraControlBook.SuperSmallForm
- {
- public partial class OrderReportExportOptionsSuperSmallForm : LYFZ.Software.UI.CameraControlBook.SuperSmallForm.OrderReportExportOptionsSuperSmallForm
- {
- public OrderReportExportOptionsSuperSmallForm()
- {
- this.chkExportDataCurrent.Click += chkExportDataCurrent_Click;
- this.chkExportDataAll.Click += chkExportDataAll_Click;
- this.chkExportDataByPhotesgrap.Click += chkExportDataByPhotesgrap_Click;
- this.btnExport.Click += btnExport_Click;
- this.btnCancel.Click += btnCancel_Click;
- }
-
- /// <summary>
- /// 是否保存
- /// </summary>
- public bool IsSaveed = false;
- /// <summary>
- /// 是否导出当前页,true为当前页,false为所有
- /// </summary>
- public bool IsExportCurrent = false;
- public bool isExportPhotograph = false;
- /// <summary>
- /// 导出当前
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void chkExportDataCurrent_Click(object sender, EventArgs e)
- {
- this.chkExportDataCurrent.Checked = true;
- this.chkExportDataAll.Checked = false;
- this.chkExportDataByPhotesgrap.Checked = false;
- }
- /// <summary>
- /// 导出所有
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void chkExportDataAll_Click(object sender, EventArgs e)
- {
- this.chkExportDataAll.Checked = true;
- this.chkExportDataCurrent.Checked = false;
- this.chkExportDataByPhotesgrap.Checked = false;
- }
- /// <summary>
- /// 按拍照时间导出数据
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void chkExportDataByPhotesgrap_Click(object sender, EventArgs e)
- {
- this.chkExportDataAll.Checked = false;
- this.chkExportDataCurrent.Checked = false;
- this.chkExportDataByPhotesgrap.Checked = true;
- }
- /// <summary>
- /// 导出
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void btnExport_Click(object sender, EventArgs e)
- {
- if (!this.chkExportDataCurrent.Checked && !this.chkExportDataAll.Checked && !this.chkExportDataByPhotesgrap.Checked)
- { MessageBoxCustom.Show("请选择导出类型!"); return; }
- this.IsSaveed = true;
- this.IsExportCurrent = this.chkExportDataCurrent.Checked;
- this.isExportPhotograph = this.chkExportDataByPhotesgrap.Checked;
- this.Close();
- }
- /// <summary>
- /// 关闭
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void btnCancel_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- }
- }
|