package com.steering.pss.sale.order;

import java.util.ArrayList;
import com.steering.comm.db.DBCommon;
import com.steering.comm.tools.SqlBuilder;
import CoreFS.SA06.CoreReturnObject;
import CoreFS.SC01.CoreConstantData;

public class ZgSpecConfirm extends DBCommon{
	
	public CoreReturnObject Query(String[] parms){
		SqlBuilder b = new SqlBuilder("ZgSpecConfirm.Query");
		b.Fill(parms);
		return this.getData(b.toString());
	}
	
	public CoreReturnObject Save(ArrayList<String[]> saveParms, String ordLnPk, String mscPline){
		ArrayList<String> sqllist = new ArrayList<String>();
		SqlBuilder b = new SqlBuilder("ZgSpecConfirm.Delete");
		b.Fill(new String[]{ordLnPk, mscPline});
		sqllist.add(b.toString());
		
		for(int i = 0; i < saveParms.size(); i++){
			b = new SqlBuilder("ZgSpecConfirm.Save");
			b.Fill(saveParms.get(i));
			sqllist.add(b.toString());
		}
		
		return this.getDao(CoreConstantData.sysbeanstr).ExcuteTransction(sqllist);
	}
}
