- ShiftRepository에 getSaturdayOvertimeHours() 메소드 추가 - FragmentSettingsLab에 토요일 연장근무 시간 표시 카드 추가 - 토요일 수 * 2시간 계산 로직 구현 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
187 lines
6.8 KiB
XML
187 lines
6.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:padding="16dp"
|
|
android:gravity="center_horizontal">
|
|
|
|
<!-- Header Title -->
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="나의 연차 설정"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/text_primary"
|
|
android:layout_marginBottom="24dp"/>
|
|
|
|
<!-- Total Annual Leave Setting -->
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="2dp"
|
|
app:cardBackgroundColor="@color/surface">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:padding="16dp"
|
|
android:gravity="center_vertical">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="총 연차"
|
|
android:textSize="14sp"
|
|
android:textColor="@color/text_secondary"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical">
|
|
|
|
<Spinner
|
|
android:id="@+id/spinnerTotalDays"
|
|
android:layout_width="80dp"
|
|
android:layout_height="48dp"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="일"
|
|
android:textSize="14sp"
|
|
android:textColor="@color/text_tertiary"
|
|
android:layout_marginStart="4dp"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<!-- Remaining Annual Leave Display -->
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="2dp"
|
|
app:cardBackgroundColor="@color/surface">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:padding="16dp"
|
|
android:gravity="center_vertical">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="남은 연차"
|
|
android:textSize="14sp"
|
|
android:textColor="@color/text_secondary"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="bottom">
|
|
|
|
<TextView
|
|
android:id="@+id/tvRemainingDays"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="15"
|
|
android:textSize="28sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/primary"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="일"
|
|
android:textSize="14sp"
|
|
android:textColor="@color/text_tertiary"
|
|
android:layout_marginStart="4dp"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<!-- Calculation Info -->
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="※ 연차: -1일 / 반년: -0.5일 차감"
|
|
android:textSize="12sp"
|
|
android:textColor="@color/text_tertiary"
|
|
android:layout_marginBottom="8dp"
|
|
android:gravity="center"/>
|
|
|
|
<!-- Saturday Overtime Display -->
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="2dp"
|
|
app:cardBackgroundColor="@color/surface">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:padding="16dp"
|
|
android:gravity="center_vertical">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="토요일 연장근무"
|
|
android:textSize="14sp"
|
|
android:textColor="@color/text_secondary"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="bottom">
|
|
|
|
<TextView
|
|
android:id="@+id/tvSaturdayOvertime"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="0"
|
|
android:textSize="28sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/shift_red"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="시간"
|
|
android:textSize="14sp"
|
|
android:textColor="@color/text_tertiary"
|
|
android:layout_marginStart="4dp"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<!-- Calculation Info -->
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="※ 토요일 근무: 1일당 2시간 연장근무 계산"
|
|
android:textSize="12sp"
|
|
android:textColor="@color/text_tertiary"
|
|
android:layout_marginBottom="8dp"
|
|
android:gravity="center"/>
|
|
|
|
</LinearLayout>
|