123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace LYFZ.Software.MainBusiness.FinancialManagement.SetSmallForm
- {
- public partial class ConditionQueryPieceCommissionSetSmallForm : LYFZ.Software.UI.FinancialManagement.SetSmallForm.ConditionQueryPieceCommissionSetSmallForm
- {
- public ConditionQueryPieceCommissionSetSmallForm()
- {
- this.Shown += ConditionQueryPieceCommissionSetSmallForm_Shown;
- this.btnOK.Click += btnOK_Click;
- this.btnCancel.Click += btnCancel_Click;
- }
- /// <summary>
- /// 是否保存
- /// </summary>
- public bool IsSaveed = false;
- /// <summary>
- /// 确定的选择数据
- /// </summary>
- public Hashtable htData = new Hashtable();
- /// <summary>
- /// 窗体加载事件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void ConditionQueryPieceCommissionSetSmallForm_Shown(object sender, EventArgs e)
- {
- LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_DepartmentAndEmployee(this.cmbtreevCommissionName, IsFirstNodeNull: true);
- LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_SystemCategory("BEBBBABBEBAIHGDCB", this.cmbtreevWorkContent, IsFirstNodeNull: true);
- LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_PackagesCategoryAndName(this.cmbtreevSeriesName, "AAAAAAB", IsFirstNodeNull: true);
- }
- /// <summary>
- /// 确定
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void btnOK_Click(object sender, EventArgs e)
- {
- if (!string.IsNullOrEmpty(this.cmbtreevCommissionName.Text.Trim()) && this.cmbtreevCommissionName.Tag != null)
- { this.htData["CommissionName"] = this.cmbtreevCommissionName.Tag.ToString().Trim(); }
- if (!string.IsNullOrEmpty(this.cmbtreevSeriesName.Text.Trim()))
- { this.htData["SeriesName"] = this.cmbtreevSeriesName.Text.Trim(); }
- if (!string.IsNullOrEmpty(this.cmbtreevWorkContent.Text.Trim()) && this.cmbtreevWorkContent.Tag != null)
- { this.htData["WorkContent"] = this.cmbtreevWorkContent.Tag.ToString().Trim(); }
- this.IsSaveed = true;
- this.Close();
- }
- /// <summary>
- /// 取消
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void btnCancel_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- }
- }
|