Browse Source

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

# Conflicts:
#	WeiChat/version.properties
Arison 8 years ago
parent
commit
39e6965708

+ 2 - 1
WeiChat/src/main/res/layout/oa_empty_list.xml

@@ -33,8 +33,9 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_marginBottom="90dp"
-            android:text="@string/common_list_empty"
+            android:text="@string/str_common_empty_text"
             android:textSize="14sp"
+            android:textColor="@color/empty_text_color"
             />
     </LinearLayout>
 

+ 4 - 2
app_core/common/src/main/res/layout/recycler_empty_view.xml

@@ -22,8 +22,10 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_marginBottom="90dp"
-            android:text="数据为空"
-            android:textSize="14sp" />
+            android:text="@string/str_common_empty_text"
+            android:textSize="14sp"
+            android:textColor="@color/empty_text_color"
+            />
 
     </LinearLayout>
 

+ 2 - 1
app_core/common/src/main/res/layout/view_empty.xml

@@ -53,8 +53,9 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_marginBottom="90dp"
-            android:text="@string/common_list_empty"
+            android:text="@string/str_common_empty_text"
             android:textSize="14sp"
+            android:textColor="@color/empty_text_color"
             />
     </LinearLayout>
 </RelativeLayout>

+ 1 - 0
app_core/common/src/main/res/layout/view_public_inquiry_empty.xml

@@ -54,6 +54,7 @@
             android:layout_height="wrap_content"
             android:layout_marginBottom="80dp"
             android:text="当前企业没有任何相关询价单,请前往系统维护产品库"
+            android:textColor="@color/empty_text_color"
             android:textSize="14sp"
             />
     </LinearLayout>

+ 1 - 0
app_core/common/src/main/res/values-en/strings.xml

@@ -1636,4 +1636,5 @@
          <string name = "booking_time_set"> Reservation time period setting </string>
         <string name = "enter_details_money"> Please enter the details amount </string>
     <string name="host_null_please_login_retry">站点地址获取失败,请重新登录后重试</string>
+    <string name="str_common_empty_text">暂无记录</string>
 </resources>

+ 1 - 0
app_core/common/src/main/res/values-zh-rCN/strings.xml

@@ -1686,4 +1686,5 @@
     <string name="table_repeat">桌位不可重复设置</string>
     <string name="booking_time_set">预约时间段设置</string>
     <string name="host_null_please_login_retry">站点地址获取失败,请重新登录后重试</string>
+    <string name="str_common_empty_text">暂无记录</string>
 </resources>

+ 1 - 0
app_core/common/src/main/res/values-zh-rTW/strings.xml

@@ -1748,6 +1748,7 @@
     <string name="booking_time_set">預約時間段設置</string>
     <string name="enter_details_money">請輸入明細金額</string>
     <string name="host_null_please_login_retry">站点地址获取失败,请重新登录后重试</string>
+    <string name="str_common_empty_text">暂无记录</string>
     <!--end s商家设置-->
 
 </resources>

+ 1 - 0
app_core/common/src/main/res/values/colors.xml

@@ -355,4 +355,5 @@
     <color name="meeting_end_status">#9B9B9B</color>
     <color name="meeting_start_status">#3BAE7E</color>
     <color name="meeting_before_status">#FF0000</color>
+    <color name="empty_text_color">#999999</color>
 </resources>

+ 1 - 0
app_core/common/src/main/res/values/strings.xml

@@ -2033,5 +2033,6 @@
     <string name="room_location">服务/场地/房间</string>
     <string name="relax_time">休息时间</string>
     <string name="host_null_please_login_retry">站点地址获取失败,请重新登录后重试</string>
+    <string name="str_common_empty_text">暂无记录</string>
     <!--end s商家设置-->
 </resources>

+ 1 - 1
app_modular/appmessages/src/main/res/layout/activity_real_time_form.xml

@@ -34,7 +34,7 @@
             android:layout_height="wrap_content"
             android:layout_marginBottom="90dp"
             android:text="看板数据为空"
