Mazmunı kirisiw




Download 0,93 Mb.
bet10/12
Sana18.05.2024
Hajmi0,93 Mb.
#241528
1   ...   4   5   6   7   8   9   10   11   12
Bog'liq
Miymanxanalardi basqariw sistemasi (C# programming language)

Saqlaw

  • Qosıw

  • Ózgertiriw.

    1)
    private void bunifuButton5_Click(object sender, EventArgs e)
    {
    DateTime DateIn, DateOut; int TotalDays;
    DateIn = Convert.ToDateTime(dtp_date_in.Value); DateOut = Convert.ToDateTime(dtp_date_out.Value); TotalDays = (DateOut-DateIn).Days;
    if (cmb_room_type.Text == "Bir adamli 50 000/kun")
    {
    textBox1.Text = System.Convert.ToString(TotalDays*50000); textBox1.Enabled = false;
    }
    else if (cmb_room_type.Text == "Eki adamli 70 000/kun")
    {
    textBox1.Text = System.Convert.ToString(TotalDays * 70000); textBox1.Enabled = false;
    }
    else if (cmb_room_type.Text == "Shańaraqlı 90 000/kun")
    {
    textBox1.Text = System.Convert.ToString(TotalDays * 90000); textBox1.Enabled = false;
    }
    }

    2)


    private void Bron_Load(object sender, EventArgs e)
    {
    this.bronTableAdapter.Fill(this.bronSet.Bron); bronBindingSource.DataSource = this.bronSet.Bron; fillroomno();
    }
    private void bunifuButton1_Click(object sender, EventArgs e)
    {
    Save s = new Save(); bronBindingSource.EndEdit(); this.bronTableAdapter.Update(this.bronSet.Bron); dataGridView1.Enabled = false; txt_client_id.Enabled = false; cmb_room_type.Enabled = false; cmb_room_no.Enabled = false;
    dtp_date_in.Enabled = false; dtp_date_out.Enabled = false; textBox1.Enabled = false; bunifuButton1.Enabled = false; s.Show();
    }


    3)


    private void bunifuButton2_Click(object sender, EventArgs e)
    {
    try
    {
    txt_client_id.Focus(); this.bronSet.Bron.AddBronRow(this.bronSet.Bron.NewBronRow()); bronBindingSource.MoveLast();
    txt_client_id.Enabled = true; cmb_room_type.Enabled = true;

    cmb_room_no.Enabled = true; dtp_date_in.Enabled = true; dtp_date_out.Enabled = true; textBox1.Enabled = true; bunifuButton1.Enabled = true; dataGridView1.Enabled = true;


    }
    catch (Exception ex)
    {
    MessageBox.Show(ex.Message, "Xabar", MessageBoxButtons.OK, MessageBoxIcon.Error);
    bronBindingSource.ResetBindings(false);
    }
    }

    4)


    private void bunifuButton3_Click(object sender, EventArgs e)
    {
    txt_client_id.Enabled = true; cmb_room_type.Enabled = true; cmb_room_no.Enabled = true; dtp_date_in.Enabled = true; dtp_date_out.Enabled = true; textBox1.Enabled = true; bunifuButton1.Enabled = true; dataGridView1.Enabled = true;
    }

    Download 0,93 Mb.
  • 1   ...   4   5   6   7   8   9   10   11   12




    Download 0,93 Mb.