コード例 #1
0
ファイル: Vehicle_Overview.cs プロジェクト: ShunkevichDV/FIS
 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();
 }
コード例 #2
0
ファイル: Vehicle_Overview.cs プロジェクト: ShunkevichDV/FIS
 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;
 }
コード例 #3
0
ファイル: Data.aspx.cs プロジェクト: ShunkevichDV/FIS
    protected void Vehicles_InsertedCardType(object sender, EventArgs e)
    {
        EnableAllVehiclesPreviewButtons();
        VehicleInsertedCardType.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.CardSlotsStatus slotsStatus = new DDDClass.CardSlotsStatus();
            slotsStatus = dataBlock.vehicleUnitInfo.Get_VehicleOverview_CardSlotsStatus(dataBlockId);

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