var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var FProcurementsPlanAttach;
(function (FProcurementsPlanAttach) {
    var FDocument = (function (_super) {
        __extends(FDocument, _super);
        function FDocument(id, version, oldVersion) {
            var _this = _super.call(this, id, version, oldVersion) || this;
            _this._excelExport = null;
            _this._procurementsSheet = null;
            _this._procurementPlanSumbyKBKSheet = null;
            _this._procurementsReasonsSheet = null;
            _this._tableRules = new FProcurementsPlanAttach.TableRules(_this);
            _this._interfaceRules = new FProcurementsPlanAttach.InterfaceRules(_this);
            return _this;
        }
        Object.defineProperty(FDocument.prototype, "ProcurementsSheet", {
            get: function () {
                if (this._procurementsSheet == null) {
                    this._procurementsSheet = new FProcurementsPlanAttach.ProcurementsSheet("ProcurementsSheet", this);
                }
                return this._procurementsSheet;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(FDocument.prototype, "ProcurementPlanSumbyKBKSheet", {
            get: function () {
                if (this._procurementPlanSumbyKBKSheet == null) {
                    this._procurementPlanSumbyKBKSheet = new FProcurementsPlanAttach.ProcurementPlanSumbyKBKSheet("ProcurementPlanSumbyKBKSheet", this);
                }
                return this._procurementPlanSumbyKBKSheet;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(FDocument.prototype, "ProcurementsReasonsSheet", {
            get: function () {
                if (this._procurementsReasonsSheet == null) {
                    this._procurementsReasonsSheet = new FProcurementsPlanAttach.ProcurementsReasonsSheet("ProcurementsReasonsSheet", this);
                }
                return this._procurementsReasonsSheet;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(FDocument.prototype, "ExcelExport", {
            get: function () {
                if (this._excelExport == null) {
                    this._excelExport = new FProcurementsPlanAttach.ExcelExport(this);
                }
                return this._excelExport;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(FDocument.prototype, "TableRules", {
            get: function () {
                return this._tableRules;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(FDocument.prototype, "InterfaceRules", {
            get: function () {
                return this._interfaceRules;
            },
            enumerable: true,
            configurable: true
        });
        return FDocument;
    }(BaseDocumentObject));
    FProcurementsPlanAttach.FDocument = FDocument;
})(FProcurementsPlanAttach || (FProcurementsPlanAttach = {}));
