예제 #1
0
        private void cmbjgbm_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                InstanceForm.BDatabase = TrasenFrame.Classes.WorkStaticFun.GetJgbmDb(Convert.ToInt32(cmbjgbm.SelectedValue));

                Fun.AddcmbYjks(cmbzxks, 1, 0, Convert.ToInt32(cmbjgbm.SelectedValue), InstanceForm.BDatabase);
                Fun.AddcmbZyks(cmbks, 1, 0, Convert.ToInt32(cmbjgbm.SelectedValue), InstanceForm.BDatabase);
                cmbzxks.SelectedValue = InstanceForm.BCurrentDept.DeptId;
                btrefresh_Click(sender, e);
            }
            catch (System.Exception err)
            {
                MessageBox.Show(err.Message, "", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }