FormFileDown.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. using CoreFS.CA06;
  10. namespace Core.Mes.Client.Comm.Control
  11. {
  12. public partial class FormFileDown : FrmBase
  13. {
  14. OpeBase ob = new OpeBase();
  15. /// <summary>
  16. /// 客户编号
  17. /// </summary>
  18. private string pic = "";
  19. public string Pic
  20. {
  21. get { return pic; }
  22. set { pic = value; }
  23. }
  24. public Button DeleteButton
  25. {
  26. get { return ctrlFileDown1.Button3; }
  27. }
  28. public FormFileDown()
  29. {
  30. InitializeComponent();
  31. }
  32. public FormFileDown(OpeBase ops, string pic)
  33. {
  34. this.ob = ops;
  35. this.pic = pic;
  36. InitializeComponent();
  37. this.ctrlFileDown1.FileChangeEvent += ctrlFileDown1_FileChangeEvent;
  38. }
  39. void ctrlFileDown1_FileChangeEvent(string fileName)
  40. {
  41. this.Text = "文件浏览:" + fileName;
  42. }
  43. private void dlgOrderAskDown_Load(object sender, EventArgs e)
  44. {
  45. this.Cursor = Cursors.WaitCursor;
  46. ctrlFileDown1.FilePath = pic;
  47. this.Cursor = Cursors.Default;
  48. }
  49. }
  50. }