From b8e436d9283aa43bac3c31a658308f2183a42d1a Mon Sep 17 00:00:00 2001 From: gandhimathi Bharathirajan Date: Thu, 27 Apr 2017 19:45:20 +0530 Subject: [PATCH] PO Screen desing --- application/views/requisitionform.php | 147 +++++++----------- application/views/requisitionlistapproval.php | 90 ++++++----- 2 files changed, 112 insertions(+), 125 deletions(-) diff --git a/application/views/requisitionform.php b/application/views/requisitionform.php index 6650d710..27f89660 100644 --- a/application/views/requisitionform.php +++ b/application/views/requisitionform.php @@ -1,3 +1,4 @@ + @@ -7,7 +8,7 @@
-

Requisition Form

+

Siddharth Industries - Requisition Form

@@ -15,20 +16,20 @@
'Select Request Type'); + $options = array("-1"=>'Select Request Type'); //print_r( $options); - if(!empty($POType)) + if(!empty($RequestType)) { - foreach ($SupplierName as $SID): + foreach ($RequestType as $RID): - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + $options[$RID->ConfigValue] = $RID->ConfigValue; endforeach; } - echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"'); + echo form_dropdown('RequestType', $options,set_value('ConfigValue'),'id="RequestType"' ,'class = "form-control select2"','required="true"'); ?> @@ -38,20 +39,20 @@
'Select Request By'); + $options = array("-1"=>'Select Requested By'); //print_r( $options); - if(!empty($POType)) + if(!empty($EmpList)) { - foreach ($SupplierName as $SID): + foreach ($EmpList as $EID): - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + $options[$EID->EmpID] = $EID->EmpID.' '.' - '.' '.$EID->FirstName.' . '.' '.$EID->LastName; endforeach; } - echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"'); + echo form_dropdown('EmpID', $options,set_value('EmpID'),'id="EmpID"' ,'class = "form-control select2"','required="true"'); ?> @@ -62,7 +63,7 @@
'SupplierAddress','value' => set_value('SupplierAddress'),'id'=>'SupplierAddress', 'class' => 'form-control' ,'required' => 'true'); + $data = array('name' => 'SupplierAddress','value' => set_value('SupplierAddress'),'id'=>'SupplierAddress', 'class' => 'form-control' ,'readonly' => 'true'); echo form_input($data); ?>
@@ -71,40 +72,32 @@
'SupplierAddress','value' => set_value('SupplierAddress'),'id'=>'SupplierAddress', 'class' => 'form-control' ,'required' => 'true'); + $data = array('name' => 'SupplierAddress','value' => set_value('SupplierAddress'),'id'=>'SupplierAddress', 'class' => 'form-control' ,'readonly' => 'true'); echo form_input($data); ?>
-
- -
- 'PO_Date', 'value' => set_value('PO_Date'),'id'=>'PO_Date', 'class' => 'form-control datePicker','required'=>'true'); - echo form_input($data); - ?> -
-
+
'Cost Center Name'); + $options = array("-1"=>'Select Cost Center Name'); //print_r( $options); - if(!empty($POType)) + if(!empty($CostCenter)) { - foreach ($SupplierName as $SID): + foreach ($CostCenter as $CID): - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + $options[$CID->CostName] = $CID->CostName.' '.' - '.' '.$CID->Description; endforeach; } - echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"'); + echo form_dropdown('CostCenter', $options,set_value('CostCenter'),'id="CostCenter"' ,'class = "form-control"'); ?> @@ -114,7 +107,7 @@
'SupplierAddress','value' => set_value('SupplierAddress'),'id'=>'SupplierAddress', 'class' => 'form-control' ,'required' => 'true'); + $data = array('name' => 'BudgetAmount','value' => set_value('BudgetAmount'),'id'=>'BudgetAmount', 'class' => 'form-control' ,'readonly' => 'true'); echo form_input($data); ?>
@@ -142,61 +135,49 @@
-
+
'Material Code'); //print_r( $options); - if(!empty($POType)) + if(!empty($MaterialList)) { - foreach ($SupplierName as $SID): + foreach ($MaterialList as $MID): - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + $options[$MID->MaterialCode] = $MID->MaterialCode.' '.' - '.' '.$MID->MaterialName; endforeach; } - echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control required"','required="true"'); + echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control"'); ?>
-
+
'Description','value' => set_value('Description'),'id'=>'Description', 'class' => 'form-control' ,'required' => 'true'); + $data = array('name' => 'Description','value' => set_value('Description'),'id'=>'Description', 'class' => 'form-control','readonly' => 'true' ); echo form_input($data); ?>
-
+
- 'UOM'); - //print_r( $options); - - if(!empty($POType)) - { - foreach ($SupplierName as $SID): - - - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; - - endforeach; - } - - echo form_dropdown('UOM', $options,set_value('UOM'),'id="UOM"' ,'class = "form-control required"','required="true"'); - - ?> + 'UOM','value' => set_value('UOM'),'id'=>'UOM', 'class' => 'form-control','readonly' => 'true' ); + echo form_input($data); + ?> +
-
+
-
- -
- 'Low / High / Medium'); - //print_r( $options); - - if(!empty($POType)) - { - foreach ($SupplierName as $SID): - - - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; - - endforeach; - } - echo form_dropdown('Priority', $options,set_value('Priority'),'id="Priority"' ,'class = "form-control required"','required="true"'); - - ?> - -
-
- - +

