示例#1
0
  @Override
  protected void init() {
    // 标识位不要动
    SystemConfig.isDeflossPage = false;

    // 报案号和任务类型
    if (bundle != null) {
      registNo = bundle.getString("registNo");
      // 地区
      String arean = registNo.substring(1, 3);
      if ("01".equals(arean)) {
        SystemConfig.AREAN = "北京";
      } else if ("11".equals(arean)) {
        SystemConfig.AREAN = "北京";
      } else if ("02".equals(arean)) {
        SystemConfig.AREAN = "上海";
      } else {
        SystemConfig.AREAN = "";
      }
      checkStatue = bundle.getString("checkStatue");
      SystemConfig.PHOTO_CLAIMNO = registNo;
      checkTask = CheckTaskAccess.findByRegistno(registNo);
    } else {
      registNo = "报案号错误";
      SystemConfig.PHOTO_CLAIMNO = "00000000";
      checkTask = new CheckTask();
    }

    // 加载布局文件
    layout = inflater.inflate(R.layout.survey_basic, null);
    // 填充布局
    LinearLayout.LayoutParams params =
        new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
    layout.setLayoutParams(params);

    promptManager = new PromptManager();

    // 初始化抽屉
    gDrawer = layout.findViewById(R.id.survey_basic_drawer);
    drawerUtils = new DrawerUtils(gDrawer);

    dbHelper = new FastClaimDbHelper(context);
    // 获取报案号
    commonUtils = new CommonUtils();
    TopManager.getInstance().setHeadTitle(registNo, 16, Typeface.defaultFromStyle(Typeface.BOLD));
    TopManager.getInstance()
        .getBtnSurveyBasicMsg()
        .setBackgroundResource(R.drawable.tasks_infortab_click);
    caseinfoRl = (RelativeLayout) layout.findViewById(R.id.survey_basic_btn_caseinfo);
    taskinfoRl = (RelativeLayout) layout.findViewById(R.id.survey_basic_btn_taskinfo);
    ACaseImv = (ImageView) layout.findViewById(R.id.survey_basic_caseinfo_ll);
    ATaskImg = (ImageView) layout.findViewById(R.id.survey_basic_taskinfo_ll);
    caseListView = (ListView) layout.findViewById(R.id.survey_basic_caseinfo_listview);
    taskListView = (ListView) layout.findViewById(R.id.survey_basic_taskinfo_listview);
    rlBaoDan = (RelativeLayout) layout.findViewById(R.id.survey_basic_btn_baodaninfo);
    rlHistory = (RelativeLayout) layout.findViewById(R.id.survey_basic_btn_history);
    rlOrderTime = (RelativeLayout) layout.findViewById(R.id.survey_basic_btn_predicttime);
    llOrderTime = (LinearLayout) layout.findViewById(R.id.survey_basic_ll_ordertime);
    imvOrderTime = (ImageView) layout.findViewById(R.id.survey_basic_taskinfo_ll_ordertime);
    messagesQuery = (RelativeLayout) layout.findViewById(R.id.survey_basic_btn_messagesQuery);
    messagesEditxiepei =
        (RelativeLayout) layout.findViewById(R.id.survey_basic_btn_messagesEditxiepei);
    edOrderTime =
        (EditText) layout.findViewById(R.id.survrybasic_taskinfo_listview_item_ed_ordertime);
    setDateTimeUsils = new SetDateTimeUsils(context);
    edOrderTime.setText(checkTask.getOrdertime());

    contactRL = (RelativeLayout) layout.findViewById(R.id.survey_basic_btn_contactinfo);
    if (!SystemConfig.UserRightIsAdvanced) {
      contactRL.setVisibility(View.VISIBLE);
      contactImv = (ImageView) layout.findViewById(R.id.survey_basic_contactinfo_ll);
      contactListView = (ListView) layout.findViewById(R.id.survey_basic_contactinfo_listview);
      messagesEditxiepei.setVisibility(View.VISIBLE);
      // 联系人信息
      if (sContactView == null) sContactView = new SContactView(context);
    } else {
      contactRL.setVisibility(View.GONE);
      messagesEditxiepei.setVisibility(View.GONE);
    }

    // 初始化数据
    setData();
    controlEd();
  }
示例#2
0
 @Override
 public void afterTextChanged(Editable arg0) {
   // 保存预约时间
   String ordertime = edOrderTime.getText().toString().trim();
   CheckTaskAccess.update(registNo, null, null, ordertime, null, null, null, null);
 }