InventoryAdjustment.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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.StlMes.Client.PlnSaleOrd.InventoryAdjustment
  11. {
  12. public partial class InventoryAdjustment : FrmBase
  13. {
  14. public InventoryAdjustment()
  15. {
  16. InitializeComponent();
  17. this.Shown += ugbStovePlan_ExpandedStateChanged;
  18. }
  19. public int Width1 { get; set; }
  20. private void ugbStovePlan_ExpandedStateChanged(object sender, EventArgs e)
  21. {
  22. if (sp1.Panel2Collapsed) return;
  23. if (ugbStovePlan.Expanded)
  24. {
  25. sp1.SplitterDistance = sp1.Size.Height - Width1;
  26. }
  27. else
  28. {
  29. Width1 = sp1.Panel2.Size.Height;
  30. sp1.SplitterDistance = sp1.Size.Height - 25;
  31. }
  32. }
  33. public override void ToolBar_Click(object sender, string ToolbarKey)
  34. {
  35. base.ToolBar_Click(sender, ToolbarKey);
  36. switch (ToolbarKey)
  37. {
  38. case "Query"://查询
  39. Query();
  40. break;
  41. case "Close": //关闭
  42. this.Close();
  43. break;
  44. default:
  45. break;
  46. }
  47. }
  48. protected virtual void Query()
  49. {
  50. }
  51. }
  52. }