Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# adcom iosV
Version ios
# Adcom iosV
Esta version es version android, cuidado con juntar las ramas, ios tiene librerias diferentes a las de android y pueden chocar
39 changes: 39 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />

<queries>
<intent>
<action android:name="android.media.action.IMAGE_CAPTURE" />
Expand All @@ -18,6 +20,43 @@
android:usesCleartextTraffic="true"
android:icon="@mipmap/ic_launcher">

<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileProvider"
android:exported="false"
android:grantUriPermissions="true"
tools:replace="android:authorities">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/filepaths"
tools:replace="android:resource" />
</provider>

<provider
android:name="vn.hunghd.flutterdownloader.DownloadedFileProvider"
android:authorities="${applicationId}.flutter_downloader.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>

<provider
android:name="androidx.work.impl.WorkManagerInitializer"
android:authorities="${applicationId}.workmanager-init"
tools:node="remove" />

<provider
android:name="vn.hunghd.flutterdownloader.FlutterDownloaderInitializer"
android:authorities="${applicationId}.flutter-downloader-init"
android:exported="false">
<!-- changes this number to configure the maximum number of concurrent tasks -->
<meta-data
android:name="vn.hunghd.flutterdownloader.MAX_CONCURRENT_TASKS"
android:value="5" />
</provider>

<activity
android:name=".MainActivity"
android:launchMode="singleTop"
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/res/xml/network_security_config.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config xmlns:tools="http://schemas.android.com/tools">
<base-config cleartextTrafficPermitted="false">
<domain includeSubdomains="true">http://187.189.53.8:8080</domain>
<domain includeSubdomains="true">http://187.189.53.8:8081</domain>
<domain tools:ignore="NetworkSecurityConfig">http://192.168.1.178/AdcomBackend/backend/web/index.php?r=adcom/get-directorio</domain>
<domain tools:ignore="NetworkSecurityConfig">http://187.197.53.8/AdcomBackend/backend/web/index.php?r=adcom/get-directorio</domain>
<trust-anchors>
Expand Down
Binary file added assets/images/magic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/zzz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
94 changes: 94 additions & 0 deletions lib/json/json-getComunidades.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
// To parse this JSON data, do
//
// final progres = progresFromJson(jsonString);

// To parse this JSON data, do
//
// final comunities = comunitiesFromJson(jsonString);

import 'dart:convert';

Comunities comunitiesFromJson(String str) =>
Comunities.fromJson(json.decode(str));

String comunitiesToJson(Comunities data) => json.encode(data.toJson());

class Comunities {
Comunities({
this.value,
this.message,
this.data,
});

int? value;
String? message;
List<Datum>? data;

factory Comunities.fromJson(Map<String, dynamic> json) => Comunities(
value: json["value"],
message: json["message"],
data: List<Datum>.from(json["data"].map((x) => Datum.fromJson(x))),
);

Map<String, dynamic> toJson() => {
"value": value,
"message": message,
"data": List<dynamic>.from(data!.map((x) => x.toJson())),
};
}

class Datum {
Datum({
this.idCom,
this.nombreComu,
this.ubicacion,
this.cp,
this.idAdministrador,
this.idComite,
this.idTipoComu,
this.banco,
this.cuentaBanco,
this.cuentaClabe,
this.rfc,
});

int? idCom;
String? nombreComu;
String? ubicacion;
int? cp;
dynamic? idAdministrador;
dynamic? idComite;
String? idTipoComu;
String? banco;
String? cuentaBanco;
String? cuentaClabe;
String? rfc;

factory Datum.fromJson(Map<String, dynamic> json) => Datum(
idCom: json["ID_COM"],
nombreComu: json["NOMBRE_COMU"],
ubicacion: json["UBICACION"] == null ? null : json["UBICACION"],
cp: json["CP"] == null ? null : json["CP"],
idAdministrador: json["ID_ADMINISTRADOR"],
idComite: json["ID_COMITE"],
idTipoComu: json["ID_TIPO_COMU"] == null ? null : json["ID_TIPO_COMU"],
banco: json["BANCO"] == null ? null : json["BANCO"],
cuentaBanco: json["CUENTA_BANCO"] == null ? null : json["CUENTA_BANCO"],
cuentaClabe: json["CUENTA_CLABE"] == null ? null : json["CUENTA_CLABE"],
rfc: json["RFC"] == null ? null : json["RFC"],
);

Map<String, dynamic> toJson() => {
"ID_COM": idCom,
"NOMBRE_COMU": nombreComu,
"UBICACION": ubicacion == null ? null : ubicacion,
"CP": cp == null ? null : cp,
"ID_ADMINISTRADOR": idAdministrador,
"ID_COMITE": idComite,
"ID_TIPO_COMU": idTipoComu == null ? null : idTipoComu,
"BANCO": banco == null ? null : banco,
"CUENTA_BANCO": cuentaBanco == null ? null : cuentaBanco,
"CUENTA_CLABE": cuentaClabe == null ? null : cuentaClabe,
"RFC": rfc == null ? null : rfc,
};
}
144 changes: 83 additions & 61 deletions lib/json/jsonFinanzas.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// To parse this JSON data, do
//
// final places = placesFromJson(jsonString);

