protected void btnSubmit_Click(object sender, EventArgs e)
    {
        _fmsgenobj.DecommReason = txtDecommReason.Text;
        _fmsgenobj.DecommDate   = Convert.ToDateTime(txtDecommDate.Text);
        _fmsgenobj.DecommRemark = txtDecommRemark.Text;
        switch (btnSubmit.Text)
        {
        case "Submit":
            _fmsgenobj.UserDistrictId = Convert.ToInt16(ddlDistrict.SelectedItem.Value);
            _fmsgenobj.VehicleId      = Convert.ToInt32(ddlVehicleNumber.SelectedItem.Value);
            var decommres = _fmsgenobj.InsVehicleDecommDetails();
            Show(decommres != 0 ? "Record Inserted Successfully!!" : "Error!!");
            break;

        default:
            _fmsgenobj.VehicleDecommId = Convert.ToInt32(ViewState["VehDecommId"]);
            var decommupdtres = _fmsgenobj.UpdtVehicleDecommDetails();
            Show(decommupdtres != 0 ? "Record Updated Successfully!!" : "Error!!");
            break;
        }

        ClearAll();
        GetDecommVehicleDetails();
    }