diff --git a/application/controllers/CostCenter.php b/application/controllers/CostCenter.php index f703de53..426922aa 100644 --- a/application/controllers/CostCenter.php +++ b/application/controllers/CostCenter.php @@ -67,6 +67,20 @@ class CostCenter extends BaseController $this->loadViews("addcost", $this->global, NULL); + } + /** + * This function is used to load the add new cost Center */ + function addCostCenter() + { + + $this->load->model('costcenter_model'); + //$data['costName'] = $this->purchaseorder_model->getcostName(); + //$data['users'] = $this->purchaseorder_model->getusers(); + + $this->global['pageTitle'] = 'siddharth : Add Cost Center'; + + $this->loadViews("addCostCenter", $this->global, NULL); + } /** diff --git a/application/views/addCostCenter.php b/application/views/addCostCenter.php index 9c535ea7..ad8fcdb7 100644 --- a/application/views/addCostCenter.php +++ b/application/views/addCostCenter.php @@ -1,20 +1,19 @@ - -
-
-

Cost center

-
- - +

+
Add Cost List
+ +

+
-
- Back +
+ Back
-
+
+
@@ -23,639 +22,319 @@
-
- + - 'form-label-left CostCenter ','name' => 'CostCenter','id' => 'CostCenter'); - - echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?> - + +
-
-
-   * -
- - 'CostCenterName','value' => set_value('CostCenterName'),'id'=>'CostCenterName', 'class' => 'form-control'); - echo form_input($data); - ?> - -
- - - - - - +
-
- -
-
- 'PO_Date', 'value' => set_value('PO_Date'),'id'=>'PO_Date', 'class' => 'form-control datePicker','required'=>'true'); - echo form_input($data); - ?> +
+ + +
+
+ + +
+
+ + +
-
-
-
-
-   * -
- 'Select Supplier'); - //print_r( $options); - - if(!empty($POType)) - { - foreach ($SupplierName as $SID): - - - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; +
+
+
+ +
+
+
+
+
- endforeach; - } - - echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"'); - - ?> - -
-
-
-
-
- -
-
- 'SupplierAddress','value' => set_value('SupplierAddress'),'id'=>'SupplierAddress', 'class' => 'form-control' ,'readonly' => 'true'); - echo form_input($data); - ?> -
- -
-
- -
-
-
-
-   * -
-
- 'Select Requested By'); - //print_r( $options); - - if(!empty($users)) - { - foreach ($users as $UID): - - - $options[$UID->userId] = $UID->userId.' '.'-'.' '.$UID->name; - - endforeach; - } - - echo form_dropdown('role', $options,set_value('role'),'id="role"','class = "form-control "','required="true"'); - - ?> - -
-
- -
-
- -
-
- 're_email', 'value' => set_value('re_email'),'id'=>'re_email', 'class' => 'form-control email', 'onchange'=>'validateEmail()'); - echo form_input($data); - ?> - - -
-
- -
-
-
-
-   * -
-
- 're_phone','value' => set_value('re_phone'), 'class' => 'form-control required re_phone','onkeypress'=>'return event.charCode >= 48 && event.charCode <= 57', 'maxlength' => '12', 'id'=>'re_phone','required'=>'true'); - echo form_input($data); - ?> - - - -
-
-
-
- * -
-
- 're_Date', 'value' => set_value('re_Date'),'id'=>'re_Date', 'class' => 'form-control datePicker chechDate re_Date','required'=>'true'); - echo form_input($data); - ?>
-
- -
-
-
-
-   * -
-
- 'Select Budget Manager'); - //print_r( $options); - - if(!empty($EmpList)) - { - foreach ($EmpList as $EID): - - $options[$EID->EmpID] = $EID->EmpID .' - '.$EID->FirstName.' '.','.' '.$EID->LastName; - - endforeach; - } - - echo form_dropdown('BudgetManager', $options,set_value('BudgetManager'),'id="BudgetManager"','class = "form-control "','required="true"','onchange="SelectedDepartment()"'); - - - - ?> - -
-
- -
-
- -
-
- 'BudgetManagerDepartment', 'value' => set_value('BudgetManagerDepartment'),'id'=>'BudgetManagerDepartment','class' => 'form-control ', 'readonly'=>'true'); - echo form_input($data); - ?> - -
-
- -
-
-
-
-
-
- 'Select Purchase Order Type'); - //print_r( $options); - - if(!empty($PurchasingCategory)) - { - foreach ($PurchasingCategory as $PC): - - $options[$PC->ConfigValue] = $PC->ConfigValue; - - endforeach; - } - - echo form_dropdown('Pur_category',$options,set_value('Pur_category'),'id="Pur_category"', 'class = "form-control "'); - - ?> - -
- -
-
-
- -
-
- 'SpecialOrder','value' => set_value('SpecialOrder'),'id'=>'SpecialOrder', 'class' => 'form-control ', 'required'=>'true','maxlength'=>'500'); - echo form_input($data); - ?> - - -
-
-
-
-
- -
-
- 'Justification', 'value' => set_value('Justification'),'id'=>'Justification', 'class' => 'form-control ', 'required'=>'false','maxlength'=>'4000'); - echo form_input($data); - ?> - -
-
- -
-
- -
- -
Purchase Order Line Item :
-
-
- - -
-
-
-
-
- *
-
- 'Select UOM'); - //print_r( $options); - - if(!empty($UOM)) - { - foreach ($UOM as $UID): - $options[$UID->ConfigValue] = $UID->ConfigValue; - - - endforeach; - } - echo form_dropdown('UOM',$options,set_value('UOM'),'id="UOM"', 'class = "form-control "'); - - - ?> - -
-
-
- -
-
-
- * -
-
- 'Quantity', 'value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control required digits', 'onchange'=>'change()','required'=>'true','onkeypress'=>'return isNumberKey(event)'); - echo form_input($data); - ?> - - -
-
-
- -
-
-
- * -
-
- 'UnitPrice', 'value' => set_value('UnitPrice'),'id'=>'UnitPrice', 'class' => 'form-control required digits', 'onchange'=>'change()','required'=>'true','onkeypress'=>'return isNumberKey(event)'); - echo form_input($data); - ?> - - -
- -
-
-
-
-
-
- -
-
- 'ProductPrice', 'value' => set_value('ProductPrice'),'id'=>'ProductPrice', 'class' => 'form-control required digits','disabled'=>'true'); - echo form_input($data); - ?> - - -
- -
-
- - - -
- - - - - - -
- - - -
- -
- - - - - - - - - - - - - - - - -
-
- - - -
- - - - - -
-
-
-
- * -
-
 
