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
5 changes: 5 additions & 0 deletions lib/Components/side_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ class _SideDrawerState extends State<SideDrawer> {
pageMover: '/academic_home_page',
isActive: true,
),
ModulesPadding(
line: 'PurchaseStore Module',
pageMover: '/purchase_store_homepage',
isActive: true,
),
ModulesPadding(
line: 'Programme Curriculum',
pageMover: '/programme_curriculum_home',
Expand Down
4 changes: 2 additions & 2 deletions lib/Components/side_drawer2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ class _SideDrawerState extends State<SideDrawer> {
if ((type == "student" ))
ModulesCard(cardLine: 'Leave Module'),

if ((type == "student" ))
ModulesCard(cardLine: 'Purchase and Store'),
if ((type != "student" ))
ModulesCard(cardLine: 'Purchase and Store',pageMover: '/purchase_store_homepage'),

if ((type == "student" ))
ModulesCard(cardLine: 'Human Resource'),
Expand Down
60 changes: 53 additions & 7 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,34 @@ import 'package:fusion/screens/Programme_Curriculum/Discipline/discipline.dart';
import 'package:fusion/screens/Programme_Curriculum/Programme/programme_home_page.dart';
import 'package:fusion/screens/Programme_Curriculum/Programme_Info/programme_info.dart';
import 'package:fusion/screens/Programme_Curriculum/programme_curriculum_home.dart';
import 'package:fusion/screens/PurchaseStore/Indenter_View.dart';
import 'package:fusion/screens/landing_page.dart';
import 'package:fusion/screens/Healthcenter/healthcentermodule.dart';
import 'package:fusion/screens/Healthcenter/feedback.dart';
import 'package:fusion/screens/Healthcenter/viewschedule.dart';
import 'package:fusion/screens/Healthcenter/history.dart';
import 'package:fusion/screens/Healthcenter/HealthCenter.dart';
import 'package:fusion/services/service_locator.dart';
import 'package:fusion/screens/PurchaseStore/purchase_store_homepage.dart';
import 'package:fusion/screens/PurchaseStore/Approved_Request.dart';
import 'package:fusion/screens/PurchaseStore/Audit_Bill.dart';
import 'package:fusion/screens/PurchaseStore/Global_STOCK.dart';
// import 'package:fusion/screens/PurchaseStore/Indent_form.dart';
import 'package:fusion/screens/PurchaseStore/Process_Bill.dart';
import 'package:fusion/screens/PurchaseStore/Rejected_Request.dart';
import 'package:fusion/screens/PurchaseStore/Saved_indent.dart';
import 'package:fusion/screens/PurchaseStore/Transfer_Funds.dart';
import 'package:fusion/screens/PurchaseStore/filed_Indent.dart';
import 'package:fusion/screens/PurchaseStore/inbox.dart';
import 'package:fusion/screens/PurchaseStore/new_request.dart';
import 'package:fusion/screens/PurchaseStore/pending.dart';
import 'package:fusion/screens/PurchaseStore/admin_homepage.dart';
import 'package:fusion/screens/PurchaseStore/ps_admin.dart';
import 'package:fusion/screens/PurchaseStore/head_homepage.dart';
import 'package:fusion/screens/PurchaseStore/indent_form.dart';
import 'package:fusion/screens/PurchaseStore/pending.dart';
import 'package:fusion/screens/PurchaseStore/flow_chart.dart';


void main() {
WidgetsFlutterBinding.ensureInitialized();
Expand All @@ -63,7 +84,7 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
MediaQueryData windowData =
MediaQueryData.fromView(WidgetsBinding.instance.window);
MediaQueryData.fromView(WidgetsBinding.instance.window);
windowData = windowData.copyWith(
textScaler: TextScaler.linear(1),
);
Expand All @@ -74,19 +95,19 @@ class MyApp extends StatelessWidget {
title: 'Fusion',
debugShowCheckedModeBanner: false,
theme: ThemeData(
// primarySwatch: Colors.blueGrey,
// primarySwatch: Colors.blueGrey,
// colorSchemeSeed: Color(0xFF2085D0),
colorSchemeSeed: Color(0xFFF36C35),
fontFamily: 'Nunito',
fontFamily: 'Nunito',
useMaterial3: true,
),
initialRoute: '/landing',
routes: {
'/landing': (context) => LandingPage(),
'/login_page': (context) => LoginPage(),
'/notification':(context)=>Notify(),
'/news':(context)=>News(),
'/announcement':(context)=>Announcement(),
'/notification': (context) => Notify(),
'/news': (context) => News(),
'/announcement': (context) => Announcement(),
'/dashboard': (context) => Dashboard(),
'/academic_home_page': (context) => AcademicHomePage(
ModalRoute.of(context)!.settings.arguments.toString()),
Expand Down Expand Up @@ -133,8 +154,33 @@ class MyApp extends StatelessWidget {
'/health_center/feedback': (context) => FeedBack(),
'/health_center/viewschedule': (context) => ViewSchedule(),
'/health_center/history': (context) => History(),
'/purchase_store_homepage': (context) => FlowChartPage(),
// '/purchase_store/indent_form': (context) => IndentForm(),
'/purchase_store/indent_form': (context) => IndentForm(),

'/purchase_store/inbox': (context) => Inbox(),
'/purchase_store/saved_indent': (context) => SavedIndent(),
'/purchase_store/filed_indent': (context) => FiledIndent(),
'/purchase_store/': (context) => PurchaseStoreHomePage(),
'/purchase_store/new_request': (context) => NewRequest(),
'/purchase_store/pending': (context) => Pending(),
'/purchase_store/approved': (context) => ApprovedRequest(),
'/purchase_store/rejected': (context) => RejectedRequest(),
'/purchase_store/audit': (context) => AuditBill(),
'/purchase_store/process_bill': (context) => ProcessBill(),
'/purchase_store/global_stock': (context) => GlobalStock(),
'/purchase_store/transfer_funds': (context) => TransferFunds(),
'/purchase_store/employee': (context) => PurchaseStoreHomePage(),
'/purchase_store/admin': (context) => adminHomePage(),
'/purchase_store/psadmin': (context) => psadminPage(),
'/purchase_store/head': (context) => headHomePage(),
'/purchase_store/indent_view': (context) => IndentView(),
'/purchase_store/transfer': (context) => TransferFunds(),
'/purchase_store/stocks':(context)=>GlobalStock()


},
),
);
}
}
}
115 changes: 115 additions & 0 deletions lib/screens/PurchaseStore/ALL_Filed_Indent.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
import 'package:flutter/material.dart';

