startuse.java~23~

来自「一个java+sql2000开发的网吧管理系统」· JAVA~23~ 代码 · 共 54 行

JAVA~23~
54
字号
package com.jbaptech.accp.netbar.client;

import java.sql.*;


/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: 北京阿博泰克北大青鸟信息技术有限公司</p>
 *
 * @author Michael Luo
 * @version 1.0
 */
public class StartUse {
  public StartUse() {
  }
//向Record表插入上机记录
  public void doStartUseComputerBusiness(String CardId,String ComputerId,String BeginTime){
    System.out.println(CardId);
    System.out.println(ComputerId);
    System.out.println(BeginTime);
   /* Connection con = null;
    con = ConnectionManager.getConnection();
    try{
      String strsql1
          = "insert into Record(CardId,ComputerId,BeginTime) values(?,?,?)";
      PreparedStatement ps = con.prepareStatement(strsql1);
      ps.setString(1,CardId);
      ps.setString(2,ComputerId);
      ps.setString(3,BeginTime);

      String strsql2 =
          "update computer set OnUse =1 where id ='"+ComputerId+"'";
      Statement s = con.createStatement();
      s.executeUpdate(strsql2);

    }catch (SQLException sqlE) {
      sqlE.printStackTrace();
    }finally{
      try{
        con.close();
      }catch (SQLException e) {
        e.printStackTrace();
      }
    }*/

  }          //finally

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?