FrmOutputSellList.cs 986 B

12345678910111213141516171819202122232425262728293031323334
  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 BooksManageSystem
  10. {
  11. public partial class FrmOutputSellList : Form
  12. {
  13. public FrmOutputSellList()
  14. {
  15. InitializeComponent();
  16. }
  17. private void FrmOutputSellList_Load(object sender, EventArgs e)
  18. {
  19. dtp_Start.Value = DateTime.Parse(DateTime.Now.AddMonths(-2).ToString("yyyy-MM-01 00:00:00"));
  20. dtp_End.Value = DateTime.Parse(DateTime.Now.AddMonths(1).ToString("yyyy-MM-01 00:00:00")).AddSeconds(-1);
  21. }
  22. public DateTime Start;
  23. public DateTime End;
  24. private void btn_output_Click(object sender, EventArgs e)
  25. {
  26. this.Start = dtp_Start.Value;
  27. this.End = dtp_End.Value;
  28. this.DialogResult = System.Windows.Forms.DialogResult.OK;
  29. }
  30. }
  31. }