From 2f9fc833ab9ed85172188bd012b18199db824e8c Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Wed, 14 Mar 2018 16:37:15 +0530 Subject: [PATCH] complaint screen --- application/config/routes.php | 5 +- application/controllers/purchaseorder.php | 443 ++++++++ application/models/purchaseorder_model.php | 258 +++++ application/views/action_report.php | 911 ++++++++++++++++ application/views/addcomplaint.php | 309 ++++++ application/views/editaction_report.php | 1106 ++++++++++++++++++++ application/views/editcomplaint.php | 336 ++++++ application/views/includes/header.php | 103 +- application/views/ncrlist.php | 168 +++ application/views/nonconfirmative.php | 143 +++ 10 files changed, 3774 insertions(+), 8 deletions(-) create mode 100644 application/views/action_report.php create mode 100644 application/views/addcomplaint.php create mode 100644 application/views/editaction_report.php create mode 100644 application/views/editcomplaint.php create mode 100644 application/views/ncrlist.php create mode 100644 application/views/nonconfirmative.php diff --git a/application/config/routes.php b/application/config/routes.php index e22a7f3a..b214a20a 100755 --- a/application/config/routes.php +++ b/application/config/routes.php @@ -288,6 +288,9 @@ $route['productionsalary']="monthlypay/productionsalary"; $route['Editenquiry'] = "purchaseorder/Editenquiry"; $route['enquirylisting'] = "purchaseorder/enquirylist"; - +$route['AddComplaint'] = "purchaseorder/AddComplaint"; +$route['EditComplaint'] = "purchaseorder/EditComplaint"; +$route['Addaction'] = "purchaseorder/Nonconfirmative"; +$route['ncrlist'] = "purchaseorder/Nonconfirmativelist"; /* End of file routes.php */ /* Location: ./application/config/routes.php */ diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php index e7db9047..5b13d867 100755 --- a/application/controllers/purchaseorder.php +++ b/application/controllers/purchaseorder.php @@ -3295,6 +3295,449 @@ public function enquiry() } + + + public function Nonconfirmative() + { + + $CId = $_GET['CId']; + + $data['CId']=$CId; + $data['Suplist'] = $this->purchaseorder_model->GetEnquiryDetails(); + + $this->global['pageTitle'] = 'Siddharth : Enquiry List'; + + // $this->loadViews("action_report", $this->global, $data , NULL); + + $this->loadViews("action_report", $this->global, $data , NULL); + + } + + + public function EditNonconfirmative() + { + + $Id = $_GET['Id']; + + $data['Suplist'] = $this->purchaseorder_model->GetEnquiryDetails(); + $data['masterdetails'] =$this->purchaseorder_model->GetncrmasterDetails($Id); + $data['DispositionDetails'] =$this->purchaseorder_model->GetDispositionDetails($Id); + $data['RootcauseDetails'] =$this->purchaseorder_model->GetRootcauseDetails($Id); + $data['CounteractionDetails'] =$this->purchaseorder_model->GetCouteractionDetails($Id); + + //print_r($data['DispositionDetails']); + + $this->global['pageTitle'] = 'Siddharth : Enquiry List'; + + $this->loadViews("editaction_report", $this->global, $data , NULL); + + } + + + public function Nonconfirmativelist() + { + + $data['ncrarray'] = $this->purchaseorder_model->GetNcrlist(); + //print_r($data['Customer_Order']); + $this->global['pageTitle'] = 'Siddharth : NCR List'; + + $this->loadViews("ncrlist", $this->global, $data , NULL); + + + } + + + public function AddComplaint() + { + + $data['Customer'] = $this->purchaseorder_model->GetClients(); + //$dt = date('yyyy-mm-dd'); + //$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); + //$createddt = $dt->format('Y-m-d'); + + //$data['enquirycount']=$this->purchaseorder_model->GetEnquiryCount($createddt); + $this->global['pageTitle'] = 'Siddharth : Enquiry Form'; + + $this->loadViews("addcomplaint", $this->global, $data , NULL); + + } + + + public function EditComplaint() + { + + $CId = $_GET['CId']; + $data['Customer'] = $this->purchaseorder_model->GetClients(); + $data['savedata'] = $this->purchaseorder_model->Get_SavedComplaint($CId); + $this->global['pageTitle'] = 'Siddharth : Enquiry Form'; + + $this->loadViews("editcomplaint", $this->global, $data , NULL); + + } + + + + public function Savencrlist() + { + + //$client_id=$this->input->post('client_id'); + $cname= $this->input->post('cname'); + $date= $this->input->post('date'); + $servicedetails = $this->input->post('servicedetails'); + $detailsofcoplaint= $this->input->post('detailsofcoplaint'); + $modeofcommunication = $this->input->post('modeofcommunication'); + $actiontaken = $this->input->post('actiontaken'); + $actioncardno =$this->input->post('actioncardno'); + $remark = $this->input->post('remark'); + + + $save=array('client_id'=>$cname,'Created_Date'=>$date,'Details'=>$servicedetails,'Reason'=>$detailsofcoplaint,'mode_of_communication'=>$modeofcommunication,'action_taken'=>$actiontaken,'Remarks'=>$remark,'card_ref_no'=>$actioncardno); + + + $save_result = $this->purchaseorder_model->UpdateEnquiry($save,$Id); + + if(($save_result ==0)||($save_result == 1)) + { + echo "Saved Successfully"; + //echo ""; + // redirect('purchaseorder/addenquiry','refresh'); + + } + } + + + + public function Action_Report() + { + $txtactionrow = $this->input->post('txtactionrow'); + $txtrootrow = $this->input->post('txtrootrow'); + $txtcounterrow = $this->input->post('txtcounterrow'); + + $Department = $this->input->post('Department'); + $Date = $this->input->post('newdate'); + $Auditor = $this->input->post('AUDITOR'); + $Auditee= $this->input->post('AUDITEE'); + $Iqaref = $this->input->post('IQAREF'); + $ncdetails = $this->input->post('ObjectiveEvidence'); + $ReviewDetails = $this->input->post('ReviewDetails'); + $ncrstatus = $this->input->post('ncrstatus'); + $Comments = $this->input->post('Comments'); + + $CId= $this->input->post('CId'); + + $master=array('Department'=>$Department,'Created_Date'=>$Date,'Auditor'=>$Auditor,'Auditee'=>$Auditee,'Iqra'=>$Iqaref,'NC_Details'=>$ncdetails,'Review_Details'=>$ReviewDetails,'Ncr_status'=>$ncrstatus,'Comments'=>$Comments); + + + //print_r($master); + + $save_result = $this->purchaseorder_model->SaveActionMaster($master); + + $lastId=''; + + if(count($save_result)>0) + { + $lastId = $save_result[0]['Id']; + } + + $up=array('Ncr_Id'=>$lastId); + $updatecomplaint= $this->purchaseorder_model->updatecomplaintId($up,$CId); + + + for($i=1;$i<=$txtactionrow ;$i++) + { + $action = $this->input->post('action'.$i); + $resp = $this->input->post('resp'.$i); + $target = $this->input->post('target'.$i); + + $actionsave =array('Id'=>$lastId,'Action'=>$action ,'Resp'=>$resp,'Target'=>$target); + + $actionsave = $this->purchaseorder_model->SaveActionDisposition($actionsave); + } + + + for($i=1;$i<=$txtrootrow;$i++) + { + $rootcause = $this->input->post('RootCause'.$i); + + $rootsave =array('Id'=>$lastId,'Root_cause'=>$rootcause); + + $saveroot = $this->purchaseorder_model->SaveRootCause($rootsave); + } + + + for($i=1;$i<=$txtcounterrow ;$i++) + { + $action = $this->input->post('counteraction'.$i); + $resp = $this->input->post('counterresp'.$i); + $target = $this->input->post('countertarget'.$i); + + $savecounter =array('Id'=>$lastId,'Action'=>$action ,'Resp'=>$resp,'Target'=>$target); + + $countersave = $this->purchaseorder_model->Savecounteraction($savecounter); + } + + + + echo "Saved Successfully"; + + + + } + + + + public function UpdateAction_Report() + { + + $txtactionrow = $this->input->post('txtactionrow'); + $txtrootrow = $this->input->post('txtrootrow'); + $txtcounterrow = $this->input->post('txtcounterrow'); + + $Id= $this->input->post('ObjectiveEvidence1'); + $Department = $this->input->post('Department'); + $Date = $this->input->post('newdate'); + + //die(); + $Auditor = $this->input->post('AUDITOR'); + $Auditee= $this->input->post('AUDITEE'); + $Iqaref = $this->input->post('IQAREF'); + $ncdetails = $this->input->post('ObjectiveEvidence'); + $ReviewDetails = $this->input->post('ReviewDetails'); + $ncrstatus = $this->input->post('ncrstatus'); + $Comments = $this->input->post('Comments'); + + + $master=array('Department'=>$Department,'Created_Date'=>$Date,'Auditor'=>$Auditor,'Auditee'=>$Auditee,'Iqra'=>$Iqaref,'NC_Details'=>$ncdetails,'Review_Details'=>$ReviewDetails,'Ncr_status'=>$ncrstatus,'Comments'=>$Comments); + + + $save_result = $this->purchaseorder_model->UpdateActionMaster($master,$Id); + + //print_r($save_result); + + + $lastId=''; + + if(count($save_result)>0) + { + $lastId = $save_result[0]['Id']; + } + + + + + + for($i=1;$i<=$txtactionrow ;$i++) + { + $action = $this->input->post('action'.$i); + $resp = $this->input->post('resp'.$i); + $target = $this->input->post('target'.$i); + $LineDisposition = $this->input->post('ActionId'.$i); + + if($action == '' && $resp == '' & $target == '') + { + + } + else + { + + $actionsave =array('Id'=>$Id,'Action'=>$action ,'Resp'=>$resp,'Target'=>$target); + $checklineid=$this->purchaseorder_model->GetActionid($LineDisposition); + + //print_r($actionsave); + + if(count($checklineid)==0) + { + + $actionsave = $this->purchaseorder_model->SaveActionDisposition($actionsave); + + } + + else + { + $actionsave = $this->purchaseorder_model->UpdateActionDisposition($actionsave,$LineDisposition); + } + } + + // $actionsave = $this->purchaseorder_model->UpdateActionDisposition($actionsave,$LineDisposition); + } + + + for($i=1;$i<=$txtrootrow;$i++) + { + $rootcause = $this->input->post('RootCause'.$i); + $Lineroot = $this->input->post('RootCauseId'.$i); + + if($rootcause == '') + { + + } + else + { + + $rootsave =array('Id'=>$Id,'Root_cause'=>$rootcause); + + $checkrootid=$this->purchaseorder_model->Getrootid($Lineroot); + if(count($checkrootid)==0) + { + $saveroot = $this->purchaseorder_model->SaveRootCause($rootsave); + } + else + { + $saveroot = $this->purchaseorder_model->UpdateRootCause($rootsave,$Lineroot); + } + + } + + } + + + for($i=1;$i<=$txtcounterrow ;$i++) + { + $action = $this->input->post('counteraction'.$i); + $resp = $this->input->post('counterresp'.$i); + $target = $this->input->post('countertarget'.$i); + $LineCounter = $this->input->post('CounterId'.$i); + + if($action == '' && $resp == '' & $target == '') + { + + } + else + { + + $savecounter =array('Id'=>$Id,'Action'=>$action ,'Resp'=>$resp,'Target'=>$target); + + $checkcounterid=$this->purchaseorder_model->Getcounterid($LineCounter); + + if(count($checkcounterid)==0) + { + $countersave = $this->purchaseorder_model->Savecounteraction($savecounter); + + } + else + { + $countersave = $this->purchaseorder_model->Updatecounteraction($savecounter,$LineCounter); + } + + } + + + } + + + + echo "Saved Successfully"; + + + + } + + + public function SaveComplaint() + { + + $client_id = $this->input->post('client_id'); + $date = $this->input->post('date'); + $Service_Details= $this->input->post('Service_Details'); + $Reasons= $this->input->post('Reasons'); + $mode= $this->input->post('mode'); + $Action= $this->input->post('Action'); + $Remark= $this->input->post('Remark'); + + $save_complaint = array('client_id' =>$client_id,'Created_Date'=>$date,'Service_Details'=>$Service_Details,'Reason'=>$Reasons,'mode_of_communication'=>$mode,'Action_taken'=>$Action,'Remark'=>$Remark ); + + $savecomplaint = $this->purchaseorder_model->Savecomplaint($save_complaint); + + if($savecomplaint>0) + { + + echo "Saved Successfully"; + } + + else + { + echo "Error Occured! Please Try Again"; + } + + + } + + + + + + public function UpdateComplaint() + { + + $client_id = $this->input->post('client_id'); + $date = $this->input->post('date'); + $Service_Details= $this->input->post('Service_Details'); + $Reasons= $this->input->post('Reasons'); + $mode= $this->input->post('mode'); + $Action= $this->input->post('Action'); + $Remark= $this->input->post('Remark'); + $CId =$this->input->post('CId'); + + $save_complaint = array('client_id' =>$client_id,'Created_Date'=>$date,'Service_Details'=>$Service_Details,'Reason'=>$Reasons,'mode_of_communication'=>$mode,'Action_taken'=>$Action,'Remark'=>$Remark ); + + $savecomplaint = $this->purchaseorder_model->Updatecomplaint($save_complaint,$CId); + + if($savecomplaint>0) + { + + echo "Saved Successfully"; + } + + else + { + echo "Error Occured! Please Try Again"; + } + + + } + + + public function DeleteAction_Report() + { + $DelId= $this->input->post('delactionId'); + $delete=$this->purchaseorder_model->DeleteAction($DelId); + + //echo $delete; + if($delete>0) + { + echo "Successfully Deleted"; + } + } + + + public function DeleteRoot_Cause() + { + $DelId= $this->input->post('delactionId'); + $delete=$this->purchaseorder_model->DeleteRoot($DelId); + + //echo $delete; + if($delete>0) + { + echo "Successfully Deleted"; + } + } + + + public function DeleteCounter_Row() + { + $DelId= $this->input->post('delactionId'); + $delete=$this->purchaseorder_model->DeleteCounter($DelId); + + //echo $delete; + if($delete>0) + { + echo "Successfully Deleted"; + } + + } + + + } ?> diff --git a/application/models/purchaseorder_model.php b/application/models/purchaseorder_model.php index 719b808b..e2fbb95c 100755 --- a/application/models/purchaseorder_model.php +++ b/application/models/purchaseorder_model.php @@ -1835,5 +1835,263 @@ function GetEnquiryCount($createddt) $query = $this->db->get(); return $query->result(); } + + +function SaveActionMaster($master) +{ + + $this->db->trans_start(); + $this->db->insert('T_ActionReport_Master', $master); + $insert_id = $this->db->affected_rows(); + $this->db->trans_complete(); + // print_r($this->db->last_query()); + if($insert_id>0) + { + $subQuery = 'select max(Id) as Id from T_ActionReport_Master'; + + $query = $this->db->query($subQuery,array()); + + return $query->result_array(); + } +} + + +function SaveActionDisposition($actionsave) +{ + $this->db->trans_start(); + $this->db->insert('T_Action_Disposition',$actionsave); + $insert_id = $this->db->affected_rows(); + $this->db->trans_complete(); + return $insert_id; +} + + +function UpdateActionDisposition($actionsave,$LineDisposition) +{ + //echo $LineDisposition; + + $this->db->where('DispositionId', $LineDisposition); + $this->db->update('T_Action_Disposition', $actionsave); + return TRUE; +} + +function UpdateRootCause($rootsave,$Lineroot) +{ + $this->db->where('RootId', $LineDisposition); + $this->db->update('T_RootCause', $rootsave); + return TRUE; +} + + +function Updatecounteraction($savecounter,$LineCounter) +{ + $this->db->where('CounterId', $LineCounter); + $this->db->update('T_Action_Counter_Measure', $savecounter); + return TRUE; +} + + +function UpdateActionMaster($master,$Id) +{ + + $this->db->where('Id', $Id); + $this->db->update('T_ActionReport_Master', $master); + $insert_id = $this->db->affected_rows(); + //return TRUE; + if($insert_id>0) + { + $subQuery = 'select max(Id) as Id from T_ActionReport_Master'; + + $query = $this->db->query($subQuery,array()); + + return $query->result_array(); + } +} + + + +function SaveRootCause($rootsave) +{ + + $this->db->trans_start(); + $this->db->insert('T_RootCause',$rootsave); + $insert_id = $this->db->affected_rows(); + $this->db->trans_complete(); + return $insert_id; + +} + +function Savecounteraction($savecounter) +{ + $this->db->trans_start(); + $this->db->insert('T_Action_Counter_Measure',$savecounter); + $insert_id = $this->db->affected_rows(); + $this->db->trans_complete(); + return $insert_id; +} + +function GetNcrlist() +{ + $this->db->select('*'); + $this->db->from('T_ComplaintRegister'); + $this->db->join('ip_clients','ip_clients.client_id=T_ComplaintRegister.client_id'); + $this->db->order_by('CId','desc'); + $query = $this->db->get(); + return $query->result(); +} + + +function GetncrmasterDetails($Id) +{ + $this->db->select('*'); + $this->db->from('T_ActionReport_Master'); + $this->db->where('Id',$Id); + $query = $this->db->get(); + return $query->result(); +} + + +function GetDispositionDetails($Id) +{ + $this->db->select('*'); + $this->db->from('T_Action_Disposition'); + $this->db->where('Id',$Id); + $query = $this->db->get(); + return $query->result(); + +} + +function GetRootcauseDetails($Id) +{ + $this->db->select('*'); + $this->db->from('T_RootCause'); + $this->db->where('Id',$Id); + $query = $this->db->get(); + return $query->result(); + +} + +function GetCouteractionDetails($Id) +{ + + $this->db->select('*'); + $this->db->from('T_Action_Counter_Measure'); + $this->db->where('Id',$Id); + $query = $this->db->get(); + return $query->result(); +} + + + +function Savecomplaint($save_complaint) +{ + $this->db->trans_start(); + $this->db->insert('T_ComplaintRegister',$save_complaint); + $insert_id = $this->db->affected_rows(); + $this->db->trans_complete(); + return $insert_id; +} + + +function Get_SavedComplaint($CId) +{ + $this->db->select('*'); + $this->db->from('T_ComplaintRegister'); + $this->db->join('ip_clients','ip_clients.client_id=T_ComplaintRegister.client_id'); + $this->db->where('CId',$CId); + $this->db->order_by('CId','desc'); + $query = $this->db->get(); + //print_r($this->db->last_query()); + return $query->result(); +} + +function Updatecomplaint($save_complaint,$CId) +{ + + $this->db->where('CId', $CId); + $this->db->update('T_ComplaintRegister', $save_complaint); + return TRUE; +} + +function updatecomplaintId($up,$CId) +{ + $this->db->where('CId', $CId); + $this->db->update('T_ComplaintRegister',$up); + return TRUE; +} + + +function GetActionid($LineDisposition) +{ + + $this->db->select('*'); + $this->db->from('T_Action_Disposition'); + $this->db->where('DispositionId',$LineDisposition); + $query = $this->db->get(); + //print_r($this->db->last_query()); + return $query->result(); +} + + + +function GetlastDispositionId() +{ + $subQuery = 'select max(DispositionId) from T_Action_Disposition'; + + $query = $this->db->query($subQuery,array()); + + return $query->result_array(); +} + + + +function Getrootid($Lineroot) +{ + $this->db->select('*'); + $this->db->from('T_RootCause'); + $this->db->where('RootId',$Lineroot); + $query = $this->db->get(); + //print_r($this->db->last_query()); + return $query->result(); +} + + + +function Getcounterid($LineCounter) +{ + $this->db->select('*'); + $this->db->from('T_Action_Counter_Measure'); + $this->db->where('CounterId',$LineCounter); + $query = $this->db->get(); + //print_r($this->db->last_query()); + return $query->result(); +} + + +function DeleteAction($DelId) +{ + $this->db->where('DispositionId', $DelId); + $this->db->delete('T_Action_Disposition'); + //print_r($this->db->last_query()); + return TRUE; +} + + +function DeleteRoot($DelId) +{ + $this->db->where('RootId', $DelId); + $this->db->delete('T_RootCause'); + //print_r($this->db->last_query()); + return TRUE; +} + + +function DeleteCounter($DelId) +{ + $this->db->where('CounterId', $DelId); + $this->db->delete('T_Action_Counter_Measure'); + //print_r($this->db->last_query()); + return TRUE; +} } diff --git a/application/views/action_report.php b/application/views/action_report.php new file mode 100644 index 00000000..888ea141 --- /dev/null +++ b/application/views/action_report.php @@ -0,0 +1,911 @@ + + + + + + + + + +
+
+
+ +
+
+

Siddharth Industries - ACTION REPORT

+
+ +
+ + +
+ +
+ +
+ + 'form-label-left action_report ','name' => 'action_report','id' => 'action_report'); + + echo form_open($this->config->base_url().'/purchaseorder/Action_Report/',$attributes); + ?> + +
+
+ + + + SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + + // endforeach; + // } + + // echo form_dropdown('DEPTFN', $options2,set_value('DEPTFN',$SupId),'id="DEPTFN"' ,'required="true"' ,'class="form-control select2'); + + $data = array('name' => 'Department','value' => set_value('Department'),'id'=>'Department', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + + ?> + +
+ +
+ + 'Date','value' => set_value('Date',$CurrentDate),'id'=>'Date', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + echo form_input($data); + ?> +
+
+ + +
+ 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + // echo form_input($data); + $data = array('name' => 'AUDITOR','value' => set_value('AUDITOR'),'id'=>'AUDITOR', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
+ +
+ +
+ + +
+ 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + // echo form_input($data); + $data = array('name' => 'AUDITEE','value' => set_value('AUDITEE'),'id'=>'AUDITEE', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
+ +
+
+
+
+ + +
+ 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + // echo form_input($data); + $data = array('name' => 'IQAREF','value' => set_value('IQAREF'),'id'=>'IQAREF', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
+ +
+
+ +
+ 'ObjectiveEvidence','value' => set_value('ObjectiveEvidence',$ObjectiveEvidence),'id'=>'ObjectiveEvidence', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + ?> +
+
+ + +
+
+ +
+
+
+ + +
+
Disposition Action Plan
+ +
+
+ + + Add Line Item + + + + + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + +
S.NoActionRespTargetAction
+
+ + +
+
Root Cause (s)
+ +
+
+ Add Line Item + + + + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + +
S.NoRootCauseAction
+
+ + +
+
Counter Measure Action Plan
+ +
+
+ Add Line Item + + + + + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + +
S.NoActionRespTarget
+
+ + + + Effectiveness of Corrective Action Taken +
+ +
+ 'ReviewDetails','value' => set_value('ReviewDetails'),'id'=>'ReviewDetails', 'class' => 'form-control' ,'rows' => '3', 'cols' => '40' ); + echo form_textarea($data); + ?> +
+
+ +
+
+
+ NCR Closed + +
+
+
+ + + + +
+ +
+ 'Comments','value' => set_value('Comments'),'id'=>'Comments', 'class' => 'form-control' ,'rows' => '3', 'cols' => '40' ); + echo form_textarea($data); + ?> +
+
+ + + + + + + + +
+   Save +
+ +
+ +
+
+
+ + + + + + + + + + + + + \ No newline at end of file diff --git a/application/views/addcomplaint.php b/application/views/addcomplaint.php new file mode 100644 index 00000000..8369112d --- /dev/null +++ b/application/views/addcomplaint.php @@ -0,0 +1,309 @@ + +format('d-m-Y'); +$count=''; +if(!empty($enquirycount)) +{ + foreach($enquirycount as $enc) + { + $count= $enc->Countnumber; + + } +} + +$actcount=$count+1; +//echo $actcount; + +?> + + + + + + +
+ + + +
+ +
+
+
+
+