class AllFiledIndent extends StatefulWidget {
@override
_AllFiledIndentPageState createState() => _AllFiledIndentPageState();
}

class _AllFiledIndentPageState extends State<AllFiledIndent> {
// Define the list of DrawingFileInfo objects
List<DrawingFileInfo> drawingFiles = [
DrawingFileInfo(fileId: 1, idententItem: 'Item 1', date: '2024-02-19'),
// Add more DrawingFileInfo objects as needed
];

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('All Filed Indent'),
backgroundColor: Colors.deepOrangeAccent,
),
body: ListView.builder(
itemCount: drawingFiles.length,
itemBuilder: (context, index) {
final drawingFile = drawingFiles[index];
return DrawingFile(
fileId: drawingFile.fileId,
idententItem: drawingFile.idententItem,
date: drawingFile.date,
index: index,
);
},
),
);
}
}

class DrawingFile extends StatelessWidget {
final int fileId;
final String idententItem;
final String date;
final int index;

DrawingFile({
required this.fileId,
required this.idententItem,
required this.date,
required this.index,
});

@override
Widget build(BuildContext context) {
// Determine background color based on index
Color backgroundColor = index.isOdd ? Colors.grey[200]! : Colors.white;

return Container(
margin: EdgeInsets.symmetric(vertical: 8.0, horizontal: 16.0),
padding: EdgeInsets.all(16.0),
decoration: BoxDecoration(
color: backgroundColor,
border: Border.all(width: 1.0, color: Colors.grey),
borderRadius: BorderRadius.circular(8.0),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'File Id: $fileId',
style: TextStyle(fontWeight: FontWeight.bold),
),
Text(
'Identent Item: $idententItem',
style: TextStyle(fontWeight: FontWeight.bold),
),
Text(
'Date: $date',
style: TextStyle(fontWeight: FontWeight.bold),
),
Text(
'Remarks:',
style: TextStyle(fontWeight: FontWeight.bold),
),
Row(
children: [
IconButton(onPressed: (){}, icon: Icon(Icons.edit),color:Colors.black),
IconButton(onPressed: (){}, icon: Icon(Icons.delete),color: Colors.redAccent),



],
)
],
),
);
}
}

class DrawingFileInfo {
final int fileId;
final String idententItem;
final String date;

DrawingFileInfo({
required this.fileId,
required this.idententItem,
required this.date,
});
}

void main() {
runApp(MaterialApp(
title: 'Saved Indents App',
home: AllFiledIndent(),
));
}
Loading