Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TangKuPos
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王海
TangKuPos
Commits
244d63f4
Commit
244d63f4
authored
Jan 12, 2018
by
陈前
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI
parent
1327fd99
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
56 additions
and
21 deletions
+56
-21
app/src/main/java/com/xingdata/zzdpos/ui/main/MainActivity.java
...c/main/java/com/xingdata/zzdpos/ui/main/MainActivity.java
+7
-1
app/src/main/java/com/xingdata/zzdpos/ui/statistics/fragment/StatisticsTitleFragment.java
...zdpos/ui/statistics/fragment/StatisticsTitleFragment.java
+10
-1
app/src/main/res/layout/fragment_casher.xml
app/src/main/res/layout/fragment_casher.xml
+2
-2
app/src/main/res/layout/fragment_ms_main.xml
app/src/main/res/layout/fragment_ms_main.xml
+5
-0
app/src/main/res/layout/fragment_order_list.xml
app/src/main/res/layout/fragment_order_list.xml
+0
-1
app/src/main/res/layout/fragment_order_main.xml
app/src/main/res/layout/fragment_order_main.xml
+1
-1
app/src/main/res/layout/fragment_order_search.xml
app/src/main/res/layout/fragment_order_search.xml
+0
-2
app/src/main/res/layout/fragment_statistics.xml
app/src/main/res/layout/fragment_statistics.xml
+12
-0
app/src/main/res/layout/fragment_statistics_date.xml
app/src/main/res/layout/fragment_statistics_date.xml
+1
-1
app/src/main/res/layout/fragment_statistics_title.xml
app/src/main/res/layout/fragment_statistics_title.xml
+6
-0
app/src/main/res/layout/item_string_head.xml
app/src/main/res/layout/item_string_head.xml
+12
-12
No files found.
app/src/main/java/com/xingdata/zzdpos/ui/main/MainActivity.java
View file @
244d63f4
...
...
@@ -42,6 +42,7 @@ public class MainActivity extends BaseActivity<MainPresenter, ActivityMainBindin
private
List
<
ItemMenuBottomBinding
>
itemMenuBottomBindings
=
new
ArrayList
<>();
private
HandoverDialog
mHandoverDialog
=
new
HandoverDialog
();
LoadingDialog
mLoadingDialog
=
new
LoadingDialog
();
@Override
public
int
getLayoutId
()
{
return
R
.
layout
.
activity_main
;
...
...
@@ -49,7 +50,7 @@ public class MainActivity extends BaseActivity<MainPresenter, ActivityMainBindin
@Override
public
void
initView
()
{
mainActivity
=
this
;
mainActivity
=
this
;
mPresenter
.
initHandoverInfo
();
List
<
BaseFragment
>
fragments
=
new
ArrayList
<>();
fragments
.
add
(
new
CasherFragment
());
...
...
@@ -163,4 +164,9 @@ public class MainActivity extends BaseActivity<MainPresenter, ActivityMainBindin
public
void
showHandoverDialog
()
{
mHandoverDialog
.
show
(
this
);
}
@Override
public
void
onBackPressedSupport
()
{
}
}
app/src/main/java/com/xingdata/zzdpos/ui/statistics/fragment/StatisticsTitleFragment.java
View file @
244d63f4
...
...
@@ -39,9 +39,10 @@ public class StatisticsTitleFragment extends BaseFragment<StatisticsPresenter, F
@Override
public
void
initView
()
{
mViewBinding
.
viewLine
.
setVisibility
(
View
.
VISIBLE
);
switch
(
fragmentMenu
)
{
case
C
.
MENU
.
MENU_STATISTICS_ORDER
:
mViewBinding
.
viewLine
.
setVisibility
(
View
.
GONE
);
FragmentUtils
.
add
(
getChildFragmentManager
(),
mOrderMainFragment
,
mViewBinding
.
mainFrame
.
getId
(),
false
,
true
);
mViewBinding
.
icTitle
.
edTitle
.
setOnFocusChangeListener
(
new
View
.
OnFocusChangeListener
()
{
...
...
@@ -105,6 +106,7 @@ public class StatisticsTitleFragment extends BaseFragment<StatisticsPresenter, F
break
;
case
C
.
MENU
.
MENU_STATISTICS_MS
:
mViewBinding
.
viewLine
.
setVisibility
(
View
.
GONE
);
FragmentUtils
.
add
(
getChildFragmentManager
(),
mMsMainFragment
,
mViewBinding
.
mainFrame
.
getId
(),
false
,
true
);
mViewBinding
.
icTitle
.
edTitle
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
icTitle
.
tvTitle
.
setText
(
R
.
string
.
menu_ms
);
...
...
@@ -123,6 +125,7 @@ public class StatisticsTitleFragment extends BaseFragment<StatisticsPresenter, F
mViewBinding
.
icTitle
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
protected
void
myOnClickListener
(
View
v
)
{
mViewBinding
.
viewLine
.
setVisibility
(
View
.
GONE
);
if
(
mViewBinding
.
icTitle
.
edTitle
.
isFocused
())
{
mViewBinding
.
icTitle
.
edTitle
.
clearFocus
();
return
;
...
...
@@ -150,6 +153,7 @@ public class StatisticsTitleFragment extends BaseFragment<StatisticsPresenter, F
}
public
void
searchSuc
(
Pager
<
Saleorder
>
saleorderPager
,
int
payType
)
{
mViewBinding
.
viewLine
.
setVisibility
(
View
.
VISIBLE
);
if
(
mViewBinding
.
icTitle
.
edTitle
.
isFocused
())
{
mViewBinding
.
icTitle
.
edTitle
.
clearFocus
();
}
...
...
@@ -163,6 +167,7 @@ public class StatisticsTitleFragment extends BaseFragment<StatisticsPresenter, F
}
public
void
searchSuc
(
Pager
<
Saleorder
>
saleorderPager
,
String
wd
)
{
mViewBinding
.
viewLine
.
setVisibility
(
View
.
VISIBLE
);
if
(
mViewBinding
.
icTitle
.
edTitle
.
isFocused
())
{
mViewBinding
.
icTitle
.
edTitle
.
clearFocus
();
}
...
...
@@ -177,6 +182,7 @@ public class StatisticsTitleFragment extends BaseFragment<StatisticsPresenter, F
}
public
void
searchSuc
(
Pager
<
Saleorder
>
saleorderPager
,
long
start
,
long
end
)
{
mViewBinding
.
viewLine
.
setVisibility
(
View
.
VISIBLE
);
if
(
mViewBinding
.
icTitle
.
edTitle
.
isFocused
())
{
mViewBinding
.
icTitle
.
edTitle
.
clearFocus
();
}
...
...
@@ -191,6 +197,7 @@ public class StatisticsTitleFragment extends BaseFragment<StatisticsPresenter, F
public
void
searchRechargeSuc
(
Pager
<
VipRechargeOrder
>
vipRechargeOrderPager
,
long
start
,
long
end
)
{
mViewBinding
.
viewLine
.
setVisibility
(
View
.
VISIBLE
);
if
(!
mRechargeSearchFragment
.
isAdded
())
{
mRechargeSearchFragment
.
setCreateData
(
vipRechargeOrderPager
,
start
,
end
);
FragmentUtils
.
add
(
getChildFragmentManager
(),
mRechargeSearchFragment
,
mViewBinding
.
mainFrame
.
getId
(),
false
,
true
);
...
...
@@ -201,6 +208,7 @@ public class StatisticsTitleFragment extends BaseFragment<StatisticsPresenter, F
}
public
void
searchTicketSuc
(
Pager
<
Ticket
>
ticketPager
,
long
start
,
long
end
)
{
mViewBinding
.
viewLine
.
setVisibility
(
View
.
VISIBLE
);
if
(!
mTicketSearchFragment
.
isAdded
())
{
mTicketSearchFragment
.
setCreateData
(
ticketPager
,
start
,
end
);
FragmentUtils
.
add
(
getChildFragmentManager
(),
mTicketSearchFragment
,
mViewBinding
.
mainFrame
.
getId
(),
false
,
true
);
...
...
@@ -212,6 +220,7 @@ public class StatisticsTitleFragment extends BaseFragment<StatisticsPresenter, F
@Override
public
boolean
onBackPressedSupport
()
{
mViewBinding
.
viewLine
.
setVisibility
(
View
.
GONE
);
if
(
mViewBinding
.
icTitle
.
edTitle
.
isFocused
())
{
mViewBinding
.
icTitle
.
edTitle
.
clearFocus
();
return
true
;
...
...
app/src/main/res/layout/fragment_casher.xml
View file @
244d63f4
...
...
@@ -84,13 +84,13 @@
<View
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/view_line_L050"
android:background=
"@color/gray_
huanggai
"
android:background=
"@color/gray_
kongming
"
app:layout_constraintTop_toTopOf=
"@id/fragment_casher_recycler"
/>
<View
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/view_line_L050"
android:background=
"@color/gray_
huanggai
"
android:background=
"@color/gray_
kongming
"
app:layout_constraintBottom_toBottomOf=
"@id/fragment_casher_recycler"
/>
</android.support.constraint.ConstraintLayout>
</layout>
\ No newline at end of file
app/src/main/res/layout/fragment_ms_main.xml
View file @
244d63f4
...
...
@@ -41,5 +41,10 @@
</android.support.v4.view.ViewPager>
<View
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/view_line_L050"
android:background=
"@color/gray_huanggai"
app:layout_constraintBottom_toBottomOf=
"@id/tab_layout"
/>
</android.support.constraint.ConstraintLayout>
</layout>
\ No newline at end of file
app/src/main/res/layout/fragment_order_list.xml
View file @
244d63f4
...
...
@@ -80,7 +80,6 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_below=
"@id/ll_title"
android:background=
"@color/white_caocao"
android:gravity=
"center"
android:orientation=
"vertical"
android:visibility=
"gone"
>
...
...
app/src/main/res/layout/fragment_order_main.xml
View file @
244d63f4
...
...
@@ -21,7 +21,7 @@
android:id=
"@+id/tab_layout"
android:layout_width=
"match_parent"
android:layout_height=
"30dp"
android:background=
"@
color/white_caocao
"
android:background=
"@
drawable/singleline_white_gray
"
app:layout_constraintTop_toTopOf=
"parent"
app:tabIndicatorHeight=
"0dp"
app:tabMinWidth=
"100dp"
...
...
app/src/main/res/layout/fragment_order_search.xml
View file @
244d63f4
...
...
@@ -11,12 +11,10 @@
<!-- TODO: Update blank fragmfragment_integral_indexyout -->
<android.support.v4.widget.SwipeRefreshLayout
android:id=
"@+id/srl_product"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:layout_marginTop=
"@dimen/all_padding"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
...
...
app/src/main/res/layout/fragment_statistics.xml
View file @
244d63f4
...
...
@@ -159,5 +159,17 @@
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"@id/guideline"
/>
<View
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/view_line_L050"
android:background=
"@color/gray_kongming"
app:layout_constraintTop_toTopOf=
"@id/fragment_casher_recycler"
/>
<View
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/view_line_L050"
android:background=
"@color/gray_kongming"
app:layout_constraintBottom_toBottomOf=
"@id/fragment_casher_recycler"
/>
</android.support.constraint.ConstraintLayout>
</layout>
\ No newline at end of file
app/src/main/res/layout/fragment_statistics_date.xml
View file @
244d63f4
...
...
@@ -53,7 +53,7 @@
<View
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/view_line_L1"
android:background=
"@color/gray_
zhouyu
"
android:background=
"@color/gray_
huanggai
"
app:layout_constraintBottom_toBottomOf=
"parent"
/>
</android.support.constraint.ConstraintLayout>
...
...
app/src/main/res/layout/fragment_statistics_title.xml
View file @
244d63f4
...
...
@@ -22,6 +22,12 @@
layout=
"@layout/title_order"
app:layout_constraintTop_toTopOf=
"parent"
/>
<View
android:id=
"@+id/view_line"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/view_line_L050"
android:background=
"@color/gray_huanggai"
app:layout_constraintBottom_toBottomOf=
"@id/ic_title"
/>
<FrameLayout
android:id=
"@+id/main_frame"
...
...
app/src/main/res/layout/item_string_head.xml
View file @
244d63f4
<?xml version="1.0" encoding="utf-8"?>
<layout>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<View
<layout
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<android.support.constraint.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/view_line_L050"
android:background=
"@color/gray_huanggai"
android:layout_alignParentBottom=
"true"
/>
android:layout_height=
"wrap_content"
>
<TextView
...
...
@@ -15,15 +11,19 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:background=
"@drawable/singleline_zhouyu_huanggai"
android:gravity=
"left"
android:paddingTop=
"@dimen/all_padding"
android:paddingBottom=
"@dimen/all_padding"
android:paddingStart=
"@dimen/all_padding_left_right"
android:paddingTop=
"@dimen/all_padding"
android:singleLine=
"true"
android:text=
"北京店"
android:textColor=
"@color/black"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
</Relative
Layout>
</android.support.constraint.Constraint
Layout>
</layout>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment