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
b8ffa919
Commit
b8ffa919
authored
Jun 20, 2025
by
Sai Srinivas
Browse files
19-06-2025 By Sai Srinivas
update complaint issue and CRM APIs
parent
2b481c2a
Changes
16
Hide whitespace changes
Inline
Side-by-side
lib/Models/crmModels/GetDistrictOnStateResponse.dart
0 → 100644
View file @
b8ffa919
class
GetDistrictOnStateResponse
{
String
?
error
;
List
<
Districts
>?
districts
;
String
?
message
;
GetDistrictOnStateResponse
({
this
.
error
,
this
.
districts
,
this
.
message
});
GetDistrictOnStateResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
error
=
json
[
'error'
];
if
(
json
[
'districts'
]
!=
null
)
{
districts
=
<
Districts
>[];
json
[
'districts'
].
forEach
((
v
)
{
districts
!.
add
(
new
Districts
.
fromJson
(
v
));
});
}
message
=
json
[
'message'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'error'
]
=
this
.
error
;
if
(
this
.
districts
!=
null
)
{
data
[
'districts'
]
=
this
.
districts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'message'
]
=
this
.
message
;
return
data
;
}
}
class
Districts
{
String
?
id
;
String
?
state
;
String
?
district
;
String
?
date
;
String
?
isExists
;
String
?
createdDatetime
;
String
?
updatedDatetime
;
Districts
(
{
this
.
id
,
this
.
state
,
this
.
district
,
this
.
date
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
});
Districts
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
state
=
json
[
'state'
];
district
=
json
[
'district'
];
date
=
json
[
'date'
];
isExists
=
json
[
'is_exists'
];
createdDatetime
=
json
[
'created_datetime'
];
updatedDatetime
=
json
[
'updated_datetime'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'id'
]
=
this
.
id
;
data
[
'state'
]
=
this
.
state
;
data
[
'district'
]
=
this
.
district
;
data
[
'date'
]
=
this
.
date
;
data
[
'is_exists'
]
=
this
.
isExists
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'updated_datetime'
]
=
this
.
updatedDatetime
;
return
data
;
}
}
lib/Models/crmModels/GetSegmentOnTeamResponse.dart
0 → 100644
View file @
b8ffa919
class
GetSegmentOnTeamResponse
{
String
?
error
;
List
<
Segments
>?
segments
;
String
?
message
;
GetSegmentOnTeamResponse
({
this
.
error
,
this
.
segments
,
this
.
message
});
GetSegmentOnTeamResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
error
=
json
[
'error'
];
if
(
json
[
'segments'
]
!=
null
)
{
segments
=
<
Segments
>[];
json
[
'segments'
].
forEach
((
v
)
{
segments
!.
add
(
new
Segments
.
fromJson
(
v
));
});
}
message
=
json
[
'message'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'error'
]
=
this
.
error
;
if
(
this
.
segments
!=
null
)
{
data
[
'segments'
]
=
this
.
segments
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'message'
]
=
this
.
message
;
return
data
;
}
}
class
Segments
{
String
?
id
;
String
?
teamId
;
String
?
name
;
String
?
date
;
String
?
isExists
;
String
?
createdDatetime
;
String
?
updatedDatetime
;
Segments
(
{
this
.
id
,
this
.
teamId
,
this
.
name
,
this
.
date
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
});
Segments
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
teamId
=
json
[
'team_id'
];
name
=
json
[
'name'
];
date
=
json
[
'date'
];
isExists
=
json
[
'is_exists'
];
createdDatetime
=
json
[
'created_datetime'
];
updatedDatetime
=
json
[
'updated_datetime'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'id'
]
=
this
.
id
;
data
[
'team_id'
]
=
this
.
teamId
;
data
[
'name'
]
=
this
.
name
;
data
[
'date'
]
=
this
.
date
;
data
[
'is_exists'
]
=
this
.
isExists
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'updated_datetime'
]
=
this
.
updatedDatetime
;
return
data
;
}
}
lib/Models/crmModels/GetSourceOnReferenceResponse.dart
0 → 100644
View file @
b8ffa919
class
GetSourceOnReferenceResponse
{
String
?
error
;
List
<
References
>?
references
;
String
?
message
;
GetSourceOnReferenceResponse
({
this
.
error
,
this
.
references
,
this
.
message
});
GetSourceOnReferenceResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
error
=
json
[
'error'
];
if
(
json
[
'references'
]
!=
null
)
{
references
=
<
References
>[];
json
[
'references'
].
forEach
((
v
)
{
references
!.
add
(
new
References
.
fromJson
(
v
));
});
}
message
=
json
[
'message'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'error'
]
=
this
.
error
;
if
(
this
.
references
!=
null
)
{
data
[
'references'
]
=
this
.
references
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'message'
]
=
this
.
message
;
return
data
;
}
}
class
References
{
String
?
id
;
String
?
sourceId
;
String
?
name
;
String
?
date
;
String
?
isExists
;
String
?
createdDatetime
;
String
?
updatedDatetime
;
References
(
{
this
.
id
,
this
.
sourceId
,
this
.
name
,
this
.
date
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
});
References
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
sourceId
=
json
[
'source_id'
];
name
=
json
[
'name'
];
date
=
json
[
'date'
];
isExists
=
json
[
'is_exists'
];
createdDatetime
=
json
[
'created_datetime'
];
updatedDatetime
=
json
[
'updated_datetime'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'id'
]
=
this
.
id
;
data
[
'source_id'
]
=
this
.
sourceId
;
data
[
'name'
]
=
this
.
name
;
data
[
'date'
]
=
this
.
date
;
data
[
'is_exists'
]
=
this
.
isExists
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'updated_datetime'
]
=
this
.
updatedDatetime
;
return
data
;
}
}
lib/Models/crmModels/GetSubLocOnDistrictResponse.dart
0 → 100644
View file @
b8ffa919
class
GetSubLocOnDistrictResponse
{
String
?
error
;
List
<
SubLocations
>?
subLocations
;
String
?
message
;
GetSubLocOnDistrictResponse
({
this
.
error
,
this
.
subLocations
,
this
.
message
});
GetSubLocOnDistrictResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
error
=
json
[
'error'
];
if
(
json
[
'sub_locations'
]
!=
null
)
{
subLocations
=
<
SubLocations
>[];
json
[
'sub_locations'
].
forEach
((
v
)
{
subLocations
!.
add
(
new
SubLocations
.
fromJson
(
v
));
});
}
message
=
json
[
'message'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'error'
]
=
this
.
error
;
if
(
this
.
subLocations
!=
null
)
{
data
[
'sub_locations'
]
=
this
.
subLocations
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'message'
]
=
this
.
message
;
return
data
;
}
}
class
SubLocations
{
String
?
id
;
String
?
districtId
;
String
?
subLocality
;
String
?
date
;
String
?
isExists
;
String
?
createdDatetime
;
String
?
updatedDatetime
;
SubLocations
(
{
this
.
id
,
this
.
districtId
,
this
.
subLocality
,
this
.
date
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
});
SubLocations
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
districtId
=
json
[
'district_id'
];
subLocality
=
json
[
'sub_locality'
];
date
=
json
[
'date'
];
isExists
=
json
[
'is_exists'
];
createdDatetime
=
json
[
'created_datetime'
];
updatedDatetime
=
json
[
'updated_datetime'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'id'
]
=
this
.
id
;
data
[
'district_id'
]
=
this
.
districtId
;
data
[
'sub_locality'
]
=
this
.
subLocality
;
data
[
'date'
]
=
this
.
date
;
data
[
'is_exists'
]
=
this
.
isExists
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'updated_datetime'
]
=
this
.
updatedDatetime
;
return
data
;
}
}
lib/Models/crmModels/LeadListContactPopUpResponse.dart
0 → 100644
View file @
b8ffa919
class
LeadListContactPopUpResponse
{
String
?
error
;
List
<
Contacts
>?
contacts
;
String
?
message
;
LeadListContactPopUpResponse
({
this
.
error
,
this
.
contacts
,
this
.
message
});
LeadListContactPopUpResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
error
=
json
[
'error'
];
if
(
json
[
'contacts'
]
!=
null
)
{
contacts
=
<
Contacts
>[];
json
[
'contacts'
].
forEach
((
v
)
{
contacts
!.
add
(
new
Contacts
.
fromJson
(
v
));
});
}
message
=
json
[
'message'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'error'
]
=
this
.
error
;
if
(
this
.
contacts
!=
null
)
{
data
[
'contacts'
]
=
this
.
contacts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'message'
]
=
this
.
message
;
return
data
;
}
}
class
Contacts
{
String
?
id
;
String
?
accId
;
String
?
name
;
String
?
salutationName
;
String
?
mob1
;
String
?
mob2
;
String
?
tel
;
String
?
email
;
String
?
type
;
String
?
designation
;
String
?
date
;
String
?
isExists
;
String
?
createdDatetime
;
String
?
updatedDatetime
;
Contacts
(
{
this
.
id
,
this
.
accId
,
this
.
name
,
this
.
salutationName
,
this
.
mob1
,
this
.
mob2
,
this
.
tel
,
this
.
email
,
this
.
type
,
this
.
designation
,
this
.
date
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
});
Contacts
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
accId
=
json
[
'acc_id'
];
name
=
json
[
'name'
];
salutationName
=
json
[
'salutation_name'
];
mob1
=
json
[
'mob1'
];
mob2
=
json
[
'mob2'
];
tel
=
json
[
'tel'
];
email
=
json
[
'email'
];
type
=
json
[
'type'
];
designation
=
json
[
'designation'
];
date
=
json
[
'date'
];
isExists
=
json
[
'is_exists'
];
createdDatetime
=
json
[
'created_datetime'
];
updatedDatetime
=
json
[
'updated_datetime'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'id'
]
=
this
.
id
;
data
[
'acc_id'
]
=
this
.
accId
;
data
[
'name'
]
=
this
.
name
;
data
[
'salutation_name'
]
=
this
.
salutationName
;
data
[
'mob1'
]
=
this
.
mob1
;
data
[
'mob2'
]
=
this
.
mob2
;
data
[
'tel'
]
=
this
.
tel
;
data
[
'email'
]
=
this
.
email
;
data
[
'type'
]
=
this
.
type
;
data
[
'designation'
]
=
this
.
designation
;
data
[
'date'
]
=
this
.
date
;
data
[
'is_exists'
]
=
this
.
isExists
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'updated_datetime'
]
=
this
.
updatedDatetime
;
return
data
;
}
}
lib/Models/crmModels/LeadListViewResponse.dart
0 → 100644
View file @
b8ffa919
class
LeadListViewResponse
{
List
<
Sources
>?
sources
;
List
<
Teams
>?
teams
;
List
<
States
>?
states
;
List
<
Employees
>?
employees
;
LeadListViewResponse
({
this
.
sources
,
this
.
teams
,
this
.
states
,
this
.
employees
});
LeadListViewResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
if
(
json
[
'sources'
]
!=
null
)
{
sources
=
<
Sources
>[];
json
[
'sources'
].
forEach
((
v
)
{
sources
!.
add
(
new
Sources
.
fromJson
(
v
));
});
}
if
(
json
[
'teams'
]
!=
null
)
{
teams
=
<
Teams
>[];
json
[
'teams'
].
forEach
((
v
)
{
teams
!.
add
(
new
Teams
.
fromJson
(
v
));
});
}
if
(
json
[
'states'
]
!=
null
)
{
states
=
<
States
>[];
json
[
'states'
].
forEach
((
v
)
{
states
!.
add
(
new
States
.
fromJson
(
v
));
});
}
if
(
json
[
'employees'
]
!=
null
)
{
employees
=
<
Employees
>[];
json
[
'employees'
].
forEach
((
v
)
{
employees
!.
add
(
new
Employees
.
fromJson
(
v
));
});
}
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
if
(
this
.
sources
!=
null
)
{
data
[
'sources'
]
=
this
.
sources
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
teams
!=
null
)
{
data
[
'teams'
]
=
this
.
teams
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
states
!=
null
)
{
data
[
'states'
]
=
this
.
states
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
employees
!=
null
)
{
data
[
'employees'
]
=
this
.
employees
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
return
data
;
}
}
class
Sources
{
String
?
id
;
String
?
name
;
Sources
({
this
.
id
,
this
.
name
});
Sources
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
name
=
json
[
'name'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
return
data
;
}
}
class
Teams
{
String
?
id
;
String
?
name
;
Teams
({
this
.
id
,
this
.
name
});
Teams
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
name
=
json
[
'name'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
return
data
;
}
}
class
States
{
String
?
id
;
String
?
name
;
States
({
this
.
id
,
this
.
name
});
States
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
name
=
json
[
'name'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
return
data
;
}
}
class
Employees
{
String
?
id
;
String
?
name
;
Employees
({
this
.
id
,
this
.
name
});
Employees
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
name
=
json
[
'name'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
return
data
;
}
}
lib/Models/crmModels/SubmitLeadListFilterResponse.dart
0 → 100644
View file @
b8ffa919
class
SubmitLeadListFilterResponse
{
String
?
error
;
List
<
LeadList
>?
leadList
;
String
?
message
;
SubmitLeadListFilterResponse
({
this
.
error
,
this
.
leadList
,
this
.
message
});
SubmitLeadListFilterResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
error
=
json
[
'error'
];
if
(
json
[
'lead_list'
]
!=
null
)
{
leadList
=
<
LeadList
>[];
json
[
'lead_list'
].
forEach
((
v
)
{
leadList
!.
add
(
new
LeadList
.
fromJson
(
v
));
});
}
message
=
json
[
'message'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'error'
]
=
this
.
error
;
if
(
this
.
leadList
!=
null
)
{
data
[
'lead_list'
]
=
this
.
leadList
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'message'
]
=
this
.
message
;
return
data
;
}
}
class
LeadList
{
String
?
ldate
;
String
?
stateName
;
String
?
district
;
String
?
subLocality
;
String
?
accman
;
String
?
accId
;
String
?
cname
;
String
?
mob1
;
String
?
leadid
;
String
?
status
;
String
?
openStatus
;
String
?
address
;
String
?
aid
;
String
?
company
;
String
?
lage
;
String
?
product
;
String
?
followupfun
;
Account
?
account
;
List
<
Contact
>?
contact
;
LeadList
(
{
this
.
ldate
,
this
.
stateName
,
this
.
district
,
this
.
subLocality
,
this
.
accman
,
this
.
accId
,
this
.
cname
,
this
.
mob1
,
this
.
leadid
,
this
.
status
,
this
.
openStatus
,
this
.
address
,
this
.
aid
,
this
.
company
,
this
.
lage
,
this
.
product
,
this
.
followupfun
,
this
.
account
,
this
.
contact
});
LeadList
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
ldate
=
json
[
'ldate'
];
stateName
=
json
[
'state_name'
];
district
=
json
[
'district'
];
subLocality
=
json
[
'sub_locality'
];
accman
=
json
[
'accman'
];
accId
=
json
[
'acc_id'
];
cname
=
json
[
'cname'
];
mob1
=
json
[
'mob1'
];
leadid
=
json
[
'leadid'
];
status
=
json
[
'status'
];
openStatus
=
json
[
'open_status'
];
address
=
json
[
'address'
];
aid
=
json
[
'aid'
];
company
=
json
[
'company'
];
lage
=
json
[
'lage'
];
product
=
json
[
'product'
];
followupfun
=
json
[
'followupfun'
];
account
=
json
[
'account'
]
!=
null
?
new
Account
.
fromJson
(
json
[
'account'
])
:
null
;
if
(
json
[
'contact'
]
!=
null
)
{
contact
=
<
Contact
>[];
json
[
'contact'
].
forEach
((
v
)
{
contact
!.
add
(
new
Contact
.
fromJson
(
v
));
});
}
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'ldate'
]
=
this
.
ldate
;
data
[
'state_name'
]
=
this
.
stateName
;
data
[
'district'
]
=
this
.
district
;
data
[
'sub_locality'
]
=
this
.
subLocality
;
data
[
'accman'
]
=
this
.
accman
;
data
[
'acc_id'
]
=
this
.
accId
;
data
[
'cname'
]
=
this
.
cname
;
data
[
'mob1'
]
=
this
.
mob1
;
data
[
'leadid'
]
=
this
.
leadid
;
data
[
'status'
]
=
this
.
status
;
data
[
'open_status'
]
=
this
.
openStatus
;
data
[
'address'
]
=
this
.
address
;
data
[
'aid'
]
=
this
.
aid
;
data
[
'company'
]
=
this
.
company
;
data
[
'lage'
]
=
this
.
lage
;
data
[
'product'
]
=
this
.
product
;
data
[
'followupfun'
]
=
this
.
followupfun
;
if
(
this
.
account
!=
null
)
{
data
[
'account'
]
=
this
.
account
!.
toJson
();
}
if
(
this
.
contact
!=
null
)
{
data
[
'contact'
]
=
this
.
contact
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
return
data
;
}
}
class
Account
{
String
?
id
;
String
?
tempId
;
String
?
ownerId
;
String
?
accManagerId
;
String
?
name
;
String
?
salutationName
;
String
?
subLocality
;
String
?
district
;
String
?
state
;
String
?
pincode
;
String
?
address
;
String
?
date
;
String
?
source
;
String
?
reference
;
String
?
segment
;
String
?
team
;
String
?
gstNumber
;
String
?
isExists
;
String
?
createdDatetime
;
String
?
updatedDatetime
;
Account
(
{
this
.
id
,
this
.
tempId
,
this
.
ownerId
,
this
.
accManagerId
,
this
.
name
,
this
.
salutationName
,
this
.
subLocality
,
this
.
district
,
this
.
state
,
this
.
pincode
,
this
.
address
,
this
.
date
,
this
.
source
,
this
.
reference
,
this
.
segment
,
this
.
team
,
this
.
gstNumber
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
});
Account
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
tempId
=
json
[
'temp_id'
];
ownerId
=
json
[
'owner_id'
];
accManagerId
=
json
[
'acc_manager_id'
];
name
=
json
[
'name'
];
salutationName
=
json
[
'salutation_name'
];
subLocality
=
json
[
'sub_locality'
];
district
=
json
[
'district'
];
state
=
json
[
'state'
];
pincode
=
json
[
'pincode'
];
address
=
json
[
'address'
];
date
=
json
[
'date'
];
source
=
json
[
'source'
];
reference
=
json
[
'reference'
];
segment
=
json
[
'segment'
];
team
=
json
[
'team'
];
gstNumber
=
json
[
'gst_number'
];
isExists
=
json
[
'is_exists'
];
createdDatetime
=
json
[
'created_datetime'
];
updatedDatetime
=
json
[
'updated_datetime'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'id'
]
=
this
.
id
;
data
[
'temp_id'
]
=
this
.
tempId
;
data
[
'owner_id'
]
=
this
.
ownerId
;
data
[
'acc_manager_id'
]
=
this
.
accManagerId
;
data
[
'name'
]
=
this
.
name
;
data
[
'salutation_name'
]
=
this
.
salutationName
;
data
[
'sub_locality'
]
=
this
.
subLocality
;
data
[
'district'
]
=
this
.
district
;
data
[
'state'
]
=
this
.
state
;
data
[
'pincode'
]
=
this
.
pincode
;
data
[
'address'
]
=
this
.
address
;
data
[
'date'
]
=
this
.
date
;
data
[
'source'
]
=
this
.
source
;
data
[
'reference'
]
=
this
.
reference
;
data
[
'segment'
]
=
this
.
segment
;
data
[
'team'
]
=
this
.
team
;
data
[
'gst_number'
]
=
this
.
gstNumber
;
data
[
'is_exists'
]
=
this
.
isExists
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'updated_datetime'
]
=
this
.
updatedDatetime
;
return
data
;
}
}
class
Contact
{
String
?
id
;
String
?
accId
;
String
?
name
;
String
?
salutationName
;
String
?
mob1
;
String
?
mob2
;
String
?
tel
;
String
?
email
;
String
?
type
;
String
?
designation
;
String
?
date
;
String
?
isExists
;
String
?
createdDatetime
;
String
?
updatedDatetime
;
Contact
(
{
this
.
id
,
this
.
accId
,
this
.
name
,
this
.
salutationName
,
this
.
mob1
,
this
.
mob2
,
this
.
tel
,
this
.
email
,
this
.
type
,
this
.
designation
,
this
.
date
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
});
Contact
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
accId
=
json
[
'acc_id'
];
name
=
json
[
'name'
];
salutationName
=
json
[
'salutation_name'
];
mob1
=
json
[
'mob1'
];
mob2
=
json
[
'mob2'
];
tel
=
json
[
'tel'
];
email
=
json
[
'email'
];
type
=
json
[
'type'
];
designation
=
json
[
'designation'
];
date
=
json
[
'date'
];
isExists
=
json
[
'is_exists'
];
createdDatetime
=
json
[
'created_datetime'
];
updatedDatetime
=
json
[
'updated_datetime'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'id'
]
=
this
.
id
;
data
[
'acc_id'
]
=
this
.
accId
;
data
[
'name'
]
=
this
.
name
;
data
[
'salutation_name'
]
=
this
.
salutationName
;
data
[
'mob1'
]
=
this
.
mob1
;
data
[
'mob2'
]
=
this
.
mob2
;
data
[
'tel'
]
=
this
.
tel
;
data
[
'email'
]
=
this
.
email
;
data
[
'type'
]
=
this
.
type
;
data
[
'designation'
]
=
this
.
designation
;
data
[
'date'
]
=
this
.
date
;
data
[
'is_exists'
]
=
this
.
isExists
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'updated_datetime'
]
=
this
.
updatedDatetime
;
return
data
;
}
}
lib/Notifiers/PendingComplaintsProvider.dart
View file @
b8ffa919
...
@@ -87,6 +87,14 @@ class Pendingcomplaintsprovider extends ChangeNotifier {
...
@@ -87,6 +87,14 @@ class Pendingcomplaintsprovider extends ChangeNotifier {
_image
=
null
;
_image
=
null
;
_imageName
=
null
;
_imageName
=
null
;
notifyListeners
();
notifyListeners
();
checkDropDownSelected
();
}
void
checkDropDownSelected
(){
if
(
_statusId
!=
null
&&
!
CompletedStatus
.
contains
(
_statusId
))
{
_statusId
=
""
;
}
}
}
Future
<
void
>
TechnicianPendingComplaints
(
BuildContext
context
)
async
{
Future
<
void
>
TechnicianPendingComplaints
(
BuildContext
context
)
async
{
...
...
lib/Notifiers/crmProvider/LeadListProvider.dart
0 → 100644
View file @
b8ffa919
import
'package:flutter/foundation.dart'
;
class
Leadlistprovider
extends
ChangeNotifier
{
}
\ No newline at end of file
lib/screens/HomeScreen.dart
View file @
b8ffa919
...
@@ -343,6 +343,7 @@ class _MyHomePageState extends State<MyHomePage> {
...
@@ -343,6 +343,7 @@ class _MyHomePageState extends State<MyHomePage> {
top:
0
,
top:
0
,
bottom:
10
,
bottom:
10
,
),
),
margin:
EdgeInsets
.
only
(
top:
10
),
child:
GridView
.
builder
(
child:
GridView
.
builder
(
itemCount:
filteredItems
.
length
,
itemCount:
filteredItems
.
length
,
gridDelegate:
gridDelegate:
...
...
lib/screens/crm/crmDashboard.dart
0 → 100644
View file @
b8ffa919
import
'package:flutter/material.dart'
;
class
CrmdashboardScreen
extends
StatefulWidget
{
const
CrmdashboardScreen
({
super
.
key
});
@override
State
<
CrmdashboardScreen
>
createState
()
=>
_CrmdashboardScreenState
();
}
class
_CrmdashboardScreenState
extends
State
<
CrmdashboardScreen
>
{
@override
Widget
build
(
BuildContext
context
)
{
return
const
Placeholder
();
}
}
lib/screens/notifierExports.dart
View file @
b8ffa919
...
@@ -39,3 +39,5 @@ export 'package:generp/Notifiers/ordersProvider/tpcAgentsProvider.dart';
...
@@ -39,3 +39,5 @@ export 'package:generp/Notifiers/ordersProvider/tpcAgentsProvider.dart';
export
'package:generp/Notifiers/ordersProvider/addPaymentProvider.dart'
;
export
'package:generp/Notifiers/ordersProvider/addPaymentProvider.dart'
;
export
'package:generp/Notifiers/ordersProvider/addOrderProvider.dart'
;
export
'package:generp/Notifiers/ordersProvider/addOrderProvider.dart'
;
export
'package:generp/Notifiers/ordersProvider/editPaymentProvider.dart'
;
export
'package:generp/Notifiers/ordersProvider/editPaymentProvider.dart'
;
export
'package:generp/Notifiers/crmProvider/LeadListProvider.dart'
;
lib/screens/serviceEngineer/UpdateComplaints.dart
View file @
b8ffa919
...
@@ -16,7 +16,15 @@ class Updatecomplaints extends StatefulWidget {
...
@@ -16,7 +16,15 @@ class Updatecomplaints extends StatefulWidget {
class
_UpdatecomplaintsState
extends
State
<
Updatecomplaints
>
{
class
_UpdatecomplaintsState
extends
State
<
Updatecomplaints
>
{
@override
void
initState
()
{
// TODO: implement initState
super
.
initState
();
WidgetsBinding
.
instance
.
addPostFrameCallback
((
timeStamp
)
{
final
provider
=
Provider
.
of
<
Pendingcomplaintsprovider
>(
context
,
listen:
false
);
provider
.
checkDropDownSelected
();
},);
}
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
...
@@ -25,11 +33,12 @@ class _UpdatecomplaintsState extends State<Updatecomplaints> {
...
@@ -25,11 +33,12 @@ class _UpdatecomplaintsState extends State<Updatecomplaints> {
return
WillPopScope
(
return
WillPopScope
(
onWillPop:
()
{
onWillPop:
()
{
provider
.
submitLoading
=
false
;
provider
.
submitLoading
=
false
;
provider
.
resetAll
();
return
onBackPressed
(
context
);
return
onBackPressed
(
context
);
},
},
child:
Scaffold
(
child:
Scaffold
(
resizeToAvoidBottomInset:
true
,
resizeToAvoidBottomInset:
true
,
appBar:
appbar
(
context
,
"Update Complaint"
),
appBar:
appbar
2
(
context
,
"Update Complaint"
,
provider
.
resetAll
,
SizedBox
(
width:
0
,)
),
backgroundColor:
AppColors
.
scaffold_bg_color
,
backgroundColor:
AppColors
.
scaffold_bg_color
,
body:
SafeArea
(
body:
SafeArea
(
child:
Container
(
child:
Container
(
...
@@ -86,7 +95,7 @@ class _UpdatecomplaintsState extends State<Updatecomplaints> {
...
@@ -86,7 +95,7 @@ class _UpdatecomplaintsState extends State<Updatecomplaints> {
overflow:
TextOverflow
.
ellipsis
,
overflow:
TextOverflow
.
ellipsis
,
),
),
)).
toList
(),
)).
toList
(),
value:
provider
.
statusID
,
value:
provider
.
statusID
!.
isEmpty
?
null
:
provider
.
statusID
,
onChanged:
(
value
)
{
onChanged:
(
value
)
{
if
(
value
!=
null
)
{
if
(
value
!=
null
)
{
provider
.
statusID
=
value
;
provider
.
statusID
=
value
;
...
@@ -139,7 +148,7 @@ class _UpdatecomplaintsState extends State<Updatecomplaints> {
...
@@ -139,7 +148,7 @@ class _UpdatecomplaintsState extends State<Updatecomplaints> {
),
),
SizedBox
(
height:
5
,),
SizedBox
(
height:
5
,),
ErrorWidget
(
context
,
provider
.
statusError
),
ErrorWidget
(
context
,
provider
.
statusError
),
if
(
provider
.
statusID
!
.
isNotEmpty
)...[
if
(
provider
.
statusID
!
=
null
)...[
if
(
provider
.
statusID
!=
"Pending"
)...[
if
(
provider
.
statusID
!=
"Pending"
)...[
Padding
(
Padding
(
padding:
const
EdgeInsets
.
only
(
bottom:
5.0
),
padding:
const
EdgeInsets
.
only
(
bottom:
5.0
),
...
...
lib/services/api_calling.dart
View file @
b8ffa919
...
@@ -6,6 +6,13 @@ import 'package:generp/Models/commonModels/DistrictsResponse.dart';
...
@@ -6,6 +6,13 @@ import 'package:generp/Models/commonModels/DistrictsResponse.dart';
import
'package:generp/Models/commonModels/SubLocationsResponse.dart'
;
import
'package:generp/Models/commonModels/SubLocationsResponse.dart'
;
import
'package:generp/Models/commonModels/commonAccessiblePagesResponse.dart'
;
import
'package:generp/Models/commonModels/commonAccessiblePagesResponse.dart'
;
import
'package:generp/Models/commonModels/commonAddAccountsViewResponse.dart'
;
import
'package:generp/Models/commonModels/commonAddAccountsViewResponse.dart'
;
import
'package:generp/Models/crmModels/GetDistrictOnStateResponse.dart'
;
import
'package:generp/Models/crmModels/GetSegmentOnTeamResponse.dart'
;
import
'package:generp/Models/crmModels/GetSourceOnReferenceResponse.dart'
;
import
'package:generp/Models/crmModels/GetSubLocOnDistrictResponse.dart'
;
import
'package:generp/Models/crmModels/LeadListContactPopUpResponse.dart'
;
import
'package:generp/Models/crmModels/LeadListViewResponse.dart'
;
import
'package:generp/Models/crmModels/SubmitLeadListFilterResponse.dart'
;
import
'package:generp/Models/financeModels/addDirectPaymentResponse.dart'
;
import
'package:generp/Models/financeModels/addDirectPaymentResponse.dart'
;
import
'package:generp/Models/financeModels/paymentRequisitionPaymentsListResponse.dart'
;
import
'package:generp/Models/financeModels/paymentRequisitionPaymentsListResponse.dart'
;
import
'package:generp/Models/ordersModels/PendingTPCAgentListResponse.dart'
;
import
'package:generp/Models/ordersModels/PendingTPCAgentListResponse.dart'
;
...
@@ -2942,4 +2949,246 @@ class ApiCalling {
...
@@ -2942,4 +2949,246 @@ class ApiCalling {
return
null
;
return
null
;
}
}
}
}
///CRM Module
static
Future
<
LeadListViewResponse
?>
crmLeadListViewAPI
(
empId
,
session
,
mode
)
async
{
try
{
Map
<
String
,
String
>
data
=
{
'emp_id'
:
(
empId
).
toString
(),
'session_id'
:
(
session
).
toString
(),
'mode'
:
(
mode
).
toString
(),
};
final
res
=
await
post
(
data
,
crmLeadListViewUrl
,
{});
if
(
res
!=
null
)
{
print
(
data
);
debugPrint
(
res
.
body
);
return
LeadListViewResponse
.
fromJson
(
jsonDecode
(
res
.
body
));
}
else
{
debugPrint
(
"Null Response"
);
return
null
;
}
}
catch
(
e
)
{
debugPrint
(
'hello bev=bug
$e
'
);
return
null
;
}
}
static
Future
<
SubmitLeadListFilterResponse
?>
crmLeadListFilterSubmitAPI
(
empId
,
session
,
mode
,
teamemployee
,
slead_id
,
status
,
open_status
,
mob
,
com
,
source
,
reference
,
team
,
segment
,
state
,
district
,
sub_loc
,
)
async
{
try
{
Map
<
String
,
String
>
data
=
{
'emp_id'
:
(
empId
).
toString
(),
'session_id'
:
(
session
).
toString
(),
'mode'
:
(
mode
).
toString
(),
'teamemployee'
:
teamemployee
.
toString
(),
'slead_id'
:
slead_id
.
toString
(),
'status'
:
status
.
toString
(),
'open_status'
:
open_status
.
toString
(),
'mob'
:
mob
.
toString
(),
'com'
:
com
.
toString
(),
'source'
:
source
.
toString
(),
'reference'
:
reference
.
toString
(),
'team'
:
team
.
toString
(),
'segment'
:
segment
.
toString
(),
'state'
:
state
.
toString
(),
'district'
:
district
.
toString
(),
'sub_loc'
:
sub_loc
.
toString
(),
};
final
res
=
await
post
(
data
,
crmLeadListFilterSubmitUrl
,
{});
if
(
res
!=
null
)
{
print
(
data
);
debugPrint
(
res
.
body
);
return
SubmitLeadListFilterResponse
.
fromJson
(
jsonDecode
(
res
.
body
));
}
else
{
debugPrint
(
"Null Response"
);
return
null
;
}
}
catch
(
e
)
{
debugPrint
(
'hello bev=bug
$e
'
);
return
null
;
}
}
static
Future
<
GetSourceOnReferenceResponse
?>
crmLeadListSourceOnReferenceAPI
(
empId
,
session
,
source_id
)
async
{
try
{
Map
<
String
,
String
>
data
=
{
'emp_id'
:
(
empId
).
toString
(),
'session_id'
:
(
session
).
toString
(),
'source_id'
:
(
source_id
).
toString
(),
};
final
res
=
await
post
(
data
,
crmLeadListSourceOnReferenceUrl
,
{});
if
(
res
!=
null
)
{
print
(
data
);
debugPrint
(
res
.
body
);
return
GetSourceOnReferenceResponse
.
fromJson
(
jsonDecode
(
res
.
body
));
}
else
{
debugPrint
(
"Null Response"
);
return
null
;
}
}
catch
(
e
)
{
debugPrint
(
'hello bev=bug
$e
'
);
return
null
;
}
}
static
Future
<
GetSegmentOnTeamResponse
?>
crmLeadListSegmentOnTeamAPI
(
empId
,
session
,
team_id
)
async
{
try
{
Map
<
String
,
String
>
data
=
{
'emp_id'
:
(
empId
).
toString
(),
'session_id'
:
(
session
).
toString
(),
'team_id'
:
(
team_id
).
toString
(),
};
final
res
=
await
post
(
data
,
crmLeadListSegmentOnTeamUrl
,
{});
if
(
res
!=
null
)
{
print
(
data
);
debugPrint
(
res
.
body
);
return
GetSegmentOnTeamResponse
.
fromJson
(
jsonDecode
(
res
.
body
));
}
else
{
debugPrint
(
"Null Response"
);
return
null
;
}
}
catch
(
e
)
{
debugPrint
(
'hello bev=bug
$e
'
);
return
null
;
}
}
static
Future
<
GetDistrictOnStateResponse
?>
crmDistrictsOnStateAPI
(
empId
,
session
,
state_id
)
async
{
try
{
Map
<
String
,
String
>
data
=
{
'emp_id'
:
(
empId
).
toString
(),
'session_id'
:
(
session
).
toString
(),
'state_id'
:
(
state_id
).
toString
(),
};
final
res
=
await
post
(
data
,
crmLeadListDistrictOnStateUrl
,
{});
if
(
res
!=
null
)
{
print
(
data
);
debugPrint
(
res
.
body
);
return
GetDistrictOnStateResponse
.
fromJson
(
jsonDecode
(
res
.
body
));
}
else
{
debugPrint
(
"Null Response"
);
return
null
;
}
}
catch
(
e
)
{
debugPrint
(
'hello bev=bug
$e
'
);
return
null
;
}
}
static
Future
<
GetSubLocOnDistrictResponse
?>
crmSubLocOnDistrictAPI
(
empId
,
session
,
district_id
)
async
{
try
{
Map
<
String
,
String
>
data
=
{
'emp_id'
:
(
empId
).
toString
(),
'session_id'
:
(
session
).
toString
(),
'district_id'
:
(
district_id
).
toString
(),
};
final
res
=
await
post
(
data
,
crmLeadListSubLocOnDistrictUrl
,
{});
if
(
res
!=
null
)
{
print
(
data
);
debugPrint
(
res
.
body
);
return
GetSubLocOnDistrictResponse
.
fromJson
(
jsonDecode
(
res
.
body
));
}
else
{
debugPrint
(
"Null Response"
);
return
null
;
}
}
catch
(
e
)
{
debugPrint
(
'hello bev=bug
$e
'
);
return
null
;
}
}
static
Future
<
LeadListContactPopUpResponse
?>
crmLeadListContactPopUpAPI
(
empId
,
session
,
account_id
)
async
{
try
{
Map
<
String
,
String
>
data
=
{
'emp_id'
:
(
empId
).
toString
(),
'session_id'
:
(
session
).
toString
(),
'account_id'
:
(
account_id
).
toString
(),
};
final
res
=
await
post
(
data
,
crmLeadListSubLocOnDistrictUrl
,
{});
if
(
res
!=
null
)
{
print
(
data
);
debugPrint
(
res
.
body
);
return
LeadListContactPopUpResponse
.
fromJson
(
jsonDecode
(
res
.
body
));
}
else
{
debugPrint
(
"Null Response"
);
return
null
;
}
}
catch
(
e
)
{
debugPrint
(
'hello bev=bug
$e
'
);
return
null
;
}
}
// static Future<CommonResponse?> TpcIssueListApprovalAPI(
// empId,
// session,
// tpc_payment_mode,
// tpc_payment_reference_no,
// order_id,
// order_tpc_feedback,
// tpc_paym_attachment
// ) async {
// try {
// Map<String, String> data = {
// 'emp_id': (empId).toString(),
// 'session_id': (session).toString(),
// 'tpc_payment_mode':tpc_payment_mode.toString(),
// 'tpc_payment_reference_no':tpc_payment_reference_no.toString(),
// 'order_id':order_id.toString(),
// 'order_tpc_feedback':order_tpc_feedback.toString(),
// };
// var res;
// if (tpc_paym_attachment != null) {
// res = await postImageNew(
// data,
// {},
// ordersApprovePendingTPCIssueListUrl,
// tpc_paym_attachment,
// "tpc_paym_attachment",
// );
// res = jsonDecode(res);
// } else {
// res = await post(data, ordersApprovePendingTPCIssueListUrl, {});
// res = jsonDecode(res.body);
// return CommonResponse.fromJson(res);
// }
// } catch (e) {
// debugPrint('hello bev=bug $e ');
// return null;
// }
// }
}
}
lib/services/api_names.dart
View file @
b8ffa919
...
@@ -118,6 +118,22 @@ const ordersPendingTPCIssueListUrl = "${baseUrl_test}pending_tpc_issue_list";
...
@@ -118,6 +118,22 @@ const ordersPendingTPCIssueListUrl = "${baseUrl_test}pending_tpc_issue_list";
const
ordersApprovePendingTPCIssueListUrl
=
"
${baseUrl_test}
update_pending_tpc_issue_list"
;
const
ordersApprovePendingTPCIssueListUrl
=
"
${baseUrl_test}
update_pending_tpc_issue_list"
;
///Crm Module
const
crmLeadListViewUrl
=
"
${baseUrl_test}
crm_lead_list_view"
;
const
crmLeadListFilterSubmitUrl
=
"
${baseUrl_test}
submit_crm_lead_list_filter"
;
const
crmLeadListSourceOnReferenceUrl
=
"
${baseUrl_test}
get_source_on_reference"
;
const
crmLeadListSegmentOnTeamUrl
=
"
${baseUrl_test}
get_segment_on_team"
;
const
crmLeadListDistrictOnStateUrl
=
"
${baseUrl_test}
get_segment_on_team"
;
const
crmLeadListSubLocOnDistrictUrl
=
"
${baseUrl_test}
get_sublocation_on_district"
;
const
crmLeadListContactPopUpUrl
=
"
${baseUrl_test}
crm_lead_list_contact_popup"
;
const
crmLeadDetailsUrl
=
"
${baseUrl_test}
crm_lead_details"
;
const
crmProspectListViewUrl
=
"
${baseUrl_test}
crm_prospect_list_view"
;
const
crmProspectListFilterSubmitUrl
=
"
${baseUrl_test}
crm_prospect_list_filter_submit"
;
const
crmCheckAccountFieldsUrl
=
"
${baseUrl_test}
check_crm_add_account_fields"
;
const
crmNewProspectLeadSubmitUrl
=
"
${baseUrl_test}
crm_add_new_lead_prospect_submit"
;
const
crmNewProspectListEditGstUrl
=
"
${baseUrl_test}
crm_prospect_list_edit_gst"
;
...
...
pubspec.yaml
View file @
b8ffa919
...
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
...
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
# of the product and file versions while build-number is used as the build suffix.
version
:
1.0.8
3
+8
7
version
:
1.0.8
5
+8
9
environment
:
environment
:
sdk
:
^3.7.2
sdk
:
^3.7.2
...
...
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