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

📄 storeformoutinfo.java

📁 java阿里巴巴代码
💻 JAVA
字号:
package com.saas.biz.storeformOutMgr;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;

import com.saas.biz.dao.storeformOutDAO.StoreformOutExt;
import com.saas.sys.buffer.Buffers;
import com.saas.sys.dbm.Dbtable;
import com.saas.sys.exp.SaasApplicationException;
import com.saas.sys.log.Logger;
import com.saas.biz.commen.commMethodMgr;
import com.saas.biz.dao.storeformOutDAO.*;

public class StoreformOutInfo {
	Dbtable tradeQuery;

	Logger log;

	Buffers inBuffer;

	Buffers outBuffer;

	ArrayList queryResult = new ArrayList();

	public StoreformOutInfo() {
		log = new Logger(this);
		tradeQuery = new Dbtable();
	}

	public void setTradeQuery(Dbtable tradeQuery) {
		this.tradeQuery = tradeQuery;
	}

	public Dbtable getTradeQuery() {
		return this.tradeQuery;
	}

	public void setOutBuffer(Buffers outBuffer) {
		this.outBuffer = outBuffer;
	}

	public Buffers getOutBuffer() {
		return this.outBuffer;
	}

	public ArrayList getQueryResult() {
		return this.queryResult;
	}

	public void setQueryResult(ArrayList queryResult) {
		this.queryResult = queryResult;
	}

	public void addStoreformOut(Buffers inbuffer) {
		log.LOG_INFO("进入addStoreformOut方法...");
		this.outBuffer = inbuffer;
		String house_id = inbuffer.getString("HOUSE_ID");
		String pos_id = inbuffer.getString("POS_ID");
		String store_pos = house_id+"|"+pos_id;
		String cust_id = inbuffer.getString("SESSION_CUST_ID");
		String form_id = inbuffer.getString("FORM_ID");
		String quo_id = inbuffer.getString("QUO_ID");
		String link_quo_id = inbuffer.getString("LINK_QUO_ID");
		String quo_name = inbuffer.getString("QUO_NAME");
		String quo_no = inbuffer.getString("QUO_NO");
		String quo_num = inbuffer.getString("QUO_NUM");
		String goods_id = inbuffer.getString("GOODS_ID");
		String goods_name = inbuffer.getString("GOODS_NAME");
		String goods_desc = inbuffer.getString("GOODS_DESC");
		String goods_no = inbuffer.getString("GOODS_NO");
		String store_no = inbuffer.getString("STORE_NO");
		String goods_type = inbuffer.getString("GOODS_TYPE");
		String store_type = inbuffer.getString("STORE_TYPE");
		String obj_cust = inbuffer.getString("OBJ_CUST");
		String meas_unit = inbuffer.getString("MEAS_UNIT");
		String per_unit_num = inbuffer.getString("PER_UNIT_NUM");
		String pack_unit = inbuffer.getString("PACK_UNIT");
		String lenght = inbuffer.getString("LENGHT");
		String width = inbuffer.getString("WIDTH");
		String height = inbuffer.getString("HEIGHT");
		String volume = inbuffer.getString("VOLUME");
		String weight = inbuffer.getString("WEIGHT");
		String capacity = inbuffer.getString("CAPACITY");
		String ship_type = inbuffer.getString("SHIP_TYPE");
		String ship_date = inbuffer.getString("SHIP_DATE");
		String oper_user_id = inbuffer.getString("SESSION_USER_ID");
		String in_date = inbuffer.getString("IN_DATE");
		String remark2 = inbuffer.getString("REMARK2");
		int iResult = -1;
		try {
				iResult = addStoreformOut(store_pos,cust_id, form_id, quo_id, link_quo_id,
						quo_name, quo_no, quo_num, goods_id, goods_name,
						goods_desc, goods_no, store_no, goods_type,
						store_type, obj_cust,meas_unit,
						per_unit_num, pack_unit, lenght, width, height, volume,
						weight, capacity, ship_type, ship_date, oper_user_id,
						in_date, remark2);
				
		} catch (SaasApplicationException e) {
			log.LOG_INFO(e.getMessage());
		}
		if (iResult != 0) {
			this.outBuffer.setInt("RESULT_CODE", -1);
			this.outBuffer.setString("RESULT_INFO", "业务处理失败!");
		} else {
			this.outBuffer.setInt("RESULT_CODE", 0);
			this.outBuffer.setString("RESULT_INFO", "业务处理成功!");
		}
		log.LOG_INFO("退出addStoreformOut方法...");
	}

