Просмотр исходного кода

Merge branch 'feature' of https://gitlab.com/Arisono/SkWeiChat-Baidu into feature_bitliker

# Conflicts:
#	WeiChat/version.properties
Bitliker 8 лет назад
Родитель
Сommit
e1482f7719

+ 23 - 23
WeiChat/build.gradle

@@ -120,29 +120,29 @@ android {
         flavor -> flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name]
     }
 
-//    applicationVariants.all { variant ->
-//        variant.outputs.each { output ->
-//            def outputFile = output.outputFile
-//            def fileName
-//            if (outputFile != null && outputFile.name.endsWith('.apk')) {
-//                if (variant.buildType.name.equals('release')) {
-//                    //赋值app属性版本名
-//                    //variant.mergedFlavor.versionName = getVersionName() + "_" + variant.productFlavors[0].name+"(Build"+currentVersionCode+")"
-//                    //variant.mergedFlavor.versionName ="v"+versionArray[0].toString().substring(0,1)+"."+ versionArray[0].toString().substring(1,2)+"."+  versionArray[0].toString().substring(2,3)
-//                    def releaseInfo= "v"+versionArray[0].toString().substring(0,1)+"."+ versionArray[0].toString().substring(1,2)+"."+  versionArray[0].toString().substring(2,3)+ "_" + variant.productFlavors[0].name+"(Build"+versionArray[1]+")"
-//                    fileName = "WeiChat_${releaseInfo}_release.apk"
-//
-//                } else if (variant.buildType.name.equals('debug')) {
-//                    //赋值app属性版本名
-//                    variant.mergedFlavor.versionName = getVersionName() + "_" + releaseTime() + "_" + variant.productFlavors[0].name+"(Build"+versionArray[3]+")"+"_debug"
-//                    def debugInfo= getVersionName() + "_" + releaseTime() + "_" + variant.productFlavors[0].name+"(Build"+versionArray[3]+")"
-//                    fileName = "WeiChat_${debugInfo}_debug.apk"
-//
-//                }
-//                output.outputFile = new File(outputFile.parent, fileName)
-//            }
-//        }
-//    }
+    applicationVariants.all { variant ->
+        variant.outputs.each { output ->
+            def outputFile = output.outputFile
+            def fileName
+            if (outputFile != null && outputFile.name.endsWith('.apk')) {
+                if (variant.buildType.name.equals('release')) {
+                    //赋值app属性版本名
+                    //variant.mergedFlavor.versionName = getVersionName() + "_" + variant.productFlavors[0].name+"(Build"+currentVersionCode+")"
+                    //variant.mergedFlavor.versionName ="v"+versionArray[0].toString().substring(0,1)+"."+ versionArray[0].toString().substring(1,2)+"."+  versionArray[0].toString().substring(2,3)
+                    def releaseInfo= "v"+versionArray[0].toString().substring(0,1)+"."+ versionArray[0].toString().substring(1,2)+"."+  versionArray[0].toString().substring(2,3)+ "_" + variant.productFlavors[0].name+"(Build"+versionArray[1]+")"
+                    fileName = "WeiChat_${releaseInfo}_release.apk"
+
+                } else if (variant.buildType.name.equals('debug')) {
+                    //赋值app属性版本名
+                    variant.mergedFlavor.versionName = getVersionName() + "_" + releaseTime() + "_" + variant.productFlavors[0].name+"(Build"+versionArray[3]+")"+"_debug"
+                    def debugInfo= getVersionName() + "_" + releaseTime() + "_" + variant.productFlavors[0].name+"(Build"+versionArray[3]+")"
+                    fileName = "WeiChat_${debugInfo}_debug.apk"
+
+                }
+                output.outputFile = new File(outputFile.parent, fileName)
+            }
+        }
+    }
 }
 
 dependencies {

+ 0 - 99
WeiChat/src/main/res/layout/act_staff_query_list.xml

@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    android:focusable="true"
-    android:focusableInTouchMode="true"
-    android:orientation="vertical">
-
-    <com.core.widget.VoiceSearchView
-        android:id="@+id/voiceSearchView"
-        android:layout_width="match_parent"
-        android:layout_height="48dp" />
-    <com.core.widget.SuperSwipeRefreshLayout
-        android:id="@+id/refresh_top"
-        android:layout_width="match_parent"
-        android:layout_height="match_parent"
-        xmlns:ptr="http://schemas.android.com/apk/res-auto"
-        android:fillViewport="true"
-        ptr:ptrAnimationStyle="flip"
-        >
-        <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="match_parent"
-            android:orientation="vertical">
-
-            <include layout="@layout/erp_empty_view" />
-
-            <LinearLayout
-                android:id="@+id/ll_content"
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:orientation="vertical"
-                android:visibility="gone">
-
-                <HorizontalScrollView
-                    android:id="@+id/hv_head_view"
-                    android:layout_width="match_parent"
-                    android:layout_height="40dip"
-                    android:background="#ffffff"
-                    android:fadingEdge="none"
-                    android:paddingLeft="10dp"
-                    android:scrollbars="none">
-
-                    <RelativeLayout
-                        android:layout_width="match_parent"
-                        android:layout_height="match_parent"
-                        android:layout_gravity="top">
-
-                        <RadioGroup
-                            android:id="@+id/rg_nav_content"
-                            android:layout_width="match_parent"
-                            android:layout_height="40dip"
-                            android:background="#FfFfFf"
-                            android:orientation="horizontal" />
-                    </RelativeLayout>
-                </HorizontalScrollView>
-
-                <View
-                    android:layout_width="match_parent"
-                    android:layout_height="1dp"
-                    android:background="#DEDEDE" />
-
-                <LinearLayout
-                    android:id="@+id/ll_list"
-                    android:layout_width="match_parent"
-                    android:layout_height="match_parent"
-                    android:orientation="horizontal"
-                    android:weightSum="7">
-
-                    <com.core.widget.CustomerListView
-                        android:id="@+id/lv_saff_list"
-                        android:layout_width="0dp"
-                        android:layout_height="match_parent"
-                        android:layout_weight="2"
-                        android:background="@color/white"
-                        android:clipToPadding="false"
-                        android:fadingEdge="none"
-                        android:scrollbars="none" />
-
-                    <View
-                        android:layout_width="1dp"
-                        android:layout_height="match_parent"
-                        android:background="#DEDEDE"
-                        android:visibility="gone"/>
-
-                    <com.core.widget.CustomerListView
-                        android:id="@+id/lv_left_list"
-                        android:layout_width="0dp"
-                        android:layout_height="match_parent"
-                        android:layout_weight="5"
-                        android:divider="#dfdede"
-                        android:dividerHeight="0.5dp"
-                        android:scrollbars="none" />
-                </LinearLayout>
-            </LinearLayout>
-        </LinearLayout>
-    </com.core.widget.SuperSwipeRefreshLayout>
-
-</LinearLayout>

+ 5 - 5
WeiChat/version.properties

@@ -1,5 +1,5 @@
-#Thu Jan 04 14:43:43 CST 2018
-debugName=387
-versionName=625
-debugCode=387
-versionCode=164
+#Wed Jan 03 12:48:02 CST 2018
+debugName=367
+versionName=624
+debugCode=367
+versionCode=163

+ 0 - 9
app_core/common/src/main/assets/work_menu.json

@@ -248,15 +248,6 @@
         "menuUrl": "",
         "caller": "",
         "isHide": false
-      },
-      {
-        "isLocalMenu": true,
-        "menuName": "str_company_salary",
-        "menuIcon": "company_salary",
-        "menuActivity": "com.modular.appme.CheckWagesActivity",
-        "menuUrl": "",
-        "caller": "",
-        "isHide": false
       }
     ]
   },

