UNPKG

devexpress-reporting

Version:

DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.

36 lines (35 loc) 1.72 kB
/** * DevExpress HTML/JS Reporting (designer\wizard\internal\_commonRequestModel.js) * Version: 20.2.13 * Build date: Apr 10, 2023 * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED * License: https://www.devexpress.com/Support/EULAs/universal.xml */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var reportWizardState_1 = require("../reportWizardState"); var CommonRequestModel = (function () { function CommonRequestModel(state) { if (state.reportType === reportWizardState_1.ReportType.Label) { this.CustomLabelInformation = { Height: state.labelDetails.height, HorizontalPitch: state.labelDetails.hPitch, LeftMargin: state.labelDetails.leftMargin, RightMargin: state.labelDetails.rightMargin, PaperKindDataId: state.labelDetails.paperKindId, TopMargin: state.labelDetails.topMargin, BottomMargin: state.labelDetails.bottomMargin, Unit: state.labelDetails.unit === reportWizardState_1.GraphicsUnit.Inch ? reportWizardState_1.GraphicsUnit.Inch : reportWizardState_1.GraphicsUnit.Millimeter, VerticalPitch: state.labelDetails.vPitch, Width: state.labelDetails.width }; this.LabelProductId = state.labelDetails.productId; this.LabelProductDetailId = state.labelDetails.id; } this.IgnoreNullValuesForSummary = state.ignoreNullValuesForSummary; this.ReportTitle = state.reportTitle; this.ReportType = state.reportType; } return CommonRequestModel; }()); exports.CommonRequestModel = CommonRequestModel;