protected void btnClick_btnupdateVehicleOperation(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                transportdata              = new TransportData();
                transport                  = new Transports();
                transport.VOp              = string.IsNullOrEmpty(hfvoperationId.Value) ? 0 : Convert.ToInt32(hfvoperationId.Value);
                transport.dispatchId       = string.IsNullOrEmpty(lblDispatchId.Text) ? 0 : Convert.ToInt32(lblDispatchId.Text);
                transport.StartDate        = string.IsNullOrEmpty(txtStartDate.Text) ? string.Empty : (Convert.ToDateTime(txtStartDate.Text)).ToString("dd-MM-yyyy");
                transport.StartTime        = string.IsNullOrEmpty(txtStartTime.Text) ? string.Empty : (Convert.ToDateTime(txtStartTime.Text)).ToString("HH:mm");
                transport.scheduleOuttime  = string.IsNullOrEmpty(txtSchedueOutTime.Text) ? string.Empty : (Convert.ToDateTime(txtSchedueOutTime.Text)).ToString("HH:mm");
                transport.scheduleIntime   = string.IsNullOrEmpty(txtScheduleEndTime.Text) ? string.Empty : (Convert.ToDateTime(txtScheduleEndTime.Text)).ToString("HH:mm");
                transport.StartKm          = string.IsNullOrEmpty(txtStartKm.Text) ? 0 : Convert.ToDecimal(txtStartKm.Text);
                transport.bata             = string.IsNullOrEmpty(txtBata.Text) ? 0 : Convert.ToDecimal(txtBata.Text);
                transport.salesbata        = string.IsNullOrEmpty(txtSalesBata.Text) ? 0 : Convert.ToDecimal(txtSalesBata.Text);
                transport.operationtype    = Convert.ToInt32(dpOperations.SelectedItem.Value);
                transport.FirstDriver      = Convert.ToInt32(dpDriver.SelectedItem.Value);
                transport.SecondDriver     = Convert.ToInt32(dpDriver2.SelectedItem.Value);
                transport.SalesmanId       = Convert.ToInt32(dpSalesman.SelectedItem.Value);
                transport.SecondSalesmanId = Convert.ToInt32(dpSecondSalesmanId.SelectedItem.Value);
                transport.CreatedBy        = GlobalInfo.Userid;
                transport.Createddate      = DateTime.Now.ToString("dd-MM-yyyy");
                transport.ModifiedBy       = GlobalInfo.Userid;
                transport.ModifiedDate     = DateTime.Now.ToString("dd-MM-yyyy");
                transport.IsActive         = true;
                transport.flag             = "Add";
                int Result = 0;
                Result = transportdata.AddVehicleProductOutOperationInfo(transport);
                if (Result > 0)
                {
                    divDanger.Visible   = false;
                    divwarning.Visible  = false;
                    divSusccess.Visible = true;
                    lblSuccess.Text     = "Vehicle Operation Updated  Successfully";

                    ClearTextBox();
                    BindVehicleOperationInfo();
                    pnlError.Update();
                    upMain.Update();
                    uprouteList.Update();
                    btnupdateVehicleOperation.Visible = false;
                    btnAddVehicleOperation.Visible    = true;
                }
                else
                {
                    divDanger.Visible   = false;
                    divwarning.Visible  = true;
                    divSusccess.Visible = false;
                    lblwarning.Text     = "Please Contact to Site Admin";
                    pnlError.Update();
                }
            }
        }