+ 4 - 1
app_core/common/src/main/java/com/core/utils/time/wheel/OASigninPicker.java

@@ -9,6 +9,9 @@ import android.view.View;
 import android.widget.LinearLayout;
 import android.widget.TextView;
 
+import com.common.data.DateFormatUtil;
+import com.core.utils.CommonUtil;
+
 import java.lang.annotation.Retention;
 import java.lang.annotation.RetentionPolicy;
 import java.util.ArrayList;
@@ -42,7 +45,7 @@ public class OASigninPicker extends WheelPicker {
     public OASigninPicker(Activity activity) {
         super(activity);
         textSize = 16;//年月日时分,比较宽,设置字体小一点才能显示完整
-        for (int i = 2015; i <= 2017; i++) {
+        for (int i = CommonUtil.getNumByString(DateFormatUtil.long2Str(System.currentTimeMillis(), "yyyy")) - 2; i <= CommonUtil.getNumByString(DateFormatUtil.long2Str(System.currentTimeMillis(), "yyyy")); i++) {
             years.add(String.valueOf(i));
         }
         for (int i = 1; i <= 12; i++) {

+ 16 - 9
app_core/common/src/main/res/layout/act_staff_query_list.xml

@@ -1,5 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<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:focusable="true"
@@ -10,14 +12,19 @@
         android:id="@+id/voiceSearchView"
         android:layout_width="match_parent"
         android:layout_height="48dp" />
-    <com.core.widget.SuperSwipeRefreshLayout
-        android:id="@+id/refresh_top"
+
+    <com.scwang.smartrefresh.layout.SmartRefreshLayout
+        android:id="@+id/act_staff_query_refresh_layout"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
-        xmlns:ptr="http://schemas.android.com/apk/res-auto"
-        android:fillViewport="true"
-        ptr:ptrAnimationStyle="flip"
-        >
+        app:srlEnableLoadmore="false"
+        app:srlEnablePreviewInEditMode="false">
+
+        <com.scwang.smartrefresh.layout.header.ClassicsHeader
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            app:srlAccentColor="@android:color/darker_gray" />
+
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="match_parent"
@@ -81,7 +88,7 @@
                         android:layout_width="1dp"
                         android:layout_height="match_parent"
                         android:background="#DEDEDE"
-                        android:visibility="gone"/>
+                        android:visibility="gone" />
 
                     <com.core.widget.CustomerListView
                         android:id="@+id/lv_left_list"
@@ -94,6 +101,6 @@
                 </LinearLayout>
             </LinearLayout>
         </LinearLayout>
-    </com.core.widget.SuperSwipeRefreshLayout>
+    </com.scwang.smartrefresh.layout.SmartRefreshLayout>
 
 </LinearLayout>

+ 3 - 3
app_core/common/src/main/res/layout/input_error_msg.xml

@@ -28,7 +28,7 @@
             android:layout_width="match_parent"
             android:layout_height="150dp"
             android:background="@null"
-            android:maxLines="3"
+            android:maxLines="5"
             android:maxLength="100"
             android:hint="请输入你的问题"
             android:textColor="@color/text_main"
@@ -66,9 +66,9 @@
             android:textSize="@dimen/text_main"
             android:layout_weight="1"
             android:layout_alignParentBottom="true"
-            android:layout_marginBottom="30dp"
+            android:layout_marginBottom="10dp"
             android:layout_marginLeft="20dp"
             android:layout_marginRight="20dp"
-            android:layout_marginTop="30dp"
+            android:layout_marginTop="10dp"
             /></LinearLayout>
 </LinearLayout>

+ 1 - 1
app_modular/appcontact/src/main/AndroidManifest.xml

@@ -23,7 +23,7 @@
             </intent-filter>
         <activity
             android:name="com.uas.appcontact.ui.activity.CompanyContactsActivity"
-            android:windowSoftInputMode="stateVisible|adjustResize" />
+            android:windowSoftInputMode="stateHidden|adjustResize" />
         <activity android:name="com.uas.appcontact.ui.activity.CommonFragmentActivity" />
         <!-- 附近模块 -->
         <activity

+ 82 - 40
app_modular/appcontact/src/main/java/com/uas/appcontact/ui/activity/CompanyContactsActivity.java

@@ -50,9 +50,10 @@ import com.core.net.http.ViewUtil;
 import com.core.utils.CommonUtil;
 import com.core.utils.helper.AvatarHelper;
 import com.core.widget.CustomerListView;
-import com.core.widget.SuperSwipeRefreshLayout;
 import com.core.widget.VoiceSearchView;
 import com.core.xmpp.dao.FriendDao;
+import com.scwang.smartrefresh.layout.api.RefreshLayout;
+import com.scwang.smartrefresh.layout.listener.OnRefreshListener;
 import com.uas.appcontact.R;
 
 import java.text.ParseException;
@@ -80,13 +81,15 @@ public class CompanyContactsActivity extends BaseActivity {
     private RadioGroup rg_nav_content;
     private LinearLayout ll_content;
     private RelativeLayout rl_empty;
-    private SuperSwipeRefreshLayout reScrollView;
-    
+    private RefreshLayout mRefreshLayout;
+
+//    private SuperSwipeRefreshLayout reScrollView;
+
     private Context ct;
     //关键变量
     public static ArrayList<String> tabTitle = new ArrayList<>(); // 标题
     public static Map<String, Object> keystore = new LinkedHashMap<>(); // 标题
-    
+
     private LayoutInflater mInflater;
     private Hrorgs hrorgs_parent;
     private Hrorgs hrorgs_left;
@@ -115,8 +118,11 @@ public class CompanyContactsActivity extends BaseActivity {
                                 "ed_company=? and ed_whichsys=?");
                         LoadServerData(master, date);
                     } else {
-                        if (reScrollView.isRefreshing()) {
-                            reScrollView.setRefreshing(false);
+//                        if (reScrollView.isRefreshing()) {
+//                            reScrollView.setRefreshing(false);
+//                        }
+                        if (mRefreshLayout.isRefreshing()) {
+                            mRefreshLayout.finishRefresh(0);
                         }
                         ll_content.setVisibility(View.GONE);
                         rl_empty.setVisibility(View.VISIBLE);
@@ -135,7 +141,7 @@ public class CompanyContactsActivity extends BaseActivity {
                     if (hrEntity != null) {
                         isFristLoad = false;
                     }
-                    reScrollView.setRefreshing(true);
+//                    reScrollView.setRefreshing(true);
                     if (!hrorgsEntities.isEmpty() || !employeesEntities.isEmpty()) {
                         insertDataSqlite(isFristLoad, hrorgsEntities, employeesEntities,
                                 server_time);    //写入缓存
@@ -146,10 +152,13 @@ public class CompanyContactsActivity extends BaseActivity {
                         Log.i(TAG, "取缓存数据.....!");
                         LoadRootHrorgFromServer();//取缓存
                     }
-                    if (reScrollView.isRefreshing()) {
-                        reScrollView.setRefreshing(false);
+//                    if (reScrollView.isRefreshing()) {
+//                        reScrollView.setRefreshing(false);
+//                    }
+                    if (mRefreshLayout.isRefreshing()) {
+                        mRefreshLayout.finishRefresh(0);
                     }
-//                    progressDialog.dismiss();
+                    progressDialog.dismiss();
                     break;
                 case Constants.LOAD_SUCCESS://根节点
                     if (!keystore.isEmpty()) {
@@ -206,7 +215,10 @@ public class CompanyContactsActivity extends BaseActivity {
                         }
                     }
 
-//                    progressDialog.dismiss();
+                    progressDialog.dismiss();
+                    if (mRefreshLayout.isRefreshing()) {
+                        mRefreshLayout.finishRefresh(0);
+                    }
                     //reScrollView.onRefreshComplete();
                     break;
                 /** @注释:左边栏接收数据 */
@@ -372,8 +384,11 @@ public class CompanyContactsActivity extends BaseActivity {
                     com.core.net.http.ViewUtil.AutoLoginErp(ct);
 //                    reScrollView.onRefreshComplete();
 
-                    if (reScrollView.isRefreshing()) {
-                        reScrollView.setRefreshing(false);
+//                    if (reScrollView.isRefreshing()) {
+//                        reScrollView.setRefreshing(false);
+//                    }
+                    if (mRefreshLayout.isRefreshing()) {
+                        mRefreshLayout.finishRefresh(0);
                     }
                     break;
                 default:
@@ -422,17 +437,24 @@ public class CompanyContactsActivity extends BaseActivity {
         rg_nav_content = (RadioGroup) findViewById(R.id.rg_nav_content);
         ll_content = (LinearLayout) findViewById(R.id.ll_content);
         rl_empty = (RelativeLayout) findViewById(R.id.rl_empty);
-        reScrollView = (SuperSwipeRefreshLayout) findViewById(R.id.refresh_top);
-
+        rl_empty.setVisibility(View.GONE);
+//        reScrollView = (SuperSwipeRefreshLayout) findViewById(R.id.refresh_top);
+        mRefreshLayout = (RefreshLayout) findViewById(R.id.act_staff_query_refresh_layout);
 
         initListener();
         mHandler.post(new Runnable() {
             @Override
             public void run() {
-                reScrollView.setRefreshing(true);
+//                reScrollView.setRefreshing(true);
+                mRefreshLayout.autoRefresh(300, 1f);
             }
         });
-        mHandler.sendEmptyMessage(UPDATE_CHANGE_MASTER);
+        mHandler.postDelayed(new Runnable() {
+            @Override
+            public void run() {
+                mHandler.sendEmptyMessage(UPDATE_CHANGE_MASTER);
+            }
+        }, 300);
     }
 
     private String next_or_id;//记录下级标题栏的or_id   解决顶部导航栏点击选择问题
@@ -537,10 +559,15 @@ public class CompanyContactsActivity extends BaseActivity {
 
             @Override
             public void onScroll(AbsListView absListView, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
-                if (firstVisibleItem == 0)
-                    reScrollView.setEnabled(true);
-                else
-                    reScrollView.setEnabled(false);
+//                if (firstVisibleItem == 0)
+//                    reScrollView.setEnabled(true);
+//                else
+//                    reScrollView.setEnabled(false);
+                if (firstVisibleItem == 0) {
+                    mRefreshLayout.setEnableRefresh(true);
+                } else {
+                    mRefreshLayout.setEnableRefresh(false);
+                }
             }
         });
         mlistleft.setOnScrollListener(new AbsListView.OnScrollListener() {
@@ -550,30 +577,42 @@ public class CompanyContactsActivity extends BaseActivity {
 
             @Override
             public void onScroll(AbsListView absListView, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
-                if (firstVisibleItem == 0)
-                    reScrollView.setEnabled(true);
-                else
-                    reScrollView.setEnabled(false);
+//                if (firstVisibleItem == 0)
+//                    reScrollView.setEnabled(true);
+//                else
+//                    reScrollView.setEnabled(false);
+                if (firstVisibleItem == 0) {
+                    mRefreshLayout.setEnableRefresh(true);
+                } else {
+                    mRefreshLayout.setEnableRefresh(false);
+                }
             }
         });
         viewHead = LayoutInflater.from(this).inflate(R.layout.head_view, null);
-        reScrollView.setHeaderView(viewHead);
-        reScrollView.setOnPullRefreshListener(new SuperSwipeRefreshLayout.OnPullRefreshListener() {
+//        reScrollView.setHeaderView(viewHead);
+//        reScrollView.setOnPullRefreshListener(new SuperSwipeRefreshLayout.OnPullRefreshListener() {
+//            @Override
+//            public void onRefresh() {
+//                manager.deleteData(CommonUtil.getSharedPreferences(ct, "erp_master"));
+//                LoadServerData(CommonUtil.getSharedPreferences(ct, "erp_master"), null);
+//            }
+//
+//            @Override
+//            public void onPullDistance(int distance) {
+//                //TODO 下拉距离
+//            }
+//
+//            @Override
+//            public void onPullEnable(boolean enable) {
+//                //TODO 下拉过程中,下拉的距离是否足够出发刷新
+//            }
+//        });
+        mRefreshLayout.setOnRefreshListener(new OnRefreshListener() {
             @Override
-            public void onRefresh() {
+            public void onRefresh(RefreshLayout refreshLayout) {
                 manager.deleteData(CommonUtil.getSharedPreferences(ct, "erp_master"));
                 LoadServerData(CommonUtil.getSharedPreferences(ct, "erp_master"), null);
             }
-
-            @Override
-            public void onPullDistance(int distance) {
-                //TODO 下拉距离
-            }
-
-            @Override
-            public void onPullEnable(boolean enable) {
-                //TODO 下拉过程中,下拉的距离是否足够出发刷新
-            }
         });
 
         voiceSearchView.addTextChangedListener(new TextWatcher() {
@@ -639,7 +678,7 @@ public class CompanyContactsActivity extends BaseActivity {
         if (friendOne == null) {
             FriendDao.getInstance().createOrUpdateFriend(friend);
         }
-        Intent intent = new Intent("com.modular.message.ChatActivity" );
+        Intent intent = new Intent("com.modular.message.ChatActivity");
         intent.putExtra("friend", friend);
         startActivity(intent);
     }
@@ -732,7 +771,10 @@ public class CompanyContactsActivity extends BaseActivity {
      */
     public void LoadServerData(String master, String lastdate) {
         if (StringUtil.isEmpty(master)) {
-            reScrollView.setRefreshing(false);
+//            reScrollView.setRefreshing(false);
+            if (mRefreshLayout.isRefreshing()) {
+                mRefreshLayout.finishRefresh(0);
+            }
             ll_content.setVisibility(View.GONE);
             rl_empty.setVisibility(View.VISIBLE);
             return;

+ 1 - 0
app_modular/appme/src/main/java/com/uas/appme/settings/activity/CheckWagesActivity.java

@@ -180,6 +180,7 @@ public class CheckWagesActivity extends BaseActivity implements View.OnClickList
 
         mTel.setText(CommonUtil.getSharedPreferences(MyApplication.getInstance(),"user_phone"));
         master = CommonUtil.getSharedPreferences(ct, "erp_master");
+//        master = "uas_dev";
         emcode = CommonUtil.getEmcode();
 //        emcode = "U0747";
 

+ 1 - 0
app_modular/appme/src/main/java/com/uas/appme/settings/activity/FeedbackActivity.java

@@ -792,6 +792,7 @@ public class FeedbackActivity extends BaseActivity implements View.OnClickListen
         params.addBodyParameter("type", "common");
         params.addBodyParameter("img", file == null ? new File(path) : file);
         String url = CommonUtil.getAppBaseUrl(ct) + "mobile/uploadEmployeeAttach.action";
+        Log.i("urlparams",url);
         final HttpUtils http = new HttpUtils();
         http.send(HttpRequest.HttpMethod.POST, url, params, new RequestCallBack<String>() {
             @Override

+ 1 - 0
app_modular/appme/src/main/java/com/uas/appme/settings/activity/FindWagePWActivity.java

@@ -151,6 +151,7 @@ public class FindWagePWActivity extends BaseActivity implements View.OnClickList
                 .add("phone",mPhoneEt.getText().toString())
                 .add("em_uu", CommonUtil.getSharedPreferences(MyApplication.getInstance(),"erp_uu"))
                 .add("master",CommonUtil.getSharedPreferences(ct, "erp_master"))
+//                .add("master","uas_dev")
                 .header("Cookie","JSESSIONID="+CommonUtil.getSharedPreferences(BaseConfig.getContext(), "sessionId"))
                 .method(Method.POST)
                 .build(),new ResultSubscriber<>(new ResultListener<Object>() {

+ 3 - 1
app_modular/appme/src/main/java/com/uas/appme/settings/activity/WagesDetailsActivity.java

@@ -184,6 +184,7 @@ public class WagesDetailsActivity extends BaseActivity implements View.OnClickLi
                 emcode = CommonUtil.getEmcode();
 //        emcode = "U0747";
         master = CommonUtil.getSharedPreferences(ct, "erp_master");
+//        master = "uas_dev";
         getSupportActionBar().setTitle("工资查询");
 
         mWagesLv = (MyListView) findViewById(R.id.wages_lv);
@@ -367,7 +368,8 @@ public class WagesDetailsActivity extends BaseActivity implements View.OnClickLi
         params.addBodyParameter("result","true");
         params.addQueryStringParameter("master", master);
         params.addBodyParameter("msg","");
-        if (needSignature != 1)
+        Log.i("urlparams",plainpath);
+        if (needSignature == 1)
             params.addBodyParameter("img",new File(plainpath));
         final HttpUtils http = new HttpUtils();
         Log.i("urlparams",url+params+"");

+ 7 - 0
app_modular/appme/src/main/java/com/uas/appme/settings/adapter/WagesDetailsAdapter.java

@@ -1,6 +1,7 @@
 package com.uas.appme.settings.adapter;
 
 import android.content.Context;
+import android.text.TextPaint;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.BaseAdapter;
@@ -54,6 +55,12 @@ public class WagesDetailsAdapter extends BaseAdapter {
         } else {
             wHolder = (WagesHolder) convertView.getTag();
         }
+        TextPaint tp = wHolder.value .getPaint();
+        if(position == modeList.size() - 1){
+            tp.setFakeBoldText(true);
+        }else {
+            tp.setFakeBoldText(false);
+        }
         wHolder.key.setText(modeList.get(position).getKey()+"");
         wHolder.value.setText(modeList.get(position).getValue()+"");
         return convertView;

+ 1 - 0
app_modular/appworks/src/main/java/com/uas/appworks/OA/platform/activity/PlatWDdetailyActivity.java

@@ -136,6 +136,7 @@ public class PlatWDdetailyActivity extends BaseActivity {
         approval_flowlv = (MyListView) findViewById(R.id.work_daily_detail_approval_flow_lv);
         unsubmit_iv = (ImageView) findViewById(R.id.work_daily_unsubmit_iv);
         resubmit_ll = (LinearLayout) findViewById(R.id.common_docui_resubmit_ll);
+        resanddel_ll = (LinearLayout) findViewById(R.id.item_common_docui_res_and_del_ll);
         delete_ll = (LinearLayout) findViewById(R.id.common_docui_delete_ll);
         resubmit_tv = (TextView) findViewById(R.id.common_docui_resubmit_tv);
         hide_above_af = findViewById(R.id.hide_above_af);