Package com.wgc.action

Source Code of com.wgc.action.UpdateAppoint

package com.wgc.action;

import com.wgc.beans.Appoint;
import com.wgc.service.AppointService;

//����ԤԼ���״̬���ɹ���Ա������
public class UpdateAppoint {

  private AppointService appoService;

  public Boolean updateShzt(String yyID,Boolean shzt){

    try{
        Appoint appo = this.appoService.findById(Integer.parseInt(yyID));
        this.appoService.deleteRecord(appo);
        appo.setShzt(true);
        this.appoService.saveRecord(appo);
    }catch(Exception e){
      e.printStackTrace();
      return false;
    }
    return true;
   
  }
 
 
  public AppointService getAppoService() {
    return appoService;
  }
  public void setAppoService(AppointService appoService) {
    this.appoService = appoService;
  }
}
TOP

Related Classes of com.wgc.action.UpdateAppoint

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.