Esempio 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();
 }
Esempio 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;
 }
Esempio n. 3
0
    protected void Vehicles_DownloadablePeriod(object sender, EventArgs e)
    {
        EnableAllVehiclesPreviewButtons();
        VehicleDownloadablePeriod_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.VuDownloadablePeriod period = new DDDClass.VuDownloadablePeriod();
            period = dataBlock.vehicleUnitInfo.Get_VehicleOverview_VuDownloadablePeriod(dataBlockId);

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