admin changes

dev_branch
Pratibha Chaudhary 2025-02-04 11:43:45 +05:30
parent 8e0ef9a500
commit c70fddde46
3 changed files with 40 additions and 52 deletions

View File

@ -121,18 +121,7 @@ class GenerateFrightBill extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
TextView(text:"MRN Date Range"),
// SizedBox(height: 8),
// CustomDropdown<String>(
// borderClr: AppColors.clrGrey,
// items: controller.date,
// itemLabel: (item) => item,
// onSelected: (selected) {
// if (selected != null) {
// controller.selectPlant.value = selected;
// }
// },
// hintText: "Select MRN Date Range",
// ),
Container(
margin: EdgeInsets.only(top: 8),
height: 35,

View File

@ -1,38 +1,37 @@
class ApiUrls {
ApiUrls._();
static const String baseUrl = "http://localhost:9092/";
static const String baseUrlImage =
"https://codingacademy.world/early_eyes/public/images/user/";
static const String baseUrl = "http://46.28.44.130:9092/";
static const addFreightBill =
'bill/grndetails?page=0&size=20&sort=grn_date,desc';
static const getFreightBills = 'bill/dropdown';
static const generateFreightBill =
'http://localhost:9092/bill/addFreightBill';
static const createUser = 'http://localhost:9093/api/users/createUser';
'http://46.28.44.130:9092/bill/addFreightBill';
static const createUser = 'http://46.28.44.130:9093/api/users/createUser';
static const editUser =
'http://localhost:9093/api/users/update?userEmpTransCode=';
'http://46.28.44.130:9093/api/users/update?userEmpTransCode=';
static const getAllUser =
'http://localhost:9093/api/users/userdetails?page=';
static const viewFreightBill = 'http://localhost:9092/bill/freightbill?page';
'http://46.28.44.130:9093/api/users/userdetails?page=';
static const viewFreightBill =
'http://46.28.44.130:9092/bill/freightbill?page';
static const addUserType =
'http://localhost:9093/api/user-types/createUserType';
'http://46.28.44.130:9093/api/user-types/createUserType';
static const dropDownList =
'http://localhost:9093/api/user-roles/userrole_dropdown';
static const plantMapping = 'http://localhost:9093/userplant/fetchPlants';
'http://46.28.44.130:9093/api/user-roles/userrole_dropdown';
static const plantMapping = 'http://46.28.44.130:9093/userplant/fetchPlants';
static const checkStatus =
'http://localhost:9093/api/user-types/update-status/';
'http://46.28.44.130:9093/api/user-types/update-status/';
static const getInternalUserDropdown =
'http://localhost:9093/api/user-roles/userrole_dropdown';
'http://46.28.44.130:9093/api/user-roles/userrole_dropdown';
static const fetchEmailsAndEmpCode =
'http://localhost:9093/api/user-roles/fetchRoles';
'http://46.28.44.130:9093/api/user-roles/fetchRoles';
static const selectAndAssignRole =
"http://localhost:9093/api/user-roles/assignRoles";
static const assignPlantRole = "http://localhost:9093/userplant/assignPlants";
"http://46.28.44.130:9093/api/user-roles/assignRoles";
static const assignPlantRole =
"http://46.28.44.130:9093/userplant/assignPlants";
static const userTypeDetails =
"http://localhost:9093/api/user-types/usertypedetails?page=0&size=15&sort=last_updated_on,desc";
static const grnPendingDetails = "http://localhost:9092/bill/grndetailsPanding?page=0&size=20&sort=grn_date,desc";
"http://46.28.44.130:9093/api/user-types/usertypedetails?page=0&size=15&sort=last_updated_on,desc";
static const grnPendingDetails =
"http://46.28.44.130:9092/bill/grndetailsPanding?page=0&size=20&sort=grn_date,desc";
}

View File

@ -6,15 +6,15 @@ import '../services/network/ApiUrls.dart';
class Helpers {
Helpers._();
static const bool isDebug = true;
static String getCompleteUrl(String? url) {
if (url == null) return "";
if (url.startsWith('http')) {
return url;
} else {
return ApiUrls.baseUrlImage+ url;
}
}
// static String getCompleteUrl(String? url) {
// if (url == null) return "";
//
// if (url.startsWith('http')) {
// return url;
// } else {
// return ApiUrls.baseUrlImage+ url;
// }
// }
static printLog({required String screenName, required String message}) {
if (isDebug) debugPrint("$screenName ==== $message");
}
@ -23,16 +23,16 @@ class Helpers {
return code >= 200 && code < 300;
}
static String getImgUrl(String? url) {
debugPrint("url ======= = $url");
if (url == null) return '';
if (url.startsWith('http')) {
return url;
} else {
return ApiUrls.baseUrlImage + url;
}
}
// static String getImgUrl(String? url) {
// debugPrint("url ======= = $url");
//
// if (url == null) return '';
// if (url.startsWith('http')) {
// return url;
// } else {
// return ApiUrls.baseUrlImage + url;
// }
// }