Master screen issue Fixes

This commit is contained in:
gandhimathi Bharathirajan 2017-06-19 13:18:45 +05:30
parent 2f2cefcb6a
commit 2b1815ed23
6 changed files with 14 additions and 60 deletions

View File

@ -39,20 +39,11 @@ class CostCenter extends BaseController
*/
function CostListing()
{
//$this->load->model('costcenter_model');
$searchText = $this->input->post('searchText');
$data['searchText'] = $searchText;
$count = $this->costcenter_model->CostListingCount($searchText);
$returns = $this->paginationCompress ( "costListing/", $count, 5 );
$data['userRecords'] = $this->costcenter_model->CostListing($searchText, $returns["page"], $returns["segment"]);
$data['userRecords'] = $this->costcenter_model->CostListing();
//print_r( $data) ;
$this->global['pageTitle'] = 'Siddharth : Cost List';
$this->loadViews("costListing", $this->global, $data, NULL);

View File

@ -39,16 +39,9 @@ class assetdetails extends BaseController
$this->load->model('assetdetails_model');
$searchText = $this->input->post('searchText');
$data['searchText'] = $searchText;
$this->load->library('pagination');
$count = $this->assetdetails_model->assetListingCount($searchText);
$returns = $this->paginationCompress ( "assetListing/", $count ,10);
$data['userRecords'] = $this->assetdetails_model->assetListing($searchText, $returns["page"], $returns["segment"]);
$data['userRecords'] = $this->assetdetails_model->assetListing();
$this->global['pageTitle'] = 'Siddharth : Asset List';

View File

@ -44,17 +44,8 @@ class employeedetails extends BaseController
$this->load->model('employeedetails_model');
$searchText = $this->input->post('searchText');
$data['searchText'] = $searchText;
$this->load->library('pagination');
$count = $this->employeedetails_model->employeeListingCount($searchText);
$returns = $this->paginationCompress ( "employeeListing/", $count[0]['Count'], 10 );
$data['userRecords'] = $this->employeedetails_model->employeeListing($searchText, $returns["page"], $returns["segment"]);
$data['userRecords'] = $this->employeedetails_model->employeeListing();
$this->global['pageTitle'] = 'Siddharth : Employee Listing';

View File

@ -42,14 +42,9 @@ class rawmaterialdetails extends BaseController
$this->load->model('rawmaterialdetails_model');
$searchText = $this->input->post('searchText');
$data['searchText'] = $searchText;
$count = $this->rawmaterialdetails_model->rawmaterialListingCount($searchText);
$returns = $this->paginationCompress ( "rawmaterialListing/", $count, 10 );
$data['userRecords'] = $this->rawmaterialdetails_model->rawmaterialListing($searchText, $returns["page"], $returns["segment"]);
$data['userRecords'] = $this->rawmaterialdetails_model->rawmaterialListing();
$this->global['pageTitle'] = 'Siddharth : RawMaterial Listing';

View File

@ -41,15 +41,8 @@ class supplier extends BaseController
$this->load->model('supplier_model');
$searchText = $this->input->post('searchText');
$data['searchText'] = $searchText;
$count = $this->supplier_model->supplierListingCount($searchText);
$returns = $this->paginationCompress ( "supplierListing/", $count, 10 );
$data['userRecords'] = $this->supplier_model->supplierListing($searchText, $returns["page"], $returns["segment"]);
$data['userRecords'] = $this->supplier_model->supplierListing();
$this->global['pageTitle'] = 'Siddharth Industries : Supplier Listing';

View File

@ -33,7 +33,7 @@ class user extends BaseController
$this->load->model('employeedetails_model');
$data['EmpCount'] = $this->employeedetails_model->getEmployeeCount();
$data['EmpCount'] = $this->employeedetails_model->getEmployeeCount();
$this->loadViews("dashboard", $this->global, $data , NULL);
}
@ -48,18 +48,9 @@ class user extends BaseController
$this->loadThis();
}
else
{
$searchText = $this->input->post('searchText');
$data['searchText'] = $searchText;
$this->load->library('pagination');
$count = $this->user_model->userListingCount($searchText);
$returns = $this->paginationCompress ( "userListing/", $count, 15 );
$data['userRecords'] = $this->user_model->userListing($searchText, $returns["page"], $returns["segment"]);
{
$data['userRecords'] = $this->user_model->userListing();
$this->global['pageTitle'] = 'Siddharth : User Listing';