-            android:textColor="?attr/editTextColor"
+            android:textColor="@color/empty_text_color"
             android:textSize="14sp" />
     </LinearLayout>
 </FrameLayout>

+ 3 - 2
app_modular/apputils/src/main/res/layout/common_empty_view.xml

@@ -23,9 +23,10 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_marginBottom="90dp"
-            android:text="数据为空"
+            android:text="@string/str_common_empty_text"
             android:textSize="14sp"
-            android:textColor="?attr/editTextColor" />
+            android:textColor="@color/empty_text_color"
+            />
     </LinearLayout>
 
 </RelativeLayout>

+ 51 - 55
app_modular/appworks/src/main/java/com/uas/appworks/OA/erp/activity/CommonDocDetailsActivity.java

@@ -1,11 +1,9 @@
 package com.uas.appworks.OA.erp.activity;
 
-import android.content.DialogInterface;
 import android.content.Intent;
 import android.os.Bundle;
 import android.os.Handler;
 import android.os.Message;
-import android.support.v7.app.AlertDialog;
 import android.text.TextUtils;
 import android.util.Log;
 import android.view.KeyEvent;
@@ -47,6 +45,7 @@ import com.core.widget.EmptyLayout;
 import com.core.widget.MyListView;
 import com.core.widget.SquareCenterImageView;
 import com.core.widget.view.MyGridView;
+import com.modular.apputils.utils.PopupWindowHelper;
 import com.nostra13.universalimageloader.core.ImageLoader;
 import com.uas.appworks.CRM.erp.activity.DeviceDataFormAddActivity;
 import com.uas.appworks.OA.erp.activity.form.DataFormDetailActivity;
