{"size": 2575, "ext": "js", "max_stars_repo_path": "Code/Websites/DanpheEMR/wwwroot/DanpheApp/src/app/inventory/shared/return-to-vendor-items.model.js", "max_stars_repo_name": "MenkaChaugule/hospital-management-emr", "max_stars_repo_stars_event_min_datetime": "2022-03-03T09:53:27.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-03T09:53:27.000Z", "max_issues_repo_path": "Code/Websites/DanpheEMR/wwwroot/DanpheApp/src/app/inventory/shared/return-to-vendor-items.model.js", "max_issues_repo_name": "MenkaChaugule/hospital-management-emr", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Code/Websites/DanpheEMR/wwwroot/DanpheApp/src/app/inventory/shared/return-to-vendor-items.model.js", "max_forks_repo_name": "MenkaChaugule/hospital-management-emr", "max_forks_repo_forks_event_min_datetime": "2022-02-01T03:55:18.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-02T07:31:08.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 3, "avg_line_length": 39.6153846154, "max_line_length": 94, "alphanum_fraction": 0.625631068}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReturnToVendorItem = void 0;
var forms_1 = require("@angular/forms");
var ReturnToVendorItem = /** @class */ (function () {
    function ReturnToVendorItem() {
        this.ReturnToVendorItemId = 0;
        this.ReturnToVendorId = null;
        this.VendorId = null;
        this.ItemId = null;
        this.VendorName = null;
        this.ItemName = null;
        this.GoodsReceiptItemId = null;
        this.GoodsReceiptId = null;
        this.CreditNoteNo = null;
        this.StockId = null;
        this.Quantity = null;
        this.ItemRate = null;
        this.TotalAmount = null;
        this.VATAmount = null;
        this.Remark = null;
        this.ReturnType = null;
        this.CreatedOn = null;
        this.CreatedBy = null;
        this.ItemCode = null;
        this.SupplierBillNo = null;
        this.Item = null;
        this.VAT = null;
        this.BatchNo = null;
        this.AvailableQuantity = null;
        this.batchNoList = new Array();
        this.ReturnItemValidator = null;
        var _formBuilder = new forms_1.FormBuilder();
        this.ReturnItemValidator = _formBuilder.group({
            'ItemId': ['', forms_1.Validators.compose([forms_1.Validators.required])],
            'Quantity': ['', forms_1.Validators.compose([forms_1.Validators.required])],
            'BatchNo': ['', forms_1.Validators.compose([forms_1.Validators.required])],
            'GoodsReceiptId': ['', forms_1.Validators.compose([forms_1.Validators.required])],
            //'CreditNoteNo': ['', Validators.compose([Validators.required])],
            'Remark': ['', forms_1.Validators.compose([forms_1.Validators.required])]
        });
    }
    ReturnToVendorItem.prototype.IsDirty = function (fieldName) {
        if (fieldName == undefined)
            return this.ReturnItemValidator.dirty;
        else
            return this.ReturnItemValidator.controls[fieldName].dirty;
    };
    ReturnToVendorItem.prototype.IsValid = function () { if (this.ReturnItemValidator.valid) {
        return true;
    }
    else {
        return false;
    } };
    ReturnToVendorItem.prototype.IsValidCheck = function (fieldName, validator) {
        if (fieldName == undefined) {
            return this.ReturnItemValidator.valid;
        }
        else
            return !(this.ReturnItemValidator.hasError(validator, fieldName));
    };
    return ReturnToVendorItem;
}());
exports.ReturnToVendorItem = ReturnToVendorItem;
//# sourceMappingURL=return-to-vendor-items.model.js.map