outward slip and excel option, for igr and mrir list screens
This commit is contained in:
parent
bba435fe34
commit
637fdb0939
@ -447,7 +447,6 @@ class emergencypurchaseorder extends BaseController
|
||||
{
|
||||
$RegNo = $Req[0]['ReqNo'];
|
||||
}
|
||||
// PO Master
|
||||
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>$POStatus,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'PORange'=>$Local_Interstate,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'PaymentTerms'=>$PaymentTerms,'POType'=>$POType,'CapitalRange'=>$Local_Interstate,'PaymentOtherDescription'=>$OtherPayment,'Mode_Of_Shipment'=>$Modeofshipment,'Supplier_Offer_No'=>$supplieroffno,'Supplier_Reference'=>$supplierreference,'Other_Reference'=>$otherreference,'InsuranceNumber'=>$insuranceno,'InsuranceStatus'=>$insurancestatus,'Fincap'=>$fincap,'POSubType'=>$revenuetype,'IsQualityChkReqired'=>$Qualitycheck);
|
||||
|
||||
$POMaster = $this->purchaseorder_model->addPOMaster($POList,$POType,$revenuetype);
|
||||
@ -457,8 +456,6 @@ class emergencypurchaseorder extends BaseController
|
||||
{
|
||||
$PONO = $POMaster[0]['PONO'];
|
||||
}
|
||||
|
||||
// PO Line Items
|
||||
$RegDetailsStatus=REQITEM_POCREATED;
|
||||
$LineItemStatus = REQITEM_NEW;
|
||||
|
||||
@ -509,7 +506,6 @@ class emergencypurchaseorder extends BaseController
|
||||
}
|
||||
if($SkipInsert == "False")
|
||||
{
|
||||
//add requistion details
|
||||
$ReqDetails = array('ReqNo'=>$RegNo, 'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Status'=>$RegDetailsStatus,'UpdatedBy'=>$CreateBy,'UpdatedOn'=>$createddt);
|
||||
|
||||
$ReqDetQuery = $this->requistion_model->addRequistionDetails($ReqDetails);
|
||||
@ -575,7 +571,8 @@ class emergencypurchaseorder extends BaseController
|
||||
if(count($mrirmaster)>0)
|
||||
{
|
||||
foreach ($mrirmaster as $key ) {
|
||||
$MRIRNO=$key->MRIRNo; }
|
||||
$MRIRNO=$key->MRIRNo;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -587,7 +584,6 @@ class emergencypurchaseorder extends BaseController
|
||||
$Remarked = "Special PO Without Quality Check";
|
||||
|
||||
$MRIRStatus=MRIR_APPROVED;
|
||||
|
||||
//this array to store the value in child table..
|
||||
$mrirdetailvalues = array('MRIRNO'=>$MRIRNO,'MaterialCode'=>$MaterialCode,'ActualQuantityReceived'=>$Quantity,'Remarks'=>$Remarked,'MRIRStatus'=>$MRIRStatus);
|
||||
|
||||
@ -665,13 +661,11 @@ class emergencypurchaseorder extends BaseController
|
||||
$myfile = array('FilePath'=>$file,'MaterialCode'=>$emergencyitemcode,'PONO'=>$PONO,'IGRNO'=>$IGRNO);
|
||||
$result= $this->purchaseorder_model->fileupload($myfile);
|
||||
}
|
||||
|
||||
echo "<script>alert('You Have Successfully created the Purchase order! $PONO');</script>";
|
||||
redirect('purchaseorder/PurchaseOrderList','refresh');
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To load the purchaseorder list
|
||||
*/
|
||||
|
||||
@ -55,14 +55,8 @@ class report extends BaseController
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("report_pendingreqst",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -100,13 +94,9 @@ class report extends BaseController
|
||||
|
||||
//$data['rel_po']=$this->dahsboard_Model->report_relpo();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_POreleased",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -151,15 +141,9 @@ class report extends BaseController
|
||||
|
||||
|
||||
//$data['open_po']=$this->dahsboard_Model->report_openpending();
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
|
||||
$this->loadviews("Report_openorder",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -176,13 +160,8 @@ class report extends BaseController
|
||||
$data['Total']=$this->dahsboard_Model->report_total($fa,$aa);
|
||||
}
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_totalorders",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -202,13 +181,7 @@ class report extends BaseController
|
||||
}
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_costcenter",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -223,13 +196,8 @@ class report extends BaseController
|
||||
$data['mms']=$this->dahsboard_Model->report_MMSupplier();
|
||||
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_Material_Master_SupplierWise",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function MM_Item()
|
||||
@ -242,13 +210,9 @@ class report extends BaseController
|
||||
$data['mmi']=$this->dahsboard_Model->report_MMItem();
|
||||
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_Material_Master_ItemWise",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function MM_ReceiptValue()
|
||||
@ -277,13 +241,9 @@ class report extends BaseController
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_Material_Master_ReceiptValue",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -312,13 +272,9 @@ class report extends BaseController
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_purchase",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function link_purchase()
|
||||
@ -364,13 +320,8 @@ class report extends BaseController
|
||||
$data['purchase']=$this->dahsboard_Model->report_purchase_link($cname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d);
|
||||
}
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_purchase",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function year_wise()
|
||||
@ -390,14 +341,9 @@ class report extends BaseController
|
||||
}
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_year_wise",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
public function month_wise()
|
||||
{
|
||||
@ -410,13 +356,8 @@ class report extends BaseController
|
||||
//print_r($month);
|
||||
$data['mont']=$mon;
|
||||
$data['month']=$this->dahsboard_Model->report_month_wise($month);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_month_wise",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function year_wise_total()
|
||||
@ -431,13 +372,8 @@ class report extends BaseController
|
||||
//print_r($month);
|
||||
$data['year']=$month;
|
||||
$data['ytotal']=$this->dahsboard_Model->report_year_wise_total($a,$b);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_year_wise_total",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -463,13 +399,8 @@ class report extends BaseController
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_supplier",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function consolidate()
|
||||
@ -493,13 +424,8 @@ class report extends BaseController
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_consolidate",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -521,14 +447,8 @@ class report extends BaseController
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse']=$this->dahsboard_Model->consolidate_month($m,$sid,$mid,$fa,$aa);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_consolidate_m",$this->global,$data, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
public function consolidate_year()
|
||||
@ -546,15 +466,9 @@ class report extends BaseController
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse']=$this->dahsboard_Model->consolidate_year($sid,$mid,$fa,$aa);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_consolidate_y",$this->global,$data, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function cumulative()
|
||||
@ -565,13 +479,8 @@ class report extends BaseController
|
||||
//print_r($prod);
|
||||
|
||||
$data['cum']=$this->dahsboard_Model->report_cumulative();
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_cumulative",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function cum_month()
|
||||
@ -585,13 +494,9 @@ class report extends BaseController
|
||||
//print_r($prod);
|
||||
|
||||
$data['cum_month']=$this->dahsboard_Model->report_cum_month($sup,$mat);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_cumulative_month",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function cum_year()
|
||||
@ -606,13 +511,8 @@ class report extends BaseController
|
||||
//print_r($sup);
|
||||
|
||||
$data['cum_year']=$this->dahsboard_Model->report_cum_year($sup,$mat);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_cumulative_year",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function cum_day()
|
||||
@ -626,13 +526,8 @@ class report extends BaseController
|
||||
//print_r($prod);
|
||||
|
||||
$data['cum_day']=$this->dahsboard_Model->report_cum_day($sup,$mat);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_cumulative_day",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function ipurchase()
|
||||
@ -663,15 +558,7 @@ class report extends BaseController
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_purchase_inward",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -720,13 +607,7 @@ class report extends BaseController
|
||||
$data['purchase']=$this->dahsboard_Model->ireport_purchase_link($cname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d,$cat);
|
||||
}
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_purchase_inward",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function iyear_wise()
|
||||
@ -745,18 +626,10 @@ class report extends BaseController
|
||||
}
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_year_wise_inward",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
public function imonth_wise()
|
||||
{
|
||||
|
||||
@ -768,13 +641,7 @@ class report extends BaseController
|
||||
//print_r($month);
|
||||
$data['mont']=$mon;
|
||||
$data['month']=$this->dahsboard_Model->ireport_month_wise($month);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_month_wise_inward",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function iyear_wise_total()
|
||||
@ -789,13 +656,7 @@ class report extends BaseController
|
||||
//print_r($month);
|
||||
$data['year']=$month;
|
||||
$data['ytotal']=$this->dahsboard_Model->ireport_year_wise_total($a,$b);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_year_wise_total_inward",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -823,17 +684,9 @@ class report extends BaseController
|
||||
|
||||
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_supplier_inward",$this->global,$data, NULL);
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -858,14 +711,7 @@ class report extends BaseController
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_consolidate_inward",$this->global,$data, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function i_consolidate_month()
|
||||
@ -890,14 +736,7 @@ class report extends BaseController
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse']=$this->dahsboard_Model->i_consolidate_month($m,$sid,$prod,$fa,$aa);
|
||||
// print_r( $data['spurchse']);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_consolidate_month_inward",$this->global,$data, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function i_consolidate_year()
|
||||
@ -919,14 +758,7 @@ class report extends BaseController
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse']=$this->dahsboard_Model->i_consolidate_year($sid,$mid,$fa,$aa);
|
||||
// print_r( $data['spurchse']);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_consolidate_year_inward",$this->global,$data, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -939,15 +771,7 @@ class report extends BaseController
|
||||
|
||||
$data['cum']=$this->dahsboard_Model->ireport_cumulative();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_cumulative_inward",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -962,15 +786,8 @@ class report extends BaseController
|
||||
//print_r($prod);
|
||||
|
||||
$data['cum_month']=$this->dahsboard_Model->ireport_cum_month($sup,$mat);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_cumulative_month_inward",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function icum_year()
|
||||
{
|
||||
@ -984,13 +801,7 @@ class report extends BaseController
|
||||
//print_r($sup);
|
||||
|
||||
$data['cum_year']=$this->dahsboard_Model->ireport_cum_year($sup,$mat);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_cumulative_year_inward",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function icum_day()
|
||||
@ -1004,13 +815,7 @@ class report extends BaseController
|
||||
//print_r($prod);
|
||||
|
||||
$data['cum_day']=$this->dahsboard_Model->ireport_cum_day($sup,$mat);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_cumulative_day_inward",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1023,17 +828,7 @@ class report extends BaseController
|
||||
|
||||
$data['cum']=$this->dahsboard_Model->rawi_report_cumulative();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_cumulative_raw",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function rawi_cum_year()
|
||||
{
|
||||
@ -1092,14 +887,9 @@ class report extends BaseController
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_consolidate_raw",$this->global,$data, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function rawi_consolidate_month()
|
||||
@ -1120,14 +910,8 @@ class report extends BaseController
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse']=$this->dahsboard_Model->rawi_consolidate_month($m,$cat,$sup,$fa,$aa);
|
||||
// print_r( $data['spurchse']);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_consolidate_month",$this->global,$data, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function rawi_consolidate_year()
|
||||
@ -1147,14 +931,9 @@ class report extends BaseController
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse']=$this->dahsboard_Model->rawi_consolidate_year($cat,$sup,$fa,$aa);
|
||||
// print_r( $data['spurchse']);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_consolidate_year",$this->global,$data, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function pending_purchase()
|
||||
@ -1198,14 +977,8 @@ class report extends BaseController
|
||||
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("Report_pending_purchase",$this->global,$data, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1226,14 +999,9 @@ class report extends BaseController
|
||||
$data['fy']=$this->dahsboard_Model->fy();
|
||||
$data['per']=$this->dahsboard_Model->per($fa,$aa,$m);
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("report_emp",$this->global,$data, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function cashbook()
|
||||
@ -1264,15 +1032,8 @@ class report extends BaseController
|
||||
// $data['todayincome']=$this->dahsboard_Model->today_data_income();
|
||||
// $data['todayexpense']=$this->dahsboard_Model->today_data_expense();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("reportcashbook",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
$this->loadviews("reportcashbook",$this->global,$data, NULL);
|
||||
|
||||
}
|
||||
|
||||
@ -1287,15 +1048,8 @@ class report extends BaseController
|
||||
|
||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("cashbookmonthlyexpenses",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
$this->loadviews("cashbookmonthlyexpenses",$this->global,$data, NULL);
|
||||
|
||||
|
||||
}
|
||||
@ -1309,15 +1063,8 @@ class report extends BaseController
|
||||
$data['yearlyreport']=$this->dahsboard_Model->yearexpensereport();
|
||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("cashbookyearlyexpenses",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
$this->loadviews("cashbookyearlyexpenses",$this->global,$data, NULL);
|
||||
|
||||
}
|
||||
public function cashbookdepartment()
|
||||
@ -1328,15 +1075,8 @@ class report extends BaseController
|
||||
$data['departmentwise']=$this->dahsboard_Model->departmentwise($sid,$d);
|
||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("cashbookmonthlydep",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
$this->loadviews("cashbookmonthlydep",$this->global,$data, NULL);
|
||||
}
|
||||
//for cashbook menu link//
|
||||
public function cashbookmonthmenu()
|
||||
@ -1346,15 +1086,7 @@ class report extends BaseController
|
||||
$data['yearmonthwise']=$this->dahsboard_Model->yearmonthwise();
|
||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||
//print_r($data['departmentwise']);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("cashbookyearmonthwise",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
public function yearmonthwise()
|
||||
{
|
||||
@ -1363,30 +1095,14 @@ class report extends BaseController
|
||||
$data['yearmonthwise']=$this->dahsboard_Model->yearmonthwise($sid);
|
||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||
//print_r($data['departmentwise']);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("cashbookyearmonthwise",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
public function Viewtoday()
|
||||
{
|
||||
$this->global['pageTitle'] = 'Cashbook - viewtoday ';
|
||||
$data['tdy']=$this->dahsboard_Model->today();
|
||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("cashbooktoday",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
public function depmenu()
|
||||
|
||||
@ -10,7 +10,7 @@ class inwardgateregister_model extends CI_Model
|
||||
function igrListing()
|
||||
{
|
||||
|
||||
$this->db->select('igr.*,PO.DeliveryDate,sup.SupplierName,igr.file,igrdetail.QuantityAsPerInvoice,POL.Quantity,MM.MaterialName');
|
||||
$this->db->select('igr.*,PO.DeliveryDate,sup.SupplierName,igr.file,igrdetail.*,POL.Quantity,MM.MaterialName');
|
||||
$this->db->from('T_IGR_Master igr');
|
||||
$this->db->join('T_PurchaseOrder_Master PO','igr.PONO = PO.PONO');
|
||||
$this->db->join('T_SupplierDetailsN` sup','PO.SupplierID = sup.SupplierID');
|
||||
@ -132,7 +132,8 @@ class inwardgateregister_model extends CI_Model
|
||||
$this->db->join('T_PurchaseOrder_LineItem POL','igr.PONO = POL.PONO and POL.MaterialCode=igrd.MaterialCode ');
|
||||
$this->db->join('T_SupplierDetailsN sup', 'sup.SupplierID = POM.SupplierID');
|
||||
$this->db->join('T_MaterialMaster MM', 'MM.MaterialCode = igrd.MaterialCode');
|
||||
$this->db->where('igr.IGRNO',$IGRNO);
|
||||
$this->db->where('igrd.IGRItemNo',$IGRNO);//here not a igr no , igrlineitem no
|
||||
//$this->db->where('igr.IGRNO',$IGRNO);//this where igno old flow
|
||||
|
||||
|
||||
$query = $this->db->get();
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -76,7 +76,7 @@
|
||||
|
||||
$(function () {
|
||||
|
||||
$('#datatable').DataTable({
|
||||
$('#tab').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": true,
|
||||
"searching": true,
|
||||
|
||||
@ -1,6 +1,27 @@
|
||||
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
font-size: 15px;
|
||||
position: relative;
|
||||
float: right;
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #5d0411;
|
||||
border-color: #5d0411;
|
||||
}
|
||||
.modal
|
||||
{
|
||||
padding-right:25% ! important;
|
||||
@ -34,7 +55,7 @@
|
||||
<th>Invoice No</th>
|
||||
<th>Date of Invoice</th>
|
||||
<th>Material Name</th>
|
||||
<th>Quantity</th>
|
||||
<th>Advice Quantity</th>
|
||||
<th>Vechicle No</th>
|
||||
<th>Courier No</th>
|
||||
<th>File</th>
|
||||
@ -51,10 +72,12 @@
|
||||
{
|
||||
|
||||
$index = $index +1;
|
||||
|
||||
?>
|
||||
<tr id="<?php echo $index ?>" >
|
||||
<td style="text-align: center;"><?php echo $index?></td>
|
||||
<td><a data-toggle="modal" data-target="#Igrshow" data-id="<%=index%>" data-userid="<?php echo $record->IGRNO ?>" > <u><?php echo $record->IGRNO ?></u></a></td>
|
||||
<td><a data-toggle="modal" data-target="#Igrshow" data-id="<?php echo $record->IGRNO.",".$record->IGRItemNo ?>" > <u><?php echo $record->IGRNO ?></u></a></td>
|
||||
<!-- <td><a data-toggle="modal" data-target="#Igrshow" data-id=""<%=index%>" data-userid="<?php echo $record->IGRNO ?>" > <u><?php echo $record->IGRNO ?></u></a></td>-->
|
||||
<td><?php echo $record->PONO ?></a></td>
|
||||
<td><?php echo $record->SupplierName ?></td>
|
||||
<td><?php echo $record->DeliveryChellanOrInvoiceNo ?></td>
|
||||
@ -230,25 +253,62 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
<!-- script for table , It works under the datatable plugin-->
|
||||
$(function () {
|
||||
$('#Inwardgateregistertable').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": true,
|
||||
"searching": true,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": true
|
||||
|
||||
});
|
||||
});
|
||||
$(document).ready(function() {
|
||||
// buttons: [ {name: 'copy', extend: 'copy', exportOptions: {columns: ':gt(0)', orthogonal: 'export'}} ]
|
||||
table = $('#Inwardgateregistertable').DataTable( {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-3'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
"lengthMenu": [ 25, 50, 75, 100 ],
|
||||
|
||||
buttons: [
|
||||
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
//messageTop: $('h3').text(),
|
||||
title: $('h3').text(),
|
||||
exportOptions: {
|
||||
//columns: ':lt(13)', orthogonal: 'export'
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
// $(function () {
|
||||
// $('#Inwardgateregistertable').DataTable({
|
||||
// "paging": true,
|
||||
// "lengthChange": true,
|
||||
// "searching": true,
|
||||
// "ordering": true,
|
||||
// "info": true,
|
||||
// "autoWidth": true
|
||||
|
||||
// });
|
||||
// });
|
||||
</script>
|
||||
<script>
|
||||
$("#Igrshow").on("shown.bs.modal", function(e) {
|
||||
var igr = $(e.relatedTarget).data('userid');
|
||||
|
||||
|
||||
//var igr = $(e.relatedTarget).data('userid');
|
||||
var igr_nos = $(e.relatedTarget).data('id');
|
||||
var igr = igr_nos.split(',');
|
||||
igr = igr[1];
|
||||
alert(igr_nos+igr);
|
||||
$('#content').loader('show');
|
||||
$.ajax({
|
||||
data:{id:igr},
|
||||
@ -260,11 +320,12 @@ $("#Igrshow").on("shown.bs.modal", function(e) {
|
||||
$('#content').loader('hide');
|
||||
var trHTML = '';
|
||||
$.each(JSON.parse(data), function (i, item) {
|
||||
if(igr == item.IGRNO)
|
||||
//alert(igr + item.IGRNO);
|
||||
//if(igr == item.IGRNO)
|
||||
if(igr == item.IGRItemNo)
|
||||
{
|
||||
|
||||
$("#IGRNO1").val(item.IGRNO);
|
||||
|
||||
$("#PONo").val(item.PONO);
|
||||
$("#Supplier").val(item.SupplierName);
|
||||
$("#Add1").val(item.Address);
|
||||
|
||||
@ -1,6 +1,28 @@
|
||||
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
font-size: 15px;
|
||||
position: relative;
|
||||
float: right;
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #5d0411;
|
||||
border-color: #5d0411;
|
||||
}
|
||||
|
||||
.modal
|
||||
{
|
||||
padding-right:25% ! important;
|
||||
@ -34,7 +56,7 @@
|
||||
<th>Invoice No</th>
|
||||
<th>Date of Invoice</th>
|
||||
<th>Material Name</th>
|
||||
<th>Quantity</th>
|
||||
<th>Advice Quantity</th>
|
||||
<th>Vechicle No</th>
|
||||
<th>Courier No</th>
|
||||
<th>Action</th>
|
||||
@ -53,7 +75,8 @@
|
||||
?>
|
||||
<tr id="<?php echo $index ?>" >
|
||||
<td style="text-align: center;"><?php echo $index?></td>
|
||||
<td><a data-toggle="modal" data-target="#Igrshow" data-id="<%=index%>" data-userid="<?php echo $record->IGRNO?>" > <u><?php echo $record->IGRNO ?></u></a></td>
|
||||
<!-- <td><a data-toggle="modal" data-target="#Igrshow" data-id="<%=index%>" data-userid="<?php echo $record->IGRNO?>" > <u><?php echo $record->IGRNO ?></u></a></td> this is igrno flow old flow -->
|
||||
<td><a data-toggle="modal" data-target="#Igrshow" data-id="<?php echo $record->IGRNO.",".$record->IGRItemNo ?>" > <u><?php echo $record->IGRNO ?></u></a></td>
|
||||
<td><?php echo $record->PONO ?></a></td>
|
||||
<td><?php echo $record->SupplierName ?></td>
|
||||
<td><?php echo $record->DeliveryChellanOrInvoiceNo ?></td>
|
||||
@ -67,6 +90,7 @@
|
||||
<td><?php echo $record->CourierNo ?></td>
|
||||
<td>
|
||||
<a href="<?php echo base_url().'MRIRcontroller/igrdatavalues?IGRNO='.$record->IGRNO.'&IGRitemno='.$record->IGRItemNo; ?>"><button style="font-size:12px" id="generated" name="generated">Generate MRIR <i class="fa fa-file-text"></i></button></a>
|
||||
<!-- <a href="<?php echo base_url().'MRIRcontroller/igrdatavalues?IGRNO='.$record->IGRNO.'&IGRitemno='.$record->IGRItemNo; ?>"><i class="fa fa-file-text" data-toggle="tooltip" target="_blank" title="Click here to generate MRIR"></i></a> -->
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
@ -206,23 +230,62 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
<!-- script for table , It works under the datatable plugin-->
|
||||
$(function () {
|
||||
$('#Inwardgateregistertable').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": true,
|
||||
"searching": true,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": true
|
||||
// $(function () {
|
||||
// $('#Inwardgateregistertable').DataTable({
|
||||
// "paging": true,
|
||||
// "lengthChange": true,
|
||||
// "searching": true,
|
||||
// "ordering": true,
|
||||
// "info": true,
|
||||
// "autoWidth": true
|
||||
|
||||
});
|
||||
});
|
||||
// });
|
||||
//});
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
// buttons: [ {name: 'copy', extend: 'copy', exportOptions: {columns: ':gt(0)', orthogonal: 'export'}} ]
|
||||
table = $('#Inwardgateregistertable').DataTable( {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-3'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
"lengthMenu": [ 25, 50, 75, 100 ],
|
||||
|
||||
buttons: [
|
||||
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
//messageTop: $('h3').text(),
|
||||
title: $('h3').text(),
|
||||
exportOptions: {
|
||||
columns: ':lt(10)', orthogonal: 'export'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
</script>
|
||||
</script>
|
||||
<script>
|
||||
$("#Igrshow").on("shown.bs.modal", function(e) {
|
||||
var igr = $(e.relatedTarget).data('userid');
|
||||
//var igr = $(e.relatedTarget).data('userid');
|
||||
var igr_nos = $(e.relatedTarget).data('userid');
|
||||
var igr = igr_nos.split(',');
|
||||
igr = igr[1];
|
||||
|
||||
$('#content').loader('show');
|
||||
$.ajax({
|
||||
|
||||
@ -1,6 +1,29 @@
|
||||
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
font-size: 15px;
|
||||
position: relative;
|
||||
float: right;
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #5d0411;
|
||||
border-color: #5d0411;
|
||||
}
|
||||
|
||||
|
||||
.modal
|
||||
{
|
||||
padding-right:25% ! important;
|
||||
@ -19,7 +42,8 @@
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 table-responsive !important">
|
||||
<!-- <div style="overflow-x:auto;"> -->
|
||||
|
||||
<table id="MRIRtable" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
|
||||
<thead style="background-color:#ddf">
|
||||
@ -41,7 +65,7 @@
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tbody >
|
||||
<?php
|
||||
if(!empty($viewmrirdatas))
|
||||
{
|
||||
@ -70,10 +94,10 @@
|
||||
<td><?php echo $d->UpdatedbyName ?></td>
|
||||
<td>
|
||||
<?php if($d->MRIRStatus== MRIR_CREATED){ ?>
|
||||
<a href="<?php echo base_url().'EditMRIR?MRIRNO='.$d->MRIRNO; ?>"><button style="font-size:12px" id="generated" name="generated">Edit MRIR <i class="fa fa-pencil"></i></button></a>
|
||||
<a href="<?php echo base_url().'EditMRIR?MRIRNO='.$d->MRIRNO; ?>"><i class="fa fa-pencil"></i></a>
|
||||
<?php }
|
||||
else{ ?>
|
||||
<a href="<?php echo base_url().'EditMRIR?MRIRNO='.$d->MRIRNO; ?>"><button style="font-size:12px" id="generated" name="generated">View MRIR <i class="fa fa-eye"></i></button></a>
|
||||
<a href="<?php echo base_url().'EditMRIR?MRIRNO='.$d->MRIRNO; ?>"><i class="fa fa-eye"></i></a>
|
||||
<?php } ?>
|
||||
<a href="<?php echo base_url().'MRIRcontroller/MrirDetailsPrintPdf?MRIRNO='.$d->MRIRNO;?>"<i class="fa fa-print" data-toggle="tooltip" target="_blank" title=" Click here to Print the MRIR details"></i> </a>
|
||||
</td>
|
||||
@ -89,18 +113,39 @@
|
||||
|
||||
</section>
|
||||
</div>
|
||||
<script>
|
||||
<!-- script for table , It works under the datatable plugin-->
|
||||
$(function () {
|
||||
$('#MRIRtable').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": true,
|
||||
"searching": true,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": true
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
});
|
||||
});
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
// buttons: [ {name: 'copy', extend: 'copy', exportOptions: {columns: ':gt(0)', orthogonal: 'export'}} ]
|
||||
table = $('#MRIRtable').DataTable( {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-3'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
"lengthMenu": [ 25, 50, 75, 100 ],
|
||||
|
||||
buttons: [
|
||||
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
//messageTop: $('h3').text(),
|
||||
title: $('h3').text(),
|
||||
exportOptions: {
|
||||
columns: ':lt(13)', orthogonal: 'export'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
</script>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user