complaint screen
This commit is contained in:
parent
0b6210d732
commit
2f9fc833ab
@ -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 */
|
||||
|
||||
@ -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 "<script>alert('Saved successfully!');</script>";
|
||||
// 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";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
911
application/views/action_report.php
Normal file
911
application/views/action_report.php
Normal file
@ -0,0 +1,911 @@
|
||||
<?php
|
||||
//echo $CId;
|
||||
?>
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
[contenteditable=true]:empty:before{
|
||||
content: attr(placeholder);
|
||||
display: block; /* For Firefox */
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
|
||||
var MaxDate = '<?php echo $MaxPoDate;?>';
|
||||
var d = new Date(MaxDate);
|
||||
var t='<?php echo $CurrentDate;?>';
|
||||
var m=new Date(t);
|
||||
|
||||
$("#Date").datepicker({
|
||||
minDate : d,
|
||||
//maxDate : 'now',
|
||||
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="font-size: 12px;">
|
||||
<div id="content"></div>
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<center><h3 class="box-title">Siddharth Industries - ACTION REPORT</h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
<div id="content"></div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<?php
|
||||
$attributes = array('class' => 'form-label-left action_report ','name' => 'action_report','id' => 'action_report');
|
||||
|
||||
echo form_open($this->config->base_url().'/purchaseorder/Action_Report/',$attributes);
|
||||
?>
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
|
||||
<label>DEPT./FN.</label>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
// if(!empty($Suplist))
|
||||
// {
|
||||
// foreach ($Suplist as $SID):
|
||||
|
||||
|
||||
// $options2[$SID->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);
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
<!-- <div class="col-md-3">
|
||||
<label>Date</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Date','value' => set_value('Date',$Date),'id'=>'Date', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="col-md-2">
|
||||
<label>Date</label>
|
||||
<?php
|
||||
$data = array('name' => 'Date','value' => set_value('Date',$CurrentDate),'id'=>'Date', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
|
||||
<label>AUDITOR </label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
// $data = array('name' => '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);
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
|
||||
<label>AUDITEE </label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
// $data = array('name' => '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);
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
|
||||
<label>IQA REF. </label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
// $data = array('name' => '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);
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Non Conformance Details, Objective Evidence</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ObjectiveEvidence','value' => set_value('ObjectiveEvidence',$ObjectiveEvidence),'id'=>'ObjectiveEvidence', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3" style="display: none;">
|
||||
<label>Attributed</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ObjectiveEvidence1','value' => set_value('ObjectiveEvidence1',$ObjectiveEvidence),'id'=>'ObjectiveEvidence1', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--row end-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="container-fluid">
|
||||
<div><legend>Disposition Action Plan</legend></div>
|
||||
<table class="table table-bordered" style="border:1px solid #333">
|
||||
<div align="right" style="padding-right:10px">
|
||||
<div align="right">
|
||||
|
||||
|
||||
<a type="button" class="btn btn-primary btn-md" data-toggle="modal" data-target="#myModal">Add Line Item</a>
|
||||
<!-- Add line Item -->
|
||||
<div class="modal fade" id="myModal" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center><h4>Add Line Item </h4></center>
|
||||
</div>
|
||||
<div align="left">
|
||||
|
||||
|
||||
|
||||
<div class="col-md-12">
|
||||
<label>Action</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Action','value' => set_value('Action'),'id'=>'Action', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<label>Resp</label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'Resp','value' => set_value('Resp'),'id'=>'Resp', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<label>Target</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Target','value' => set_value('Target'),'id'=>'Target', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-primary font addClick" ID="addClick" > <span class="bold">Add</span></a>
|
||||
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Edit Line Item -->
|
||||
|
||||
<div class="modal fade" id="EditItem" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center><h4>Edit Line Item </h4></center>
|
||||
</div>
|
||||
<div align="left">
|
||||
|
||||
<div class="col-md-12">
|
||||
<label>Action</label>
|
||||
<div >
|
||||
<?php
|
||||
|
||||
$data = array('name' => 'EditAction','value' => set_value('EditAction'),'id'=>'EditAction', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
<label>Resp</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditResp','value' => set_value('EditResp'),'id'=>'EditResp', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<label>Target</label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'EditTarget','value' => set_value('EditTarget'),'id'=>'EditTarget', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-primary font EditItem" ID="EditItem" > <span class="bold">Edit</span></a>
|
||||
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="row" style="padding: 0px 15px 0px 10px;">
|
||||
<table id="mytable" class="table table-bordered table-hover editableTable" style="background-color:#fff;font-size:12px;">
|
||||
<thead style="background-color: #CFCFCF;">
|
||||
<th>S.No</th>
|
||||
<th>Action</th>
|
||||
<th>Resp</th>
|
||||
<th>Target</th>
|
||||
<th>Action</th>
|
||||
</thead>
|
||||
<tbody id="actionappend">
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!--second table-->
|
||||
<div class="container-fluid">
|
||||
<div><legend>Root Cause (s)</legend></div>
|
||||
<table class="table table-bordered" style="border:1px solid #333">
|
||||
<div align="right" style="padding-right:10px">
|
||||
<div align="right">
|
||||
<a type="button" class="btn btn-primary btn-md" data-toggle="modal" data-target="#RootCausemodal">Add Line Item</a><!-- Add line Item -->
|
||||
<div class="modal fade" id="RootCausemodal" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center><h4>Add Line Item </h4></center>
|
||||
</div>
|
||||
<div align="left">
|
||||
|
||||
|
||||
|
||||
<div class="col-md-12">
|
||||
<label>Root Cause (s)</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'RootCause','value' => set_value('RootCause'),'id'=>'RootCause', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-primary font rootaddClick" ID="rootaddClick" > <span class="bold">Add</span></a>
|
||||
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Edit Line Item -->
|
||||
|
||||
<div class="modal fade" id="EditRootCausemodal" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center><h4>Edit Line Item </h4></center>
|
||||
</div>
|
||||
<div align="left">
|
||||
|
||||
<div class="col-md-12">
|
||||
<label>Root Cause (s)</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'editRootCause','value' => set_value('editRootCause'),'id'=>'editRootCause', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-primary font rootEditItem" ID="rootEditItem" > <span class="bold">Edit</span></a>
|
||||
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="row" style="padding: 0px 15px 0px 10px;">
|
||||
<table id="rootmytable" class="table table-bordered table-hover editableTable" style="background-color:#fff;font-size:12px;">
|
||||
<thead style="background-color: #CFCFCF;">
|
||||
<th>S.No</th>
|
||||
<th>RootCause</th>
|
||||
<th>Action</th>
|
||||
|
||||
|
||||
</thead>
|
||||
<tbody id="roottbody">
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!--third table-->
|
||||
<div class="container-fluid">
|
||||
<div><legend>Counter Measure Action Plan</legend></div>
|
||||
<table class="table table-bordered" style="border:1px solid #333">
|
||||
<div align="right" style="padding-right:10px">
|
||||
<div align="right">
|
||||
<a type="button" class="btn btn-primary btn-md" data-toggle="modal" data-target="#Counter">Add Line Item</a>
|
||||
<!-- Add line Item -->
|
||||
<div class="modal fade" id="Counter" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center><h4>Add Line Item </h4></center>
|
||||
</div>
|
||||
<div align="left">
|
||||
|
||||
|
||||
|
||||
<div class="col-md-12">
|
||||
<label>Action</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CounterAction','value' => set_value('CounterAction'),'id'=>'CounterAction', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<label>Resp</label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'CounterResp','value' => set_value('CounterResp'),'id'=>'CounterResp', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<label>Target</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CounterTarget','value' => set_value('CounterTarget'),'id'=>'CounterTarget', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-primary font CounteraddClick" ID="CounteraddClick" > <span class="bold">Add</span></a>
|
||||
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Edit Line Item -->
|
||||
|
||||
<div class="modal fade" id="EditCounter" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center><h4>Edit Line Item </h4></center>
|
||||
</div>
|
||||
<div align="left">
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>Action</label>
|
||||
<div >
|
||||
<?php
|
||||
|
||||
$data = array('name' => 'EditCounterAction','value' => set_value('EditCounterAction'),'id'=>'EditCounterAction', 'class' => 'form-control' );
|
||||
echo form_input($data);
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>Resp</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'EditCounterResp','value' => set_value('EditCounterResp'),'id'=>'EditCounterResp', 'class' => 'form-control' );
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>Target</label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'EditCounterTarget','value' => set_value('EditCounterTarget'),'id'=>'EditCounterTarget', 'class' => 'form-control' );
|
||||
echo form_input($data);
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-primary font CounterEditItem" ID="CounterEditItem" > <span class="bold">Edit</span></a>
|
||||
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="row" style="padding: 0px 15px 0px 10px;">
|
||||
<table id="mycountertable" class="table table-bordered table-hover editableTable" style="background-color:#fff;font-size:12px;">
|
||||
<thead style="background-color: #CFCFCF;">
|
||||
<th>S.No</th>
|
||||
<th>Action</th>
|
||||
<th>Resp</th>
|
||||
<th>Target</th>
|
||||
</thead>
|
||||
<tbody id='countertable'>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<legend>Effectiveness of Corrective Action Taken</legend>
|
||||
<div class="col-md-12">
|
||||
<label>Review Details/ Follow up Audit Details </label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ReviewDetails','value' => set_value('ReviewDetails'),'id'=>'ReviewDetails', 'class' => 'form-control' ,'rows' => '3', 'cols' => '40' );
|
||||
echo form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
</div><!--end new fields 1 sep-->
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<lebel><b>NCR Closed</b></lebel>
|
||||
<select id="ncrstatus">
|
||||
<option value="Yes">Yes</option>
|
||||
<option value="No">No</option>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="col-md-12">
|
||||
<label>MANAGEMENT REPRESENTATIVE COMMENTS</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Comments','value' => set_value('Comments'),'id'=>'Comments', 'class' => 'form-control' ,'rows' => '3', 'cols' => '40' );
|
||||
echo form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
</div><!--end new fields 1 sep-->
|
||||
|
||||
<input type="hidden" name="ActionRow" id="ActionRow">
|
||||
<input type="hidden" name="RootRow" id="RootRow">
|
||||
<input type="hidden" name="CounterRow" id="CounterRow">
|
||||
<input type="hidden" name="CId" id="CId" value="<?php echo $CId?>">
|
||||
|
||||
|
||||
|
||||
<div class="col-md-2 col-md-offset-11">
|
||||
<a class="btn btn-primary Save" ID="Save" onclick="Save()" > <span class="bold">Save</span></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div><!--end box-->
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<script type="text/html" id="actionplan">
|
||||
<tr id="<%=index%>">
|
||||
<td align="left"><%=index%></td>
|
||||
<td align="left" id="action<%=index%>"><%=Action%></td>
|
||||
<td align="left" id="resp<%=index%>"><%=Resp%></td>
|
||||
<td align="left" id="target<%=index%>"><%=Target%></td>
|
||||
|
||||
|
||||
<td>
|
||||
<a data-target='#EditItem' data-id="<%=index%>" data-userid="<%=index%>" data-toggle="modal" href="#editimportpomodel"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit details"></i> </a></span></a>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/html" id="rootcause">
|
||||
<tr id="<%=rootindex%>">
|
||||
<td align="left"><%=rootindex%></td>
|
||||
<td align="left" id="rootcause<%=rootindex%>"><%=RootCause%></td>
|
||||
|
||||
<td>
|
||||
<a data-target='#EditRootCausemodal' data-id="<%=rootindex%>" data-userid="<%=rootindex%>" data-toggle="modal" href="#EditRootCausemodal"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the details"></i> </a> </span></a>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
<script type="text/html" id="counter">
|
||||
<tr id="<%=counterindex%>">
|
||||
<td align="left"><%=counterindex%></td>
|
||||
<td align="left" id="counteraction1<%=counterindex%>"><%=Action%></td>
|
||||
<td align="left" id="counterresp1<%=counterindex%>"><%=Resp%></td>
|
||||
<td align="left" id="countertarget1<%=counterindex%>"><%=Target%></td>
|
||||
|
||||
|
||||
<td>
|
||||
<a data-target='#EditCounter' data-id="<%=counterindex%>" data-userid="<%=counterindex%>" data-toggle="modal" href="#editimportpomodel"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit details"></i> </a></span></a>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var index=1;
|
||||
var rootindex=1;
|
||||
var counterindex=1;
|
||||
var userid = '';
|
||||
var rootuserid = '';
|
||||
var counteruserid = '';
|
||||
|
||||
|
||||
$('.addClick').click(function()
|
||||
{
|
||||
|
||||
var action= $('#Action').val();
|
||||
var resp = $('#Resp').val();
|
||||
var target= $('#Target').val();
|
||||
var temp = index
|
||||
index = parseInt(index)+1;
|
||||
var template = jQuery("#actionplan").html();
|
||||
|
||||
// alert(template)
|
||||
$('#actionappend').append(_.template(template,{index:temp,Action:action,Resp:resp,Target:target}));
|
||||
|
||||
var theForm = $(".action_report");
|
||||
|
||||
addHidden(theForm,"action"+temp,action);
|
||||
addHidden(theForm,"resp"+temp,resp);
|
||||
addHidden(theForm,"target"+temp,target);
|
||||
|
||||
$('#Action').val('');
|
||||
$('#Resp').val('');
|
||||
$('#Target').val('');
|
||||
$('#ActionRow').val(temp)
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
function addHidden(theForm, key, value)
|
||||
{
|
||||
// Create a hidden input element, and append it to the form:
|
||||
var input = document.createElement('input');
|
||||
input.type = 'hidden';
|
||||
input.name = key;'name-as-seen-at-the-server';
|
||||
input.id = key;'name-as-seen-at-the-server';
|
||||
input.value = value;
|
||||
theForm.append(input);
|
||||
}
|
||||
|
||||
|
||||
|
||||
function Save()
|
||||
{
|
||||
|
||||
var txtactionrow = $('#ActionRow').val();
|
||||
var txtrootrow = $('#RootRow').val();
|
||||
var txtcounterrow = $('#CounterRow').val();
|
||||
var ncrstatus = $('#ncrstatus').val();
|
||||
var date=$('#Date').val();
|
||||
var newdate = date.split("-").reverse().join("-");
|
||||
var CId = $('#CId').val();
|
||||
|
||||
$('#content').loader('show');
|
||||
$.ajax({
|
||||
|
||||
data:$('.action_report').serialize()+"&txtactionrow="+txtactionrow+"&txtrootrow="+txtrootrow+"&txtcounterrow="+txtcounterrow+"&ncrstatus="+ncrstatus+"&newdate="+newdate+"&CId="+CId,
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>purchaseorder/Action_Report",
|
||||
success:function(data) {
|
||||
if(data)
|
||||
{
|
||||
|
||||
alert(data);
|
||||
$('#content').loader('hide');
|
||||
window.location = "ncrlist";
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("Error");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
$("#EditItem").on("shown.bs.modal", function(e)
|
||||
{
|
||||
userid = $(e.relatedTarget).data('userid');
|
||||
var tr= document.getElementById(userid);
|
||||
|
||||
$('#EditAction').val($('#action'+userid).val());
|
||||
$('#EditResp').val($('#resp'+userid).val());
|
||||
$('#EditTarget').val($('#target'+userid).val());
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('.EditItem').click(function()
|
||||
{
|
||||
var editaction = $("#EditAction").val();
|
||||
var editresp = $('#EditResp').val();
|
||||
var edittarget= $('#EditTarget').val();
|
||||
|
||||
var tr= document.getElementById(userid);
|
||||
var cellval = tr.cells;
|
||||
|
||||
cellval[1].innerHTML = editaction;
|
||||
cellval[2].innerHTML = editresp;
|
||||
cellval[3].innerHTML = edittarget;
|
||||
|
||||
$('#action'+userid).val(editaction);
|
||||
$('#resp'+userid).val(editresp);
|
||||
$('#target'+userid).val(edittarget);
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
$('.rootaddClick').click(function()
|
||||
{
|
||||
|
||||
var rootcause= $('#RootCause').val();
|
||||
var temp = rootindex
|
||||
rootindex = parseInt(rootindex)+1;
|
||||
var template = jQuery("#rootcause").html();
|
||||
//alert(template)
|
||||
$('#roottbody').append(_.template(template,{rootindex:temp,RootCause:rootcause}));
|
||||
var theForm = $(".action_report");
|
||||
addHidden(theForm,"RootCause"+temp,rootcause);
|
||||
$('#RootCause').val('');
|
||||
$('#RootRow').val(temp)
|
||||
|
||||
});
|
||||
|
||||
|
||||
$("#EditRootCausemodal").on("shown.bs.modal", function(e)
|
||||
{
|
||||
|
||||
//alert(JSON.stringify(e))
|
||||
rootuserid = $(e.relatedTarget).data('userid');
|
||||
var tr= document.getElementById(rootuserid);
|
||||
$('#editRootCause').val($('#RootCause'+rootuserid).val());
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
$('.rootEditItem').click(function()
|
||||
{
|
||||
var editroot = $("#editRootCause").val();
|
||||
var tr= document.getElementById(rootuserid);
|
||||
var cellval = tr.cells;
|
||||
//cellval[1].innerHTML = editroot;
|
||||
|
||||
document.getElementById('rootcause'+rootuserid).innerHTML = editroot;
|
||||
|
||||
$('#RootCause'+rootuserid).val(editroot);
|
||||
});
|
||||
|
||||
|
||||
$('.CounteraddClick').click(function()
|
||||
{
|
||||
|
||||
var action= $('#CounterAction').val();
|
||||
var resp = $('#CounterResp').val();
|
||||
var target= $('#CounterTarget').val();
|
||||
var temp = counterindex;
|
||||
counterindex = parseInt(counterindex)+1;
|
||||
var template = jQuery("#counter").html();
|
||||
|
||||
// alert(template)
|
||||
$('#countertable').append(_.template(template,{counterindex:temp,Action:action,Resp:resp,Target:target}));
|
||||
|
||||
var theForm = $(".action_report");
|
||||
|
||||
addHidden(theForm,"counteraction"+temp,action);
|
||||
addHidden(theForm,"counterresp"+temp,resp);
|
||||
addHidden(theForm,"countertarget"+temp,target);
|
||||
|
||||
$('#CounterAction').val('');
|
||||
$('#CounterResp').val('');
|
||||
$('#CounterTarget').val('');
|
||||
$('#CounterRow').val(temp)
|
||||
|
||||
});
|
||||
|
||||
$("#EditCounter").on("shown.bs.modal", function(e)
|
||||
{
|
||||
|
||||
//alert()
|
||||
cuserid = $(e.relatedTarget).data('userid');
|
||||
|
||||
var tr= document.getElementById(cuserid);
|
||||
|
||||
$('#EditCounterAction').val($('#counteraction'+cuserid).val());
|
||||
$('#EditCounterResp').val($('#counterresp'+cuserid).val());
|
||||
$('#EditCounterTarget').val($('#countertarget'+cuserid).val());
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
$('.CounterEditItem').click(function()
|
||||
{
|
||||
|
||||
var editaction = $("#EditCounterAction").val();
|
||||
var editresp = $('#EditCounterResp').val();
|
||||
var edittarget= $('#EditCounterTarget').val();
|
||||
|
||||
var tr= document.getElementById(cuserid);
|
||||
var cellval = tr.cells;
|
||||
//alert(cuserid)
|
||||
|
||||
// cellval[1].innerHTML = editaction;
|
||||
// cellval[2].innerHTML = editresp;
|
||||
// cellval[3].innerHTML = edittarget;
|
||||
|
||||
|
||||
document.getElementById('counteraction1'+cuserid).innerHTML = editaction;
|
||||
document.getElementById('counterresp1'+cuserid).innerHTML = editresp;
|
||||
document.getElementById('countertarget1'+cuserid).innerHTML = edittarget;
|
||||
|
||||
$('#counteraction'+cuserid).val(editaction);
|
||||
$('#counterresp'+cuserid).val(editresp);
|
||||
$('#countertarget'+cuserid).val(edittarget);
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
// function DeleteActionRow(RowId)
|
||||
// {
|
||||
// alert(RowId)
|
||||
// var id=[];
|
||||
// var tr = document.getElementById(RowId);
|
||||
|
||||
// tr.parentNode.removeChild(tr);
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
309
application/views/addcomplaint.php
Normal file
309
application/views/addcomplaint.php
Normal file
@ -0,0 +1,309 @@
|
||||
|
||||
<?php
|
||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||
$CurrentDate = $dt->format('d-m-Y');
|
||||
$count='';
|
||||
if(!empty($enquirycount))
|
||||
{
|
||||
foreach($enquirycount as $enc)
|
||||
{
|
||||
$count= $enc->Countnumber;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$actcount=$count+1;
|
||||
//echo $actcount;
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
//Initialize Select2 Elements
|
||||
$("#Customer").select2();
|
||||
|
||||
|
||||
var MaxDate = '<?php echo $MaxPoDate;?>';
|
||||
var d = new Date(MaxDate);
|
||||
var t='<?php echo $CurrentDate;?>';
|
||||
var m=new Date(t);
|
||||
|
||||
$("#Date").datepicker({
|
||||
minDate : d,
|
||||
//maxDate : 'now',
|
||||
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
.num{
|
||||
text-align:right;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper" style="min-height:537">
|
||||
<!-- Content Header (Page header) -->
|
||||
|
||||
|
||||
<section class="content">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<center><h3 class="box-title">Siddharth Industries - Complaint Register</h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div id="content"></div>
|
||||
|
||||
<?php
|
||||
$attributes = array('class' => 'form-label-left advancerequest','name' => 'enquiry','id' => 'enquiry');
|
||||
|
||||
// echo form_open($this->config->base_url().'purchaseorder/addadvancerequest',$attributes);
|
||||
?>
|
||||
<div class="row" style="padding:0% 2%">
|
||||
<div class="col-md-12" >
|
||||
<div class="col-md-3">
|
||||
<label>Customer Name</label>
|
||||
|
||||
|
||||
<?php
|
||||
$opt = array("0"=>'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');
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>Date</label>
|
||||
<?php
|
||||
$data = array('name' => 'Date','value' => set_value('Date',$CurrentDate),'id'=>'Date', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>Service Details</label>
|
||||
<?php
|
||||
$data = array('name' => 'Service_Details','value' => set_value('Service_Details'),'id'=>'Service_Details', 'class' => 'form-control' ,'rows' => '5', 'cols' => '100','maxlength' => '250');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>Details of Complaint(Reason)</label>
|
||||
<?php
|
||||
$data = array('name' => 'Reasons','value' => set_value('Reasons'),'id'=>'Reasons', 'class' => 'form-control' ,'rows' => '5', 'cols' => '100','maxlength' => '250');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-3" style="display: none">
|
||||
<label>Feasible</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$optionsnew=array('0'=>'Select','1'=>'YES','2'=>'NO');
|
||||
echo form_dropdown('Feasible', $optionsnew,set_value('Feasible'),'id="Feasible"' ,'required="true"' ,'class="form-control select2');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="selectmonth">Mode Of Communication</label>
|
||||
<?php
|
||||
$data = array('name' => 'mode','value' => set_value('mode'),'id'=>'mode', 'class' => 'form-control num' ,'required' => 'true','style'=>'text-align:left;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Action Taken</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'Action','value' => set_value('Action'),'id'=>'Action' ,'class' => 'form-control num' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- <div class="col-md-3">
|
||||
<label>Supplied Quantity</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'SupQty','value' => set_value('SupQty'),'id'=>'SupQty' ,'class' => 'form-control' ,'style'=>'text-align:left;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Remarks</label>
|
||||
<div class="form-group">
|
||||
|
||||
<!-- <?php
|
||||
$data = array('name' => 'Remarks','value' => set_value('Remarks'),'id'=>'Remarks' ,'class' => 'form-control' ,'style'=>'text-align:left;');
|
||||
echo form_input($data);
|
||||
?> -->
|
||||
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Remark','value' => set_value('Remark'),'id'=>'Remark', 'class' => 'form-control' ,'rows' => '5', 'cols' => '100','maxlength' => '250');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-2 col-md-offset-11">
|
||||
<a class="btn btn-primary Save" ID="Save" onclick="Save()" > <span class="bold">Save</span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var today = new Date();
|
||||
var dd = today.getDate();
|
||||
var mm = today.getMonth()+1; //January is 0!
|
||||
var yyyy = today.getFullYear();
|
||||
|
||||
if(dd<10) {
|
||||
dd = '0'+dd
|
||||
}
|
||||
|
||||
if(mm<10) {
|
||||
mm = '0'+mm
|
||||
}
|
||||
|
||||
today = yyyy+mm+dd;
|
||||
//alert(today);
|
||||
var count=<?php echo json_encode($actcount, JSON_PRETTY_PRINT) ?>;
|
||||
//alert(count)
|
||||
|
||||
var customerorderno=today+'/'+count;
|
||||
//alert(customerorderno)
|
||||
|
||||
$('#Corder').val(customerorderno);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function Save()
|
||||
{
|
||||
|
||||
if(validate())
|
||||
{
|
||||
var client_id=$('#Customer').val();
|
||||
var date= $('#Date').val();
|
||||
// $createddt = $date->format('Y-m-d');
|
||||
|
||||
var newdate = date.split("-").reverse().join("-");
|
||||
//alert(newdate)
|
||||
var Service_Details = $('#Service_Details').val();
|
||||
var Reasons= $('#Reasons').val();
|
||||
//var feasible = $("#Feasible :selected").text();
|
||||
var mode = $('#mode').val();
|
||||
var Action = $('#Action').val();
|
||||
var Remark = $('#Remark').val();
|
||||
//var remarks= $('#Remark').val();
|
||||
$('#content').loader('show');
|
||||
$.ajax(
|
||||
{
|
||||
|
||||
data:{client_id:client_id,date:newdate,Service_Details:Service_Details,Reasons:Reasons,mode:mode,Action:Action,Remark:Remark},
|
||||
//dataType:'json',
|
||||
type:"POST",
|
||||
url:"<?php echo base_url();?>purchaseorder/SaveComplaint",
|
||||
success:function(data)
|
||||
{
|
||||
$('#content').loader('hide');
|
||||
|
||||
|
||||
|
||||
if(data)
|
||||
{
|
||||
alert(data);
|
||||
window.location = "Nonconfirmativelist";
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
alert("Error");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function validate()
|
||||
{
|
||||
|
||||
if($("#Customer").val()=="0")
|
||||
{
|
||||
alert('Please Select Customer');
|
||||
$("#Customer").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>>
|
||||
1106
application/views/editaction_report.php
Normal file
1106
application/views/editaction_report.php
Normal file
File diff suppressed because it is too large
Load Diff
336
application/views/editcomplaint.php
Normal file
336
application/views/editcomplaint.php
Normal file
@ -0,0 +1,336 @@
|
||||
|
||||
<?php
|
||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||
$CurrentDate = $dt->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;
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
//Initialize Select2 Elements
|
||||
$("#Customer").select2();
|
||||
|
||||
|
||||
var MaxDate = '<?php echo $MaxPoDate;?>';
|
||||
var d = new Date(MaxDate);
|
||||
var t='<?php echo $CurrentDate;?>';
|
||||
var m=new Date(t);
|
||||
|
||||
$("#Date").datepicker({
|
||||
minDate : d,
|
||||
//maxDate : 'now',
|
||||
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
.num{
|
||||
text-align:right;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper" style="min-height:537">
|
||||
<!-- Content Header (Page header) -->
|
||||
|
||||
|
||||
<section class="content">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<center><h3 class="box-title">Siddharth Industries - Edit Complaint</h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div id="content"></div>
|
||||
|
||||
<?php
|
||||
$attributes = array('class' => 'form-label-left advancerequest','name' => 'enquiry','id' => 'enquiry');
|
||||
|
||||
// echo form_open($this->config->base_url().'purchaseorder/addadvancerequest',$attributes);
|
||||
?>
|
||||
<div class="row" style="padding:0% 2%">
|
||||
<div class="col-md-12" >
|
||||
<div class="col-md-3">
|
||||
<label>Customer Name</label>
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($Customer))
|
||||
{
|
||||
|
||||
foreach ($Customer as $Cu):
|
||||
if($client_id==$Cu['client_id'])
|
||||
{
|
||||
$options1[$Cu['client_id']] = $Cu['client_id'].' '.' - '.' '.$Cu['client_name'];
|
||||
|
||||
}
|
||||
|
||||
endforeach;
|
||||
|
||||
|
||||
foreach ($Customer as $Cu):
|
||||
if($client_id!=$Cu['client_id'])
|
||||
{
|
||||
$options1[$Cu['client_id']] = $Cu['client_id'].' '.' - '.' '.$Cu['client_name'];
|
||||
|
||||
}
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
|
||||
// print_r($opt);
|
||||
|
||||
echo form_dropdown('Customer', $options1,set_value('Customer'),'id="Customer"' ,'required="true"' ,'class="form-control select2');
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>Date</label>
|
||||
<?php
|
||||
$data = array('name' => 'Date','value' => set_value('Date',$dt),'id'=>'Date', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>Service Details</label>
|
||||
<?php
|
||||
$data = array('name' => '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);
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>Details of Complaint(Reason)</label>
|
||||
<?php
|
||||
$data = array('name' => 'Reasons','value' => set_value('Reasons',$Reason),'id'=>'Reasons', 'class' => 'form-control' ,'rows' => '5', 'cols' => '100','maxlength' => '250');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-3" style="display: none">
|
||||
<label>Feasible</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$optionsnew=array('0'=>'Select','1'=>'YES','2'=>'NO');
|
||||
echo form_dropdown('Feasible', $optionsnew,set_value('Feasible'),'id="Feasible"' ,'required="true"' ,'class="form-control select2');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="selectmonth">Mode Of Communication</label>
|
||||
<?php
|
||||
$data = array('name' => 'mode','value' => set_value('mode',$mode_of_communication),'id'=>'mode', 'class' => 'form-control num' ,'required' => 'true','style'=>'text-align:left;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Action Taken</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'Action','value' => set_value('Action',$Action_taken),'id'=>'Action' ,'class' => 'form-control num' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- <div class="col-md-3">
|
||||
<label>Supplied Quantity</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'SupQty','value' => set_value('SupQty'),'id'=>'SupQty' ,'class' => 'form-control' ,'style'=>'text-align:left;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Remarks</label>
|
||||
<div class="form-group">
|
||||
|
||||
<!-- <?php
|
||||
$data = array('name' => 'Remarks','value' => set_value('Remarks'),'id'=>'Remarks' ,'class' => 'form-control' ,'style'=>'text-align:left;');
|
||||
echo form_input($data);
|
||||
?> -->
|
||||
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Remark','value' => set_value('Remark',$Remark),'id'=>'Remark', 'class' => 'form-control' ,'rows' => '5', 'cols' => '100','maxlength' => '250');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="CId" id="CId" value="<?php echo $CId?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-2 col-md-offset-11">
|
||||
<a class="btn btn-primary Save" ID="Save" onclick="Save()" > <span class="bold">Save</span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var today = new Date();
|
||||
var dd = today.getDate();
|
||||
var mm = today.getMonth()+1; //January is 0!
|
||||
var yyyy = today.getFullYear();
|
||||
|
||||
if(dd<10) {
|
||||
dd = '0'+dd
|
||||
}
|
||||
|
||||
if(mm<10) {
|
||||
mm = '0'+mm
|
||||
}
|
||||
|
||||
today = yyyy+mm+dd;
|
||||
//alert(today);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function Save()
|
||||
{
|
||||
|
||||
if(validate())
|
||||
{
|
||||
var client_id=$('#Customer').val();
|
||||
var date= $('#Date').val();
|
||||
// $createddt = $date->format('Y-m-d');
|
||||
|
||||
var newdate = date.split("-").reverse().join("-");
|
||||
//alert(newdate)
|
||||
var Service_Details = $('#Service_Details').val();
|
||||
var Reasons= $('#Reasons').val();
|
||||
//var feasible = $("#Feasible :selected").text();
|
||||
var mode = $('#mode').val();
|
||||
var Action = $('#Action').val();
|
||||
var Remark = $('#Remark').val();
|
||||
var CId = $('#CId').val();
|
||||
//var remarks= $('#Remark').val();
|
||||
$('#content').loader('show');
|
||||
$.ajax(
|
||||
{
|
||||
|
||||
data:{client_id:client_id,date:newdate,Service_Details:Service_Details,Reasons:Reasons,mode:mode,Action:Action,Remark:Remark,CId:CId},
|
||||
//dataType:'json',
|
||||
type:"POST",
|
||||
url:"<?php echo base_url();?>purchaseorder/UpdateComplaint",
|
||||
success:function(data)
|
||||
{
|
||||
$('#content').loader('hide');
|
||||
|
||||
|
||||
|
||||
if(data)
|
||||
{
|
||||
alert(data);
|
||||
window.location = "Nonconfirmativelist";
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
alert("Error");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function validate()
|
||||
{
|
||||
|
||||
if($("#Customer").val()=="0")
|
||||
{
|
||||
alert('Please Select Customer');
|
||||
$("#Customer").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>>
|
||||
@ -178,7 +178,7 @@ $(function() {
|
||||
|
||||
else{echo "non empty";}?> -->
|
||||
|
||||
<li>
|
||||
<!-- <li>
|
||||
<span id="menu" data-toggle="dropdown" ><i class="fa fa-thumb-tack"></i>Enquiry and Order<span class="caret"></span></span>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
|
||||
<li class="treeview">
|
||||
@ -195,6 +195,38 @@ $(function() {
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li> -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li>
|
||||
<span id="menu" data-toggle="dropdown" ><i class="fa fa-thumb-tack"></i>Complaint<span class="caret"></span></span>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
|
||||
<!-- <li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>purchaseorder/Nonconfirmative">
|
||||
<i class="fa fa-arrow-circle-up"></i>
|
||||
<span>NonConfirative </span>
|
||||
</a>
|
||||
</li> -->
|
||||
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>purchaseorder/AddComplaint">
|
||||
<i class="fa fa-arrow-circle-up"></i>
|
||||
<span>Add Complaint</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>purchaseorder/Nonconfirmativelist">
|
||||
<i class="fa fa-arrow-circle-up"></i>
|
||||
<span>Complaint List</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@ -626,6 +658,34 @@ $(function() {
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<?php if($DEPCode == SALES){?>
|
||||
|
||||
|
||||
<li>
|
||||
<span id="menu" data-toggle="dropdown" ><i class="fa fa-thumb-tack"></i>Enquiry and Order<span class="caret"></span></span>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>purchaseorder/enquiry">
|
||||
<i class="fa fa-arrow-circle-up"></i>
|
||||
<span>Add Order Enquiry </span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>purchaseorder/enquirylist">
|
||||
<i class="fa fa-arrow-circle-up"></i>
|
||||
<span>View Order Enquiry List</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php }?>
|
||||
<?php }
|
||||
|
||||
@ -731,16 +791,45 @@ $(function() {
|
||||
|
||||
<?php if($check2 == 1){break;} }?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<?php }?>
|
||||
<?php if ($check == 1){break;}}?>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
|
||||
|
||||
<?php if(!empty($DepAccesslist)){?>
|
||||
<?php foreach($DepAccesslist as $dep){
|
||||
$assd=$dep->AssDep;
|
||||
|
||||
if($assd == SALES || $DEPCode == SALES){?>
|
||||
|
||||
|
||||
<li>
|
||||
<span id="menu" data-toggle="dropdown" ><i class="fa fa-thumb-tack"></i>Enquiry and Order<span class="caret"></span></span>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>purchaseorder/enquiry">
|
||||
<i class="fa fa-arrow-circle-up"></i>
|
||||
<span>Add Order Enquiry </span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>purchaseorder/enquirylist">
|
||||
<i class="fa fa-arrow-circle-up"></i>
|
||||
<span>View Order Enquiry List</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php } } } ?>
|
||||
|
||||
|
||||
|
||||
|
||||
168
application/views/ncrlist.php
Normal file
168
application/views/ncrlist.php
Normal file
@ -0,0 +1,168 @@
|
||||
|
||||
<style>
|
||||
.pagination {
|
||||
margin:0px !important;
|
||||
}
|
||||
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<center><h3 class="box-title">Siddharth Industries</h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<table id="example1" class="table table-bordered table-hover editableTable" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr style="background-color:#ddf">
|
||||
<th>#</th>
|
||||
<th>Complaint Id</th>
|
||||
<th>Date</th>
|
||||
<th>Customer Name</th>
|
||||
<th>Service Details</th>
|
||||
<th>Details of Complaint/Reasons</th>
|
||||
<th>Mode of Communication</th>
|
||||
<th>Action Taken</th>
|
||||
<th>Remarks</th>
|
||||
<th>Action Card Ref No</th>
|
||||
<th>Actions</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><?php
|
||||
|
||||
if(!empty($ncrarray)){
|
||||
$index = 0;
|
||||
foreach($ncrarray as $nc)
|
||||
{
|
||||
$index =$index+1;
|
||||
//$dt= $nc->Created_Date;
|
||||
$Ddt = new DateTime($nc->Created_Date);
|
||||
$dt = $Ddt->format('d-m-Y');
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<tr id="<?php echo $index ; ?>">
|
||||
<td align="left"><?php echo $index ; ?></td>
|
||||
<!-- <td contenteditable="true"><?php echo $nc->CId?></td> -->
|
||||
<td><a target="_blank" href="<?php echo base_url() ?>purchaseorder/EditComplaint?CId=<?php echo $nc->CId ?>" data-id="<%=index%>" data-userid="<?php echo $nc->CId ?>" ><u><?php echo $nc->CId ?></u> </a>
|
||||
</td>
|
||||
<td contenteditable="true"><?php echo $dt?></td>
|
||||
<td contenteditable="true"><?php echo $nc->client_name?></td>
|
||||
<td contenteditable="true"><?php echo $nc->Service_Details;?></td>
|
||||
<td contenteditable="true"><?php echo $nc->Reason?></td>
|
||||
<td contenteditable="true"><?php echo $nc->mode_of_communication?></td>
|
||||
<td contenteditable="true"><?php echo $nc->Action_taken;?></td>
|
||||
|
||||
<td contenteditable="true"><?php echo $nc->Remark;?></td>
|
||||
<?php if($nc->Ncr_Id == ""){
|
||||
?>
|
||||
<td contenteditable="true"></td>
|
||||
<?php }
|
||||
else{?>
|
||||
|
||||
<td><a target="_blank" href="<?php echo base_url() ?>purchaseorder/EditNonconfirmative?Id=<?php echo $nc->Ncr_Id ?>" data-id="<%=index%>" data-userid="<?php echo $nc->Ncr_Id ?>" data-toggle="tooltip" title="Click here to View details" ><u><?php echo $nc->Ncr_Id ?></u> </a>
|
||||
</td>
|
||||
<?php }?>
|
||||
<!-- <td data-name="sel" id="Action<?php echo $index ?>" onchange="saveToDatabase(this,'<?php echo $index ; ?>')">
|
||||
<a class="btn btn-default" ID="Save" onclick="saveToDatabase(this,'<?php echo $index ; ?>')" > <span class="bold">Save</span></a>
|
||||
</td> -->
|
||||
|
||||
<?php if($nc->Ncr_Id ==""){?>
|
||||
|
||||
<td> <a data-toggle="tooltip" href="<?php echo base_url().'Addaction?CId='.$nc->CId ;?>"><i class="fa fa-pencil" data-toggle="tooltip" title="<?php echo $nc->CId; ?> - Click here to Enter details"></i></a></td>
|
||||
<?php }
|
||||
else{?>
|
||||
|
||||
<td></td>
|
||||
<?php }?>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<?php } }?>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<script>
|
||||
$(function () {
|
||||
|
||||
$('#example1').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": true,
|
||||
"searching": true,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": false
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function saveToDatabase(editableObj,Index)
|
||||
{
|
||||
//alert(Index)
|
||||
var tr= document.getElementById(Index);
|
||||
var cellval = tr.cells;
|
||||
var date= cellval[1].innerHTML;
|
||||
var cname=cellval[2].innerHTML;
|
||||
var servicedetails=cellval[3].innerHTML;
|
||||
var detailsofcoplaint=cellval[4].innerHTML;
|
||||
var modeofcommunication=cellval[5].innerHTML;
|
||||
var actiontaken=cellval[6].innerHTML;
|
||||
var actioncardno=cellval[7].innerHTML;
|
||||
var remark=cellval[8].innerHTML;
|
||||
$.ajax(
|
||||
{
|
||||
|
||||
data:{date:date,cname:cname,servicedetails:servicedetails,detailsofcoplaint:detailsofcoplaint,modeofcommunication:modeofcommunication,actiontaken:actiontaken,actioncardno,actioncardno,remark:remark},
|
||||
// dataType:'json',
|
||||
type:"POST",
|
||||
url:"<?php echo base_url();?>purchaseorder/Savencrlist",
|
||||
success:function(data)
|
||||
{
|
||||
|
||||
$('#content').loader('hide');
|
||||
|
||||
if(data)
|
||||
{
|
||||
alert(data);
|
||||
//window.location ="enquirylisting";
|
||||
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
alert("Error");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
143
application/views/nonconfirmative.php
Normal file
143
application/views/nonconfirmative.php
Normal file
@ -0,0 +1,143 @@
|
||||
<div class="content-wrapper" style="min-height:537">
|
||||
<!-- Content Header (Page header) -->
|
||||
|
||||
|
||||
<section class="content">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<center><h3 class="box-title">Siddharth Industries - Enquiry Form</h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div id="content"></div>
|
||||
|
||||
<?php
|
||||
$attributes = array('class' => 'form-label-left advancerequest','name' => 'enquiry','id' => 'enquiry');
|
||||
|
||||
// echo form_open($this->config->base_url().'purchaseorder/addadvancerequest',$attributes);
|
||||
?>
|
||||
<div class="row" style="padding:0% 2%">
|
||||
<div class="col-md-12" >
|
||||
<div class="col-md-3">
|
||||
<label>Customer Name</label>
|
||||
<?php
|
||||
$data = array('name' => 'Contact','value' => set_value('Contact'),'id'=>'Contact' ,'class' => 'form-control num' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>Date</label>
|
||||
<?php
|
||||
$data = array('name' => 'Date','value' => set_value('Date',$CurrentDate),'id'=>'Date', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>Contact Person</label>
|
||||
<?php
|
||||
$data = array('name' => 'Contact','value' => set_value('Contact'),'id'=>'Contact' ,'class' => 'form-control num' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>Requirement</label>
|
||||
<?php
|
||||
$data = array('name' => 'requirement','value' => set_value('requirement'),'id'=>'requirement' ,'class' => 'form-control num' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Feasible</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$optionsnew=array('0'=>'Select','1'=>'YES','2'=>'NO');
|
||||
echo form_dropdown('Feasible', $optionsnew,set_value('Feasible'),'id="Feasible"' ,'required="true"' ,'class="form-control select2');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="selectmonth">Customer Order No</label>
|
||||
<?php
|
||||
$data = array('name' => 'Corder','value' => set_value('Corder'),'id'=>'Corder', 'class' => 'form-control num' ,'required' => 'true','style'=>'text-align:left;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Requested Quantity</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'ReqQty','value' => set_value('ReqQty'),'id'=>'ReqQty' ,'class' => 'form-control num' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Supplied Quantity</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'SupQty','value' => set_value('SupQty'),'id'=>'SupQty' ,'class' => 'form-control' ,'style'=>'text-align:left;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Remarks</label>
|
||||
<div class="form-group">
|
||||
|
||||
<!-- <?php
|
||||
$data = array('name' => 'Remarks','value' => set_value('Remarks'),'id'=>'Remarks' ,'class' => 'form-control' ,'style'=>'text-align:left;');
|
||||
echo form_input($data);
|
||||
?> -->
|
||||
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Remark','value' => set_value('Remark'),'id'=>'Remark', 'class' => 'form-control' ,'rows' => '10', 'cols' => '100','maxlength' => '500');
|
||||
echo Form_textarea($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-2 col-md-offset-11">
|
||||
<a class="btn btn-primary Save" ID="Save" onclick="Save()" > <span class="bold">Save</span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user