Integrate Daily Wage Worker Info API

master
saad.siddiq 2025-05-26 12:16:12 +05:00
parent d45e457efb
commit b08932e0f6
5 changed files with 542 additions and 209 deletions

View File

@ -1,6 +1,5 @@
package com.utopiaindustries.hseobservationsapp.activities.InjuryRecordForms; package com.utopiaindustries.hseobservationsapp.activities.InjuryRecordForms;
import android.app.DatePickerDialog;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.graphics.Color; import android.graphics.Color;
@ -10,11 +9,12 @@ import android.util.Log;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.widget.AutoCompleteTextView;
import android.widget.Button; import android.widget.Button;
import android.widget.DatePicker;
import android.widget.EditText; import android.widget.EditText;
import android.widget.ImageView; import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
@ -27,17 +27,10 @@ import androidx.core.view.WindowInsetsCompat;
import androidx.lifecycle.ViewModelProvider; import androidx.lifecycle.ViewModelProvider;
import com.utopiaindustries.hseobservationsapp.R; import com.utopiaindustries.hseobservationsapp.R;
import com.utopiaindustries.hseobservationsapp.adapters.ShiftAdapter;
import com.utopiaindustries.hseobservationsapp.models.HseData.Shift;
import com.utopiaindustries.hseobservationsapp.utils.ProgressDialogFragment; import com.utopiaindustries.hseobservationsapp.utils.ProgressDialogFragment;
import com.utopiaindustries.hseobservationsapp.utils.StorageManager.StorageManager; import com.utopiaindustries.hseobservationsapp.utils.StorageManager.StorageManager;
import com.utopiaindustries.hseobservationsapp.viewmodels.LoginViewModel; import com.utopiaindustries.hseobservationsapp.viewmodels.LoginViewModel;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Locale;
public class InjuryFormOne extends AppCompatActivity { public class InjuryFormOne extends AppCompatActivity {
Button btnNext, btnFetch; Button btnNext, btnFetch;
@ -45,6 +38,14 @@ public class InjuryFormOne extends AppCompatActivity {
EditText etEmpId, etEmployeeName, etEmployeeDesignation, etEmployeeTenure, etDate, etEmployeeType; EditText etEmpId, etEmployeeName, etEmployeeDesignation, etEmployeeTenure, etDate, etEmployeeType;
ImageView imgBack; ImageView imgBack;
RadioGroup rg1;
RadioButton rbEmployee, rbDailyWage;
LinearLayout layoutEmployeeInfo, layoutDailyWageInfo;
EditText etLocationSite, etCnic, etContractorName, etDivision, etName;
TextView txtEmployeeHeading;
String workerType = "";
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
@ -68,12 +69,22 @@ public class InjuryFormOne extends AppCompatActivity {
btnFetch.setOnClickListener(new View.OnClickListener() { btnFetch.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
if (workerType.equalsIgnoreCase("Visitor")) {
if (etEmpId.getText().toString().isEmpty()) {
Toast.makeText(InjuryFormOne.this, "Please enter visitor id", Toast.LENGTH_SHORT).show();
return;
}
loginViewModel.getDailyWageWorkerData(etEmpId.getText().toString());
}
else {
if (etEmpId.getText().toString().isEmpty()) { if (etEmpId.getText().toString().isEmpty()) {
Toast.makeText(InjuryFormOne.this, "Please enter employee id", Toast.LENGTH_SHORT).show(); Toast.makeText(InjuryFormOne.this, "Please enter employee id", Toast.LENGTH_SHORT).show();
return; return;
} }
loginViewModel.getEmployeeData(etEmpId.getText().toString()); loginViewModel.getEmployeeData(etEmpId.getText().toString());
} }
}
}); });
btnNext.setOnClickListener(new View.OnClickListener() { btnNext.setOnClickListener(new View.OnClickListener() {
@ -87,6 +98,23 @@ public class InjuryFormOne extends AppCompatActivity {
} }
}); });
rg1.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener()
{
public void onCheckedChanged(RadioGroup group, int checkedId) {
if (checkedId == R.id.rb_employee) {
layoutEmployeeInfo.setVisibility(View.VISIBLE);
layoutDailyWageInfo.setVisibility(View.GONE);
txtEmployeeHeading.setText("Employee ID Number *");
workerType = "Employee";
} else if (checkedId == R.id.rb_dailyWage) {
layoutEmployeeInfo.setVisibility(View.GONE);
layoutDailyWageInfo.setVisibility(View.VISIBLE);
txtEmployeeHeading.setText("Visitor ID *");
workerType = "Visitor";
}
}
});
} }
public void alertExit(Context con) { public void alertExit(Context con) {
@ -134,6 +162,16 @@ public class InjuryFormOne extends AppCompatActivity {
btnNext = findViewById(R.id.btn_next); btnNext = findViewById(R.id.btn_next);
btnFetch = findViewById(R.id.btn_fetch); btnFetch = findViewById(R.id.btn_fetch);
etEmpId = findViewById(R.id.et_employee_id_number); etEmpId = findViewById(R.id.et_employee_id_number);
layoutEmployeeInfo = findViewById(R.id.layout_employee_info);
layoutDailyWageInfo = findViewById(R.id.layout_dailyWage_info);
layoutEmployeeInfo.setVisibility(View.VISIBLE);
layoutDailyWageInfo.setVisibility(View.GONE);
workerType = "Employee";
txtEmployeeHeading = findViewById(R.id.txt_employee_heading);
etEmployeeName = findViewById(R.id.et_employee_name); etEmployeeName = findViewById(R.id.et_employee_name);
etEmployeeDesignation = findViewById(R.id.et_employee_designation); etEmployeeDesignation = findViewById(R.id.et_employee_designation);
etEmployeeTenure = findViewById(R.id.et_employee_tenure); etEmployeeTenure = findViewById(R.id.et_employee_tenure);
@ -141,6 +179,16 @@ public class InjuryFormOne extends AppCompatActivity {
etEmployeeType = findViewById(R.id.et_employee_type); etEmployeeType = findViewById(R.id.et_employee_type);
etDate = findViewById(R.id.et_date); etDate = findViewById(R.id.et_date);
etLocationSite = findViewById(R.id.et_location_site);
etCnic = findViewById(R.id.et_cnic);
etContractorName = findViewById(R.id.et_contractor_name);
etDivision = findViewById(R.id.et_division);
etName = findViewById(R.id.et_name);
rg1 = findViewById(R.id.rg1);
rbEmployee = findViewById(R.id.rb_employee);
rbDailyWage = findViewById(R.id.rb_dailyWage);
loginViewModel = new ViewModelProvider(this).get(LoginViewModel.class); loginViewModel = new ViewModelProvider(this).get(LoginViewModel.class);
loginViewModel.getLoadingState().observe(this, isLoading -> { loginViewModel.getLoadingState().observe(this, isLoading -> {
@ -168,6 +216,17 @@ public class InjuryFormOne extends AppCompatActivity {
} }
}); });
loginViewModel.getDailyWageLiveData().observe(this, dailyWageInfoResponse -> {
if (dailyWageInfoResponse != null) {
Log.e("Daily-Wage-Info: ",""+dailyWageInfoResponse.toString());
etName.setText(dailyWageInfoResponse.getName());
etLocationSite.setText(dailyWageInfoResponse.getLocationSite());
etCnic.setText(dailyWageInfoResponse.getCnic());
etContractorName.setText(dailyWageInfoResponse.getContractorName());
etDivision.setText(dailyWageInfoResponse.getDivisionDepartment());
}
});
} }
@Override @Override
@ -197,7 +256,7 @@ public class InjuryFormOne extends AppCompatActivity {
String message = ""; String message = "";
if (etEmpId.getText().toString().isEmpty()) { if (etEmpId.getText().toString().isEmpty()) {
message = "Employee ID is required."; message = "ID is required.";
returnValue = false; returnValue = false;
} }

View File

@ -1,5 +1,6 @@
package com.utopiaindustries.hseobservationsapp.apiservice; package com.utopiaindustries.hseobservationsapp.apiservice;
import com.utopiaindustries.hseobservationsapp.models.HseData.DailyWageResponse;
import com.utopiaindustries.hseobservationsapp.models.HseData.EmployeeInfoResponse; import com.utopiaindustries.hseobservationsapp.models.HseData.EmployeeInfoResponse;
import com.utopiaindustries.hseobservationsapp.models.HseData.HseResponse; import com.utopiaindustries.hseobservationsapp.models.HseData.HseResponse;
import com.utopiaindustries.hseobservationsapp.models.HseData.HseSaveResponse; import com.utopiaindustries.hseobservationsapp.models.HseData.HseSaveResponse;
@ -21,6 +22,11 @@ public interface ApiService {
@Query("employee-id") String empId @Query("employee-id") String empId
); );
@GET("rest/uic/hse/get-daily-wages-contractor-data-by-visit-id")
Call<DailyWageResponse> getDailyWageData(
@Query("visit-id") String visitorId
);
@POST("rest/uic/hse/save-hse-report") @POST("rest/uic/hse/save-hse-report")
Call<HseSaveResponse> saveHseReport( Call<HseSaveResponse> saveHseReport(
@Body HseReportRequest request @Body HseReportRequest request

View File

@ -0,0 +1,65 @@
package com.utopiaindustries.hseobservationsapp.models.HseData;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class DailyWageResponse {
@SerializedName("Location-Site")
@Expose
private String locationSite;
@SerializedName("Cnic")
@Expose
private String cnic;
@SerializedName("Contractor-Name")
@Expose
private String contractorName;
@SerializedName("Division-Department")
@Expose
private String divisionDepartment;
@SerializedName("Name")
@Expose
private String name;
public String getLocationSite() {
return locationSite;
}
public void setLocationSite(String locationSite) {
this.locationSite = locationSite;
}
public String getCnic() {
return cnic;
}
public void setCnic(String cnic) {
this.cnic = cnic;
}
public String getContractorName() {
return contractorName;
}
public void setContractorName(String contractorName) {
this.contractorName = contractorName;
}
public String getDivisionDepartment() {
return divisionDepartment;
}
public void setDivisionDepartment(String divisionDepartment) {
this.divisionDepartment = divisionDepartment;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}

View File

@ -9,6 +9,7 @@ import androidx.lifecycle.ViewModel;
import com.utopiaindustries.hseobservationsapp.apiservice.ApiService; import com.utopiaindustries.hseobservationsapp.apiservice.ApiService;
import com.utopiaindustries.hseobservationsapp.apiservice.ApiServiceFactory; import com.utopiaindustries.hseobservationsapp.apiservice.ApiServiceFactory;
import com.utopiaindustries.hseobservationsapp.models.HseData.DailyWageResponse;
import com.utopiaindustries.hseobservationsapp.models.HseData.EmployeeInfoResponse; import com.utopiaindustries.hseobservationsapp.models.HseData.EmployeeInfoResponse;
import com.utopiaindustries.hseobservationsapp.models.HseData.HseResponse; import com.utopiaindustries.hseobservationsapp.models.HseData.HseResponse;
import com.utopiaindustries.hseobservationsapp.models.HseData.HseSaveResponse; import com.utopiaindustries.hseobservationsapp.models.HseData.HseSaveResponse;
@ -23,6 +24,7 @@ import retrofit2.http.PUT;
public class LoginViewModel extends ViewModel { public class LoginViewModel extends ViewModel {
private MutableLiveData<EmployeeInfoResponse> employeeLiveData; private MutableLiveData<EmployeeInfoResponse> employeeLiveData;
private MutableLiveData<DailyWageResponse> dailyWageLiveData;
private MutableLiveData<HseResponse> userLiveData; private MutableLiveData<HseResponse> userLiveData;
private MutableLiveData<HseSaveResponse> userSaveLiveData; private MutableLiveData<HseSaveResponse> userSaveLiveData;
private MutableLiveData<Boolean> userLoginLiveData; private MutableLiveData<Boolean> userLoginLiveData;
@ -34,6 +36,7 @@ public class LoginViewModel extends ViewModel {
apiService = ApiServiceFactory.getApiService(); apiService = ApiServiceFactory.getApiService();
userLiveData = new MutableLiveData<>(); userLiveData = new MutableLiveData<>();
employeeLiveData = new MutableLiveData<>(); employeeLiveData = new MutableLiveData<>();
dailyWageLiveData = new MutableLiveData<>();
userSaveLiveData = new MutableLiveData<>(); userSaveLiveData = new MutableLiveData<>();
userLoginLiveData = new MutableLiveData<>(); userLoginLiveData = new MutableLiveData<>();
errorLiveData = new MutableLiveData<>(); errorLiveData = new MutableLiveData<>();
@ -45,6 +48,11 @@ public class LoginViewModel extends ViewModel {
return employeeLiveData; return employeeLiveData;
} }
public LiveData<DailyWageResponse> getDailyWageLiveData()
{
return dailyWageLiveData;
}
public LiveData<HseResponse> getUserLiveData() { public LiveData<HseResponse> getUserLiveData() {
return userLiveData; return userLiveData;
} }
@ -109,6 +117,29 @@ public class LoginViewModel extends ViewModel {
}); });
} }
public void getDailyWageWorkerData(String visitorId) {
isLoading.setValue(true);
apiService.getDailyWageData(visitorId).enqueue(new Callback<DailyWageResponse>() {
@Override
public void onResponse(Call<DailyWageResponse> call, Response<DailyWageResponse> response) {
isLoading.setValue(false);
if (response.isSuccessful() && response.body() != null) {
//Log.e("onResponse: ", "Successful");
dailyWageLiveData.setValue(response.body());
} else {
errorLiveData.setValue(response.message());
}
}
@Override
public void onFailure(Call<DailyWageResponse> call, Throwable t) {
//Log.e("onResponse: ", "Fail");
isLoading.setValue(false);
errorLiveData.setValue(t.getMessage());
}
});
}
public void getHSEData() { public void getHSEData() {
isLoading.setValue(true); isLoading.setValue(true);
apiService.getHseData().enqueue(new Callback<HseResponse>() { apiService.getHseData().enqueue(new Callback<HseResponse>() {

View File

@ -41,22 +41,51 @@
app:layout_constraintTop_toTopOf="@+id/toolbar" app:layout_constraintTop_toTopOf="@+id/toolbar"
app:srcCompat="@drawable/arrow_back" /> app:srcCompat="@drawable/arrow_back" />
<ScrollView <LinearLayout
android:id="@+id/scrollView2" android:id="@+id/layout_employee"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="@+id/btn_next" android:layout_marginStart="5dp"
android:layout_marginTop="5dp"
android:layout_marginEnd="5dp"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toolbar"> app:layout_constraintTop_toBottomOf="@+id/toolbar">
<LinearLayout <RadioGroup
android:id="@+id/rg1"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="wrap_content"
android:gravity="left"
android:weightSum="2"
android:orientation="horizontal"
android:padding="5dp">
<RadioButton
android:id="@+id/rb_employee"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:buttonTint="@color/theme_color"
android:padding="5dp" android:padding="5dp"
android:orientation="vertical"> android:checked="true"
android:text="Employee"
android:textSize="@dimen/_12sdp" />
<RadioButton
android:id="@+id/rb_dailyWage"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:buttonTint="@color/theme_color"
android:padding="5dp"
android:text="Daily Wage Worker"
android:textSize="@dimen/_12sdp" />
</RadioGroup>
<TextView <TextView
android:id="@+id/txt_employee_heading"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
@ -70,19 +99,19 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:weightSum="1"
android:layout_marginLeft="10dp" android:layout_marginLeft="10dp"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:orientation="horizontal"> android:orientation="horizontal"
android:weightSum="1">
<EditText <EditText
android:id="@+id/et_employee_id_number" android:id="@+id/et_employee_id_number"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_weight="0.5"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="10dp" android:layout_marginEnd="10dp"
android:layout_weight="0.5"
android:background="@drawable/et_border" android:background="@drawable/et_border"
android:hint="Employees ID Number" android:hint="ID Number"
android:imeOptions="actionDone" android:imeOptions="actionDone"
android:inputType="number" android:inputType="number"
android:padding="13dp" android:padding="13dp"
@ -93,14 +122,36 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0.5" android:layout_weight="0.5"
android:textSize="@dimen/_12sdp" android:background="@drawable/rounded_btn_login"
android:text="Fetch Emp Data" android:text="Fetch Emp Data"
android:textColor="@color/white" android:textColor="@color/white"
android:background="@drawable/rounded_btn_login" /> android:textSize="@dimen/_12sdp" />
</LinearLayout> </LinearLayout>
</LinearLayout>
<ScrollView
android:id="@+id/scrollView2"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="5dp"
app:layout_constraintBottom_toTopOf="@+id/btn_next"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/layout_employee">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="0dp"
android:padding="5dp">
<LinearLayout
android:id="@+id/layout_employee_info"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone"
android:padding="5dp">
<TextView <TextView
android:id="@+id/heading_description" android:id="@+id/heading_description"
@ -122,10 +173,10 @@
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:background="@drawable/et_border" android:background="@drawable/et_border"
android:enabled="false"
android:hint="No Of Employees" android:hint="No Of Employees"
android:imeOptions="actionDone" android:imeOptions="actionDone"
android:inputType="text" android:inputType="text"
android:enabled="false"
android:padding="13dp" android:padding="13dp"
android:textSize="@dimen/_12sdp" /> android:textSize="@dimen/_12sdp" />
@ -148,33 +199,13 @@
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:background="@drawable/et_border" android:background="@drawable/et_border"
android:enabled="false"
android:hint="Employee Type" android:hint="Employee Type"
android:imeOptions="actionDone" android:imeOptions="actionDone"
android:inputType="text" android:inputType="text"
android:enabled="false"
android:padding="13dp" android:padding="13dp"
android:textSize="@dimen/_12sdp" /> android:textSize="@dimen/_12sdp" />
<!--<com.google.android.material.textfield.TextInputLayout
android:id="@+id/safety_input"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:hint="@string/select_employee_type"
android:padding="2dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<AutoCompleteTextView
android:id="@+id/employee_type_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="none"
android:textSize="@dimen/_12sdp" />
</com.google.android.material.textfield.TextInputLayout>-->
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -194,10 +225,10 @@
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:background="@drawable/et_border" android:background="@drawable/et_border"
android:enabled="false"
android:hint="Employee Designation" android:hint="Employee Designation"
android:imeOptions="actionDone" android:imeOptions="actionDone"
android:inputType="text" android:inputType="text"
android:enabled="false"
android:padding="13dp" android:padding="13dp"
android:textSize="@dimen/_12sdp" /> android:textSize="@dimen/_12sdp" />
@ -220,10 +251,10 @@
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:background="@drawable/et_border" android:background="@drawable/et_border"
android:enabled="false"
android:hint="Employee Designation" android:hint="Employee Designation"
android:imeOptions="actionDone" android:imeOptions="actionDone"
android:inputType="text" android:inputType="text"
android:enabled="false"
android:padding="13dp" android:padding="13dp"
android:textSize="@dimen/_12sdp" /> android:textSize="@dimen/_12sdp" />
@ -246,15 +277,156 @@
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:background="@drawable/et_border" android:background="@drawable/et_border"
android:enabled="false"
android:hint="Employee Tenure" android:hint="Employee Tenure"
android:imeOptions="actionDone" android:imeOptions="actionDone"
android:inputType="text" android:inputType="text"
android:enabled="false"
android:padding="13dp" android:padding="13dp"
android:textSize="@dimen/_12sdp" /> android:textSize="@dimen/_12sdp" />
</LinearLayout> </LinearLayout>
<LinearLayout
android:id="@+id/layout_dailyWage_info"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone"
android:padding="5dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:gravity="left"
android:padding="5dp"
android:text="Name "
android:textColor="@color/black"
android:textSize="@dimen/_13sdp"
android:textStyle="bold" />
<EditText
android:id="@+id/et_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:layout_marginRight="10dp"
android:background="@drawable/et_border"
android:enabled="false"
android:hint="Name"
android:imeOptions="actionDone"
android:inputType="text"
android:padding="13dp"
android:textSize="@dimen/_12sdp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:gravity="left"
android:padding="5dp"
android:text="Location Site "
android:textColor="@color/black"
android:textSize="@dimen/_13sdp"
android:textStyle="bold" />
<EditText
android:id="@+id/et_location_site"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:layout_marginRight="10dp"
android:background="@drawable/et_border"
android:enabled="false"
android:hint="Location Site"
android:imeOptions="actionDone"
android:inputType="text"
android:padding="13dp"
android:textSize="@dimen/_12sdp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:gravity="left"
android:padding="5dp"
android:text="CNIC Number "
android:textColor="@color/black"
android:textSize="@dimen/_13sdp"
android:textStyle="bold" />
<EditText
android:id="@+id/et_cnic"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:layout_marginRight="10dp"
android:background="@drawable/et_border"
android:enabled="false"
android:hint="CNIC Number"
android:imeOptions="actionDone"
android:inputType="text"
android:padding="13dp"
android:textSize="@dimen/_12sdp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:gravity="left"
android:padding="5dp"
android:text="Contractor Name "
android:textColor="@color/black"
android:textSize="@dimen/_13sdp"
android:textStyle="bold" />
<EditText
android:id="@+id/et_contractor_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:layout_marginRight="10dp"
android:background="@drawable/et_border"
android:enabled="false"
android:hint="Contractor Name"
android:imeOptions="actionDone"
android:inputType="text"
android:padding="13dp"
android:textSize="@dimen/_12sdp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:gravity="left"
android:padding="5dp"
android:text="Division/Department "
android:textColor="@color/black"
android:textSize="@dimen/_13sdp"
android:textStyle="bold" />
<EditText
android:id="@+id/et_division"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:layout_marginRight="10dp"
android:background="@drawable/et_border"
android:enabled="false"
android:hint="Employee Designation"
android:imeOptions="actionDone"
android:inputType="text"
android:padding="13dp"
android:textSize="@dimen/_12sdp" />
</LinearLayout>
</RelativeLayout>
</ScrollView> </ScrollView>
<Button <Button