Siddharth Industries - Complaint Register

+
+ +
+
+ + 'form-label-left advancerequest','name' => 'enquiry','id' => 'enquiry'); + + // echo form_open($this->config->base_url().'purchaseorder/addadvancerequest',$attributes); + ?> +
+
+
+ + + + 'Customer Name'); + + if(!empty($Customer)) + { //print_r($Currency); + foreach ($Customer as $Cu): + // print_r($Cu['client_id']); + + $opt[$Cu['client_id']] = $Cu['client_id'].' '.' - '.' '.$Cu['client_name']; + + endforeach; + } + + + // print_r($opt); + + echo form_dropdown('Customer', $opt,set_value('Customer'),'id="Customer"' ,'required="true"' ,'class="form-control select2'); + ?> +
+ +
+ + 'Date','value' => set_value('Date',$CurrentDate),'id'=>'Date', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + echo form_input($data); + ?> +
+ + +
+ + 'Service_Details','value' => set_value('Service_Details'),'id'=>'Service_Details', 'class' => 'form-control' ,'rows' => '5', 'cols' => '100','maxlength' => '250'); + echo Form_textarea($data); + ?> + +
+ +
+ + 'Reasons','value' => set_value('Reasons'),'id'=>'Reasons', 'class' => 'form-control' ,'rows' => '5', 'cols' => '100','maxlength' => '250'); + echo Form_textarea($data); + ?> +
+ + + + + + +
+ +
+ +
+ + 'mode','value' => set_value('mode'),'id'=>'mode', 'class' => 'form-control num' ,'required' => 'true','style'=>'text-align:left;'); + echo form_input($data); + ?> +
+ + + +
+ +
+ + 'Action','value' => set_value('Action'),'id'=>'Action' ,'class' => 'form-control num' ,'required' => 'true'); + echo form_input($data); + ?> +
+
+ + + + + + +
+ +
+ + + +
+ 'Remark','value' => set_value('Remark'),'id'=>'Remark', 'class' => 'form-control' ,'rows' => '5', 'cols' => '100','maxlength' => '250'); + echo Form_textarea($data); + ?> +
+
+
+ +
+
+   Save +
+
+ + +
+
+
+
+
+
+
+ +> diff --git a/application/views/editaction_report.php b/application/views/editaction_report.php new file mode 100644 index 00000000..42b3ea0d --- /dev/null +++ b/application/views/editaction_report.php @@ -0,0 +1,1106 @@ +Department; + $Created_Date=$mas->Created_Date; + $Ddt = new DateTime($mas->Created_Date); + $dt = $Ddt->format('d-m-Y'); + + $Auditor=$mas->Auditor; + $Auditee=$mas->Auditee; + $Iqra= $mas->Iqra; + $NC_Details= $mas->NC_Details; + $Review_Details= $mas->Review_Details; + $Ncr_status = $mas->Ncr_status; + $Comments=$mas->Comments; + $Id=$mas->Id; + } +} +//echo $dt; +?> + + + + + + + + + + +
+
+
+ +
+
+

