锐腾搅拌上料功能
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.3 KiB

5 months ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Text;
  7. using System.Windows.Forms;
  8. using DevExpress.XtraEditors;
  9. using System.Data.SqlClient;
  10. using ICSSoft.Frame.Data.BLL;
  11. using ICSSoft.Frame.Data.Entity;
  12. namespace ICSSoft.Frame.APP
  13. {
  14. public partial class FormICSSelectDate : DevExpress.XtraEditors.XtraForm
  15. {
  16. public string time;
  17. public FormICSSelectDate()
  18. {
  19. InitializeComponent();
  20. }
  21. private void btnOK_Click(object sender, EventArgs e)
  22. {
  23. try
  24. {
  25. time =Convert.ToDateTime(dtpDate.Value).ToString("yyyy-MM-dd");
  26. this.Close();
  27. this.DialogResult = DialogResult.Yes;
  28. }
  29. catch (Exception ex) {
  30. MessageBox.Show(ex.Message);
  31. }
  32. }
  33. #region 关闭
  34. private void btnCancle_Click(object sender, EventArgs e)
  35. {
  36. this.Close();
  37. //this.DialogResult = DialogResult.Cancel;
  38. }
  39. private void btnClose_Click(object sender, EventArgs e)
  40. {
  41. this.Close();
  42. //this.DialogResult = DialogResult.Cancel;
  43. }
  44. #endregion
  45. }
  46. }