	public int addStoreformOut(String store_pos,String cust_id, String form_id, String quo_id,
			String link_quo_id, String quo_name, String quo_no, String quo_num,
			String goods_id, String goods_name, String goods_desc,
			String goods_no, String store_no, String goods_type,String store_type,
			String obj_cust,
			String meas_unit, String per_unit_num, String pack_unit,
			String lenght, String width, String height, String volume,
			String weight, String capacity, String ship_type, String ship_date,
			String oper_user_id, String in_date, String remark2)
			throws SaasApplicationException {
		StoreformOutExt storeformOutExt = new StoreformOutExt();
		storeformOutExt.setParam(":VSTORE_POS",store_pos);
		storeformOutExt.setParam(":VCUST_ID",cust_id);
		storeformOutExt.setParam(":VFORM_ID",form_id);
		storeformOutExt.setParam(":VQUO_ID",quo_id);
		storeformOutExt.setParam(":VLINK_QUO_ID",link_quo_id);
		storeformOutExt.setParam(":VQUO_NAME",quo_name);
		storeformOutExt.setParam(":VQUO_NO",quo_no);
		storeformOutExt.setParam(":VQUO_NUM",quo_num);
		storeformOutExt.setParam(":VGOODS_ID",goods_id);
		storeformOutExt.setParam(":VGOODS_NAME",goods_name);
		storeformOutExt.setParam(":VGOODS_DESC",goods_desc);
		storeformOutExt.setParam(":VGOODS_NO",goods_no);
		storeformOutExt.setParam(":VSTORE_NO",store_no);
		storeformOutExt.setParam(":VGOODS_TYPE",goods_type);
		storeformOutExt.setParam(":VSTORE_TYPE",store_type);
		storeformOutExt.setParam(":VOBJ_CUST",obj_cust);
		storeformOutExt.setParam(":VMEAS_UNIT",meas_unit);
		storeformOutExt.setParam(":VPER_UNIT_NUM",per_unit_num);
		storeformOutExt.setParam(":VPACK_UNIT",pack_unit);
		storeformOutExt.setParam(":VLENGHT",lenght);
		storeformOutExt.setParam(":VWIDTH",width);
		storeformOutExt.setParam(":VHEIGHT",height);
		storeformOutExt.setParam(":VVOLUME",volume);
		storeformOutExt.setParam(":VWEIGHT",weight);
		storeformOutExt.setParam(":VCAPACITY",capacity);
		storeformOutExt.setParam(":VSHIP_TYPE",ship_type);
		storeformOutExt.setParam(":VSHIP_DATE",ship_date);
		storeformOutExt.setParam(":VOPER_USER_ID",oper_user_id);
		storeformOutExt.setParam(":VIN_DATE",in_date);
		storeformOutExt.setParam(":VREMARK2",remark2);
		tradeQuery.executeBy(storeformOutExt.insBy("INS_STOREFORM_OUT_ALL"));
		return 0;
	}
	
	
	public ArrayList getAllStoreFormOut(String cust_id,int iStart) throws SaasApplicationException 
	{
		
		ArrayList list = new ArrayList();
		StoreformOutExt storeformOutExt = new StoreformOutExt();
		try {
			if (iStart == 0) {
				iStart = 0;
			}
			else {
				iStart = (iStart - 1)*20;
			}
			storeformOutExt.setParam(":VCUST_ID",cust_id);
			list = storeformOutExt.selByList("SEL_BY_CUST",iStart, 20);
		}
		catch (RuntimeException e) {
			log.LOG_INFO(e.getMessage());
		}
		return list;
	}
	
	public int getAllStoreFormOut(String cust_id) throws SaasApplicationException 
	{
		int count=0;
		ArrayList list = new ArrayList();
		StoreformOutExt storeformOutExt = new StoreformOutExt();
		try {
			storeformOutExt.setParam(":VCUST_ID",cust_id);
			list = storeformOutExt.selByList("SEL_BY_CUST");
		}
		catch (RuntimeException e) {
			log.LOG_INFO(e.getMessage());
		}
		if(list != null && list.size()>0){
			count = list.size();
		}
		return count;
	}
	
	public HashMap getOneStoreFormOut(String cust_id,String quo_id) throws SaasApplicationException 
	{
		
		ArrayList list = new ArrayList();
		HashMap map = new HashMap();
		StoreformOutExt storeformOutExt = new StoreformOutExt();
		try {
			storeformOutExt.setParam(":VCUST_ID",cust_id);
			storeformOutExt.setParam(":VQUO_ID",quo_id);
			list = storeformOutExt.selByList("SEL_ONE_STORE_FORM");
		}
		catch (RuntimeException e) {
			log.LOG_INFO(e.getMessage());
		}
		if(list != null && list.size()>0){
			map = (HashMap)list.get(0);
		}
		return map;
	}
	
}

⌨️ 快捷键说明

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