Examples of Staff


Examples of com.acrm.client.entity.staff.Staff

    ClientConnectionManager connectionManager = new ThreadSafeClientConnManager(params,schemeRegistry);
    HttpClient client=new DefaultHttpClient(connectionManager,params);
   
    //HttpPost post=new HttpPost("http://localhost:8080/XCFServer1");
    HttpPost post=new HttpPost("http://localhost:8080/CRMServer/test/ctaclist.action");
    Staff s=new Staff();
    s.setStaffName("guxuede");
    SerializableEntity entity=new SerializableEntity(s, true);
    post.setEntity(entity);
    System.out.println("start");
    client.execute(post, new ResponseHandler<Void>() {
      @Override
View Full Code Here

Examples of com.acrm.client.entity.staff.Staff

import com.caucho.hessian.io.Hessian2Output;

public class HessianDemo {
  public static void main(String[] args) throws IOException {
    SoftReference sr;
    Staff s=new Staff();
    s.setStaffCD("guxuede");
    s.setLevel(100);
   
    readObject_Hessian(writeObject_Hessian(s));
    //writeObject_JDK(s);
  }
View Full Code Here

Examples of event_manager.models.Staff

     * Sets client to edit.
     *
     * @param staff staff to return
     */
    public void setStaff(Staff staff) {
        Staff oldStaff = this.staff;
        this.staff = staff;
        firePropertyChange("staff", oldStaff, staff);
    }
View Full Code Here

Examples of event_manager.models.Staff

     * Sets client to edit.
     *
     * @param staff staff to return
     */
    public void setStaff(Staff staff) {
        Staff oldStaff = this.staff;
        this.staff = staff;
        firePropertyChange("staff", oldStaff, staff);
    }
View Full Code Here

Examples of event_manager.models.Staff

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                new Login(new Staff()).setVisible(true);
            }
        });
    }
View Full Code Here

Examples of event_manager.models.Staff

        switch(panelId) {
            case ViewHelper.LIST_EVENT:
                panel = new ListPanel(new EventsController(), new Event(), this);
                break;
            case ViewHelper.LIST_STAFF:
                panel = new ListPanel(new StaffsController(), new Staff(), this);
                break;
            case ViewHelper.LIST_CLIENT:
                panel = new ListPanel(new ClientsController(), new Client(), this);
                break;
            default:
View Full Code Here

Examples of event_manager.models.Staff

     * Sets client to edit.
     *
     * @param staff staff to return
     */
    public void setStaff(Staff staff) {
        Staff oldStaff = this.staff;
        this.staff = staff;
        firePropertyChange("staff", oldStaff, staff);
    }
View Full Code Here

Examples of event_manager.models.Staff

        view.show(panelName, ViewHelper.LIST_STAFF);
    }

    @Override
    public void createNew(View view) {
        new StaffForm(view, true, new Staff()).setVisible(true);
    }
View Full Code Here

Examples of event_manager.models.Staff

    public boolean save(View view, Model model) {
        DBHelper.openConnection();

        boolean saved = false;
        String errors = "";
        Staff st = (Staff) model;
        String profilePicturePath = st.getProfilePicturePath();

        if(st.save()) {
            saved = true;
            // Upload profile picture if provided
            if(!profilePicturePath.equals("")) {
                File tmpFile = new File(profilePicturePath);
                if(tmpFile.exists() && tmpFile.isFile()) {
                    if(FileHelper.fileSizeInMB(tmpFile) < FileHelper.UPLOAD_LIMIT) {
                        try {
                            String profilePicture = FileHelper.absolutePathToLocalFilename(profilePicturePath, (String)st.get("username"));
                            FileUtils.copyFile(new File(profilePicturePath), new File(FileHelper.PROFILE_PIC_DIR + profilePicture));
                            st.set("profile_picture", profilePicture);
                            st.save();
                        } catch (IOException ex) {
                            errors += "Error saving profile picture";
                        }
                    } else {
                        errors += "The upload limit is " + FileHelper.UPLOAD_LIMIT + "MB";
View Full Code Here

Examples of event_manager.models.Staff

    }

    @Override
    public void show(View view, int modelId) {
        DBHelper.openConnection();
        Staff staff = Staff.findById(modelId);
        new Show(view, true, staff).setVisible(true);
        DBHelper.closeConnection();
    }
View Full Code Here
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.