private void button12_Click(object sender, EventArgs e) { this.Hide(); ProfitManagement5 p5 = new ProfitManagement5(); p5.Show(); }
private void button11_Click(object sender, EventArgs e) { con.Open(); string update = "UPDATE Enter_Salary_Details set employeename = '" + this.textemployeename.Text.ToString() + "' , amount = '" + this.textemployeeamount.Text.ToString() + "' where employeeid = '" + this.textemployeeidd.Text + "'"; cmd = new SqlCommand(update, con); cmd.CommandType = CommandType.Text; cmd.ExecuteNonQuery(); con.Close(); this.Hide(); ProfitManagement5 p5 = new ProfitManagement5(); p5.Show(); }
private void button11_Click(object sender, EventArgs e) { con.Open(); string update = "UPDATE ENTER_DETAILS_FOR_TRIPS set tripamount = '" + this.texttripamount.Text.ToString() + "' where tripid = '" + this.texttripid.Text + "'"; cmd = new SqlCommand(update, con); cmd.CommandType = CommandType.Text; cmd.ExecuteNonQuery(); string update2 = "UPDATE PROFIT set amount_for_trips = '" + this.texttripamount.Text.ToString() + "' where trip_id = '" + this.texttripid.Text + "'"; cmd = new SqlCommand(update2, con); cmd.CommandType = CommandType.Text; cmd.ExecuteNonQuery(); con.Close(); this.Hide(); ProfitManagement5 p5 = new ProfitManagement5(); p5.Show(); }
private void button11_Click(object sender, EventArgs e) { con.Open(); string update = "UPDATE DETAILS_OF_REPAIRES set reamount = '" + this.textrepairamount.Text.ToString() + "' where reid = '" + this.textrepairid.Text + "'"; cmd = new SqlCommand(update, con); cmd.CommandType = CommandType.Text; cmd.ExecuteNonQuery(); string update2 = "UPDATE PROFIT set amount_for_repaires = '" + this.textrepairamount.Text.ToString() + "' where repair_id = '" + this.textrepairid.Text + "'"; cmd = new SqlCommand(update, con); cmd.CommandType = CommandType.Text; cmd.ExecuteNonQuery(); con.Close(); this.Hide(); ProfitManagement5 p5 = new ProfitManagement5(); p5.Show(); }