Explorar el Código

修改工作页面详细信息

gongpm hace 10 años
padre
commit
33cc2d00a7

+ 28 - 14
WeiChat/src/main/java/com/sk/weichat/ui/erp/activity/ExtraLeaveActivity.java

@@ -1,13 +1,5 @@
 package com.sk.weichat.ui.erp.activity;
 
-import java.text.SimpleDateFormat;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
 import android.app.AlertDialog;
 import android.content.Context;
 import android.content.Intent;
@@ -18,10 +10,9 @@ import android.util.Log;
 import android.view.View;
 import android.view.View.OnClickListener;
 import android.widget.Button;
-import android.widget.ImageView;
 import android.widget.LinearLayout;
+import android.widget.RadioButton;
 import android.widget.RelativeLayout;
-import android.widget.TextView;
 
 import com.andreabaccega.widget.FormEditText;
 import com.lidroid.xutils.ViewUtils;
@@ -38,6 +29,14 @@ import com.sk.weichat.ui.erp.view.CustomProgressDialog;
 import com.sk.weichat.ui.erp.view.DateTimePickerDialog;
 import com.sk.weichat.ui.erp.view.SingleDialog;
 
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
 public class ExtraLeaveActivity extends BaseActivity implements OnClickListener {
 
 	// 编辑框值
@@ -71,13 +70,13 @@ public class ExtraLeaveActivity extends BaseActivity implements OnClickListener
 	@ViewInject(R.id.bt_extra_save)
 	private Button bt_extra_save;
 	@ViewInject(R.id.bt_commit)
-	private Button bt_extra_commit;
+	private RadioButton bt_extra_commit;
 	@ViewInject(R.id.bt_update)
-	private Button bt_update;
+	private RadioButton bt_update;
 	@ViewInject(R.id.bt_uncommit)
-	private Button bt_uncommit;
+	private RadioButton bt_uncommit;
 	@ViewInject(R.id.bt_add)
-	private Button bt_add;
+	private RadioButton bt_add;
 
 	@ViewInject(R.id.ly_bottom_save)
 	private LinearLayout ly_bottom_save;
@@ -142,12 +141,15 @@ public class ExtraLeaveActivity extends BaseActivity implements OnClickListener
 						bt_uncommit.setTextColor(getResources().getColor(
 								R.color.black));
 						bt_uncommit.setEnabled(true);
+						bt_uncommit.setChecked(false);
 						bt_extra_commit.setTextColor(getResources().getColor(
 								R.color.gray));
 						bt_extra_commit.setEnabled(false);
+						bt_extra_commit.setChecked(true);
 						bt_update.setTextColor(getResources().getColor(
 								R.color.gray));
 						bt_update.setEnabled(false);
+						bt_update.setChecked(true);
 						editnoclik();
 					}
 				} catch (Exception e) {
@@ -184,10 +186,13 @@ public class ExtraLeaveActivity extends BaseActivity implements OnClickListener
 					if ((Boolean) keMap.get("success")) {
 						ToastMessage("保存成功!");
 						bt_update.setEnabled(true);
+						bt_update.setChecked(false);
 						bt_update.setTextColor(getResources().getColor(R.color.black));
 						bt_extra_commit.setEnabled(true);
+						bt_extra_commit.setChecked(false);
 						bt_extra_commit.setTextColor(getResources().getColor(R.color.black));
 						bt_uncommit.setEnabled(false);
+						bt_uncommit.setChecked(true);
 						bt_uncommit.setTextColor(getResources().getColor(R.color.gray));
 						ly_bottom_save.setVisibility(View.GONE);
 						ly_bottom_handler.setVisibility(View.VISIBLE);
@@ -207,12 +212,15 @@ public class ExtraLeaveActivity extends BaseActivity implements OnClickListener
 						bt_extra_commit.setTextColor(getResources().getColor(
 								R.color.black));
 						bt_extra_commit.setEnabled(true);
+						bt_extra_commit.setChecked(false);
 						bt_update.setTextColor(getResources().getColor(
 								R.color.black));
 						bt_update.setEnabled(true);
+						bt_update.setChecked(false);
 						bt_uncommit.setTextColor(getResources().getColor(
 								R.color.gray));
 						bt_uncommit.setEnabled(false);
+						bt_uncommit.setChecked(true);
 						editclik();
 					}
 				} catch (Exception e) {
@@ -309,13 +317,16 @@ public class ExtraLeaveActivity extends BaseActivity implements OnClickListener
 				bt_extra_commit.setTextColor(getResources().getColor(
 						R.color.gray));
 				bt_extra_commit.setEnabled(false);
+				bt_extra_commit.setChecked(true);
 				bt_update.setTextColor(getResources().getColor(R.color.gray));
 				bt_update.setEnabled(false);
+				bt_update.setChecked(true);
 				editnoclik();
 			}
 			if ("在录入".equals(status)) {
 				bt_uncommit.setTextColor(getResources().getColor(R.color.gray));
 				bt_uncommit.setEnabled(false);
+				bt_uncommit.setChecked(true);
 				editclik();
 			}
 		}