@@ -249,8 +207,7 @@ Material Name Uom Quantity - Priority - Modify + Action @@ -260,8 +217,8 @@ Waste Sand Ton 100 - High - No Change +     +     2 @@ -269,8 +226,8 @@ Resin Litre 50 - High - Change +     +     3 @@ -278,8 +235,8 @@ Resin Litre 100 - High - Change +     +     @@ -297,4 +254,20 @@
- \ No newline at end of file + + + \ No newline at end of file diff --git a/application/views/requisitionlistapproval.php b/application/views/requisitionlistapproval.php index 540b5fa5..bc0a9bca 100644 --- a/application/views/requisitionlistapproval.php +++ b/application/views/requisitionlistapproval.php @@ -12,60 +12,62 @@
-
- +
+
'Select Status'); + $options = array("0"=>'Select Requisition Status'); //print_r( $options); - if(!empty($POType)) + if(!empty($Requeststatus)) { - foreach ($SupplierName as $SID): + foreach ($Requeststatus as $SID): - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + $options[$SID->ConfigValue] = $SID->ConfigValue; endforeach; } - echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"'); + echo form_dropdown('RequisitionStatus', $options,set_value('RequisitionStatus'),'id="RequisitionStatus"' ,'class = "form-control required"','required="true"'); ?>
-
-
+ +
'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); + $data = array('name' => 'FromDate','value' => set_value('FromDate'),'id'=>'FromDate', 'class' => 'form-control datePicker' ,'required' => 'true'); echo form_input($data); ?>
-
+
'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); + $data = array('name' => 'ToDate','value' => set_value('ToDate'),'id'=>'ToDate', 'class' => 'form-control datePicker' ,'required' => 'true'); echo form_input($data); ?>
-
+
+ +
+  
+ +
- -
-
+ - - -

+ +
- +
'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); + $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'readonly' => 'true'); echo form_input($data); ?>
@@ -103,7 +105,7 @@
'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); + $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'readonly' => 'true'); echo form_input($data); ?>
@@ -115,7 +117,7 @@
'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); + $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'readonly' => 'true'); echo form_input($data); ?>
@@ -125,7 +127,7 @@
'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); + $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'readonly' => 'true'); echo form_input($data); ?>
@@ -134,7 +136,7 @@
'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); + $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'readonly' => 'true'); echo form_input($data); ?>
@@ -184,9 +186,9 @@
-
-
\ No newline at end of file +
+ + \ No newline at end of file