Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sai Srinivas
GEN_ERP_2025
Commits
e079c6e8
Commit
e079c6e8
authored
Jul 24, 2025
by
Sai Srinivas
Browse files
24-07-2025 By Sai Srinivas
Account Details and Appointment Calendar.
parent
b38d986d
Changes
22
Show whitespace changes
Inline
Side-by-side
lib/services/api_calling.dart
View file @
e079c6e8
...
...
@@ -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
,
...
...
lib/services/api_names.dart
View file @
e079c6e8
...
...
@@ -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"
;
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment