ConditionQueryPieceCommissionSetSmallForm.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Windows.Forms;
  10. namespace LYFZ.Software.MainBusiness.FinancialManagement.SetSmallForm
  11. {
  12. public partial class ConditionQueryPieceCommissionSetSmallForm : LYFZ.Software.UI.FinancialManagement.SetSmallForm.ConditionQueryPieceCommissionSetSmallForm
  13. {
  14. public ConditionQueryPieceCommissionSetSmallForm()
  15. {
  16. this.Shown += ConditionQueryPieceCommissionSetSmallForm_Shown;
  17. this.btnOK.Click += btnOK_Click;
  18. this.btnCancel.Click += btnCancel_Click;
  19. }
  20. /// <summary>
  21. /// 是否保存
  22. /// </summary>
  23. public bool IsSaveed = false;
  24. /// <summary>
  25. /// 确定的选择数据
  26. /// </summary>
  27. public Hashtable htData = new Hashtable();
  28. /// <summary>
  29. /// 窗体加载事件
  30. /// </summary>
  31. /// <param name="sender"></param>
  32. /// <param name="e"></param>
  33. void ConditionQueryPieceCommissionSetSmallForm_Shown(object sender, EventArgs e)
  34. {
  35. LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_DepartmentAndEmployee(this.cmbtreevCommissionName, IsFirstNodeNull: true);
  36. LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_SystemCategory("BEBBBABBEBAIHGDCB", this.cmbtreevWorkContent, IsFirstNodeNull: true);
  37. LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_PackagesCategoryAndName(this.cmbtreevSeriesName, "AAAAAAB", IsFirstNodeNull: true);
  38. }
  39. /// <summary>
  40. /// 确定
  41. /// </summary>
  42. /// <param name="sender"></param>
  43. /// <param name="e"></param>
  44. void btnOK_Click(object sender, EventArgs e)
  45. {
  46. if (!string.IsNullOrEmpty(this.cmbtreevCommissionName.Text.Trim()) && this.cmbtreevCommissionName.Tag != null)
  47. { this.htData["CommissionName"] = this.cmbtreevCommissionName.Tag.ToString().Trim(); }
  48. if (!string.IsNullOrEmpty(this.cmbtreevSeriesName.Text.Trim()))
  49. { this.htData["SeriesName"] = this.cmbtreevSeriesName.Text.Trim(); }
  50. if (!string.IsNullOrEmpty(this.cmbtreevWorkContent.Text.Trim()) && this.cmbtreevWorkContent.Tag != null)
  51. { this.htData["WorkContent"] = this.cmbtreevWorkContent.Tag.ToString().Trim(); }
  52. this.IsSaveed = true;
  53. this.Close();
  54. }
  55. /// <summary>
  56. /// 取消
  57. /// </summary>
  58. /// <param name="sender"></param>
  59. /// <param name="e"></param>
  60. void btnCancel_Click(object sender, EventArgs e)
  61. {
  62. this.Close();
  63. }
  64. }
  65. }