Siddharth Industries - ACTION REPORT

+
+ +
+ + +
+ +
+ +
+ + 'form-label-left action_report ','name' => 'action_report','id' => 'action_report'); + + echo form_open($this->config->base_url().'/purchaseorder/Action_Report/',$attributes); + ?> + +
+
+ + + + SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + + // endforeach; + // } + + // echo form_dropdown('DEPTFN', $options2,set_value('DEPTFN',$SupId),'id="DEPTFN"' ,'required="true"' ,'class="form-control select2'); + + $data = array('name' => 'Department','value' => set_value('Department',$Department),'id'=>'Department', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + + ?> + +
+ +
+ + 'Date','value' => set_value('Date',$dt),'id'=>'Date', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + echo form_input($data); + ?> +
+
+ + +
+ 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + // echo form_input($data); + $data = array('name' => 'AUDITOR','value' => set_value('AUDITOR',$Auditor),'id'=>'AUDITOR', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
+ +
+ +
+ + +
+ 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + // echo form_input($data); + $data = array('name' => 'AUDITEE','value' => set_value('AUDITEE',$Auditee),'id'=>'AUDITEE', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
+ +
+
+
+
+ + +
+ 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + // echo form_input($data); + $data = array('name' => 'IQAREF','value' => set_value('IQAREF',$Iqra),'id'=>'IQAREF', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
+ +
+
+ +
+ 'ObjectiveEvidence','value' => set_value('ObjectiveEvidence',$NC_Details),'id'=>'ObjectiveEvidence', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + ?> +
+
+ +
+ + +
+ 'ObjectiveEvidence1','value' => set_value('ObjectiveEvidence1',$Id),'id'=>'ObjectiveEvidence1', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40'); + echo form_input($data); + ?> +
+
+
+
+ +
+
+
+ + +
+
Disposition Action Plan
+ +
+
+ + + Add Line Item + + + + + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
S.NoActionRespTarget
Action;?>Resp;?>Target;?>    
+ +
+ + +
+
Root Cause (s)
+ +
+
+ Add Line Item + + + + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + +
S.NoRootCause
Root_cause;?> +     +
+ +
+ + +
+
Counter Measure Action Plan
+ +
+
+ Add Line Item + + + + + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
S.NoActionRespTarget
Action;?>Resp;?>Target;?> + +     +
+ +
+ + + + Effectiveness of Corrective Action Taken +
+ +
+ 'ReviewDetails','value' => set_value('ReviewDetails',$Review_Details),'id'=>'ReviewDetails', 'class' => 'form-control' ,'rows' => '3', 'cols' => '40' ); + echo form_textarea($data); + ?> +
+
+ +
+
+
+ NCR Closed + +
+
+
+ + + + +
+ +
+ 'Comments','value' => set_value('Comments',$Comments),'id'=>'Comments', 'class' => 'form-control' ,'rows' => '3', 'cols' => '40' ); + echo form_textarea($data); + ?> +
+
+ + + + + + + +
+   Save +
+ +
+ +
+
+
+ + + + + + + + + + + + + \ No newline at end of file diff --git a/application/views/editcomplaint.php b/application/views/editcomplaint.php new file mode 100644 index 00000000..a2fc99c5 --- /dev/null +++ b/application/views/editcomplaint.php @@ -0,0 +1,336 @@ + +format('d-m-Y'); +$Service_Details=''; +$Reason=''; +$Created_Date=''; +$mode_of_communication=''; +$Action_taken = ''; +$Remark =''; +$client_name =''; +$Ddt =''; +$dt= ''; +$client_id=''; +$CId= ''; + +if(!empty($savedata)) +{ + foreach($savedata as $sa) + { + + $Service_Details=$sa->Service_Details; + $Reason=$sa->Reason; + $Ddt = new DateTime($mas->Created_Date); + $dt = $Ddt->format('d-m-Y'); + $mode_of_communication=$sa->mode_of_communication; + $Action_taken = $sa->Action_taken; + $Remark = $sa->Remark; + $client_name = $sa->client_name; + $client_id = $sa->client_id; + $CId = $sa->CId; + } +} + +//echo $CId; + +?> + + + + + + +
+ + + +
+ +
+
+
+
+

