0% found this document useful (0 votes)
57 views5 pages

Fabric Managment System

Uploaded by

Rajneesh Rana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views5 pages

Fabric Managment System

Uploaded by

Rajneesh Rana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

1.

Frontend Components:
User Interface: Create React components for each user role (Account, Grey, Heat, Process, Finish,
Dispatch, Account Out).

Forms: Implement forms for data input (e.g., Account IN form, Dispatch form).

Tables: Display data in tables for each user role.

Search Filters: Implement search filters for Party Name, Challan Number, and Lot Number.

Admin Dashboard: Design an admin dashboard to manage users, qualities, party names, and view
reports.

2. Backend Components:
Express.js Server: Set up routes and controllers to handle CRUD operations.

MongoDB Database: Design schemas for Account, Grey, Heat, Process, Finish, Dispatch, Account Out
data.

Authentication and Authorization: Implement user authentication and authorization for admin tasks.

Business Logic: Implement logic for generating Lot Numbers, handling process workflows, and
managing data flow between different stages.

3. User Flows:
Account IN:

User submits data including Party Name, Quality, Challan Number, Kg, Meter, Role.

Data is stored in the Account IN table.

Grey:

User selects Party Name and enters Kg, Meter, Role for a selected Quality.

Lot Number is generated automatically.

Data is stored in the grey table.

Heat, Process, Finish:

Users select lots and mark them as complete or reject.

Data is moved to respective tables (Complete or Reject) based on user action.


Dispatch:

User selects Quality and enters Kg, Meter, Role for dispatch.

Data is stored in the Dispatch table.

Account Out:

User selects entries from Dispatch and processes outgoing quality.

Data is stored in the Account Out table.

4. Admin Tasks:
User Management: Admin can register new users.

Data Management: Admin can add/edit qualities, party names, and access all tables for
editing/updating.

Reports:

Admin can view Grey Report, Pendency Report, Dispatch Report, and Party Sum Report.

Reports are generated based on data from various tables.

5. Advanced Filtering:

Implement advanced filtering options in admin tables such as adding color, search, filtering between
dates, and filtering by name.

6. Additional Features:

Error Handling: Implement error handling for form submissions and backend operations.

Notifications: Notify users and admin about important events like completion of processes or rejection
of lots.

Security: Implement security measures to protect sensitive data and prevent unauthorized access.
fabric-management-system/

├── backend/

│ ├── config/

│ │ └── db.js # MongoDB configuration

│ ├── controllers/

│ │ ├── accountController.js # Controller for Account operations

│ │ ├── greyController.js # Controller for Grey operations

│ │ ├── heatController.js # Controller for Heat operations

│ │ ├── processController.js # Controller for Process operations

│ │ ├── finishController.js # Controller for Finish operations

│ │ ├── dispatchController.js # Controller for Dispatch operations

│ │ ├── accountOutController.js # Controller for Account Out operations

│ │ ├── authController.js # Controller for authentication

│ │ └── adminController.js # Controller for admin tasks

│ ├── middleware/

│ │ └── authMiddleware.js # Middleware for authentication

│ ├── models/

│ │ ├── Account.js # Model for Account schema

│ │ ├── Grey.js # Model for Grey schema

│ │ ├── Heat.js # Model for Heat schema

│ │ ├── Process.js # Model for Process schema

│ │ ├── Finish.js # Model for Finish schema

│ │ ├── Dispatch.js # Model for Dispatch schema

│ │ ├── AccountOut.js # Model for Account Out schema

│ │ └── User.js # Model for User schema

│ ├── routes/

│ │ ├── accountRoutes.js # Routes for Account operations

│ │ ├── greyRoutes.js # Routes for Grey operations


│ │ ├── heatRoutes.js # Routes for Heat operations

│ │ ├── processRoutes.js # Routes for Process operations

│ │ ├── finishRoutes.js # Routes for Finish operations

│ │ ├── dispatchRoutes.js # Routes for Dispatch operations

│ │ ├── accountOutRoutes.js # Routes for Account Out operations

│ │ ├── authRoutes.js # Routes for authentication

│ │ └── adminRoutes.js # Routes for admin tasks

│ └── app.js # Express application setup

├── frontend/

│ ├── public/

│ │ └── index.html # HTML template

│ ├── src/

│ │ ├── components/

│ │ │ ├── AccountForm.js # Form component for Account IN

│ │ │ ├── GreyForm.js # Form component for Grey

│ │ │ ├── HeatForm.js # Form component for Heat

│ │ │ ├── ProcessForm.js # Form component for Process

│ │ │ ├── FinishForm.js # Form component for Finish

│ │ │ ├── DispatchForm.js # Form component for Dispatch

│ │ │ ├── AccountOutForm.js # Form component for Account Out

│ │ │ ├── AdminDashboard.js # Dashboard component for admin tasks

│ │ │ ├── DataTable.js # Table component

│ │ │ ├── SearchFilters.js # Search filter component

│ │ │ └── Notifications.js # Notification component

│ │ ├── pages/

│ │ │ ├── AccountPage.js # Page component for Account

│ │ │ ├── GreyPage.js # Page component for Grey

│ │ │ ├── HeatPage.js # Page component for Heat


│ │ │ ├── ProcessPage.js # Page component for Process

│ │ │ ├── FinishPage.js # Page component for Finish

│ │ │ ├── DispatchPage.js # Page component for Dispatch

│ │ │ ├── AccountOutPage.js # Page component for Account Out

│ │ │ ├── AdminPage.js # Page component for Admin tasks

│ │ │ └── ReportsPage.js # Page component for Reports

│ │ ├── api/ api.js

│ │ ├── App.js # Main App component

│ │ ├── index.js # Entry point

│ │ └── styles.css # Global styles

│ └── package.json # Frontend dependencies

├── package.json # Backend dependencies

└── README.md # Project documentation

You might also like