1
0

FrmEditOP.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 FrmEditOP : Form
  12. {
  13. public FrmEditOP(OPLOG log)
  14. {
  15. InitializeComponent();
  16. this.oplog = log;
  17. }
  18. OPLOG oplog;
  19. private void FrmEditOP_Load(object sender, EventArgs e)
  20. {
  21. // public int BookID { get; set; }
  22. //public string BookName { get; set; }
  23. //public EnumOP op { get; set; }
  24. //public DateTime OPdatetime { get; set; }
  25. //public int OPCount { get; set; }
  26. //public int AfterOPCount { get; set; }
  27. //public string oper { get; set; }
  28. this.dtp_datetime.Value = oplog.OPdatetime;
  29. this.txt_bookname.Text = oplog.BookName;
  30. this.txt_op.Text = oplog.op.ToString();
  31. this.txt_opCount.Text = oplog.OPCount.ToString();
  32. this.txt_oper.Text = oplog.oper;
  33. }
  34. public string Operator { get; set; }
  35. public DateTime DateOP { get; set; }
  36. private void btn_OK_Click(object sender, EventArgs e)
  37. {
  38. this.Operator = txt_oper.Text;
  39. this.DateOP = this.dtp_datetime.Value;
  40. this.DialogResult = System.Windows.Forms.DialogResult.OK;
  41. }
  42. }
  43. }