access control
This commit is contained in:
parent
e6436aa3e2
commit
51bfe48a5b
@ -2195,8 +2195,15 @@ function addNewImportPurchaseOrder()
|
||||
// $data['Status']= $this->purchaseorder_model->getStatus();
|
||||
$userID = $this->session->userdata ( 'userId' );
|
||||
//print_r($data['Status']);echo "CON";
|
||||
$data['AppList'] = $this->purchaseorder_model->getPOList($q);
|
||||
$data['AppList'] = $this->purchaseorder_model->getPOList($q);
|
||||
if($this->DEPCode == FINANCE)
|
||||
{
|
||||
$this->loadViews("poapproval_view", $this->global,$data, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -2251,9 +2258,16 @@ function addNewImportPurchaseOrder()
|
||||
// $data['Status']= $this->purchaseorder_model->getStatus();
|
||||
$userID = $this->session->userdata ( 'userId' );
|
||||
//print_r($data['Status']);echo "CON";
|
||||
$data['AppList'] = $this->purchaseorder_model->getPOList($q);
|
||||
$this->loadViews("porelease_view", $this->global,$data, NULL);
|
||||
$data['AppList'] = $this->purchaseorder_model->getPOList($q);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadViews("porelease_view", $this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -31,9 +31,21 @@ class report extends BaseController
|
||||
|
||||
$data['pending_list']=$this->dahsboard_Model->req_list();
|
||||
//print_r($data);
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("report_pendingreqst",$this->global,$data, NULL);
|
||||
|
||||
}
|
||||
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function releasedPO()
|
||||
{
|
||||
@ -44,8 +56,14 @@ class report extends BaseController
|
||||
|
||||
$data['rel_po']=$this->dahsboard_Model->report_relpo();
|
||||
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_POreleased",$this->global,$data, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function openorderPO()
|
||||
@ -57,8 +75,15 @@ class report extends BaseController
|
||||
|
||||
$data['open_po']=$this->dahsboard_Model->report_openpending();
|
||||
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_openorder",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function TotalOrd()
|
||||
@ -74,7 +99,16 @@ class report extends BaseController
|
||||
$data['Total']=$this->dahsboard_Model->report_total($fa,$aa);
|
||||
}
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_totalorders",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function ccr()
|
||||
@ -93,8 +127,17 @@ class report extends BaseController
|
||||
|
||||
}
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_costcenter",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
//print_r($data);
|
||||
|
||||
@ -108,8 +151,17 @@ class report extends BaseController
|
||||
|
||||
$data['mms']=$this->dahsboard_Model->report_MMSupplier();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_Material_Master_SupplierWise",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function MM_Item()
|
||||
@ -121,9 +173,17 @@ class report extends BaseController
|
||||
|
||||
$data['mmi']=$this->dahsboard_Model->report_MMItem();
|
||||
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_Material_Master_ItemWise",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
public function MM_ReceiptValue()
|
||||
{
|
||||
@ -134,8 +194,16 @@ class report extends BaseController
|
||||
|
||||
$data['mmr']=$this->dahsboard_Model->report_MMReceiptValue();
|
||||
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_Material_Master_ReceiptValue",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function purchase()
|
||||
@ -157,8 +225,16 @@ class report extends BaseController
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['purchase']=$this->dahsboard_Model->report_purchase($cname,$prod,$fa,$aa,$m,$frm,$t);
|
||||
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_purchase",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function link_purchase()
|
||||
@ -203,10 +279,22 @@ class report extends BaseController
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['purchase']=$this->dahsboard_Model->report_purchase_link($cname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d);
|
||||
}
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_purchase",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function year_wise()
|
||||
{
|
||||
$this->global['pageTitle'] = 'Siddharth : Reports';
|
||||
@ -220,8 +308,19 @@ class report extends BaseController
|
||||
//$this->loadviews("Report_year_wise",$this->global,$data, NULL);
|
||||
}
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_year_wise",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function month_wise()
|
||||
@ -235,7 +334,17 @@ class report extends BaseController
|
||||
//print_r($month);
|
||||
$data['mont']=$mon;
|
||||
$data['month']=$this->dahsboard_Model->report_month_wise($month);
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_month_wise",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function year_wise_total()
|
||||
@ -250,7 +359,16 @@ class report extends BaseController
|
||||
//print_r($month);
|
||||
$data['year']=$month;
|
||||
$data['ytotal']=$this->dahsboard_Model->report_year_wise_total($a,$b);
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_year_wise_total",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -272,8 +390,16 @@ class report extends BaseController
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse']=$this->dahsboard_Model->report_supplier($cname,$fa,$aa,$m,$frm,$t);
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_supplier",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function consolidate()
|
||||
@ -291,8 +417,18 @@ class report extends BaseController
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse']=$this->dahsboard_Model->report_consolidate($cname,$fa,$aa);
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_consolidate",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
public function cumulative()
|
||||
@ -303,7 +439,17 @@ class report extends BaseController
|
||||
//print_r($prod);
|
||||
|
||||
$data['cum']=$this->dahsboard_Model->report_cumulative();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_cumulative",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function cum_month()
|
||||
@ -368,8 +514,17 @@ class report extends BaseController
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['purchase']=$this->dahsboard_Model->ireport_purchase($cname,$prod,$fa,$aa,$m,$frm,$t);
|
||||
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_purchase_inward",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
public function ilink_purchase()
|
||||
@ -431,8 +586,17 @@ class report extends BaseController
|
||||
//$this->loadviews("Report_year_wise",$this->global,$data, NULL);
|
||||
}
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_year_wise_inward",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
public function imonth_wise()
|
||||
@ -483,9 +647,21 @@ class report extends BaseController
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse']=$this->dahsboard_Model->ireport_supplier($cname,$fa,$aa,$m,$frm,$t);
|
||||
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_supplier_inward",$this->global,$data, NULL);
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
public function iconsolidate()
|
||||
{
|
||||
@ -501,9 +677,15 @@ class report extends BaseController
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse']=$this->dahsboard_Model->ireport_consolidate($cname,$fa,$aa);
|
||||
|
||||
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_consolidate_inward",$this->global,$data, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function icumulative()
|
||||
@ -514,7 +696,17 @@ class report extends BaseController
|
||||
//print_r($prod);
|
||||
|
||||
$data['cum']=$this->dahsboard_Model->ireport_cumulative();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_cumulative_inward",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function icum_month()
|
||||
@ -587,7 +779,16 @@ class report extends BaseController
|
||||
// $data['monthlywiseexpense']=$this->dahsboard_Model->monthwise_data_expense();
|
||||
// $data['todayincome']=$this->dahsboard_Model->today_data_income();
|
||||
// $data['todayexpense']=$this->dahsboard_Model->today_data_expense();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("reportcashbook",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -601,7 +802,17 @@ class report extends BaseController
|
||||
$data['monthlyreport']=$this->dahsboard_Model->monthexpensereport();
|
||||
// $data['monthlyincreport']=$this->dahsboard_Model->monthincomereport();
|
||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("cashbookmonthlyexpenses",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function yearexpenses()
|
||||
@ -614,7 +825,15 @@ class report extends BaseController
|
||||
$data['yearlyreport']=$this->dahsboard_Model->yearexpensereport();
|
||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("cashbookyearlyexpenses",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function cashbookdepartment()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user