@@ -154,7 +153,7 @@ public class CommonDocDetailsActivity extends BaseActivity {
         if (intent != null) {
             device = intent.getBooleanExtra("device", false);
             message = intent.getBooleanExtra("message", false);
-            statusKey=intent.getStringExtra("statusKey");
+            statusKey = intent.getStringExtra("statusKey");
         }
 
         platform = ApiUtils.getApiModel() instanceof ApiPlatform;
@@ -315,11 +314,11 @@ public class CommonDocDetailsActivity extends BaseActivity {
             getMenuInflater().inflate(R.menu.menu_common_docdetails, menu);
             MenuItem item = menu.getItem(0);
             String title = null;
-            if (getToolBarTitle()!=null) {
+            if (getToolBarTitle() != null) {
                 title = getToolBarTitle().toString();
             }
-            if (real_status==null||!(real_status.equals("已提交")||real_status.equals("已审核"))
-            ||title == null || !"出差单详情".equals(title)) {
+            if (real_status == null || !(real_status.equals("已提交") || real_status.equals("已审核"))
+                    || title == null || !"出差单详情".equals(title)) {
                 item.setVisible(false);
             }
         }
@@ -333,7 +332,7 @@ public class CommonDocDetailsActivity extends BaseActivity {
                     .putExtra("caller", mCaller).putExtra("title", mTitle)
             );
             finish();
-        }else if (R.id.toTravel==item.getItemId()){
+        } else if (R.id.toTravel == item.getItemId()) {
             startActivity(new Intent(ct, BusinessTravelActivity.class));
             finish();
         }
@@ -350,7 +349,7 @@ public class CommonDocDetailsActivity extends BaseActivity {
                     LogUtil.d("非正常返回...");
                     startActivity(new Intent(mContext, FormListSelectActivity.class)
                             .putExtra("caller", mCaller)
-                            .putExtra("statusKey",statusKey)
+                            .putExtra("statusKey", statusKey)
                             .putExtra("title", mTitle));
                     finish();
                 }
@@ -1030,66 +1029,63 @@ public class CommonDocDetailsActivity extends BaseActivity {
             @Override
             public void onClick(View v) {
                 if (!TextUtils.isEmpty(real_status) && real_status.equals("在录入")) {
-                    new AlertDialog
-                            .Builder(mContext)
-                            .setTitle(getString(R.string.common_notice))
-                            .setMessage(getString(R.string.delete_doc_notice2))
-                            .setNegativeButton(getString(R.string.common_cancel), null)
-                            .setPositiveButton(getString(R.string.common_sure), new DialogInterface.OnClickListener() {
+                    PopupWindowHelper.showAlart(CommonDocDetailsActivity.this,
+                            getString(R.string.common_notice), getString(R.string.delete_doc_notice2),
+                            new PopupWindowHelper.OnSelectListener() {
                                 @Override
-                                public void onClick(DialogInterface dialog, int which) {
-                                    DeleteComDocRequest(mCaller, mkeyValue);
+                                public void select(boolean selectOk) {
+                                    if (selectOk) {
+                                        DeleteComDocRequest(mCaller, mkeyValue);
+                                    }
                                 }
-                            }).show();
+                            });
                 } else if (!TextUtils.isEmpty(real_status) && real_status.equals("已提交")) {
-                    new AlertDialog
-                            .Builder(mContext)
-                            .setTitle(getString(R.string.common_notice))
-                            .setMessage(getString(R.string.delete_sumited_notice1))
-                            .setNegativeButton(getString(R.string.common_cancel), null)
-                            .setPositiveButton(getString(R.string.common_sure), new DialogInterface.OnClickListener() {
+                    PopupWindowHelper.showAlart(CommonDocDetailsActivity.this,
+                            getString(R.string.common_notice), getString(R.string.delete_sumited_notice1),
+                            new PopupWindowHelper.OnSelectListener() {
                                 @Override
-                                public void onClick(DialogInterface dialog, int which) {  //反提交
-                                    if (device && "DeviceChange!Inspect".equals(mCaller)) {
-                                        ToastUtil.showToast(ct, "送检单不允许删除");
-                                    } else {
-                                        progressDialog.show();
-                                        Map<String, Object> params = new HashMap<>();
-                                        params.put("caller", mCaller);
-                                        params.put("id", mkeyValue);
-                                        LinkedHashMap<String, Object> headers = new LinkedHashMap<>();
-                                        headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
-                                        String url = "";
-                                        if ("ExtraWork$".equals(mCaller)) { // 新的加班单反提交
-                                            url = CommonUtil.getAppBaseUrl(ct) + "/hr/attendance/resSubmitExtraWork.action";
-                                            ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, New_DOC_REDELETE_SUCCESSFUL, null, null, "post");
-                                        } else if ("FeePlease!FYBX".equals(mCaller)) {
-                                            url = CommonUtil.getAppBaseUrl(ct) + "oa/fee/resSubmitFeePlease.action";
-                                            ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, 0x02, null, null, "post");
-                                        } else { // 通用老的反提交s
-                                            url = CommonUtil.getAppBaseUrl(ct) + "/mobile/commonres.action";
-                                            ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, COM_DOC_REDELETE_SUCCESSFUL, null, null, "post");
+                                public void select(boolean selectOk) {
+                                    if (selectOk) {
+                                        if (device && "DeviceChange!Inspect".equals(mCaller)) {
+                                            ToastUtil.showToast(ct, "送检单不允许删除");
+                                        } else {
+                                            progressDialog.show();
+                                            Map<String, Object> params = new HashMap<>();
+                                            params.put("caller", mCaller);
+                                            params.put("id", mkeyValue);
+                                            LinkedHashMap<String, Object> headers = new LinkedHashMap<>();
+                                            headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
+                                            String url = "";
+                                            if ("ExtraWork$".equals(mCaller)) { // 新的加班单反提交
+                                                url = CommonUtil.getAppBaseUrl(ct) + "/hr/attendance/resSubmitExtraWork.action";
+                                                ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, New_DOC_REDELETE_SUCCESSFUL, null, null, "post");
+                                            } else if ("FeePlease!FYBX".equals(mCaller)) {
+                                                url = CommonUtil.getAppBaseUrl(ct) + "oa/fee/resSubmitFeePlease.action";
+                                                ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, 0x02, null, null, "post");
+                                            } else { // 通用老的反提交s
+                                                url = CommonUtil.getAppBaseUrl(ct) + "/mobile/commonres.action";
+                                                ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, COM_DOC_REDELETE_SUCCESSFUL, null, null, "post");
+                                            }
                                         }
                                     }
                                 }
-                            }).show();
+                            });
                 }
             }
         });
     }
 
     private void reSubmit() {
-        new AlertDialog
-                .Builder(mContext)
-                .setTitle(getString(R.string.common_notice))
-                .setMessage(getString(R.string.daily_resubmit_notice1))
-                .setNegativeButton(getString(R.string.common_cancel), null)
-                .setPositiveButton(getString(R.string.common_sure), new DialogInterface.OnClickListener() {
+        PopupWindowHelper.showAlart(CommonDocDetailsActivity.this,
+                getString(R.string.common_notice), getString(R.string.daily_resubmit_notice1),
+                new PopupWindowHelper.OnSelectListener() {
                     @Override
-                    public void onClick(DialogInterface dialog, int which) {
-                        reSubmitNet();
+                    public void select(boolean selectOk) {
+                        if (selectOk) {
+                            reSubmitNet();
+                        }
                     }
-                }).show();
+                });
     }
 
     private void reSubmitNet() {
@@ -1188,7 +1184,7 @@ public class CommonDocDetailsActivity extends BaseActivity {
                         startActivity(new Intent(mContext, FormListSelectActivity.class)
                                 .putExtra("caller", mCaller)
                                 .putExtra("update", update)
-                                .putExtra("statusKey",statusKey)
+                                .putExtra("statusKey", statusKey)
                                 .putExtra("title", mTitle));
                         finish();
                     } else {
@@ -1204,7 +1200,7 @@ public class CommonDocDetailsActivity extends BaseActivity {
                     startActivity(
                             new Intent(mContext, FormListSelectActivity.class)
                                     .putExtra("caller", mCaller)
-                                    .putExtra("statusKey",statusKey)
+                                    .putExtra("statusKey", statusKey)
                                     .putExtra("title", mTitle));
                     finish();
                 }

File diff suppressed because it is too large
+ 226 - 200
app_modular/appworks/src/main/java/com/uas/appworks/OA/erp/activity/ExpenseReimbursementActivity.java


+ 5 - 10
app_modular/appworks/src/main/java/com/uas/appworks/OA/erp/activity/form/DataFormDetailActivity.java

@@ -2,12 +2,10 @@ package com.uas.appworks.OA.erp.activity.form;
 
 import android.app.Activity;
 import android.content.Context;
-import android.content.DialogInterface;
 import android.content.Intent;
 import android.os.Bundle;
 import android.os.Handler;
 import android.os.Message;
-import android.support.v7.app.AlertDialog;
 import android.text.Editable;
 import android.text.InputType;
 import android.text.TextUtils;
@@ -1028,19 +1026,16 @@ public class DataFormDetailActivity extends BaseActivity implements View.OnClick
                     item_add.setOnClickListener(new View.OnClickListener() {
                         @Override
                         public void onClick(View v) {
-                            new AlertDialog
-                                    .Builder(mContext)
-                                    .setTitle("温馨提示")
-                                    .setMessage("\t\t确认删除该明细项?")
-                                    .setNegativeButton("取消", null)
-                                    .setPositiveButton("确认", new DialogInterface.OnClickListener() {
+                            PopupWindowHelper.showAlart(DataFormDetailActivity.this,
+                                    "温馨提示", "\t\t确认删除该明细项?",
+                                    new PopupWindowHelper.OnSelectListener() {
                                         @Override
-                                        public void onClick(DialogInterface dialog, int which) {
+                                        public void select(boolean selectOk) {
                                             LogUtil.d(JSON.toJSONString(itemValue));
                                             deleteGridItemData(itemValue.getGroupId(), itemValue.getDetailId());
                                             notifyDataSetChanged();
                                         }
-                                    }).show();
+                                    });
                         }
                     });
                     break;

Some files were not shown because too many files changed in this diff