Integrate Daily Wage Worker Info API
parent
d45e457efb
commit
b08932e0f6
|
@ -1,6 +1,5 @@
|
|||
package com.utopiaindustries.hseobservationsapp.activities.InjuryRecordForms;
|
||||
|
||||
import android.app.DatePickerDialog;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.graphics.Color;
|
||||
|
@ -10,11 +9,12 @@ import android.util.Log;
|
|||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.AutoCompleteTextView;
|
||||
import android.widget.Button;
|
||||
import android.widget.DatePicker;
|
||||
import android.widget.EditText;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.RadioButton;
|
||||
import android.widget.RadioGroup;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
|
@ -27,17 +27,10 @@ import androidx.core.view.WindowInsetsCompat;
|
|||
import androidx.lifecycle.ViewModelProvider;
|
||||
|
||||
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.StorageManager.StorageManager;
|
||||
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 {
|
||||
|
||||
Button btnNext, btnFetch;
|
||||
|
@ -45,6 +38,14 @@ public class InjuryFormOne extends AppCompatActivity {
|
|||
EditText etEmpId, etEmployeeName, etEmployeeDesignation, etEmployeeTenure, etDate, etEmployeeType;
|
||||
ImageView imgBack;
|
||||
|
||||
RadioGroup rg1;
|
||||
RadioButton rbEmployee, rbDailyWage;
|
||||
|
||||
LinearLayout layoutEmployeeInfo, layoutDailyWageInfo;
|
||||
EditText etLocationSite, etCnic, etContractorName, etDivision, etName;
|
||||
TextView txtEmployeeHeading;
|
||||
String workerType = "";
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
@ -68,11 +69,21 @@ public class InjuryFormOne extends AppCompatActivity {
|
|||
btnFetch.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (etEmpId.getText().toString().isEmpty()) {
|
||||
Toast.makeText(InjuryFormOne.this, "Please enter employee id", Toast.LENGTH_SHORT).show();
|
||||
return;
|
||||
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());
|
||||
}
|
||||
loginViewModel.getEmployeeData(etEmpId.getText().toString());
|
||||
else {
|
||||
if (etEmpId.getText().toString().isEmpty()) {
|
||||
Toast.makeText(InjuryFormOne.this, "Please enter employee id", Toast.LENGTH_SHORT).show();
|
||||
return;
|
||||
}
|
||||
loginViewModel.getEmployeeData(etEmpId.getText().toString());
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -134,6 +162,16 @@ public class InjuryFormOne extends AppCompatActivity {
|
|||
btnNext = findViewById(R.id.btn_next);
|
||||
btnFetch = findViewById(R.id.btn_fetch);
|
||||
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);
|
||||
etEmployeeDesignation = findViewById(R.id.et_employee_designation);
|
||||
etEmployeeTenure = findViewById(R.id.et_employee_tenure);
|
||||
|
@ -141,6 +179,16 @@ public class InjuryFormOne extends AppCompatActivity {
|
|||
etEmployeeType = findViewById(R.id.et_employee_type);
|
||||
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.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
|
||||
|
@ -197,7 +256,7 @@ public class InjuryFormOne extends AppCompatActivity {
|
|||
String message = "";
|
||||
|
||||
if (etEmpId.getText().toString().isEmpty()) {
|
||||
message = "Employee ID is required.";
|
||||
message = "ID is required.";
|
||||
returnValue = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
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.HseResponse;
|
||||
import com.utopiaindustries.hseobservationsapp.models.HseData.HseSaveResponse;
|
||||
|
@ -21,6 +22,11 @@ public interface ApiService {
|
|||
@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")
|
||||
Call<HseSaveResponse> saveHseReport(
|
||||
@Body HseReportRequest request
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
|
@ -9,6 +9,7 @@ import androidx.lifecycle.ViewModel;
|
|||
|
||||
import com.utopiaindustries.hseobservationsapp.apiservice.ApiService;
|
||||
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.HseResponse;
|
||||
import com.utopiaindustries.hseobservationsapp.models.HseData.HseSaveResponse;
|
||||
|
@ -23,6 +24,7 @@ import retrofit2.http.PUT;
|
|||
public class LoginViewModel extends ViewModel {
|
||||
|
||||
private MutableLiveData<EmployeeInfoResponse> employeeLiveData;
|
||||
private MutableLiveData<DailyWageResponse> dailyWageLiveData;
|
||||
private MutableLiveData<HseResponse> userLiveData;
|
||||
private MutableLiveData<HseSaveResponse> userSaveLiveData;
|
||||
private MutableLiveData<Boolean> userLoginLiveData;
|
||||
|
@ -34,6 +36,7 @@ public class LoginViewModel extends ViewModel {
|
|||
apiService = ApiServiceFactory.getApiService();
|
||||
userLiveData = new MutableLiveData<>();
|
||||
employeeLiveData = new MutableLiveData<>();
|
||||
dailyWageLiveData = new MutableLiveData<>();
|
||||
userSaveLiveData = new MutableLiveData<>();
|
||||
userLoginLiveData = new MutableLiveData<>();
|
||||
errorLiveData = new MutableLiveData<>();
|
||||
|
@ -45,6 +48,11 @@ public class LoginViewModel extends ViewModel {
|
|||
return employeeLiveData;
|
||||
}
|
||||
|
||||
public LiveData<DailyWageResponse> getDailyWageLiveData()
|
||||
{
|
||||
return dailyWageLiveData;
|
||||
}
|
||||
|
||||
public LiveData<HseResponse> getUserLiveData() {
|
||||
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() {
|
||||
isLoading.setValue(true);
|
||||
apiService.getHseData().enqueue(new Callback<HseResponse>() {
|
||||
|
|
|
@ -41,219 +41,391 @@
|
|||
app:layout_constraintTop_toTopOf="@+id/toolbar"
|
||||
app:srcCompat="@drawable/arrow_back" />
|
||||
|
||||
<ScrollView
|
||||
android:id="@+id/scrollView2"
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_employee"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/btn_next"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="5dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/toolbar">
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/rg1"
|
||||
android:layout_width="match_parent"
|
||||
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: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
|
||||
android:id="@+id/txt_employee_heading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="left"
|
||||
android:padding="5dp"
|
||||
android:text="Employee ID Number *"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/_13sdp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:padding="5dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="left"
|
||||
android:padding="5dp"
|
||||
android:text="Employee ID Number *"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/_13sdp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:weightSum="1"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_employee_id_number"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="0.5"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:background="@drawable/et_border"
|
||||
android:hint="Employees ID Number"
|
||||
android:imeOptions="actionDone"
|
||||
android:inputType="number"
|
||||
android:padding="13dp"
|
||||
android:textSize="@dimen/_12sdp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_fetch"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.5"
|
||||
android:textSize="@dimen/_12sdp"
|
||||
android:text="Fetch Emp Data"
|
||||
android:textColor="@color/white"
|
||||
android:background="@drawable/rounded_btn_login" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/heading_description"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="left"
|
||||
android:padding="5dp"
|
||||
android:text="Employee Name "
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/_13sdp"
|
||||
android:textStyle="bold" />
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="1">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_employee_name"
|
||||
android:layout_width="match_parent"
|
||||
android:id="@+id/et_employee_id_number"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_weight="0.5"
|
||||
android:background="@drawable/et_border"
|
||||
android:hint="No Of Employees"
|
||||
android:hint="ID Number"
|
||||
android:imeOptions="actionDone"
|
||||
android:inputType="text"
|
||||
android:enabled="false"
|
||||
android:inputType="number"
|
||||
android:padding="13dp"
|
||||
android:textSize="@dimen/_12sdp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
<Button
|
||||
android:id="@+id/btn_fetch"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="left"
|
||||
android:padding="5dp"
|
||||
android:text="Employee Type "
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/_13sdp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_employee_type"
|
||||
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:hint="Employee Type"
|
||||
android:imeOptions="actionDone"
|
||||
android:inputType="text"
|
||||
android:enabled="false"
|
||||
android:padding="13dp"
|
||||
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
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="left"
|
||||
android:padding="5dp"
|
||||
android:text="Designation of the Employee "
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/_13sdp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_employee_designation"
|
||||
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:hint="Employee Designation"
|
||||
android:imeOptions="actionDone"
|
||||
android:inputType="text"
|
||||
android:enabled="false"
|
||||
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="Date Of Joining "
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/_13sdp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_date"
|
||||
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:hint="Employee Designation"
|
||||
android:imeOptions="actionDone"
|
||||
android:inputType="text"
|
||||
android:enabled="false"
|
||||
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="Employee Tenure(Months) "
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/_13sdp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_employee_tenure"
|
||||
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:hint="Employee Tenure"
|
||||
android:imeOptions="actionDone"
|
||||
android:inputType="text"
|
||||
android:enabled="false"
|
||||
android:padding="13dp"
|
||||
android:layout_weight="0.5"
|
||||
android:background="@drawable/rounded_btn_login"
|
||||
android:text="Fetch Emp Data"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/_12sdp" />
|
||||
|
||||
</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
|
||||
android:id="@+id/heading_description"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="left"
|
||||
android:padding="5dp"
|
||||
android:text="Employee Name "
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/_13sdp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_employee_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="No Of Employees"
|
||||
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="Employee Type "
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/_13sdp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_employee_type"
|
||||
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 Type"
|
||||
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="Designation of the Employee "
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/_13sdp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_employee_designation"
|
||||
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" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="left"
|
||||
android:padding="5dp"
|
||||
android:text="Date Of Joining "
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/_13sdp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_date"
|
||||
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" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="left"
|
||||
android:padding="5dp"
|
||||
android:text="Employee Tenure(Months) "
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/_13sdp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_employee_tenure"
|
||||
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 Tenure"
|
||||
android:imeOptions="actionDone"
|
||||
android:inputType="text"
|
||||
android:padding="13dp"
|
||||
android:textSize="@dimen/_12sdp" />
|
||||
|
||||
</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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue