Exemple #1
0
 private void cmbmonth_SelectedIndexChanged(object sender, System.EventArgs e)
 {
     if (this.rdo2.Checked == true)
     {
         this.statusBar1.Panels[3].Text = Yp.Seekkjqj(Convert.ToInt32(cmbyear.Text), Convert.ToInt32(cmbmonth.Text), Convert.ToInt32(cmbyjks.SelectedValue), InstanceForm.BDatabase);
     }
 }
Exemple #2
0
        private void rdo1_CheckedChanged(object sender, System.EventArgs e)
        {
            DataTable tb = (DataTable)this.myDataGrid1.DataSource;

            tb.Rows.Clear();

            this.statusBar1.Panels[0].Text = "";
            this.statusBar1.Panels[1].Text = "";
            this.statusBar1.Panels[2].Text = "";
            this.statusBar1.Panels[3].Text = "";


            if (rdo1.Checked == true)
            {
                dtp1.Enabled     = true;
                dtp2.Enabled     = true;
                cmbyear.Enabled  = false;
                cmbmonth.Enabled = false;
                this.statusBar1.Panels[3].Text = "";
            }
            else
            {
                dtp1.Enabled     = false;
                dtp2.Enabled     = false;
                cmbyear.Enabled  = true;
                cmbmonth.Enabled = true;
                this.statusBar1.Panels[3].Text = Yp.Seekkjqj(Convert.ToInt32(cmbyear.Text), Convert.ToInt32(cmbmonth.Text), Convert.ToInt32(cmbyjks.SelectedValue), InstanceForm.BDatabase);
            }
        }
Exemple #3
0
        private void cmbmonth_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            int nyear  = Convert.ToInt32(Convertor.IsNull(cmbyear.Text, "0"));
            int nmonth = Convert.ToInt32(Convertor.IsNull(cmbmonth.Text, "0"));

            this.statusBarPanel3.Text = Yp.Seekkjqj(nyear, nmonth, Convert.ToInt32(cmbyjks.SelectedValue), InstanceForm.BDatabase);
        }
Exemple #4
0
        private void cmbyjks_SelectionChangeCommitted(object sender, EventArgs e)
        {
            Yp.AddcmbYear(Convert.ToInt32(cmbyjks.SelectedValue), cmbyear, InstanceForm.BDatabase);
            Yp.AddCmbYjks_ck(true, Convert.ToInt32(cmbyjks.SelectedValue), cmbck, InstanceForm.BDatabase);
            if (this.rdo2.Checked == true)
            {
                this.statusBar1.Panels[3].Text = Yp.Seekkjqj(Convert.ToInt32(cmbyear.Text), Convert.ToInt32(cmbmonth.Text), Convert.ToInt32(cmbyjks.SelectedValue), InstanceForm.BDatabase);
            }

            if (cmbck.Items.Count == 1)
            {
                cmbck.Visible = false;
                lblck.Visible = false;
            }
            else
            {
                cmbck.Visible = true;
                lblck.Visible = true;
            }
        }
Exemple #5
0
 private void cmbmonth_SelectedValueChanged(object sender, EventArgs e)
 {
     Yp.Seekkjqj(Convert.ToInt32(cmbyear.Text), Convert.ToInt32(cmbmonth.Text), Convert.ToInt32(cmbyjks.SelectedValue), InstanceForm.BDatabase);
 }