parent
79d7f16c67
commit
15f7a53304
|
@ -41,8 +41,11 @@ public class InspectionReportItem implements Serializable {
|
|||
private float packHeight;
|
||||
private long sampleSize;
|
||||
private long inspectionLevel;
|
||||
private long minorQualityLevel;
|
||||
private long majorQualityLevel;
|
||||
private double minorQualityLevel;
|
||||
private double majorQualityLevel;
|
||||
|
||||
private int levelMajorDefects;
|
||||
private int levelMinorDefects;
|
||||
|
||||
private int aqlSampleSize;
|
||||
|
||||
|
@ -299,19 +302,19 @@ public class InspectionReportItem implements Serializable {
|
|||
this.checkedPiecesSelected = checkedPiecesSelected;
|
||||
}
|
||||
|
||||
public long getMajorQualityLevel() {
|
||||
public double getMajorQualityLevel() {
|
||||
return majorQualityLevel;
|
||||
}
|
||||
|
||||
public void setMajorQualityLevel(long majorQualityLevel) {
|
||||
public void setMajorQualityLevel(double majorQualityLevel) {
|
||||
this.majorQualityLevel = majorQualityLevel;
|
||||
}
|
||||
|
||||
public long getMinorQualityLevel() {
|
||||
public double getMinorQualityLevel() {
|
||||
return minorQualityLevel;
|
||||
}
|
||||
|
||||
public void setMinorQualityLevel(long minorQualityLevel) {
|
||||
public void setMinorQualityLevel(double minorQualityLevel) {
|
||||
this.minorQualityLevel = minorQualityLevel;
|
||||
}
|
||||
|
||||
|
@ -395,6 +398,22 @@ public class InspectionReportItem implements Serializable {
|
|||
this.aqlSampleSize = aqlSampleSize;
|
||||
}
|
||||
|
||||
public int getLevelMajorDefects() {
|
||||
return levelMajorDefects;
|
||||
}
|
||||
|
||||
public void setLevelMajorDefects(int levelMajorDefects) {
|
||||
this.levelMajorDefects = levelMajorDefects;
|
||||
}
|
||||
|
||||
public int getLevelMinorDefects() {
|
||||
return levelMinorDefects;
|
||||
}
|
||||
|
||||
public void setLevelMinorDefects(int levelMinorDefects) {
|
||||
this.levelMinorDefects = levelMinorDefects;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "InspectionReportItem{" +
|
||||
|
@ -431,6 +450,8 @@ public class InspectionReportItem implements Serializable {
|
|||
", inspectionLevel=" + inspectionLevel +
|
||||
", minorQualityLevel=" + minorQualityLevel +
|
||||
", majorQualityLevel=" + majorQualityLevel +
|
||||
", levelMajorDefects=" + levelMajorDefects +
|
||||
", levelMinorDefects=" + levelMinorDefects +
|
||||
", aqlSampleSize=" + aqlSampleSize +
|
||||
", checkedCartonsSelected=" + checkedCartonsSelected +
|
||||
", checkedPacksSelected=" + checkedPacksSelected +
|
||||
|
|
|
@ -6,6 +6,7 @@ import android.app.Activity;
|
|||
import android.app.AlertDialog;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.graphics.Color;
|
||||
import android.net.Uri;
|
||||
import android.os.Environment;
|
||||
import android.provider.MediaStore;
|
||||
|
@ -100,6 +101,10 @@ public class CheckPointAdapter extends
|
|||
.findFirst().orElse(new InspectionCheckPoint());
|
||||
holder.populateDefects(cp, defects, checkPoint);
|
||||
checkPoint.setTitle(selectedItem);
|
||||
|
||||
if (view instanceof TextView) {
|
||||
((TextView) view).setTextColor(Color.BLACK);
|
||||
}
|
||||
}
|
||||
}
|
||||
@Override
|
||||
|
@ -209,6 +214,8 @@ public class CheckPointAdapter extends
|
|||
super(itemView);
|
||||
remarks = itemView.findViewById(R.id.check_point_remarks);
|
||||
checkpointSpinner = itemView.findViewById(R.id.check_point_spinner);
|
||||
checkpointSpinner.setClickable(false);
|
||||
checkpointSpinner.setEnabled(false);
|
||||
okCheckBox = itemView.findViewById(R.id.check_point_ok);
|
||||
noCheckBox = itemView.findViewById(R.id.check_point_no);
|
||||
imagePicker = itemView.findViewById(R.id.image_picker );
|
||||
|
|
|
@ -221,8 +221,10 @@ public class FirstStepFragment extends Fragment implements View.OnClickListener
|
|||
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
||||
if (parent.getItemAtPosition(position) != null) {
|
||||
qualityLevelMajor = parent.getItemAtPosition(position).toString();
|
||||
Log.e("Quality-Major: ",""+qualityLevelMajor);
|
||||
store.getReport().getItems().get(0).setMajorQualityLevel(Double.parseDouble(qualityLevelMajor));
|
||||
|
||||
store.getReport().getItems().get(0).setMajorQualityLevel((long) Double.parseDouble(qualityLevelMajor));
|
||||
Log.e("Quality-Majorr: ",""+store.getReport().getItems().get(0).getMajorQualityLevel());
|
||||
|
||||
checkedBoxCartonSelected.setText("");
|
||||
checkedItemPerBoxSelected.setText("");
|
||||
|
@ -244,8 +246,11 @@ public class FirstStepFragment extends Fragment implements View.OnClickListener
|
|||
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
||||
if (parent.getItemAtPosition(position) != null) {
|
||||
qualityLevelMinor = parent.getItemAtPosition(position).toString();
|
||||
Log.e("Quality-Minor: ",""+qualityLevelMinor);
|
||||
|
||||
store.getReport().getItems().get(0).setMinorQualityLevel((long) Double.parseDouble(qualityLevelMinor));
|
||||
store.getReport().getItems().get(0).setMinorQualityLevel(Double.parseDouble(qualityLevelMinor));
|
||||
|
||||
Log.e("Quality-Minorr: ",""+store.getReport().getItems().get(0).getMinorQualityLevel());
|
||||
|
||||
checkedBoxCartonSelected.setText("");
|
||||
checkedItemPerBoxSelected.setText("");
|
||||
|
@ -896,6 +901,10 @@ public class FirstStepFragment extends Fragment implements View.OnClickListener
|
|||
boxCarton.setText(boxCartonText);
|
||||
packagingDetails.setText(packagingDetailsText);
|
||||
|
||||
Log.e("Exception-BOX","***"+store.getReport().getItems().get(0).getCartonsSelected());
|
||||
Log.e("Exception**ITEM","***"+store.getReport().getItems().get(0).getPacksSelected());
|
||||
Log.e("Exception**PIECE","**"+store.getReport().getItems().get(0).getPiecesSelected());
|
||||
|
||||
boxCartonSelected.setText(String.valueOf(store.getReport().getItems().get(0).getCartonsSelected()));
|
||||
itemPerBoxSelected.setText(String.valueOf(store.getReport().getItems().get(0).getPacksSelected()));
|
||||
piecesSelected.setText(String.valueOf(store.getReport().getItems().get(0).getPiecesSelected()));
|
||||
|
@ -925,6 +934,7 @@ public class FirstStepFragment extends Fragment implements View.OnClickListener
|
|||
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Log.e("Exception************","**********");
|
||||
itemPerBox.setText("0");
|
||||
pieces.setText("0");
|
||||
boxCarton.setText("0");
|
||||
|
@ -1208,8 +1218,9 @@ public class FirstStepFragment extends Fragment implements View.OnClickListener
|
|||
aqlSampleSize.setText(String.valueOf(sampleSizeMajor));
|
||||
|
||||
store.getReport().getItems().get(0).setSampleSize(sampleSizeMajor);
|
||||
store.getReport().getItems().get(0).setMajorQualityLevel((long) levelMajor);
|
||||
store.getReport().getItems().get(0).setMinorQualityLevel((long) levelMinor);
|
||||
store.getReport().getItems().get(0).setLevelMajorDefects((int) levelMajor);
|
||||
store.getReport().getItems().get(0).setLevelMinorDefects((int) levelMinor);
|
||||
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
|
|
@ -26,6 +26,7 @@ import android.widget.Toast;
|
|||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.navigation.NavController;
|
||||
import androidx.navigation.Navigation;
|
||||
|
@ -70,7 +71,7 @@ public class ThirdStepFragment extends Fragment implements View.OnClickListener
|
|||
private ApiService apiService;
|
||||
private EditText generalRemarks, etQualityAuditor, etProdRepresentative, etQcRepresentative;
|
||||
|
||||
private TextView minorCountTv,majorCountTv,criticalCountTv, resultStatus;
|
||||
private TextView minorCountTv,majorCountTv,criticalCountTv, resultStatus, txtMajor, txtMinor;
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
|
@ -416,18 +417,28 @@ public class ThirdStepFragment extends Fragment implements View.OnClickListener
|
|||
majorCountTv.setText( String.format("Major : %d", major ) ) ;
|
||||
criticalCountTv.setText( String.format("Critical : %d", crirical ) );
|
||||
|
||||
long minorInspection = store.getReport().getItems().get(0).getMinorQualityLevel();
|
||||
long majorInspection = store.getReport().getItems().get(0).getMinorQualityLevel();
|
||||
if((long) minor <= minorInspection
|
||||
&& (long) major <= majorInspection
|
||||
&& (long) crirical == 0) {
|
||||
resultStatus.setText("Passed");
|
||||
store.getReport().setReportResult( "Passed" );
|
||||
double majorInspection = store.getReport().getItems().get(0).getLevelMajorDefects();
|
||||
double minorInspection = store.getReport().getItems().get(0).getLevelMinorDefects();
|
||||
|
||||
if((double) minor <= minorInspection
|
||||
&& (double) major <= majorInspection
|
||||
&& (double) crirical == 0) {
|
||||
resultStatus.setText("PASSED");
|
||||
store.getReport().setReportResult("PASSED");
|
||||
resultStatus.setTextColor(ContextCompat.getColor(requireContext(),R.color.success));
|
||||
//resultStatus.setBackgroundResource( R.drawable.passed_bg );
|
||||
}
|
||||
else{
|
||||
resultStatus.setText("Failed");
|
||||
store.getReport().setReportResult( "Failed" );
|
||||
resultStatus.setText("FAILED");
|
||||
resultStatus.setTextColor(ContextCompat.getColor(requireContext(),R.color.red));
|
||||
store.getReport().setReportResult("FAILED");
|
||||
//resultStatus.setBackgroundResource( R.drawable.failed_bg );
|
||||
}
|
||||
|
||||
Log.e("majorCount: ",""+majorInspection);
|
||||
Log.e("minorCount: ",""+minorInspection);
|
||||
txtMajor.setText(String.format("Major : %s/%d", (int)majorInspection, (int)(majorInspection + 1)));
|
||||
txtMinor.setText(String.format("Minor : %s/%d", (int)minorInspection, (int)(minorInspection + 1)));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -501,6 +512,8 @@ public class ThirdStepFragment extends Fragment implements View.OnClickListener
|
|||
etQualityAuditor = view.findViewById(R.id.et_quality_auditor);
|
||||
etProdRepresentative = view.findViewById(R.id.et_prod_represent);
|
||||
etQcRepresentative = view.findViewById(R.id.et_qc_represent);
|
||||
txtMajor = view.findViewById(R.id.txt_major);
|
||||
txtMinor = view.findViewById(R.id.txt_minor);
|
||||
|
||||
}
|
||||
private void setOnClickListeners(){
|
||||
|
|
|
@ -511,6 +511,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp"
|
||||
android:visibility="visible"
|
||||
android:layout_margin="5dp"/>
|
||||
|
||||
<LinearLayout
|
||||
|
@ -520,13 +521,43 @@
|
|||
android:background="@drawable/box_border"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
android:text="Carton Weight"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold" />
|
||||
android:layout_marginHorizontal="11dp"
|
||||
android:padding="5dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Carton Weight"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Carton Length"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Carton Width"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Carton Height"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
@ -577,13 +608,42 @@
|
|||
android:background="@drawable/box_border"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
android:text="Pack Weight"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold" />
|
||||
android:layout_marginHorizontal="11dp"
|
||||
android:padding="5dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Pack Weight"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Pack Length"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Pack Width"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Pack Height"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -81,12 +81,13 @@
|
|||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/white"
|
||||
android:text="STEP 2 Checkpoints" />
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:backgroundTint="@color/light_blue"
|
||||
android:text="STEP 3 Dimension"/>
|
||||
android:text="STEP 3 Dimension" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
@ -105,6 +106,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -142,48 +144,48 @@
|
|||
android:id="@+id/item_sample"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="Dimension"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold"
|
||||
android:layout_weight="1"
|
||||
android:textAlignment="center"/>
|
||||
android:textStyle="bold" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="Unit"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold"
|
||||
android:layout_weight="1"
|
||||
android:textAlignment="center"/>
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="Required"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold"
|
||||
android:layout_weight="1"
|
||||
android:textAlignment="center"/>
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="Actual"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold"
|
||||
android:layout_weight="1"
|
||||
android:textAlignment="center"/>
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Difference"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold"
|
||||
android:layout_weight="1"
|
||||
android:textAlignment="center"/>
|
||||
android:text="Difference"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
@ -195,149 +197,152 @@
|
|||
|
||||
</androidx.recyclerview.widget.RecyclerView>
|
||||
|
||||
<!-- <LinearLayout-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_margin="16dp"-->
|
||||
<!-- android:orientation="horizontal">-->
|
||||
<!-- <LinearLayout-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_margin="16dp"-->
|
||||
<!-- android:orientation="horizontal">-->
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/length"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:text="Length"-->
|
||||
<!-- android:textColor="@color/black"-->
|
||||
<!-- android:textStyle="bold"-->
|
||||
<!-- android:layout_weight="1"/>-->
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/length"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:text="Length"-->
|
||||
<!-- android:textColor="@color/black"-->
|
||||
<!-- android:textStyle="bold"-->
|
||||
<!-- android:layout_weight="1"/>-->
|
||||
|
||||
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/required_length"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/actual_length"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/required_length"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/actual_length"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/difference_length"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
<!-- </LinearLayout>-->
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/difference_length"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
<!-- </LinearLayout>-->
|
||||
|
||||
<!-- <LinearLayout-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_margin="16dp"-->
|
||||
<!-- android:orientation="horizontal">-->
|
||||
<!-- <LinearLayout-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_margin="16dp"-->
|
||||
<!-- android:orientation="horizontal">-->
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/width"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:text="Width"-->
|
||||
<!-- android:textColor="@color/black"-->
|
||||
<!-- android:textStyle="bold"-->
|
||||
<!-- android:layout_weight="1"/>-->
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/width"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:text="Width"-->
|
||||
<!-- android:textColor="@color/black"-->
|
||||
<!-- android:textStyle="bold"-->
|
||||
<!-- android:layout_weight="1"/>-->
|
||||
|
||||
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/required_width"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/actual_width"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/required_width"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/actual_width"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/difference_width"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/difference_width"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
|
||||
<!-- </LinearLayout>-->
|
||||
<!-- </LinearLayout>-->
|
||||
|
||||
<!-- <LinearLayout-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_margin="16dp"-->
|
||||
<!-- android:orientation="horizontal">-->
|
||||
<!-- <LinearLayout-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_margin="16dp"-->
|
||||
<!-- android:orientation="horizontal">-->
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/drop"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:text="Drop"-->
|
||||
<!-- android:textColor="@color/black"-->
|
||||
<!-- android:textStyle="bold"-->
|
||||
<!-- android:layout_weight="1"/>-->
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/drop"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:text="Drop"-->
|
||||
<!-- android:textColor="@color/black"-->
|
||||
<!-- android:textStyle="bold"-->
|
||||
<!-- android:layout_weight="1"/>-->
|
||||
|
||||
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/required_drop"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/actual_drop"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/required_drop"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/actual_drop"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/difference_drop"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
<!-- <EditText-->
|
||||
<!-- android:id="@+id/difference_drop"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- />-->
|
||||
|
||||
<!-- </LinearLayout>-->
|
||||
<!-- </LinearLayout>-->
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:padding="10dp"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="5dp"
|
||||
android:background="@drawable/box_border"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:orientation="vertical"
|
||||
android:padding="10dp">
|
||||
|
||||
<!-- Text Label -->
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:text="Status"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginBottom="5dp" />
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:padding="10dp"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="10dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/result_status"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="Result Status"
|
||||
android:layout_weight="1"/>
|
||||
android:layout_weight="1"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
android:hint="Result Status" />
|
||||
<!--<Spinner
|
||||
android:id="@+id/result_spinner"
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -348,37 +353,85 @@
|
|||
android:id="@+id/minor_count"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Minor"
|
||||
android:textStyle="bold"
|
||||
android:layout_weight="1"
|
||||
android:textSize="16sp"/>
|
||||
android:text="Minor"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/major_count"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Major"
|
||||
android:textStyle="bold"
|
||||
android:layout_weight="1"
|
||||
android:textSize="16sp"/>
|
||||
android:text="Major"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/critical_count"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Citical"
|
||||
android:textStyle="bold"
|
||||
android:layout_weight="1"
|
||||
android:textSize="16sp"/>
|
||||
android:text="Citical"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:text="Acceptance Criteria"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="3dp"
|
||||
android:paddingTop="10dp"
|
||||
android:weightSum="3"
|
||||
android:paddingBottom="10dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.6"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
android:hint="Accept/Reject" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_major"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="Minor"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_minor"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="Major"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:weightSum="3"
|
||||
android:layout_margin="5dp"
|
||||
android:padding="5dp"
|
||||
android:background="@drawable/box_border"
|
||||
android:orientation="horizontal">
|
||||
android:orientation="horizontal"
|
||||
android:padding="5dp"
|
||||
android:weightSum="3">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -389,18 +442,19 @@
|
|||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:text="Quality Auditor"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold"
|
||||
android:layout_margin="10dp" />
|
||||
android:textStyle="bold" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_quality_auditor"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="Quality Auditor"
|
||||
android:maxLines="1"
|
||||
android:layout_marginHorizontal="10dp"
|
||||
android:inputType="text"/>
|
||||
android:hint="Quality Auditor"
|
||||
android:inputType="text"
|
||||
android:maxLines="1" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
@ -413,18 +467,19 @@
|
|||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:text="Production Representative"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold"
|
||||
android:layout_margin="10dp" />
|
||||
android:textStyle="bold" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_prod_represent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="1"
|
||||
android:hint="Production Representative"
|
||||
android:layout_marginHorizontal="10dp"
|
||||
android:inputType="text"/>
|
||||
android:hint="Production Representative"
|
||||
android:inputType="text"
|
||||
android:maxLines="1" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
@ -437,65 +492,69 @@
|
|||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:text="QC Representative"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold"
|
||||
android:layout_margin="10dp" />
|
||||
android:textStyle="bold" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_qc_represent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="QC Representative"
|
||||
android:maxLines="1"
|
||||
android:layout_marginHorizontal="10dp"
|
||||
android:inputType="text"/>
|
||||
android:hint="QC Representative"
|
||||
android:inputType="text"
|
||||
android:maxLines="1" />
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="5dp"
|
||||
android:padding="5dp"
|
||||
android:background="@drawable/box_border"
|
||||
android:layout_height="wrap_content">
|
||||
android:orientation="vertical"
|
||||
android:padding="5dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="5dp"
|
||||
android:text="General Remarks"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold"
|
||||
android:layout_margin="5dp" />
|
||||
android:textStyle="bold" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/general_remarks"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="General Remarks"
|
||||
android:layout_marginHorizontal="10dp"
|
||||
android:inputType="text"/>
|
||||
android:hint="General Remarks"
|
||||
android:inputType="text" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Vocs"
|
||||
android:layout_margin="16dp"
|
||||
android:layout_weight="1"
|
||||
android:text="Vocs"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold"
|
||||
android:textSize="20sp"
|
||||
android:layout_weight="1"/>
|
||||
<!-- <Spinner-->
|
||||
<!-- android:id="@+id/result_spinner"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- >-->
|
||||
<!-- </Spinner>-->
|
||||
android:textStyle="bold" />
|
||||
<!-- <Spinner-->
|
||||
<!-- android:id="@+id/result_spinner"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- >-->
|
||||
<!-- </Spinner>-->
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
@ -507,10 +566,10 @@
|
|||
|
||||
</androidx.recyclerview.widget.RecyclerView>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<RelativeLayout
|
||||
|
@ -527,10 +586,10 @@
|
|||
android:id="@+id/button_right_frag_3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:backgroundTint="@color/light_blue"
|
||||
android:text="Submit" />
|
||||
|
||||
|
@ -538,10 +597,10 @@
|
|||
android:id="@+id/button_draft_third"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toStartOf="@+id/button_right_frag_3"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:layout_toStartOf="@+id/button_right_frag_3"
|
||||
android:text="Draft" />
|
||||
|
||||
<Button
|
||||
|
|
Loading…
Reference in New Issue