コード例 #1
0
 @Override
 protected void onPostExecute(Boolean result) {
   super.onPostExecute(result);
   HideWaiting();
   if (result == false) {
     if (errcode == -3) Utils.ShowToast(mContext, "雇佣失败,或已经被雇佣");
     return;
   }
   Utils.ShowToast(mContext, "雇用成功!");
   finish();
 }
コード例 #2
0
 @Override
 protected void onPostExecute(Boolean result) {
   super.onPostExecute(result);
   if (result == false) {
     HideWaiting();
     Utils.ShowToast(mContext, "没有已申请此职位的人");
     return;
   }
   ParseHireToResume(DB.getHiredJobList(mContext, -1));
 }
コード例 #3
0
 /**
  * 通过判断type,管理click事件
  *
  * @param mtype
  */
 private void ManageClick(int mtype) {
   switch (mtype) {
     case CLICK_TYPE_BACKBTN:
       // 返回按钮的监听
       finish();
       break;
     case CLICK_TYPE_EMPLOYMENT_BTN:
       if (Submit.isNetworkAvailable(mContext)) ProcessEmployFunction();
       else Utils.ShowToast(mContext, "没有可用网!");
       break;
     default:
       break;
   }
 }
コード例 #4
0
 @Override
 protected void onPostExecute(Boolean result) {
   super.onPostExecute(result);
   HideWaiting();
   if (result == false) {
     Utils.ShowToast(mContext, "加载失败,请检查网络");
     return;
   }
   HashMap<String, String> map = DB.getResumeInfo(mContext, rid);
   struct = new JobManagedStruct();
   struct.mUserName = (String) map.get("rname");
   struct.mTime = (String) map.get("rstarttime");
   struct.mAddressDistance = (String) map.get("radd");
   struct.mJobNameType = (String) map.get("rtype");
   struct.mHireid = hireid;
   mJobEmployList.add(struct);
   viewhandler.sendEmptyMessage(CLICK_TYPE_SHOWLIST);
 }
コード例 #5
0
  private void initViews() {
    /** 标题部分 */
    CenterTitle = (TextView) findViewById(R.id.title_text);
    LeftBackBtn = (ImageView) findViewById(R.id.home_back);
    CenterTitle.setText("雇佣管理");
    LeftBackBtn.setOnClickListener(new MyOnClickListener(CLICK_TYPE_BACKBTN));

    JobManagedList = (ListView) findViewById(R.id.job_managed_list);

    /* 等待对话框部分 */
    WaitingText = (TextView) findViewById(R.id.Waiting_text);
    WaitingDlg = (RelativeLayout) findViewById(R.id.Waiting_dlg);

    EmploymentBtn = (TextView) findViewById(R.id.employment_btn);
    EmploymentBtn.setOnClickListener(new MyOnClickListener(CLICK_TYPE_EMPLOYMENT_BTN));

    if (Submit.isNetworkAvailable(mContext)) new GetCompanyInfoAsynTask().execute(Jobid);
    else Utils.ShowToast(mContext, "没有可用网络");
  }