public void handleMessage(Message msg) {
          if (!Thread.currentThread().isInterrupted()) {
            switch (msg.what) {
              case 1234:
                String str_content = "";
                File file = new File(zw_path);
                if (file.exists()) {
                  byte[] bytes = null;
                  try {
                    bytes = FileUtil.getBytesFromFile(file);
                  } catch (IOException e) {
                    e.printStackTrace();
                  }
                  str_content = Base64.encodeToString(bytes, Base64.DEFAULT);
                  getFlowFormElements.SaveArchiveData(
                      Detail_xzfwsh_chakantabs_MainActivity.this,
                      3000,
                      ArcStepID,
                      infofile.WFID().get(),
                      infofile.WFStepID().get(),
                      infoFile.infoUsername().get(),
                      infofile.infoUserType().get(),
                      str_content);
                }

                break;
              default:
                break;
            }
          }
        }
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.xzfw_xzfwsh_tabs_main);
    infofile = new InfoFile_(this);
    FlowID = infofile.FlowID().get();
    WFID = infofile.WFID().get();
    endTime = infofile.endTime().get();
    Title = infofile.Title().get();
    statusOfShenhe = infofile.statusOfSHENHE().get();
    WFStepID = infofile.WFStepID().get();

    InitTextView();
    getDatasFromInterface();

    // 生成广播处理
    receive = new receive();
    // 实例化过滤器并设置要过滤的广播
    IntentFilter intentFilter = new IntentFilter("com.kinggrid.iappoffice.save");
    intentFilter.addAction("checkSuccess");
    // 注册广播
    this.registerReceiver(receive, intentFilter);
  }
 @Override
 public void onClick(View v) {
   switch (v.getId()) {
     case R.id.back:
       this.finish();
       break;
     case R.id.ll1:
       DatePickDialog.showDateCheckDialog(this, tv_1, true);
       break;
     case R.id.btn_ty:
       Constants.shouwenOrfawen = 2000;
       Constants.passOrNot = 1;
       Constants.ShenHeYiJian = edt_shyj.getText().toString();
       Constants.userName = cxry_username.toString();
       Constants.userCode = cxry_usercode.toString();
       getFlowFormElements.GetCheckNextStepInfo(
           this,
           1000,
           FlowID,
           infofile.WFID().get(),
           0,
           infofile.CurNode().get() + "",
           "1",
           0,
           infofile.infoUsername().get());
       break;
     case R.id.btn_bty:
       Constants.shouwenOrfawen = 2000;
       Constants.passOrNot = 0;
       Constants.ShenHeYiJian = edt_shyj.getText().toString();
       Constants.userName = cxry_username.toString();
       Constants.userCode = cxry_usercode.toString();
       getFlowFormElements.GetCheckNextStepInfo(
           this,
           1000,
           FlowID,
           infofile.WFID().get(),
           0,
           infofile.CurNode().get() + "",
           "0",
           0,
           infofile.infoUsername().get());
       break;
     case R.id.btn_th:
       showInfo();
       break;
     case R.id.btn_ckzw:
       if (hasDownZW) {
         IAppOfficeUtil.OpenOfficeFile(iAppOffice, zw_path);
       } else {
         getFlowFormElements.LoadArchiveData(
             Detail_xzfwsh_chakantabs_MainActivity.this,
             2000,
             0,
             ArcStepID,
             infofile.WFID().get(),
             infofile.WFStepID().get());
       }
       // FileUtil.writeBase64StringToFile(
       // handleResult.getContent(), zw_path);
       // if (iAppOffice != null) {
       // IAppOfficeUtil.OpenOfficeFile(iAppOffice, zw_path);
       // }
       break;
     default:
       break;
   }
 }