// To parse this JSON data, do
//
// final accounts = accountsFromJson(jsonString);
Expand All @@ -24,36 +20,44 @@ class Accounts {
List<Datum>? data;

factory Accounts.fromJson(Map<String, dynamic> json) => Accounts(
value: json["value"],
message: json["message"],
data: List<Datum>.from(json["data"].map((x) => Datum.fromJson(x))),
value: json["value"] == null ? null : json["value"],
message: json["message"] == null ? null : json["message"],
data: json["data"] == null
? null
: List<Datum>.from(json["data"].map((x) => Datum.fromJson(x))),
);

Map<String, dynamic> toJson() => {
"value": value,
"message": message,
"data": List<dynamic>.from(data!.map((x) => x.toJson())),
"value": value == null ? null : value,
"message": message == null ? null : message,
"data": data == null
? null
: List<dynamic>.from(data!.map((x) => x.toJson())),
};
}

class Datum {
Datum(
{this.idAdeudo,
this.idComu,
this.idResidente,
this.montoCuota,
this.idConcepto,
this.fechaGeneracion,
this.fechaLimite,
this.fechaPago,
this.montoPago,
this.idFormaPago,
this.idTipoCuota,
this.referencia,
this.pagoTardio,
this.montoPagoTardio,
this.pago,
this.totalApagar});
Datum({
this.idAdeudo,
this.idComu,
this.idResidente,
this.montoCuota,
this.idConcepto,
this.fechaGeneracion,
this.fechaLimite,
this.fechaPago,
this.montoPago,
this.idFormaPago,
this.idTipoCuota,
this.referencia,
this.pagoTardio,
this.montoPagoTardio,
this.impAplicado,
this.impMonto,
this.inpcPorcentaje,
this.pago,
this.totalApagar,
});

int? idAdeudo;
int? idComu;
Expand All @@ -64,50 +68,68 @@ class Datum {
DateTime? fechaLimite;
DateTime? fechaPago;
String? montoPago;
int? idFormaPago;
dynamic? idFormaPago;
dynamic? idTipoCuota;
String? referencia;
dynamic? pagoTardio;
int? pagoTardio;
String? montoPagoTardio;
dynamic? impAplicado;
dynamic? impMonto;
dynamic? inpcPorcentaje;
int? pago;
int? totalApagar;

factory Datum.fromJson(Map<String, dynamic> json) => Datum(
idAdeudo: json["ID_ADEUDO"],
idComu: json["ID_COMU"],
idResidente: json["ID_RESIDENTE"],
montoCuota: json["MONTO_CUOTA"],
idConcepto: json["ID_CONCEPTO"],
fechaGeneracion: DateTime.parse(json["FECHA_GENERACION"]),
fechaLimite: DateTime.parse(json["FECHA_LIMITE"]),
fechaPago: json["FECHA_PAGO"] == null
? null
: DateTime.parse(json["FECHA_PAGO"]),
montoPago: json["MONTO_PAGO"],
idFormaPago: json["ID_FORMA_PAGO"] == null ? null : json["ID_FORMA_PAGO"],
idTipoCuota: json["ID_TIPO_CUOTA"],
referencia: json["REFERENCIA"],
pagoTardio: json["PAGO_TARDIO"],
montoPagoTardio: json["MONTO_PAGO_TARDIO"],
pago: json["PAGO"],
totalApagar: json["TOTAL_APAGAR"]);
idAdeudo: json["ID_ADEUDO"] == null ? null : json["ID_ADEUDO"],
idComu: json["ID_COMU"] == null ? null : json["ID_COMU"],
idResidente: json["ID_RESIDENTE"] == null ? null : json["ID_RESIDENTE"],
montoCuota: json["MONTO_CUOTA"] == null ? null : json["MONTO_CUOTA"],
idConcepto: json["ID_CONCEPTO"] == null ? null : json["ID_CONCEPTO"],
fechaGeneracion: json["FECHA_GENERACION"] == null
? null
: DateTime.parse(json["FECHA_GENERACION"]),
fechaLimite: json["FECHA_LIMITE"] == null
? null
: DateTime.parse(json["FECHA_LIMITE"]),
fechaPago: json["FECHA_PAGO"] == null
? null
: DateTime.parse(json["FECHA_PAGO"]),
montoPago: json["MONTO_PAGO"] == null ? null : json["MONTO_PAGO"],
idFormaPago: json["ID_FORMA_PAGO"],
idTipoCuota: json["ID_TIPO_CUOTA"],
referencia: json["REFERENCIA"] == null ? null : json["REFERENCIA"],
pagoTardio: json["PAGO_TARDIO"] == null ? null : json["PAGO_TARDIO"],
montoPagoTardio: json["MONTO_PAGO_TARDIO"] == null
? null
: json["MONTO_PAGO_TARDIO"],
impAplicado: json["IMP_APLICADO"],
impMonto: json["IMP_MONTO"],
inpcPorcentaje: json["INPC_PORCENTAJE"],
pago: json["PAGO"] == null ? null : json["PAGO"],
totalApagar: json["TOTAL_APAGAR"] == null ? null : json["TOTAL_APAGAR"],
);

Map<String, dynamic> toJson() => {
"ID_ADEUDO": idAdeudo,
"ID_COMU": idComu,
"ID_RESIDENTE": idResidente,
"MONTO_CUOTA": montoCuota,
"ID_CONCEPTO": idConcepto,
"FECHA_GENERACION": fechaGeneracion!.toIso8601String(),
"FECHA_LIMITE": fechaLimite!.toIso8601String(),
"ID_ADEUDO": idAdeudo == null ? null : idAdeudo,
"ID_COMU": idComu == null ? null : idComu,
"ID_RESIDENTE": idResidente == null ? null : idResidente,
"MONTO_CUOTA": montoCuota == null ? null : montoCuota,
"ID_CONCEPTO": idConcepto == null ? null : idConcepto,
"FECHA_GENERACION":
fechaGeneracion == null ? null : fechaGeneracion!.toIso8601String(),
"FECHA_LIMITE":
fechaLimite == null ? null : fechaLimite!.toIso8601String(),
"FECHA_PAGO": fechaPago == null ? null : fechaPago!.toIso8601String(),
"MONTO_PAGO": montoPago,
"ID_FORMA_PAGO": idFormaPago == null ? null : idFormaPago,
"MONTO_PAGO": montoPago == null ? null : montoPago,
"ID_FORMA_PAGO": idFormaPago,
"ID_TIPO_CUOTA": idTipoCuota,
"REFERENCIA": referencia,
"PAGO_TARDIO": pagoTardio,
"MONTO_PAGO_TARDIO": montoPagoTardio,
"PAGO": pago,
"TOTAL_APAGAR": totalApagar
"REFERENCIA": referencia == null ? null : referencia,
"PAGO_TARDIO": pagoTardio == null ? null : pagoTardio,
"MONTO_PAGO_TARDIO": montoPagoTardio == null ? null : montoPagoTardio,
"IMP_APLICADO": impAplicado,
"IMP_MONTO": impMonto,
"INPC_PORCENTAJE": inpcPorcentaje,
"PAGO": pago == null ? null : pago,
"TOTAL_APAGAR": totalApagar == null ? null : totalApagar,
};
}
Loading