sigesp 0.9.10-20221210 → 0.9.12-20221217
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/sigesp.umd.js +89 -39
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +2 -2
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/core/interfaces/Banco.js +1 -1
- package/esm2015/lib/core/interfaces/CentroCosto.js +1 -1
- package/esm2015/lib/core/interfaces/ComprobantePresupuestario.js +1 -1
- package/esm2015/lib/core/interfaces/Servicios.js +1 -1
- package/esm2015/lib/core/interfaces/Tributos.js +1 -1
- package/esm2015/lib/core/models/CFG/locations.model.js +12 -9
- package/esm2015/lib/core/models/SCB/bank.model.js +25 -19
- package/esm2015/lib/core/models/SCG/centroCosto.model.js +6 -1
- package/esm2015/lib/core/models/SNO/MPersonal.model.js +3 -1
- package/esm2015/lib/core/models/SOC/charge.model.js +4 -1
- package/esm2015/lib/core/models/SOC/clause.model.js +6 -3
- package/esm2015/lib/core/models/SOC/clauseModality.model.js +6 -3
- package/esm2015/lib/core/models/SOC/configuracionSOC.model.js +4 -1
- package/esm2015/lib/core/models/SOC/service.model.js +7 -4
- package/esm2015/lib/core/models/SOC/serviceCharge.model.js +7 -4
- package/esm2015/lib/core/models/SOC/serviceType.model.js +8 -2
- package/esm2015/lib/core/models/SPG/comprobantePresupuestario.model.js +5 -1
- package/esm2015/lib/core/models/STB/deduction.model.js +7 -1
- package/esm2015/lib/sigesp.service.js +3 -3
- package/fesm2015/sigesp.js +89 -39
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Banco.d.ts +20 -0
- package/lib/core/interfaces/CentroCosto.d.ts +2 -0
- package/lib/core/interfaces/ComprobantePresupuestario.d.ts +2 -0
- package/lib/core/interfaces/Servicios.d.ts +7 -0
- package/lib/core/interfaces/Tributos.d.ts +3 -0
- package/lib/core/models/CFG/locations.model.d.ts +6 -6
- package/lib/core/models/SCB/bank.model.d.ts +3 -1
- package/lib/core/models/SCG/centroCosto.model.d.ts +2 -0
- package/lib/core/models/SOC/charge.model.d.ts +1 -0
- package/lib/core/models/SOC/clause.model.d.ts +1 -0
- package/lib/core/models/SOC/clauseModality.model.d.ts +1 -0
- package/lib/core/models/SOC/configuracionSOC.model.d.ts +1 -0
- package/lib/core/models/SOC/service.model.d.ts +1 -0
- package/lib/core/models/SOC/serviceCharge.model.d.ts +1 -0
- package/lib/core/models/SOC/serviceType.model.d.ts +2 -0
- package/lib/core/models/SPG/comprobantePresupuestario.model.d.ts +2 -0
- package/lib/core/models/STB/deduction.model.d.ts +2 -0
- package/lib/sigesp.service.d.ts +2 -2
- package/package.json +1 -1
- package/sigesp.metadata.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -1513,9 +1513,14 @@
|
|
|
1513
1513
|
|
|
1514
1514
|
var MCentroCosto = /** @class */ (function () {
|
|
1515
1515
|
function MCentroCosto(centroCosto) {
|
|
1516
|
+
this.idEmpresa = 0;
|
|
1517
|
+
this.idEnterprise = 0;
|
|
1518
|
+
this.idEmpresa = +centroCosto.id_empresa;
|
|
1519
|
+
this.idEnterprise = +centroCosto.id_enterprise;
|
|
1516
1520
|
this.centro = centroCosto.centro ? centroCosto.centro : centroCosto.codcencos;
|
|
1517
1521
|
this.denominacion = centroCosto.denominacion;
|
|
1518
1522
|
}
|
|
1523
|
+
;
|
|
1519
1524
|
return MCentroCosto;
|
|
1520
1525
|
}());
|
|
1521
1526
|
|
|
@@ -1889,7 +1894,9 @@
|
|
|
1889
1894
|
|
|
1890
1895
|
var MComprobantePresupuestarioEgresos = /** @class */ (function () {
|
|
1891
1896
|
function MComprobantePresupuestarioEgresos(comprobante) {
|
|
1897
|
+
this.idEnterprise = 0;
|
|
1892
1898
|
this.idEmpresa = parseInt(comprobante.id_empresa);
|
|
1899
|
+
this.idEnterprise = +comprobante.id_enterprise;
|
|
1893
1900
|
this.idComprobante = parseInt(comprobante.id_comprobante);
|
|
1894
1901
|
this.idEp1 = parseInt(comprobante.id_ep1);
|
|
1895
1902
|
this.idEp2 = parseInt(comprobante.id_ep2);
|
|
@@ -1913,7 +1920,9 @@
|
|
|
1913
1920
|
}());
|
|
1914
1921
|
var MComprobantePresupuestarioIngresos = /** @class */ (function () {
|
|
1915
1922
|
function MComprobantePresupuestarioIngresos(comprobante) {
|
|
1923
|
+
this.idEnterprise = 0;
|
|
1916
1924
|
this.idEmpresa = parseInt(comprobante.id_empresa);
|
|
1925
|
+
this.idEnterprise = +comprobante.id_enterprise;
|
|
1917
1926
|
this.idComprobante = parseInt(comprobante.id_comprobante);
|
|
1918
1927
|
this.idEp1 = parseInt(comprobante.id_ep1);
|
|
1919
1928
|
this.idEp2 = parseInt(comprobante.id_ep2);
|
|
@@ -2176,6 +2185,9 @@
|
|
|
2176
2185
|
_this.monofi = parseInt(country.monofi);
|
|
2177
2186
|
_this.monsec = parseInt(country.monsec);
|
|
2178
2187
|
}
|
|
2188
|
+
else {
|
|
2189
|
+
_this.isNew = true;
|
|
2190
|
+
}
|
|
2179
2191
|
return _this;
|
|
2180
2192
|
}
|
|
2181
2193
|
MCountry.prototype.dataInterface = function () {
|
|
@@ -2312,7 +2324,7 @@
|
|
|
2312
2324
|
}(MBasicModel));
|
|
2313
2325
|
var MCommunity = /** @class */ (function (_super) {
|
|
2314
2326
|
__extends(MCommunity, _super);
|
|
2315
|
-
function MCommunity(
|
|
2327
|
+
function MCommunity(e) {
|
|
2316
2328
|
var _this = _super.call(this) || this;
|
|
2317
2329
|
_this.code = null;
|
|
2318
2330
|
_this.countryCode = null;
|
|
@@ -2320,13 +2332,13 @@
|
|
|
2320
2332
|
_this.municipalityCode = null;
|
|
2321
2333
|
_this.parishCode = null;
|
|
2322
2334
|
_this.name = null;
|
|
2323
|
-
if (
|
|
2324
|
-
_this.code =
|
|
2325
|
-
_this.countryCode =
|
|
2326
|
-
_this.stateCode =
|
|
2327
|
-
_this.municipalityCode =
|
|
2328
|
-
_this.parishCode =
|
|
2329
|
-
_this.name =
|
|
2335
|
+
if (e) {
|
|
2336
|
+
_this.code = e.codcom.trim();
|
|
2337
|
+
_this.countryCode = e.codpai.trim();
|
|
2338
|
+
_this.stateCode = e.codest.trim();
|
|
2339
|
+
_this.municipalityCode = e.codmun.trim();
|
|
2340
|
+
_this.parishCode = e.codpar.trim();
|
|
2341
|
+
_this.name = e.descom.trim();
|
|
2330
2342
|
}
|
|
2331
2343
|
else {
|
|
2332
2344
|
_this.isNew = true;
|
|
@@ -2528,8 +2540,9 @@
|
|
|
2528
2540
|
__extends(MBank, _super);
|
|
2529
2541
|
function MBank(bank) {
|
|
2530
2542
|
var _this = _super.call(this) || this;
|
|
2531
|
-
_this.idEmpresa =
|
|
2532
|
-
_this.id =
|
|
2543
|
+
_this.idEmpresa = 0;
|
|
2544
|
+
_this.id = 0;
|
|
2545
|
+
_this.idEnterprise = 0;
|
|
2533
2546
|
_this.name = null;
|
|
2534
2547
|
_this.address = null;
|
|
2535
2548
|
_this.manager = null;
|
|
@@ -2541,9 +2554,10 @@
|
|
|
2541
2554
|
_this.swiftCode = null;
|
|
2542
2555
|
_this.code = null;
|
|
2543
2556
|
_this.email = null;
|
|
2544
|
-
_this.enableBox =
|
|
2557
|
+
_this.enableBox = false;
|
|
2545
2558
|
if (bank) {
|
|
2546
2559
|
_this.idEmpresa = parseInt(bank.id_empresa);
|
|
2560
|
+
_this.idEnterprise = +bank.id_enterprise;
|
|
2547
2561
|
_this.id = parseInt(bank.id_banco);
|
|
2548
2562
|
_this.name = bank.nomban;
|
|
2549
2563
|
_this.address = bank.dirban;
|
|
@@ -2563,6 +2577,7 @@
|
|
|
2563
2577
|
MBank.prototype.dataInterface = function () {
|
|
2564
2578
|
return {
|
|
2565
2579
|
id_empresa: this.idEmpresa.toString(),
|
|
2580
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2566
2581
|
id_banco: this.id.toString(),
|
|
2567
2582
|
codban: this.code,
|
|
2568
2583
|
nomban: this.name,
|
|
@@ -2636,23 +2651,25 @@
|
|
|
2636
2651
|
__extends(MCuentaBanco, _super);
|
|
2637
2652
|
function MCuentaBanco(cb) {
|
|
2638
2653
|
var _this = _super.call(this) || this;
|
|
2639
|
-
_this.idCuentaBanco =
|
|
2640
|
-
_this.
|
|
2641
|
-
_this.
|
|
2642
|
-
_this.
|
|
2643
|
-
_this.
|
|
2644
|
-
_this.
|
|
2645
|
-
_this.
|
|
2646
|
-
_this.
|
|
2647
|
-
_this.
|
|
2648
|
-
_this.
|
|
2649
|
-
_this.
|
|
2650
|
-
_this.
|
|
2651
|
-
_this.
|
|
2652
|
-
_this.
|
|
2653
|
-
_this.
|
|
2654
|
+
_this.idCuentaBanco = 0;
|
|
2655
|
+
_this.idEnterprise = 0;
|
|
2656
|
+
_this.idEmpresa = 0;
|
|
2657
|
+
_this.idBanco = 0;
|
|
2658
|
+
_this.idTipoCuenta = 0;
|
|
2659
|
+
_this.cuentaBanco = '';
|
|
2660
|
+
_this.cuentaExtendida = '';
|
|
2661
|
+
_this.denominacionCuenta = '';
|
|
2662
|
+
_this.cuentaContable = '';
|
|
2663
|
+
_this.fechaApertura = '1900-01-01';
|
|
2664
|
+
_this.fechaCierre = '1900-01-01';
|
|
2665
|
+
_this.estatus = 0;
|
|
2666
|
+
_this.fechaUltimaConciliacion = '1900-01-01';
|
|
2667
|
+
_this.denomCuentaContable = '';
|
|
2668
|
+
_this.nombrebanco = '';
|
|
2669
|
+
_this.nombretipocta = '';
|
|
2654
2670
|
if (cb) {
|
|
2655
2671
|
_this.idCuentaBanco = parseInt(cb.id_ctabanco);
|
|
2672
|
+
_this.idEnterprise = +cb.id_enterprise;
|
|
2656
2673
|
_this.idEmpresa = parseInt(cb.id_empresa);
|
|
2657
2674
|
_this.idBanco = parseInt(cb.id_banco);
|
|
2658
2675
|
_this.idTipoCuenta = parseInt(cb.id_tipocta);
|
|
@@ -2671,6 +2688,7 @@
|
|
|
2671
2688
|
}
|
|
2672
2689
|
MCuentaBanco.prototype.dataInterface = function () {
|
|
2673
2690
|
return {
|
|
2691
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2674
2692
|
id_ctabanco: this.idCuentaBanco.toString(),
|
|
2675
2693
|
id_empresa: this.idEmpresa.toString(),
|
|
2676
2694
|
id_banco: this.idBanco.toString(),
|
|
@@ -2724,6 +2742,7 @@
|
|
|
2724
2742
|
if (config === void 0) { config = null; }
|
|
2725
2743
|
var _this = _super.call(this) || this;
|
|
2726
2744
|
_this.id = 0;
|
|
2745
|
+
_this.idEnterprise = 0;
|
|
2727
2746
|
_this.companyId = 0;
|
|
2728
2747
|
_this.serviceOrder = 0;
|
|
2729
2748
|
_this.purchaseOrder = 0;
|
|
@@ -2738,6 +2757,7 @@
|
|
|
2738
2757
|
_this.statusMultiChargeStructure = false;
|
|
2739
2758
|
if (config) {
|
|
2740
2759
|
_this.id = parseInt(config.id_soc);
|
|
2760
|
+
_this.idEnterprise = +config.id_enterprise;
|
|
2741
2761
|
_this.companyId = parseInt(config.id_empresa);
|
|
2742
2762
|
_this.serviceOrder = parseInt(config.numordser);
|
|
2743
2763
|
_this.purchaseOrder = parseInt(config.numordcom);
|
|
@@ -2761,6 +2781,7 @@
|
|
|
2761
2781
|
return {
|
|
2762
2782
|
id_soc: this.id.toString(),
|
|
2763
2783
|
id_empresa: this.companyId.toString(),
|
|
2784
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2764
2785
|
soc_bienes: this.goods.join(','),
|
|
2765
2786
|
soc_servicios: this.services.join(','),
|
|
2766
2787
|
estapesoc: this.opening ? '1' : '0',
|
|
@@ -2807,6 +2828,7 @@
|
|
|
2807
2828
|
_this.isNew = false;
|
|
2808
2829
|
_this.error = false;
|
|
2809
2830
|
_this.idEmpresa = 0;
|
|
2831
|
+
_this.idEnterprise = 0;
|
|
2810
2832
|
_this.id = null;
|
|
2811
2833
|
_this.codigo = "";
|
|
2812
2834
|
_this.denominacion = "";
|
|
@@ -2823,6 +2845,7 @@
|
|
|
2823
2845
|
_this.estadoTipoPresupuesto = "E";
|
|
2824
2846
|
if (charge) {
|
|
2825
2847
|
_this.idEmpresa = parseInt(charge.id_empresa);
|
|
2848
|
+
_this.idEnterprise = +charge.id_enterprise;
|
|
2826
2849
|
_this.id = parseInt(charge.id_cargo);
|
|
2827
2850
|
_this.codigo = charge.codcar;
|
|
2828
2851
|
_this.denominacion = charge.dencar;
|
|
@@ -2845,6 +2868,7 @@
|
|
|
2845
2868
|
}
|
|
2846
2869
|
MCargo.prototype.interface = function () {
|
|
2847
2870
|
return {
|
|
2871
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2848
2872
|
codcar: this.codigo,
|
|
2849
2873
|
codestpro: this.codigoEstructuraEgreso,
|
|
2850
2874
|
codestprospi: this.codigoEstructuraIngreso,
|
|
@@ -2870,6 +2894,7 @@
|
|
|
2870
2894
|
function MDeduction(deduction) {
|
|
2871
2895
|
var _this = _super.call(this) || this;
|
|
2872
2896
|
_this.companyId = null;
|
|
2897
|
+
_this.idEnterprise = 0;
|
|
2873
2898
|
_this.id = null;
|
|
2874
2899
|
_this.deductionType = null;
|
|
2875
2900
|
_this.codeDeduction = "";
|
|
@@ -2882,6 +2907,7 @@
|
|
|
2882
2907
|
_this.id_conret = 0;
|
|
2883
2908
|
if (deduction) {
|
|
2884
2909
|
_this.id = parseInt(deduction.id_deduccion);
|
|
2910
|
+
_this.idEnterprise = +deduction.id_enterprise;
|
|
2885
2911
|
_this.deductionType = parseInt(deduction.id_tipded);
|
|
2886
2912
|
_this.description = deduction.dended;
|
|
2887
2913
|
_this.formula = deduction.formula;
|
|
@@ -2901,6 +2927,7 @@
|
|
|
2901
2927
|
MDeduction.prototype.dataInterface = function () {
|
|
2902
2928
|
return {
|
|
2903
2929
|
id_empresa: this.companyId.toString(),
|
|
2930
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2904
2931
|
id_deduccion: this.id.toString(),
|
|
2905
2932
|
codded: this.codeDeduction,
|
|
2906
2933
|
id_tipded: this.id.toString(),
|
|
@@ -2920,12 +2947,14 @@
|
|
|
2920
2947
|
function MConceptoRetencion(concepto) {
|
|
2921
2948
|
var _this = _super.call(this) || this;
|
|
2922
2949
|
_this.idEmpresa = 0;
|
|
2950
|
+
_this.idEnterprise = 0;
|
|
2923
2951
|
_this.idConceptoRetencion = 0;
|
|
2924
2952
|
_this.codigoConceptoRetencion = '';
|
|
2925
2953
|
_this.descripcionActividad = '';
|
|
2926
2954
|
_this.observacionConceptoRetencion = '';
|
|
2927
2955
|
if (concepto) {
|
|
2928
2956
|
_this.idEmpresa = parseInt(concepto.id_empresa);
|
|
2957
|
+
_this.idEnterprise = +concepto.id_enterprise;
|
|
2929
2958
|
_this.idConceptoRetencion = parseInt(concepto.id_conret);
|
|
2930
2959
|
_this.codigoConceptoRetencion = concepto.codconret;
|
|
2931
2960
|
_this.descripcionActividad = concepto.desact;
|
|
@@ -2939,6 +2968,7 @@
|
|
|
2939
2968
|
MConceptoRetencion.prototype.dataInterface = function () {
|
|
2940
2969
|
return {
|
|
2941
2970
|
id_empresa: this.idEmpresa.toString(),
|
|
2971
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2942
2972
|
id_conret: this.idConceptoRetencion.toString(),
|
|
2943
2973
|
codconret: this.codigoConceptoRetencion,
|
|
2944
2974
|
desact: this.descripcionActividad,
|
|
@@ -3044,13 +3074,15 @@
|
|
|
3044
3074
|
__extends(MServiceCharge, _super);
|
|
3045
3075
|
function MServiceCharge(ser) {
|
|
3046
3076
|
var _this = _super.call(this) || this;
|
|
3047
|
-
_this.companyId =
|
|
3048
|
-
_this.
|
|
3049
|
-
_this.
|
|
3077
|
+
_this.companyId = 0;
|
|
3078
|
+
_this.idEnterprise = 0;
|
|
3079
|
+
_this.id = 0;
|
|
3080
|
+
_this.serviceId = 0;
|
|
3050
3081
|
_this.denomination = '';
|
|
3051
3082
|
_this.code = '';
|
|
3052
3083
|
_this.status = false;
|
|
3053
3084
|
if (ser) {
|
|
3085
|
+
_this.idEnterprise = +ser.id_enterprise;
|
|
3054
3086
|
_this.companyId = parseInt(ser.id_empresa);
|
|
3055
3087
|
_this.id = parseInt(ser.id_cargo);
|
|
3056
3088
|
_this.serviceId = parseInt(ser.id_servicio);
|
|
@@ -3065,6 +3097,7 @@
|
|
|
3065
3097
|
}
|
|
3066
3098
|
MServiceCharge.prototype.interface = function () {
|
|
3067
3099
|
return {
|
|
3100
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
3068
3101
|
id_empresa: this.companyId.toString(),
|
|
3069
3102
|
id_cargo: this.id.toString(),
|
|
3070
3103
|
id_servicio: this.serviceId.toString(),
|
|
@@ -4984,6 +5017,8 @@
|
|
|
4984
5017
|
else if (_this.idHora > 0) {
|
|
4985
5018
|
_this.descripcionHorario = p.horini + '-' + p.horfin;
|
|
4986
5019
|
}
|
|
5020
|
+
_this.descripcionPuestoTrabajo = p.despuetra;
|
|
5021
|
+
_this.codigoPuestoTrabajo = p.codpuetra;
|
|
4987
5022
|
}
|
|
4988
5023
|
else {
|
|
4989
5024
|
_this.isNew = true;
|
|
@@ -6907,8 +6942,8 @@
|
|
|
6907
6942
|
* @param pais: Codigo del pais
|
|
6908
6943
|
|
|
6909
6944
|
*/
|
|
6910
|
-
SigespService.prototype.
|
|
6911
|
-
return this.http.get(this.URL + "/dao/cfg/ciudades_dao.php?pais=" + pais, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res.data.map(function (e) { return new MCity(e); }); }));
|
|
6945
|
+
SigespService.prototype.getCity = function (pais, estado) {
|
|
6946
|
+
return this.http.get(this.URL + "/dao/cfg/ciudades_dao.php?pais=" + pais + "&estado=" + estado, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res.data.map(function (e) { return new MCity(e); }); }));
|
|
6912
6947
|
};
|
|
6913
6948
|
/**
|
|
6914
6949
|
* @description Obtiene los sistemas activas
|
|
@@ -8102,10 +8137,14 @@
|
|
|
8102
8137
|
function MServiceType(type) {
|
|
8103
8138
|
if (type === void 0) { type = null; }
|
|
8104
8139
|
var _this = _super.call(this) || this;
|
|
8105
|
-
_this.id =
|
|
8140
|
+
_this.id = 0;
|
|
8141
|
+
_this.idEmpresa = 0;
|
|
8142
|
+
_this.idEnterprise = 0;
|
|
8106
8143
|
_this.denomination = null;
|
|
8107
8144
|
_this.observation = null;
|
|
8108
8145
|
if (type) {
|
|
8146
|
+
_this.idEmpresa = parseInt(type.id_empresa);
|
|
8147
|
+
_this.idEnterprise = +type.id_enterprise;
|
|
8109
8148
|
_this.id = parseInt(type.id_tiposervicio);
|
|
8110
8149
|
_this.denomination = type.dentipser;
|
|
8111
8150
|
_this.observation = type.obstipser;
|
|
@@ -8114,6 +8153,8 @@
|
|
|
8114
8153
|
}
|
|
8115
8154
|
MServiceType.prototype.dataAsInterface = function () {
|
|
8116
8155
|
return {
|
|
8156
|
+
id_empresa: this.idEmpresa.toString(),
|
|
8157
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
8117
8158
|
dentipser: this.denomination,
|
|
8118
8159
|
id_tiposervicio: this.id.toString(),
|
|
8119
8160
|
obstipser: this.observation
|
|
@@ -8127,15 +8168,17 @@
|
|
|
8127
8168
|
function MService(service) {
|
|
8128
8169
|
if (service === void 0) { service = null; }
|
|
8129
8170
|
var _this = _super.call(this) || this;
|
|
8130
|
-
_this.id =
|
|
8171
|
+
_this.id = 0;
|
|
8172
|
+
_this.idEnterprise = 0;
|
|
8131
8173
|
_this.code = '';
|
|
8132
|
-
_this.companyId =
|
|
8133
|
-
_this.serviceTypeId =
|
|
8174
|
+
_this.companyId = 0;
|
|
8175
|
+
_this.serviceTypeId = 0;
|
|
8134
8176
|
_this.denomination = '';
|
|
8135
8177
|
_this.amount = 0;
|
|
8136
8178
|
_this.expensesAccount = '';
|
|
8137
8179
|
_this.charges = [];
|
|
8138
8180
|
if (service) {
|
|
8181
|
+
_this.idEnterprise = +service.id_enterprise;
|
|
8139
8182
|
_this.id = parseInt(service.id_servicio);
|
|
8140
8183
|
_this.companyId = parseInt(service.id_empresa);
|
|
8141
8184
|
_this.serviceTypeId = parseInt(service.id_tiposervicio);
|
|
@@ -8151,6 +8194,7 @@
|
|
|
8151
8194
|
}
|
|
8152
8195
|
MService.prototype.dataAsInterface = function () {
|
|
8153
8196
|
return {
|
|
8197
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
8154
8198
|
denser: this.denomination,
|
|
8155
8199
|
id_empresa: this.companyId.toString(),
|
|
8156
8200
|
id_servicio: this.id.toString(),
|
|
@@ -8169,12 +8213,14 @@
|
|
|
8169
8213
|
function MClause(clause) {
|
|
8170
8214
|
if (clause === void 0) { clause = null; }
|
|
8171
8215
|
var _this = _super.call(this) || this;
|
|
8172
|
-
_this.id =
|
|
8173
|
-
_this.companyId =
|
|
8216
|
+
_this.id = 0;
|
|
8217
|
+
_this.companyId = 0;
|
|
8218
|
+
_this.idEnterprise = 0;
|
|
8174
8219
|
_this.clause = '';
|
|
8175
8220
|
_this.denomination = '';
|
|
8176
8221
|
if (clause) {
|
|
8177
8222
|
_this.companyId = parseInt(clause.id_empresa);
|
|
8223
|
+
_this.idEnterprise = +clause.id_enterprise;
|
|
8178
8224
|
_this.clause = clause.codcla;
|
|
8179
8225
|
_this.denomination = clause.dencla;
|
|
8180
8226
|
_this.id = parseInt(clause.id_clausula);
|
|
@@ -8186,6 +8232,7 @@
|
|
|
8186
8232
|
codcla: this.clause,
|
|
8187
8233
|
dencla: this.denomination,
|
|
8188
8234
|
id_empresa: this.companyId ? this.companyId.toString() : null,
|
|
8235
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
8189
8236
|
id_clausula: this.id ? this.id.toString() : null
|
|
8190
8237
|
};
|
|
8191
8238
|
};
|
|
@@ -8197,12 +8244,14 @@
|
|
|
8197
8244
|
function MClauseModality(mod) {
|
|
8198
8245
|
if (mod === void 0) { mod = null; }
|
|
8199
8246
|
var _this = _super.call(this) || this;
|
|
8200
|
-
_this.id =
|
|
8201
|
-
_this.companyId =
|
|
8247
|
+
_this.id = 0;
|
|
8248
|
+
_this.companyId = 0;
|
|
8249
|
+
_this.idEnterprise = 0;
|
|
8202
8250
|
_this.code = '';
|
|
8203
8251
|
_this.denomination = '';
|
|
8204
8252
|
_this.clauses = [];
|
|
8205
8253
|
if (mod) {
|
|
8254
|
+
_this.idEnterprise = +mod.id_enterprise;
|
|
8206
8255
|
_this.id = parseInt(mod.id_modcla);
|
|
8207
8256
|
_this.companyId = parseInt(mod.id_empresa);
|
|
8208
8257
|
_this.code = mod.codmodcla;
|
|
@@ -8213,6 +8262,7 @@
|
|
|
8213
8262
|
}
|
|
8214
8263
|
MClauseModality.prototype.dataAsInterface = function () {
|
|
8215
8264
|
return {
|
|
8265
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
8216
8266
|
clausulas: this.clauses.map(function (e) { return e.dataAsInterface(); }),
|
|
8217
8267
|
codmodcla: this.code,
|
|
8218
8268
|
denmodcla: this.denomination,
|