Ejemplo n.º 1
0
 public Vehicle_Overview()
 {
     memberStateCertificate = new MemberStateCertificate();
     vuCertificate = new VuCertificate();
     vehicleIdentificationNumber = new VehicleIdentificationNumber();
     vehicleRegistrationIdentification = new VehicleRegistrationIdentification();
     currentDateTime = new CurrentDateTime();
     vuDownloadablePeriod = new VuDownloadablePeriod();
     cardSlotsStatus = new CardSlotsStatus();
     vuDownloadActivityData = new VuDownloadActivityData();
     vuCompanyLocksData = new VuCompanyLocksData();
     vuControlActivityData = new VuControlActivityData();
 }
Ejemplo n.º 2
0
 public Vehicle_Overview(byte[] value)
 {
     int offset1 = 194 + 194 + 17 + 1 + 14 + 4 + 4 + 4 + 1 + 4 + 18 + 36;
     memberStateCertificate = new MemberStateCertificate(HexBytes.arrayCopy(value, 0, 194));
     vuCertificate = new VuCertificate(HexBytes.arrayCopy(value, 194, 194));
     vehicleIdentificationNumber = new VehicleIdentificationNumber(HexBytes.arrayCopy(value, 388, 17));
     vehicleRegistrationIdentification = new VehicleRegistrationIdentification(HexBytes.arrayCopy(value, 405, 15));
     currentDateTime = new CurrentDateTime(HexBytes.arrayCopy(value, 420, 4));
     vuDownloadablePeriod = new VuDownloadablePeriod(HexBytes.arrayCopy(value, 424, 8));
     cardSlotsStatus = new CardSlotsStatus(value[432]);
     vuDownloadActivityData = new VuDownloadActivityData(HexBytes.arrayCopy(value, 433, 58));
     int offset2 = 1 + HexBytes.convertIntoUnsigned1ByteInt(value[offset1]) * VuCompanyLocksRecord.structureSize;
     vuCompanyLocksData = new VuCompanyLocksData(HexBytes.arrayCopy(value, offset1, offset2));
     int offset3 = 1 + HexBytes.convertIntoUnsigned1ByteInt(value[offset1 + offset2]) * VuControlActivityRecord.structureSize;
     vuControlActivityData = new VuControlActivityData(HexBytes.arrayCopy(value, offset1 + offset2, offset3));
     size = offset1 + offset2 + offset3;
 }
Ejemplo n.º 3
0
    protected void Vehicles_DownloadActivityData(object sender, EventArgs e)
    {
        EnableAllVehiclesPreviewButtons();
        VehicleDownloadActivityData_btn.Enabled = false;
        FilesPreviewPanel.Visible = true;

        string connectionString = ConfigurationSettings.AppSettings["fleetnetbaseConnectionString"];
        DataBlock dataBlock = new DataBlock(connectionString, ConfigurationManager.AppSettings["language"]);
        try
        {
            int dataBlockId = Convert.ToInt32(onlyForInternal.Value);

            dataBlock.OpenConnection();
            DDDClass.VuDownloadActivityData data = new DDDClass.VuDownloadActivityData();
            data = dataBlock.vehicleUnitInfo.Get_VehicleOverview_VuDownloadActivityData(dataBlockId);

            FilesPreviewDataGrid.DataSource = VehiclePreviewDataTable.VehiclePreview_DownloadActivityData(data);
            FilesPreviewDataGrid.DataBind();
        }
        catch (Exception ex)
        {
            Status.Text = ex.Message;
            TextBoxTest.Text = "";
            TextBoxTest.Visible = false;
            StatusUpdatePanel.Update();
        }
        finally
        {
            dataBlock.CloseConnection();
            ModalPopupExtender1.Hide();
        }
    }