@@ -724,10 +735,13 @@ public class ExtraLeaveActivity extends BaseActivity implements OnClickListener
 		ViewUtil.ShowMessageTitle(ct, message);
 		bt_extra_commit.setTextColor(getResources().getColor(R.color.grey));
 		bt_extra_commit.setEnabled(false);
+		bt_extra_commit.setChecked(true);
 		bt_uncommit.setTextColor(getResources().getColor(R.color.black));
 		bt_uncommit.setEnabled(true);
+		bt_uncommit.setChecked(false);
 		bt_update.setTextColor(getResources().getColor(R.color.grey));
 		bt_update.setEnabled(false);
+		bt_update.setChecked(true);
 	}
 	
 	

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 339 - 306
WeiChat/src/main/java/com/sk/weichat/ui/erp/activity/LeaveActivity.java


+ 28 - 13
WeiChat/src/main/java/com/sk/weichat/ui/erp/activity/TravelActivity.java

@@ -1,13 +1,5 @@
 package com.sk.weichat.ui.erp.activity;
 
-import java.text.SimpleDateFormat;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
 import android.app.AlertDialog;
 import android.content.Context;
 import android.content.Intent;
@@ -19,7 +11,7 @@ import android.view.View;
 import android.view.View.OnClickListener;
 import android.widget.Button;
 import android.widget.LinearLayout;
-import android.widget.TextView;
+import android.widget.RadioButton;
 
 import com.alibaba.fastjson.JSON;
 import com.andreabaccega.widget.FormEditText;
