⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inputapply.java

📁 hibernate应用测试,初学hibernate 的会员可以看看.
💻 JAVA
字号:
package com.bean;

import java.sql.*;
import java.util.*;

import com.dao.*;
import org.apache.struts.action.*;

public class InputApply extends ActionForm{
    private int inApId;  //唯一标识
    private String primitiveId; //入库申请表原始单证号
    private int clientId;   //“客户表(client_table)”的外键
    private int shId;  //“仓库信息表(storehouse)”的外键
    private int productId;  //“产品表(product_table)”的外键
    private String applyDate;  //入库申请时间,系统当前时间
    private String applyPeop;  //入库申请人
    private String tel;  //申请人联系电话
    private String handset;  //申请人手机
    private String email;  //申请人e-mail
    private String stockRequest;  //库存要求
    private int insuranceFlag;  //是否办理保险
    private float insuranceCount;  //保险金额
    private int insurancePerod;  //保险期限
    private String appInDate;  //将要入库时间
    private float inputAmount;  //申请入库数量
    private float inputWeight;  //申请入库重量
    private int applyState=0;  //入库申请表的状态
    private int delFlag;  //删除标记
    private float usedArea;  //货物在仓库的储存面积
    private String note;  //备注
    private String contract=null;  //约定事项
    private int computerOperator=0;  //“账号表(acount_table)”的外键。“入库申请”录入员

    private ClientTableNameID clientInfo[];  //客户表
    private StorehouseNameID storehouseInfo[]; //仓库表
    private ProductTableNameID productInfo[];  //产品表
    private List test;

     public InputApply(){
         try{  //构造客户
             test = ClientTableDAO.selectClientTableNaAnID();
         }catch(SQLException ex){
             ex.printStackTrace();
         }
         clientInfo=new ClientTableNameID[test.size()];
         for(int i=0;i<test.size();i++){
             clientInfo[i]=(ClientTableNameID)test.get(i);
         }
         try{ //构造仓库表
             test=StorehouseDAO.selectAllStorehouseNameID();
         }catch(SQLException ex){
             ex.printStackTrace();
         }
         storehouseInfo=new StorehouseNameID[test.size()];
         for(int i=0;i<test.size();i++){
             storehouseInfo[i]=(StorehouseNameID)test.get(i);
         }
         try{ //构造产品表
             test=ProductTableDAO.selectAllProductTableNameID();
         }catch(SQLException ex){
             ex.printStackTrace();
         }
         productInfo=new ProductTableNameID[test.size()];
         for(int i=0;i<test.size();i++){
             productInfo[i]=(ProductTableNameID)test.get(i);
         }
     }
     public void setTest(List test){
         this.test=test;
     }

     public List getTest(){
         return this.test;
     }

     public StorehouseNameID [] getStorehouseInfo(){
         return this.storehouseInfo;
     }

     public void setStorehouseInfo(StorehouseNameID [] storehouseInfo){
         this.storehouseInfo=storehouseInfo;
     }

     public ClientTableNameID [] getClientInfo() { return this.clientInfo; }

     public void setClientInfo(ClientTableNameID [] clientInfo) {
       this.clientInfo = clientInfo;
     }

     public ProductTableNameID [] getProductInfo(){
         return this.productInfo;
     }

     public void setProductInfo(ProductTableNameID [] productInfo){
         this.productInfo=productInfo;
     }

    public void setInApId(int inApId){
         this.inApId=inApId;
}
    public int getInApId(){
        return this.inApId;
    }

    public void setPrimitiveId(String primitiveId){
         this.primitiveId=primitiveId;
}
    public String getPrimitiveId(){
        return this.primitiveId==null?"":this.primitiveId;
    }

    public void setClientId(int clientId){
         this.clientId=clientId;
}
    public int getClientId(){
        return this.clientId;
    }

    public void setShId(int shId){
         this.shId=shId;
}
    public int getShId(){
        return this.shId;
    }

    public void setProductId(int productId){
         this.productId=productId;
}
    public int getProductId(){
        return this.productId;
    }

    public void setApplyDate(String applyDate){
         this.applyDate=applyDate;
}
    public String getApplyDate(){
        return this.applyDate==null?"":this.applyDate.trim();
    }

    public void setApplyPeop(String applyPeop){
         this.applyPeop=applyPeop;
}
    public String getApplyPeop(){
        return this.applyPeop==null?"":this.applyPeop.trim();
    }

    public void setTel(String tel){
         this.tel=tel;
}
    public String getTel(){
        return this.tel==null?"":this.tel.trim();
    }

    public void setHandset(String handset){
         this.handset=handset;
}
    public String getHandset(){
        return this.handset==null?"":this.handset.trim();
    }

    public void setEmail(String email){
         this.email=email;
}
    public String getEmail(){
        return this.email==null?"":this.email.trim();
    }

    public void setStockRequest(String stockRequest){
         this.stockRequest=stockRequest;
}
    public String getStockRequest(){
        return this.stockRequest==null?"":this.stockRequest.trim();
    }

    public void setInsuranceFlag(int insuranceFlag){
         this.insuranceFlag=insuranceFlag;
}
    public int getInsuranceFlag(){
        return this.insuranceFlag;
    }

    public void setInsuranceCount(float insuranceCount){
         this.insuranceCount=insuranceCount;
}
    public float getInsuranceCount(){
        return this.insuranceCount;
    }

    public void setInsurancePerod(int insurancePerod){
         this.insurancePerod=insurancePerod;
}
    public int getInsurancePerod(){
        return this.insurancePerod;
    }

    public void setAppInDate(String appInDate){
         this.appInDate=appInDate;
}
    public String getAppInDate(){
        return this.appInDate==null?"":this.appInDate.trim();
    }

    public void setInputAmount(float inputAmount){
         this.inputAmount=inputAmount;
}
    public float getInputAmount(){
        return this.inputAmount;
    }

    public void setInputWeight(float inputWeight){
         this.inputWeight=inputWeight;
}
    public float getInputWeight(){
        return this.inputWeight;
    }

    public void setApplyState(int applyState){
         this.applyState=applyState;
}
    public int getApplyState(){
        return this.applyState;
    }

    public void setDelFlag(int delFlag){
         this.delFlag=delFlag;
}
    public int getDelFlag(){
        return this.delFlag;
    }

    public void setUsedArea(float usedArea){
         this.usedArea=usedArea;
}
    public float getUsedArea(){
        return this.usedArea;
    }

    public void setNote(String note){
         this.note=note;
}
    public String getNote(){
        return this.note==null?"":this.note.trim();
    }

    public void setContract(String contract){
         this.contract=contract;
}
    public String getContract(){
        return this.contract==null?"":this.contract.trim();
    }

    public void setComputerOperator(int computerOperator){
         this.computerOperator=computerOperator;
}
    public int getComputerOperator(){
        return this.computerOperator;
    }
}

⌨️ 快捷键说明

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