Siddharth Industries - Edit Complaint

+
+ +
+
+ + 'form-label-left advancerequest','name' => 'enquiry','id' => 'enquiry'); + + // echo form_open($this->config->base_url().'purchaseorder/addadvancerequest',$attributes); + ?> +
+
+
+ + + + +
+ +
+ + 'Date','value' => set_value('Date',$dt),'id'=>'Date', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + echo form_input($data); + ?> +
+ + +
+ + 'Service_Details','value' => set_value('Service_Details',$Service_Details),'id'=>'Service_Details', 'class' => 'form-control' ,'rows' => '5', 'cols' => '100','maxlength' => '250'); + echo Form_textarea($data); + ?> + +
+ +
+ + 'Reasons','value' => set_value('Reasons',$Reason),'id'=>'Reasons', 'class' => 'form-control' ,'rows' => '5', 'cols' => '100','maxlength' => '250'); + echo Form_textarea($data); + ?> +
+ + + + + + +
+ +
+ +
+ + 'mode','value' => set_value('mode',$mode_of_communication),'id'=>'mode', 'class' => 'form-control num' ,'required' => 'true','style'=>'text-align:left;'); + echo form_input($data); + ?> +
+ + + +
+ +
+ + 'Action','value' => set_value('Action',$Action_taken),'id'=>'Action' ,'class' => 'form-control num' ,'required' => 'true'); + echo form_input($data); + ?> +
+
+ + + + + + +
+ +
+ + + +
+ 'Remark','value' => set_value('Remark',$Remark),'id'=>'Remark', 'class' => 'form-control' ,'rows' => '5', 'cols' => '100','maxlength' => '250'); + echo Form_textarea($data); + ?> +
+ + +
+
+ +
+
+   Save +
+
+ + +
+
+
+
+
+
+
+ +> diff --git a/application/views/includes/header.php b/application/views/includes/header.php index ab77c4f1..6f1f3e07 100755 --- a/application/views/includes/header.php +++ b/application/views/includes/header.php @@ -178,7 +178,7 @@ $(function() { else{echo "non empty";}?> --> -
  • + + + + + + +
  • + Complaint +
  • @@ -626,6 +658,34 @@ $(function() { + + + + +
  • + Enquiry and Order + +
  • + + + + + - - - - - - + + + + + AssDep; + + if($assd == SALES || $DEPCode == SALES){?> + + +
  • + Enquiry and Order + +
  • + + + + + + diff --git a/application/views/ncrlist.php b/application/views/ncrlist.php new file mode 100644 index 00000000..3d8c14a5 --- /dev/null +++ b/application/views/ncrlist.php @@ -0,0 +1,168 @@ + + +
    + + + +
    +
    +
    +
    +
    +

    Siddharth Industries

    +
    + +
    + + + + + + + + + + + + + + + + + + Created_Date; + $Ddt = new DateTime($nc->Created_Date); + $dt = $Ddt->format('d-m-Y'); + + + ?> + + + + + + + + + + + + + + Ncr_Id == ""){ + ?> + + + + + + + + Ncr_Id ==""){?> + + + + + + + + + + + + + + + +
    #Complaint IdDateCustomer NameService DetailsDetails of Complaint/ReasonsMode of CommunicationAction TakenRemarksAction Card Ref NoActions
    CId ?>     + client_name?>Service_Details;?>Reason?>mode_of_communication?>Action_taken;?>Remark;?>Ncr_Id ?>     +
    +
    + +
    + + +
    + +
    + +
    + +
    + + + + \ No newline at end of file diff --git a/application/views/nonconfirmative.php b/application/views/nonconfirmative.php new file mode 100644 index 00000000..f2d34bc7 --- /dev/null +++ b/application/views/nonconfirmative.php @@ -0,0 +1,143 @@ +
    + + + +
    + +
    +
    +
    +
    +

    Siddharth Industries - Enquiry Form

    +
    + +
    +
    + + 'form-label-left advancerequest','name' => 'enquiry','id' => 'enquiry'); + + // echo form_open($this->config->base_url().'purchaseorder/addadvancerequest',$attributes); + ?> +
    +
    +
    + + 'Contact','value' => set_value('Contact'),'id'=>'Contact' ,'class' => 'form-control num' ,'required' => 'true'); + echo form_input($data); + ?> + +
    + +
    + + 'Date','value' => set_value('Date',$CurrentDate),'id'=>'Date', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + echo form_input($data); + ?> +
    + + +
    + + 'Contact','value' => set_value('Contact'),'id'=>'Contact' ,'class' => 'form-control num' ,'required' => 'true'); + echo form_input($data); + ?> + +
    + +
    + + 'requirement','value' => set_value('requirement'),'id'=>'requirement' ,'class' => 'form-control num' ,'required' => 'true'); + echo form_input($data); + ?> +
    + + + +
    + +
    + 'Select','1'=>'YES','2'=>'NO'); + echo form_dropdown('Feasible', $optionsnew,set_value('Feasible'),'id="Feasible"' ,'required="true"' ,'class="form-control select2'); + + ?> +
    +
    + + +
    + +
    + +
    + + 'Corder','value' => set_value('Corder'),'id'=>'Corder', 'class' => 'form-control num' ,'required' => 'true','style'=>'text-align:left;'); + echo form_input($data); + ?> +
    + + + +
    + +
    + + 'ReqQty','value' => set_value('ReqQty'),'id'=>'ReqQty' ,'class' => 'form-control num' ,'required' => 'true'); + echo form_input($data); + ?> +
    +
    + + + +
    + +
    + + 'SupQty','value' => set_value('SupQty'),'id'=>'SupQty' ,'class' => 'form-control' ,'style'=>'text-align:left;'); + echo form_input($data); + ?> +
    +
    + + +
    + +
    + + + +
    + 'Remark','value' => set_value('Remark'),'id'=>'Remark', 'class' => 'form-control' ,'rows' => '10', 'cols' => '100','maxlength' => '500'); + echo Form_textarea($data); + ?> +
    +
    +
    + +
    +
    +   Save +
    +
    + + +
    +
    +
    +
    +
    +
    +
    \ No newline at end of file