- -
- - 'BasicValue', 'value' => set_value('BasicValue'), 'id'=>'BasicValue', 'class' => 'form-control required digits','readonly'=>'true'); - echo form_input($data); - ?> - -
-
-
-
-
-   * -
- - -
- 'Select Discount Type',"Percentage"=>'Percentage',"Lump some"=>'Lump some',"Nil"=>'Nil'); - //print_r( $options); - - - echo form_dropdown('DiscountType',$options,set_value('DiscountType'),'id="DiscountType"', 'class = "form-control "'); - - - ?> - -
-
- 'txtDiscount','value' => set_value('txtDiscount'), 'id'=>'txtDiscount', 'class' => 'form-control required digits','onkeypress'=>'return isNumberKey(event)','onchange'=>'calculateDiscount()'); - echo form_input($data); - ?> - - -
-
-
-
-
- -
-
 
-
-
- 'AfterDiscount','value' => set_value('AfterDiscount'), 'id'=>'AfterDiscount', 'class' => 'form-control required digits','readonly'=>'true'); - echo form_input($data); - ?> - -
-
-
-
-
- -
-   * -
-
- -'Select Packaging Type',"Percentage"=>'Percentage',"Lump some"=>'Lump some',"Nil"=>'Nil'); - //print_r( $options); - - - echo form_dropdown('PackagingType',$options,set_value('PackagingType'),'id="PackagingType"', 'class = "form-control "','onchange="SelectPackagingType()"'); - - - ?> +
+
+
- -
-
- - 'txtPackaging','value' => set_value('txtPackaging'), 'id'=>'txtPackaging', 'class' => 'form-control required digits','onkeypress'=>'return isNumberKey(event)','onchange'=>'calculatePackaging()'); - echo form_input($data); - ?> - -
- -
-
-
-
- -
-
 
-
-
- 'AfterPackaging','value' => set_value('AfterPackaging'), 'id'=>'AfterPackaging', 'class' => 'form-control required digits','readonly'=>'true'); - echo form_input($data); - ?> - -
-
-
-
-
-
- -
-
 
-
-
- 'Exciseduty','value' => set_value('Exciseduty'), 'id'=>'Exciseduty', 'class' => 'form-control required digits','onkeypress'=>'return isNumberKey(event)','onchange'=>'calculateExeciseDuty()'); - echo form_input($data); - ?> - -
-
-
-
-
-
- -
-
 
-
-
- 'AferExciseduty', 'value' => set_value('AferExciseduty'),'id'=>'AferExciseduty', 'class' => 'form-control required digits','readonly'=>'true'); - echo form_input($data); - ?> - -
-
-
-
-
-
- * -
-
 
-
-
- 'txtVat','value' => set_value('txtVat'), 'id'=>'txtVat', 'class' => 'form-control required digits','onkeypress'=>'return isNumberKey(event)','onchange'=>'calculateVat()'); - echo form_input($data); - ?> - -
-
-
-
-
-
- -
-
 
-
-
- 'txtAfterVat', 'value' => set_value('txtAfterVat'),'id'=>'txtAfterVat', 'class' => 'form-control required digits','readonly'=>'true'); - echo form_input($data); - ?> - -
-
-
-
-
-
- -
-
 
-
-
- 'txtFreight', 'value' => set_value('txtFreight'),'id'=>'txtFreight', 'class' => 'form-control required digits','onkeypress'=>'return isNumberKey(event)','onchange'=>'calculateFreight()'); - echo form_input($data); - ?> - -
-
-
-
-
-
- -
-
 
-
-
- 'txtOrderValue','value' => set_value('txtOrderValue'), 'id'=>'txtOrderValue', 'class' => 'form-control required digits','readonly'=>'true'); - echo form_input($data); - ?> - -
-
-
-
-
- - - + + + + + + + + +
+ +
+ + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Budget TypeBudget YearBudget AmountRemarks
PO20170.00Remarks
SO20170.00Remarks
IO20170.00Remarks
CO20170.00Remarks
+ +
+
+
+
+ + + + + + + +
- + + + + - - - - - - \ No newline at end of file + $('#removePop').click(function () { + if ($('#selectDistriList option:selected').val() != null) { + var tempSelect = $('#selectDistriList option:selected').val(); + $('#selectDistriList option:selected').remove().appendTo('#distriList'); + $("#selectDistriList").attr('selectedIndex', '-1').find("option:selected").removeAttr("selected"); + $("#distriList").attr('selectedIndex', '-1').find("option:selected").removeAttr("selected"); + + $("#distriList").val(tempSelect); + tempSelect = ''; + } else { + alert("Before remove please select any position."); + } + }); + + \ No newline at end of file diff --git a/application/views/costListing.php b/application/views/costListing.php index 11852e3a..397646fa 100644 --- a/application/views/costListing.php +++ b/application/views/costListing.php @@ -10,7 +10,7 @@