예제 #1
0
        protected void Button1_Click1(object sender, EventArgs e)
        {
            if (Basic_Checks._Textbox_Not_Empty(TextBox_VAllocation_Type, Label85, "*"))
            {
                SqlDataSource_VAllocationType.Insert();
            }

            GridView_VAllocationType.DataBind();
            TextBox_VAllocation_Description.Text = "";
            TextBox_VAllocation_Type.Text        = "";
        }
예제 #2
0
        protected void Button_P3_Save_Click(object sender, EventArgs e)
        {
            if (Basic_Checks._Textbox_Not_Empty(TextBox_VehicleType, Label82, "*"))
            {
                SqlDataSource_Vehicle_Type.Insert();
            }

            TextBox_VehicleType.Text = "";
            GridView2.DataBind();
            Panel10.Visible = true;
            Panel3.Visible  = false;
            Vehicle_Type_Id.DataBind();
        }
예제 #3
0
        protected void Button_P1_Save_Click(object sender, EventArgs e)
        {
            if (Basic_Checks._Textbox_Not_Empty(TextBox_P1_Class, Label80, "*"))
            {
                SqlDataSource_Vehicle_Class_Id.Insert();
            }

            GridView1.DataBind();
            TextBox_P1_Class.Text       = "";
            TextBox_P1_Description.Text = "";
            Panel10.Visible             = true;
            Panel1.Visible = false;
            DropDownList_Vehicle_Class_Id.DataBind();
        }
        protected void Button2_Click(object sender, EventArgs e)
        {
            if (Basic_Checks._Textbox_Not_Empty(TextBox1, Label86, "*"))
            {
                SqlDataSource_FuelStation.Insert();
            }

            GridView_FuelStation.DataBind();
            TextBox1.Text = "";
            TextBox2.Text = "";
            TextBox3.Text = "";
            TextBox4.Text = "";
            TextBox5.Text = "";
            TextBox6.Text = "";
            //TextBox.Text = "";
        }
예제 #5
0
        protected void Button3_Click(object sender, EventArgs e)
        {
            if (Basic_Checks._Textbox_Not_Empty(TextBox7, Label87, "*"))
            {
                SqlDataSource_Workshop.Insert();
            }

            GridView4.DataBind();
            TextBox7.Text  = "";
            TextBox8.Text  = "";
            TextBox9.Text  = "";
            TextBox10.Text = "";
            TextBox11.Text = "";
            TextBox12.Text = "";
            TextBox13.Text = "";
        }