Ejemplo n.º 1
0
        void Init()
        {
            DateTime prevMonth = DateTime.Today.AddMonths(-1);

            year.Value      = prevMonth.Year;
            month.EditValue = prevMonth.Month;

            ccb发放单位.Properties.Items.Clear();
            foreach (string company in PsHelper.GetCompanyList())
            {
                ImageComboBoxItem item = new ImageComboBoxItem((string)company, (string)company);
                ccb发放单位.Properties.Items.Add(item);
            }

            ccb银行.Properties.Items.Clear();
            foreach (string bank in PsHelper.GetBankTable().Keys)
            {
                ImageComboBoxItem item = new ImageComboBoxItem((string)bank, (string)bank);
                ccb银行.Properties.Items.Add(item);
            }
        }