sigesp 0.9.81-20231022 → 0.9.83-20230111

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.
@@ -1120,29 +1120,63 @@ class MCuentaPresupuesto {
1120
1120
  }
1121
1121
  }
1122
1122
 
1123
- class MCuentaInstitucional {
1123
+ class MCuentaInstitucional extends MBasicModel {
1124
1124
  constructor(institucional) {
1125
- this.cuenta = institucional.sc_cuenta;
1126
- this.cueproacu = institucional.cueproacu;
1127
- this.denominacion = institucional.denominacion;
1128
- this.enero = institucional.enero;
1129
- this.febrero = institucional.febrero;
1130
- this.marzo = institucional.marzo;
1131
- this.abril = institucional.abril;
1132
- this.mayo = institucional.mayo;
1133
- this.junio = institucional.junio;
1134
- this.julio = institucional.julio;
1135
- this.agosto = institucional.agosto;
1136
- this.septiembre = institucional.septiembre;
1137
- this.octubre = institucional.octubre;
1138
- this.noviembre = institucional.noviembre;
1139
- this.diciembre = institucional.diciembre;
1140
- this.asignado = institucional.asignado;
1141
- this.distribuir = institucional.distribuir;
1142
- this.status = institucional.estatus;
1143
- this.idEmpresa = institucional.id_empresa;
1144
- this.nivel = institucional.nivel;
1145
- this.referencia = institucional.referencia;
1125
+ super();
1126
+ this.cuenta = '';
1127
+ this.cueproacu = '';
1128
+ this.denominacion = '';
1129
+ this.enero = '';
1130
+ this.febrero = '';
1131
+ this.marzo = '';
1132
+ this.abril = '';
1133
+ this.mayo = '';
1134
+ this.junio = '';
1135
+ this.julio = '';
1136
+ this.agosto = '';
1137
+ this.septiembre = '';
1138
+ this.octubre = '';
1139
+ this.noviembre = '';
1140
+ this.diciembre = '';
1141
+ this.asignado = '';
1142
+ this.distribuir = '';
1143
+ this.status = '';
1144
+ this.idEmpresa = '';
1145
+ this.nivel = '';
1146
+ this.referencia = '';
1147
+ this.denominacionCuentaProvisionAcumulada = '';
1148
+ this.denominacionCuentaReferencia = '';
1149
+ this.denominacionEstatus = '';
1150
+ this.isNew = false;
1151
+ if (institucional) {
1152
+ this.cuenta = institucional.sc_cuenta;
1153
+ this.cueproacu = institucional.cueproacu;
1154
+ this.denominacion = institucional.denominacion;
1155
+ this.enero = institucional.enero;
1156
+ this.febrero = institucional.febrero;
1157
+ this.marzo = institucional.marzo;
1158
+ this.abril = institucional.abril;
1159
+ this.mayo = institucional.mayo;
1160
+ this.junio = institucional.junio;
1161
+ this.julio = institucional.julio;
1162
+ this.agosto = institucional.agosto;
1163
+ this.septiembre = institucional.septiembre;
1164
+ this.octubre = institucional.octubre;
1165
+ this.noviembre = institucional.noviembre;
1166
+ this.diciembre = institucional.diciembre;
1167
+ this.asignado = institucional.asignado;
1168
+ this.distribuir = institucional.distribuir;
1169
+ this.status = institucional.estatus;
1170
+ this.idEmpresa = institucional.id_empresa;
1171
+ this.nivel = institucional.nivel;
1172
+ this.referencia = institucional.referencia;
1173
+ this.denominacionCuentaProvisionAcumulada = institucional.dencueproacu;
1174
+ this.denominacionCuentaReferencia = institucional.denctareferecia;
1175
+ institucional.estatus == 'C' ? this.denominacionEstatus = 'Movimiento' : this.denominacionEstatus = 'Totalizadora';
1176
+ }
1177
+ else {
1178
+ this.isNew = true;
1179
+ }
1146
1180
  }
1147
1181
  }
1148
1182
 
@@ -2265,8 +2299,9 @@ class MComprobantePresupuestarioIngresos {
2265
2299
  }
2266
2300
  // TERMINAR EL MODELO
2267
2301
 
2268
- class MCuentaIngresos {
2302
+ class MCuentaIngresos extends MBasicModel {
2269
2303
  constructor(cuenta = null, isNew = false) {
2304
+ super();
2270
2305
  this.idEmpresa = null;
2271
2306
  this.nivel = null;
2272
2307
  this.denominacion = '';
@@ -6400,6 +6435,12 @@ class SigespService {
6400
6435
  }
6401
6436
  return false;
6402
6437
  }
6438
+ onlyNumbers2(event) {
6439
+ if (!isNaN(+event.key) || event.keyCode == 32 || event.keyCode == 8 || event.keyCode == 46) {
6440
+ return true;
6441
+ }
6442
+ return false;
6443
+ }
6403
6444
  /**
6404
6445
  * @description Permite (a-z A-Z á-ú ñÑ üÜ ',.) que se escriban numeros en el input (Usar en keypress)
6405
6446
  * @param event Evento del teclado
@@ -8855,6 +8896,8 @@ class MCargosPersonal extends MBasicModel {
8855
8896
  id_personalcargo: this.idPersonalCargo.toString(),
8856
8897
  id_clasificacion_docente: this.idClasificadorDocente.toString(),
8857
8898
  id_claper: this.idClasificadorPersonal.toString(),
8899
+ id_dedicacion: this.idDedicacion.toString(),
8900
+ id_tipopersonal: this.idTipoPersonalSno.toString(),
8858
8901
  detalles_organigrama: this.detallesOrganigrama.map(function (e) { return e.dataInterface(); }),
8859
8902
  detalles_nomina: this.detallesNomina.map(function (e) { return e.dataInterface(); }),
8860
8903
  };