|
|
@@ -16,6 +16,7 @@ import android.widget.ImageView;
|
|
|
import android.widget.LinearLayout;
|
|
|
import android.widget.RadioButton;
|
|
|
import android.widget.RadioGroup;
|
|
|
+import android.widget.RelativeLayout;
|
|
|
import android.widget.TextView;
|
|
|
|
|
|
import com.afollestad.materialdialogs.MaterialDialog;
|
|
|
@@ -111,6 +112,7 @@ public class BServiceAddActivity extends OABaseActivity implements View.OnClickL
|
|
|
private LinearLayout llPanelBusiness;
|
|
|
private TextView tvSeatsLeft;
|
|
|
private TextView tvSeatsRight;
|
|
|
+ private RelativeLayout notes_rl;
|
|
|
|
|
|
@Override
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
@@ -182,6 +184,7 @@ public class BServiceAddActivity extends OABaseActivity implements View.OnClickL
|
|
|
tvSeatsRight=findViewById(R.id.tvSeatsRight);
|
|
|
llPanelWait=(LinearLayout)findViewById(R.id.llPanelWait);
|
|
|
llPanelBusiness=(LinearLayout)findViewById(R.id.llPanelBusiness);
|
|
|
+ notes_rl =(RelativeLayout)findViewById(R.id.notes_rl);
|
|
|
|
|
|
submit_btn.setOnClickListener(this);
|
|
|
et_book_name.setText(CommonUtil.getName());
|
|
|
@@ -1150,7 +1153,12 @@ public class BServiceAddActivity extends OABaseActivity implements View.OnClickL
|
|
|
if (!isEdited) {
|
|
|
et_book_phone.setText(data.getString("sb_telephone"));
|
|
|
et_book_name.setText(data.getString("sb_recordor"));
|
|
|
- et_book_notes.setText(data.getString("sb_remark"));
|
|
|
+ if (!StringUtil.isEmpty(data.getString("sb_remark"))){
|
|
|
+ et_book_notes.setText(data.getString("sb_remark"));
|
|
|
+ notes_rl.setVisibility(View.VISIBLE);
|
|
|
+ }else{
|
|
|
+ notes_rl.setVisibility(View.GONE);
|
|
|
+ }
|
|
|
et_book_phone.setKeyListener(null);
|
|
|
et_book_name.setEnabled(false);
|
|
|
et_book_notes.setEnabled(false);
|