@@ -38,6 +30,14 @@ import com.sk.weichat.ui.erp.view.CustomProgressDialog;
 import com.sk.weichat.ui.erp.view.DateTimePickerDialog;
 import com.sk.weichat.ui.erp.view.SingleDialog;
 
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
 /**
  * @author :LiuJie 2015年7月16日 上午11:06:19
  * @注释:出差申请
@@ -79,13 +79,13 @@ public class TravelActivity extends BaseActivity implements OnClickListener {
 	@ViewInject(R.id.bt_save)
 	private Button bt_save;
 	@ViewInject(R.id.bt_add)
-	private Button bt_add;
+	private RadioButton bt_add;
 	@ViewInject(R.id.bt_commit)
-	private Button bt_commit;
+	private RadioButton bt_commit;
 	@ViewInject(R.id.bt_uncommit)
-	private Button bt_uncommit;
+	private RadioButton bt_uncommit;
 	@ViewInject(R.id.bt_update)
-	private Button bt_update;
+	private RadioButton bt_update;
 
 	@ViewInject(R.id.ly_bottom_save)
 	private LinearLayout ly_bottom_save;
@@ -127,10 +127,13 @@ public class TravelActivity extends BaseActivity implements OnClickListener {
 					if ((Boolean) keMap.get("success")) {
 						ToastMessage("保存成功!");
 						bt_update.setEnabled(true);
+						bt_update.setChecked(false);
 						bt_update.setTextColor(getResources().getColor(R.color.black));
 						bt_commit.setEnabled(true);
+						bt_commit.setChecked(false);
 						bt_commit.setTextColor(getResources().getColor(R.color.black));
 						bt_uncommit.setEnabled(false);
+						bt_uncommit.setChecked(true);
 						bt_uncommit.setTextColor(getResources().getColor(R.color.gray));
 						ly_bottom_save.setVisibility(View.GONE);
 						ly_bottom_handler.setVisibility(View.VISIBLE);
@@ -159,12 +162,15 @@ public class TravelActivity extends BaseActivity implements OnClickListener {
 						bt_uncommit.setTextColor(getResources().getColor(
 								R.color.black));
 						bt_uncommit.setEnabled(true);
+						bt_uncommit.setChecked(false);
 						bt_commit.setTextColor(getResources().getColor(
 								R.color.gray));
 						bt_commit.setEnabled(false);
+						bt_commit.setChecked(true);
 						bt_update.setTextColor(getResources().getColor(
 								R.color.gray));
 						bt_update.setEnabled(false);
+						bt_update.setChecked(true);
 						editnoclik();
 					}
 				} catch (Exception e) {
@@ -188,12 +194,15 @@ public class TravelActivity extends BaseActivity implements OnClickListener {
 						bt_commit.setTextColor(getResources().getColor(
 								R.color.black));
 						bt_commit.setEnabled(true);
+						bt_commit.setChecked(false);
 						bt_update.setTextColor(getResources().getColor(
 								R.color.black));
 						bt_update.setEnabled(true);
+						bt_update.setChecked(false);
 						bt_uncommit.setTextColor(getResources().getColor(
 								R.color.gray));
 						bt_uncommit.setEnabled(false);
+						bt_uncommit.setChecked(true);
 						editclik();
 					}
 				} catch (Exception e) {
@@ -349,13 +358,16 @@ public class TravelActivity extends BaseActivity implements OnClickListener {
 			if ("已提交".equals(status)) {
 				bt_commit.setTextColor(getResources().getColor(R.color.gray));
 				bt_commit.setEnabled(false);
+				bt_commit.setChecked(true);
 				bt_update.setTextColor(getResources().getColor(R.color.gray));
 				bt_update.setEnabled(false);
+				bt_update.setChecked(true);
 				editnoclik();
 			}
 			if ("在录入".equals(status)) {
 				bt_uncommit.setTextColor(getResources().getColor(R.color.gray));
 				bt_uncommit.setEnabled(false);
+				bt_uncommit.setChecked(true);
 				editclik();
 			}
 		}
@@ -767,10 +779,13 @@ public class TravelActivity extends BaseActivity implements OnClickListener {
 		ViewUtil.ShowMessageTitle(ct, message);
 		bt_commit.setTextColor(getResources().getColor(R.color.grey));
 		bt_commit.setEnabled(false);
+		bt_commit.setChecked(true);
 		bt_uncommit.setTextColor(getResources().getColor(R.color.black));
 		bt_uncommit.setEnabled(true);
+		bt_uncommit.setChecked(false);
 		bt_update.setTextColor(getResources().getColor(R.color.grey));
 		bt_update.setEnabled(false);
+		bt_update.setChecked(true);
 	}
 
 	

+ 21 - 5
WeiChat/src/main/java/com/sk/weichat/ui/erp/activity/WorkExtraActivity.java

@@ -11,6 +11,7 @@ import android.view.View;
 import android.view.View.OnClickListener;
 import android.widget.Button;
 import android.widget.LinearLayout;
+import android.widget.RadioButton;
 import android.widget.RelativeLayout;
 
 import com.andreabaccega.widget.FormEditText;
@@ -77,13 +78,13 @@ public class WorkExtraActivity extends BaseActivity implements OnClickListener {
     @ViewInject(R.id.bt_save)
     private Button bt_save;
     @ViewInject(R.id.bt_add)
-    private Button bt_add;
+    private RadioButton bt_add;
     @ViewInject(R.id.bt_commit)
-    private Button bt_commit;
+    private RadioButton bt_commit;
     @ViewInject(R.id.bt_uncommit)
-    private Button bt_uncommit;
+    private RadioButton bt_uncommit;
     @ViewInject(R.id.bt_update)
-    private Button bt_update;
+    private RadioButton bt_update;
 
 
     @ViewInject(R.id.ly_bottom_handler)
@@ -124,12 +125,15 @@ public class WorkExtraActivity extends BaseActivity implements OnClickListener {
                         if ((Boolean) keMap.get("success")) {
                             ToastMessage("保存成功!");
                             bt_commit.setEnabled(true);
+                            bt_commit.setChecked(false);
                             bt_commit.setTextColor(getResources().getColor(
                                     R.color.black));
                             bt_uncommit.setEnabled(false);
+                            bt_uncommit.setChecked(true);
                             bt_uncommit.setTextColor(getResources().getColor(
                                     R.color.gray));
                             bt_update.setEnabled(true);
+                            bt_update.setChecked(false);
                             bt_update.setTextColor(getResources().getColor(
                                     R.color.black));
                             bt_save.setVisibility(View.GONE);
@@ -159,12 +163,15 @@ public class WorkExtraActivity extends BaseActivity implements OnClickListener {
                             bt_uncommit.setTextColor(getResources().getColor(
                                     R.color.black));
                             bt_uncommit.setEnabled(true);
+                            bt_uncommit.setChecked(false);
                             bt_commit.setTextColor(getResources().getColor(
                                     R.color.gray));
                             bt_commit.setEnabled(false);
+                            bt_commit.setChecked(true);
                             bt_update.setTextColor(getResources().getColor(
                                     R.color.gray));
                             bt_update.setEnabled(false);
+                            bt_update.setChecked(true);
                             editnoclik();
                         }
                     } catch (Exception e) {
@@ -188,12 +195,14 @@ public class WorkExtraActivity extends BaseActivity implements OnClickListener {
                             bt_commit.setTextColor(getResources().getColor(
                                     R.color.black));
                             bt_commit.setEnabled(true);
+                            bt_commit.setChecked(false);
                             bt_update.setTextColor(getResources().getColor(
                                     R.color.black));
-                            bt_update.setEnabled(true);
+                            bt_update.setEnabled(true);          bt_update.setChecked(false);
                             bt_uncommit.setTextColor(getResources().getColor(
                                     R.color.gray));
                             bt_uncommit.setEnabled(false);
+                            bt_uncommit.setChecked(true);
                             editclik();
                         }
                     } catch (Exception e) {
@@ -314,13 +323,16 @@ public class WorkExtraActivity extends BaseActivity implements OnClickListener {
                 if ("已提交".equals(status)) {
                     bt_commit.setTextColor(getResources().getColor(R.color.gray));
                     bt_commit.setEnabled(false);
+                    bt_commit.setChecked(true);
                     bt_update.setTextColor(getResources().getColor(R.color.gray));
                     bt_update.setEnabled(false);
+                    bt_update.setChecked(true);
                     editnoclik();
                 }
                 if ("在录入".equals(status)) {
                     bt_uncommit.setTextColor(getResources().getColor(R.color.gray));
                     bt_uncommit.setEnabled(false);
+                    bt_uncommit.setChecked(true);
                     editclik();
                 }
             }
@@ -740,10 +752,14 @@ public class WorkExtraActivity extends BaseActivity implements OnClickListener {
                 .get("exceptionInfo").toString();
         ViewUtil.ShowMessageTitle(ct, message);
         bt_commit.setEnabled(false);
+
+        bt_commit.setChecked(true);
         bt_uncommit.setTextColor(getResources().getColor(R.color.black));
         bt_uncommit.setEnabled(true);
+        bt_uncommit.setChecked(false);
         bt_update.setTextColor(getResources().getColor(R.color.grey));
         bt_update.setEnabled(false);
+        bt_update.setChecked(true);
     }
     public void editnoclik() {
         et_extra_company.setEnabled(false);

+ 2 - 3
WeiChat/src/main/res/drawable/work_add.xml

@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
-<item android:drawable="@drawable/work_add_pass" android:state_pressed="true"/>
-    <item android:drawable="@drawable/work_add_nopass" android:state_pressed="false"/>
-    <item android:drawable="@drawable/work_add_nopass"/>
+    <item android:drawable="@drawable/work_add_pass" android:state_checked="true"   />
+    <item android:drawable="@drawable/work_add_nopass" />
 </selector>

+ 3 - 3
WeiChat/src/main/res/drawable/work_push.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
-    <item android:drawable="@drawable/work_push_pass" android:state_pressed="true"/>
-    <item android:drawable="@drawable/work_push_nopass" android:state_pressed="false"/>
-    <item android:drawable="@drawable/work_push_nopass"/>
+
+    <item android:drawable="@drawable/work_push_pass" android:state_checked="true" android:state_enabled="false" />
+    <item android:drawable="@drawable/work_push_nopass" />
 </selector>

+ 3 - 3
WeiChat/src/main/res/drawable/work_undata.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
-    <item android:drawable="@drawable/work_undata_pass" android:state_pressed="true"/>
-    <item android:drawable="@drawable/work_undata_nopass" android:state_pressed="false"/>
-    <item android:drawable="@drawable/work_undata_nopass"/>
+
+    <item android:drawable="@drawable/work_undata_pass" android:state_checked="true" android:state_enabled="false" />
+    <item android:drawable="@drawable/work_undata_nopass" />
 </selector>

+ 2 - 3
WeiChat/src/main/res/drawable/work_unpush.xml

@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
-    <item android:drawable="@drawable/work_unpush_pass" android:state_pressed="true"/>
-    <item android:drawable="@drawable/work_unpush_unpass" android:state_pressed="false"/>
-    <item android:drawable="@drawable/work_unpush_unpass"/>
+    <item android:drawable="@drawable/work_unpush_pass" android:state_checked="true" android:state_enabled="false" />
+    <item android:drawable="@drawable/work_unpush_unpass" />
 </selector>

+ 1 - 34
WeiChat/src/main/res/layout/act_extra_work.xml

@@ -196,40 +196,7 @@
                 style="@style/from_button_base_bule"
                 android:text="保存" />
 
-            <LinearLayout
-                android:id="@+id/ly_bottom_handler"
-                style="@style/form_linear_customer"
-                android:orientation="horizontal"
-                android:paddingLeft="5dp"
-                android:paddingRight="5dp">
-                <!--android:background="@drawable/work_add"-->
-                <Button
-                    android:id="@+id/bt_add"
-                    style="@style/from_button_base_white"
-                    android:layout_weight="1"
-                    android:text="新 增" />
-
-                <!-- android:background="@drawable/work_push" -->
-                <Button
-                    android:id="@+id/bt_commit"
-                    style="@style/from_button_base_white"
-                    android:layout_weight="1"
-                    android:text="提交" />
-
-                <!-- android:background="@drawable/work_unpush"-->
-                <Button
-                    android:id="@+id/bt_uncommit"
-                    style="@style/from_button_base_white"
-                    android:layout_weight="1"
-                    android:text="反提交" />
-
-                <!-- android:background="@drawable/work_undata" -->
-                <Button
-                    android:id="@+id/bt_update"
-                    style="@style/from_button_base_white"
-                    android:layout_weight="1"
-                    android:text="更新" />
-            </LinearLayout>
+            <include layout="@layout/item_work_view" />
         </LinearLayout>
     </ScrollView>
 </LinearLayout>

+ 1 - 52
WeiChat/src/main/res/layout/form_travel_main.xml

@@ -267,58 +267,7 @@
                     android:text="保存"/>
             </LinearLayout>
 
-            <LinearLayout
-                android:id="@+id/ly_bottom_handler"
-                style="@style/form_linear_customer"
-                android:layout_marginTop="20dp"
-                android:orientation="horizontal"
-                android:visibility="gone">
-
-                <Button
-                    android:id="@+id/bt_add"
-                    style="@style/from_button_base_white"
-                    android:layout_weight="1"
-                    android:text="新增" />
-
-                <ImageView
-                    android:layout_width="1dp"
-                    android:layout_height="match_parent"
-                    android:layout_marginBottom="7dp"
-                    android:layout_marginTop="7dp"
-                    android:src="@color/lightgrey" />
-
-                <Button
-                    android:id="@+id/bt_commit"
-                    style="@style/from_button_base_white"
-                    android:layout_weight="1"
-                    android:text="提交" />
-
-                <ImageView
-                    android:layout_width="1dp"
-                    android:layout_height="match_parent"
-                    android:layout_marginBottom="7dp"
-                    android:layout_marginTop="7dp"
-                    android:src="@color/lightgrey" />
-
-                <Button
-                    android:id="@+id/bt_uncommit"
-                    style="@style/from_button_base_white"
-                    android:layout_weight="1"
-                    android:text="反提交" />
-
-                <ImageView
-                    android:layout_width="1dp"
-                    android:layout_height="match_parent"
-                    android:layout_marginBottom="7dp"
-                    android:layout_marginTop="7dp"
-                    android:src="@color/lightgrey" />
-
-                <Button
-                    android:id="@+id/bt_update"
-                    style="@style/from_button_base_white"
-                    android:layout_weight="1"
-                    android:text="更新" />
-            </LinearLayout>
+<include layout="@layout/item_work_view"/>
         </LinearLayout>
     </ScrollView>
 </LinearLayout>

+ 1 - 54
WeiChat/src/main/res/layout/from_extra_leave.xml

@@ -204,60 +204,7 @@
                     android:text="保存" />
             </LinearLayout>
 
-            <LinearLayout
-                android:id="@+id/ly_bottom_handler"
-                style="@style/form_linear_customer"
-                android:orientation="horizontal"
-                android:visibility="gone">
-
-                <Button
-                    android:id="@+id/bt_add"
-                    style="@style/from_button_base_white"
-                    android:layout_weight="1"
-                    android:text="新增" />
-
-                <ImageView
-                    android:layout_width="1dp"
-                    android:layout_height="match_parent"
-                    android:layout_marginBottom="7dp"
-                    android:layout_marginTop="7dp"
-                    android:src="@color/lightgrey" />
-
-                <Button
-                    android:id="@+id/bt_commit"
-                    style="@style/from_button_base_white"
-                    android:layout_marginLeft="5dp"
-                    android:layout_marginRight="5dp"
-                    android:layout_weight="1"
-                    android:text="提交" />
-
-                <ImageView
-                    android:layout_width="1dp"
-                    android:layout_height="match_parent"
-                    android:layout_marginBottom="7dp"
-                    android:layout_marginTop="7dp"
-                    android:src="@color/lightgrey" />
-
-                <Button
-                    android:id="@+id/bt_uncommit"
-                    style="@style/from_button_base_white"
-                    android:layout_marginRight="5dp"
-                    android:layout_weight="1"
-                    android:text="反提交" />
-
-                <ImageView
-                    android:layout_width="1dp"
-                    android:layout_height="match_parent"
-                    android:layout_marginBottom="7dp"
-                    android:layout_marginTop="7dp"
-                    android:src="@color/lightgrey" />
-
-                <Button
-                    android:id="@+id/bt_update"
-                    style="@style/from_button_base_white"
-                    android:layout_weight="1"
-                    android:text="更新" />
-            </LinearLayout>
+         <include layout="@layout/item_work_view"/>
         </LinearLayout>
     </ScrollView>
 </LinearLayout>

+ 1 - 49
WeiChat/src/main/res/layout/from_leave_view.xml

@@ -230,56 +230,8 @@
                     android:text="提  交" />
             </LinearLayout>
 
-            <LinearLayout
-                android:id="@+id/ly_bottom_handler"
-                style="@style/form_linear_customer"
-                android:orientation="horizontal">
-
-                <Button
-                    android:id="@+id/bt_add"
-                    style="@style/from_button_base_white"
-                    android:layout_weight="1"
-                    android:text="新增" />
-
-                <ImageView
-                    android:layout_width="1dp"
-                    android:layout_height="match_parent"
-                    android:layout_marginBottom="7dp"
-                    android:layout_marginTop="7dp"
-                    android:src="@color/lightgrey" />
-
-                <Button
-                    android:id="@+id/bt_commit"
-                    style="@style/from_button_base_white"
-                    android:layout_weight="1"
-                    android:text="提交" />
-
-                <ImageView
-                    android:layout_width="1dp"
-                    android:layout_height="match_parent"
-                    android:layout_marginBottom="7dp"
-                    android:layout_marginTop="7dp"
-                    android:src="@color/lightgrey" />
+            <include layout="@layout/item_work_view" />
 
-                <Button
-                    android:id="@+id/bt_uncommit"
-                    style="@style/from_button_base_white"
-                    android:layout_weight="1"
-                    android:text="反提交" />
-
-                <ImageView
-                    android:layout_width="1dp"
-                    android:layout_height="match_parent"
-                    android:layout_marginBottom="7dp"
-                    android:layout_marginTop="7dp"
-                    android:src="@color/lightgrey" />
-
-                <Button
-                    android:id="@+id/bt_update"
-                    style="@style/from_button_base_white"
-                    android:layout_weight="1"
-                    android:text="更新" />
-            </LinearLayout>
         </LinearLayout>
     </com.sk.weichat.ui.erp.view.CustomerScrollView>
 </LinearLayout>

+ 46 - 0
WeiChat/src/main/res/layout/item_work_view.xml

@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/ly_bottom_handler"
+    style="@style/form_linear_customer"
+    android:orientation="horizontal"
+    android:paddingLeft="10dp"
+    android:paddingRight="10dp"
+    android:visibility="gone">
+
+    <RadioButton
+        android:id="@+id/bt_add"
+        style="@style/from_button_base_white"
+        android:layout_marginRight="5dp"
+        android:layout_weight="1"
+        android:button="@null"
+        android:checked="false"
+        android:drawableBottom="@drawable/work_add" />
+
+
+    <RadioButton
+        android:id="@+id/bt_commit"
+        style="@style/from_button_base_white"
+        android:layout_marginRight="5dp"
+        android:layout_weight="1"
+        android:button="@null"
+        android:checked="true"
+        android:drawableBottom="@drawable/work_push" />
+
+
+    <RadioButton
+        android:id="@+id/bt_uncommit"
+        style="@style/from_button_base_white"
+        android:layout_marginRight="5dp"
+        android:layout_weight="1"
+        android:button="@null"
+        android:drawableBottom="@drawable/work_unpush" />
+
+
+    <RadioButton
+        android:id="@+id/bt_update"
+        style="@style/from_button_base_white"
+        android:layout_weight="1"
+        android:button="@null"
+        android:drawableBottom="@drawable/work_undata" />
+
+</LinearLayout>

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio