|
|
@@ -0,0 +1,65 @@
|
|
|
+package com.xzjmyk.pm.activity.ui.erp.activity.oa;
|
|
|
+
|
|
|
+import android.content.Intent;
|
|
|
+import android.os.Bundle;
|
|
|
+import android.view.Menu;
|
|
|
+import android.view.MenuItem;
|
|
|
+import android.widget.TextView;
|
|
|
+
|
|
|
+import com.lidroid.xutils.ViewUtils;
|
|
|
+import com.lidroid.xutils.view.annotation.ViewInject;
|
|
|
+import com.xzjmyk.pm.activity.R;
|
|
|
+import com.xzjmyk.pm.activity.ui.base.BaseActivity;
|
|
|
+import com.xzjmyk.pm.activity.ui.erp.util.StringUtils;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Created by FANGlh on 2017/4/28.
|
|
|
+ * function:
|
|
|
+ */
|
|
|
+public class PlatMsgThirdActivity extends BaseActivity {
|
|
|
+ @ViewInject(R.id.plat_msg_third_tv)
|
|
|
+ private TextView plat_msg_third_tv;
|
|
|
+ @Override
|
|
|
+ protected void onCreate(Bundle savedInstanceState) {
|
|
|
+ super.onCreate(savedInstanceState);
|
|
|
+ initView();
|
|
|
+ initData();
|
|
|
+ }
|
|
|
+ private void initView() {
|
|
|
+ setContentView(R.layout.plat_msg_third);
|
|
|
+ ViewUtils.inject(this);
|
|
|
+ }
|
|
|
+ private void initData() {
|
|
|
+ Intent intent = new Intent();
|
|
|
+ String msg_title = intent.getStringExtra("title");
|
|
|
+ String msg_context = intent.getStringExtra("msg_context");
|
|
|
+
|
|
|
+ if (!StringUtils.isEmpty(msg_title)) getSupportActionBar().setTitle(msg_title);
|
|
|
+ plat_msg_third_tv.setText(msg_context + "");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean onCreateOptionsMenu(Menu menu) {
|
|
|
+ return super.onCreateOptionsMenu(menu);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean onOptionsItemSelected(MenuItem item) {
|
|
|
+ if (item.getItemId() == android.R.id.home){
|
|
|
+ Intent intent = new Intent();
|
|
|
+ intent.putExtra("read_status",true);
|
|
|
+ setResult(22, intent);
|
|
|
+ finish();
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onBackPressed() {
|
|
|
+ Intent intent = new Intent();
|
|
|
+ intent.putExtra("read_status",true);
|
|
|
+ setResult(22, intent);
|
|
|
+ finish();
|
|
|
+ super.onBackPressed();
|
|
|
+ }
|
|
|
+}
|