Commit e079c6e8 authored by Sai Srinivas's avatar Sai Srinivas
Browse files

24-07-2025 By Sai Srinivas

Account Details and Appointment Calendar.
parent b38d986d
......@@ -61,6 +61,7 @@ import '../Models/UpdatePasswordResponse.dart';
import '../Models/VersionsResponse.dart';
import '../Models/ViewVisitDetailsResponse.dart';
import '../Models/commonModels/commonAddAccountsSubmitResponse.dart';
import '../Models/crmModels/appointmentCalendarResponse.dart';
import '../Models/crmModels/crmAddFollowUpResponse.dart';
import '../Models/crmModels/crmDashboardResponse.dart';
import '../Models/crmModels/crmPendingTasksResponse.dart';
......@@ -3320,13 +3321,13 @@ class ApiCalling {
static Future<crmDashboardResponse?> crmDashboardAPI(
empId,
session,
emp_loc
emp_loc,
) async {
try {
Map<String, String> data = {
'emp_id': (empId).toString(),
'session_id': (session).toString(),
'emp_loc':emp_loc.toString()
'emp_loc': emp_loc.toString(),
};
final res = await post(data, crmDashboardUrl, {});
if (res != null) {
......@@ -3633,7 +3634,11 @@ class ApiCalling {
empId,
session,
lead_id,
type,lead_product_id,product_id,qty,amount
type,
lead_product_id,
product_id,
qty,
amount,
) async {
try {
Map<String, String> data = {
......@@ -3661,7 +3666,6 @@ class ApiCalling {
}
}
static Future<crmAddFollowUpResponse?> crmLeadDetailsAddFollowUpAPI(
session_id,
emp_id,
......@@ -3682,22 +3686,22 @@ class ApiCalling {
) async {
try {
Map<String, String> data = {
'session_id':session_id.toString(),
'emp_id':emp_id.toString(),
'nextapp':nextapp.toString(),
'orderstatus':orderstatus.toString(),
'lead_id':lead_id.toString(),
'followup_feedback':followup_feedback.toString(),
'followup_type':followup_type.toString(),
'followupintime':followupintime.toString(),
'loc':loc.toString(),
'competitor':competitor.toString(),
'reason':reason.toString(),
'followup_status':followup_status.toString(),
'next_appointment_date':next_appointment_date.toString(),
'appointment_type':appointment_type.toString(),
'sms':sms.toString(),
'app_note':app_note.toString(),
'session_id': session_id.toString(),
'emp_id': emp_id.toString(),
'nextapp': nextapp.toString(),
'orderstatus': orderstatus.toString(),
'lead_id': lead_id.toString(),
'followup_feedback': followup_feedback.toString(),
'followup_type': followup_type.toString(),
'followupintime': followupintime.toString(),
'loc': loc.toString(),
'competitor': competitor.toString(),
'reason': reason.toString(),
'followup_status': followup_status.toString(),
'next_appointment_date': next_appointment_date.toString(),
'appointment_type': appointment_type.toString(),
'sms': sms.toString(),
'app_note': app_note.toString(),
};
final res = await post(data, crmLeadDetailsAddFollowUpUrl, {});
......@@ -4373,6 +4377,33 @@ class ApiCalling {
}
}
static Future<appointmentCalendarResponse?> crmAppointmentCalendarAPI(
empId,
session,
appointment_date,type
) async {
try {
Map<String, String> data = {
'emp_id': (empId).toString(),
'session_id': (session).toString(),
'appointment_date': (appointment_date).toString(),
'type': (type).toString(),
};
final res = await post(data, crmAppointmentCalendarUrl, {});
if (res != null) {
print("appointmentCalendar: ${data}");
debugPrint(res.body);
return appointmentCalendarResponse.fromJson(jsonDecode(res.body));
} else {
debugPrint("Null Response");
return null;
}
} catch (e) {
debugPrint('hello bev=bug $e ');
return null;
}
}
static Future<CommonResponse?>
crmProspectDetailsFollowupNextAppointmentOtherCaseAPI(
empId,
......
......@@ -159,6 +159,7 @@ const crmProspectDetailsAddLeadSubmitUrl = "${baseUrl_test}crm_prospect_details_
const crmProspectDetailsAddAccountUrl = "${baseUrl_test}crm_prospect_details_add_account";
const crmProspectDetailsEditContactUrl = "${baseUrl_test}crm_prospect_details_edit_contact";
const crmProspectDetailsFollowupNextAppointmentUrl = "${baseUrl_test}crm_lead_details_add_followup_next_appointment";
const crmAppointmentCalendarUrl = "${baseUrl_test}crm_appointment_calendar_filter_submit";
const crmCheckAccountFieldsUrl = "${baseUrl_test}check_crm_add_account_fields";
const crmNewProspectLeadSubmitUrl = "${baseUrl_test}crm_add_new_lead_prospect_submit";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment