예제 #1
0
        private void button12_Click(object sender, EventArgs e)
        {
            this.Hide();
            ProfitManagagement4 p4 = new ProfitManagagement4();

            p4.Show();
        }
예제 #2
0
        private void button10_Click(object sender, EventArgs e)
        {
            con.Open();
            string update = "DELETE Enter_Salary_Details where employeeid = '" + this.textemployeeidd.Text + "'";

            cmd             = new SqlCommand(update, con);
            cmd.CommandType = CommandType.Text;
            cmd.ExecuteNonQuery();


            con.Close();

            this.Hide();
            ProfitManagagement4 p4 = new ProfitManagagement4();

            p4.Show();
        }
예제 #3
0
        private void button12_Click(object sender, EventArgs e)
        {
            con.Open();
            string delete = "DELETE DETAILS_OF_REPAIRES where reid = '" + this.textrepairid.Text + "'";

            cmd             = new SqlCommand(delete, con);
            cmd.CommandType = CommandType.Text;
            cmd.ExecuteNonQuery();

            string delete2 = "DELETE PROFIT where repair_id = '" + this.textrepairid.Text + "'";

            cmd             = new SqlCommand(delete2, con);
            cmd.CommandType = CommandType.Text;
            cmd.ExecuteNonQuery();

            con.Close();

            this.Hide();
            ProfitManagagement4 p4 = new ProfitManagagement4();

            p4.Show();
        }
예제 #4
0
        private void button12_Click(object sender, EventArgs e)
        {
            con.Open();
            string delete = "DELETE ENTER_DETAILS_FOR_TRIPS where tripid = '" + this.texttripid.Text + "'";

            cmd             = new SqlCommand(delete, con);
            cmd.CommandType = CommandType.Text;
            cmd.ExecuteNonQuery();

            string delete1 = "DELETE PROFIT where trip_id = '" + this.texttripid.Text + "'";

            cmd             = new SqlCommand(delete1, con);
            cmd.CommandType = CommandType.Text;
            cmd.ExecuteNonQuery();



            con.Close();

            this.Hide();
            ProfitManagagement4 p4 = new ProfitManagagement4();

            p4.Show();
        }