Пример #1
0
 public void Displayrec(ProTracker_TO.VehicleMaster e)
 {
     vehicleMaster.vm_Vehicle_Id     = e.vm_Vehicle_Id;
     vehicleMaster.vm_Vehicle_Number = e.vm_Vehicle_Number;
     vehicleMaster.vm_Vehicle_desc   = e.vm_Vehicle_desc;
     vehicleMaster.vm_Status         = e.vm_Status;
 }
Пример #2
0
        public bool IsVisible(ProTracker_TO.VehicleMaster vehicle)
        {
            if (string.IsNullOrEmpty(Filter))
            {
                return(true);
            }

            if (vehicle.vm_Vehicle_Number.Contains(Filter, StringComparison.OrdinalIgnoreCase))
            {
                return(true);
            }

            if (vehicle.vm_Vehicle_desc.Contains(Filter, StringComparison.OrdinalIgnoreCase))
            {
                return(true);
            }

            if (vehicle.vm_Vehicle_Id.ToString().Contains(Filter))
            {
                return(true);
            }

            if (vehicle.vm_Status.Equals(Filter))
            {
                return(true);
            }

            return(false);
        }
Пример #3
0
        public async Task <int> Createvehicle()
        {
            int VehicleId = await vehicle.CreateVehicle(vehicleMaster);

            SavedStatus   = "Saved Successfully";
            vehicleMaster = new ProTracker_TO.VehicleMaster();
            return(VehicleId);
        }