|
|
@@ -11,7 +11,9 @@ import android.webkit.WebChromeClient;
|
|
|
import android.webkit.WebView;
|
|
|
|
|
|
import com.common.LogUtil;
|
|
|
+import com.common.data.StringUtil;
|
|
|
import com.common.data.TextUtil;
|
|
|
+import com.core.app.Constants;
|
|
|
import com.core.utils.CommonUtil;
|
|
|
import com.core.utils.IntentUtils;
|
|
|
import com.modular.apputils.utils.OpenFilesUtils;
|
|
|
@@ -19,6 +21,7 @@ import com.core.utils.ToastUtil;
|
|
|
import com.core.widget.CustomProgressDialog;
|
|
|
import com.modular.appmessages.R;
|
|
|
import com.modular.apputils.network.FileDownloader;
|
|
|
+import com.uas.appworks.CRM.erp.activity.DeviceBillInputActivity;
|
|
|
import com.uas.appworks.OA.erp.activity.CommonDocDetailsActivity;
|
|
|
|
|
|
import org.w3c.dom.Text;
|
|
|
@@ -55,14 +58,25 @@ public class MsgThirdWebActivity extends MessageWebActivity {
|
|
|
String title = intent.getStringExtra(IntentUtils.KEY_TITLE);
|
|
|
String caller = intent.getStringExtra("caller");
|
|
|
int keyValue = intent.getIntExtra("keyValue", -1);
|
|
|
- if (!TextUtils.isEmpty(title) && !TextUtils.isEmpty(caller) && keyValue != -1) {
|
|
|
- startActivity(new Intent(ct, CommonDocDetailsActivity.class)
|
|
|
- .putExtra("caller", caller)
|
|
|
- .putExtra("keyValue", keyValue)
|
|
|
- .putExtra("title", title)
|
|
|
- .putExtra("device", false)
|
|
|
- .putExtra("message", true)
|
|
|
- .putExtra("status", "已审批"));
|
|
|
+ if (!TextUtils.isEmpty(caller) && keyValue != -1) {
|
|
|
+ if ("DeviceChange!Repair".equals(caller)) {
|
|
|
+ startActivity(new Intent(mContext, DeviceBillInputActivity.class)
|
|
|
+ .putExtra(Constants.Intents.CALLER, caller)
|
|
|
+ .putExtra(Constants.Intents.ID, keyValue)
|
|
|
+ .putExtra(Constants.Intents.INPUT_CLASS, DeviceBillInputActivity.class)
|
|
|
+ .putExtra(Constants.Intents.TITLE, "设备维修")
|
|
|
+ .putExtra("device", true)
|
|
|
+ .putExtra(Constants.Intents.SHOW_HEADER, true)
|
|
|
+ .putExtra(Constants.Intents.BILL_STATUS, "在录入"));
|
|
|
+ } else if (!TextUtils.isEmpty(title)) {
|
|
|
+ startActivity(new Intent(ct, CommonDocDetailsActivity.class)
|
|
|
+ .putExtra("caller", caller)
|
|
|
+ .putExtra("keyValue", keyValue)
|
|
|
+ .putExtra("title", title)
|
|
|
+ .putExtra("device", false)
|
|
|
+ .putExtra("message", true)
|
|
|
+ .putExtra("status", "已审批"));
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|