<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "login";
$route['404_override'] = 'error';


/*********** Siddharth DEFINED ROUTES *******************/

$route['loginMe'] = 'login/loginMe';
$route['dashboard'] = 'user';
$route['logout'] = 'user/logout';

//<-----------Application listing Routes------------>

$route['userListing'] = 'user/userListing';
$route['userListing/(:num)'] = "user/userListing/$1";
//$route['purchaseorderListing'] = 'purchaseorder/purchaseorderListing';
//$route['purchaseorderListing/(:num)'] = "purchaseorder/purchaseorderListing/$1";
$route['supplierListing'] = 'supplier/supplierListing';
$route['supplierListing/(:num)'] = "supplier/supplierListing/$1";

$route['rawmaterialListing'] = 'rawmaterialdetails/rawmaterialListing';
$route['rawmaterialListing/(:num)'] = "rawmaterialdetails/rawmaterialListing/$1";

$route['costListing'] = 'CostCenter/costListing';
$route['costListing/(:num)'] = "CostCenter/costListing/$1";

$route['assetListing'] = 'assetdetails/assetListing';
$route['assetListing/(:num)'] = "assetdetails/assetListing/$1";

$route['employeeListing'] = 'employeedetails/employeeListing';
$route['employeeListing/(:num)'] = "employeedetails/employeeListing/$1";

$route['monthlyListings'] = 'monthlypay/monthlyListing';
$route['monthlyListings/(:num)'] = "monthlypay/monthlyListing/$1";

$route['emppayListings'] = 'emppaydate/emppayListing';
$route['emppayListings/(:num)'] = 'emppaydate/emppayListing/$1';





//<-----------Application Add Routes------------>
$route['addNew'] = "user/addNew";
$route['addNewUser'] = "user/addNewUser";

$route['addPO'] = "purchaseorder/addPO";
$route['addNewPO'] = "purchaseorder/addNewPO";

$route['addsupplier'] = "supplier/addsupplier";
$route['addNewsupplier'] = "supplier/addNewsupplier";

$route['addcost'] = "CostCenter/addCost";
$route['addNewcost'] = "CostCenter/addNewCost";

$route['addasset'] = "assetdetails/addasset";
$route['addNewasset'] = "assetdetails/addNewasset";

$route['addemployee'] = "employeedetails/addemployee";
$route['addNewemployee'] = "employeedetils/addNewemployee";

$route['addRawmaterial'] = "rawmaterialdetails/addRawMaterial";
$route['addNewRawmaterial'] = "rawmaterialdetails/addNewRawMaterial";

//<-----------Application Edit Routes------------>

$route['editOld'] = "user/editOld";
$route['editOld/(:num)'] = "user/editOld/$1";
$route['editUser'] = "user/editUser";
$route['editOldPO'] = "purchaseorder/editOldPO";
$route['editOldPO/(:num)'] = "purchaseorder/editOldPO/$1";
//$route['editPO'] = "purchaseorder/editPO";
$route['editOldsupplier'] = "supplier/editOldsupplier";
$route['editOldsupplier/(:num)'] = "supplier/editOldsupplier/$1";
$route['editsupplier'] = "supplier/editsupplier";

$route['editOldcost'] = "CostCenter/editOldcost";
$route['editOldcost/(:num)'] = "CostCenter/editOldcost/$1";
$route['editcost'] = "CostCenter/editcost";

$route['editOldasset'] = "assetdetails/editOldasset";
$route['editOldasset/(:num)'] = "assetdetails/editOldasset/$1";
$route['editasset'] = "assetdetails/editasset";

$route['editOldemployee'] = "employeedetails/editOldemployee";
$route['editOldemployee/(:num)'] = "employeedetails/editOldemployee/$1";
$route['editemployee'] = "employeedetils/editemployee";

$route['editOldRawmaterial/(:num)'] = "rawmaterialdetails/editOldRawmaterial/$1";
$route['editOldRawmaterial'] = "rawmaterialdetails/editOldRawmaterial";
$route['editrawmaterial'] = "rawmaterialdetails/editemployee";

//<-----------Application Delete Routes------------>

$route['deleteUser'] = "user/deleteUser";
$route['deletecost'] = "CostCenter/deletecost";


//<-----------Application User Change Password Routes------------>
$route['loadChangePass'] = "user/loadChangePass";
$route['changePassword'] = "user/changePassword";


//<-----------Application Page Not Found Routes------------>
$route['pageNotFound'] = "user/pageNotFound";

//<-----------Application Email & ForgetPassword Routes------------>

$route['checkEmailExists'] = "user/checkEmailExists";

$route['forgotPassword'] = "login/forgotPassword";
$route['ExcelUpload'] = "payslip/viewUpload";
$route['ExcelUpload2'] = "payslip/viewUpload2";
$route['FileUpload'] = "payslip/uploadExcel";
$route['FileUpload2'] = "payslip/uploadExcel2";
$route['PrintPdf'] = "payslip/PrintPdf";
$route['ViewPay'] = "payslip/viewGenerator";


//<-----------Application Requistion Flow Routes------------>
$route['Requisition'] = "requisitionform/requisitionlisting";
$route['RequisitionForm'] = "requisitionform/requisition";
$route['ApproveRequisition'] = "requisitionform/requisitionlistApproval";
$route['EditRequisition'] = "requisitionform/EditRequistionForm";
//<-----------PO Flow------------>
$route['CreatePO'] = "purchaseorder/requisition";
$route['PurchaseOrder'] = "purchaseorder/CreatePurchaseOrder";
$route['purchaseorderListing'] = "purchaseorder/PurchaseOrderList";
$route['EditPO'] = "purchaseorder/EditPurchaseOrder";
$route['EmergencyPO'] = "emergencypurchaseorder/CreateEmergencyPO";

/* End of file routes.php */
/* Location: ./application/config/routes.php */
