package com.steering.pss.plnsaleord.steelMarkingPlan;

import CoreFS.SA06.CoreReturnObject;

import com.steering.comm.db.DBCommon;

/**
 * 炼钢产线排产基础参数
 * 
 * @author Administrator
 * 
 */
public class FrmPlnBasePlineLg extends DBCommon {
	/**
	 * 查询
	 * 
	 * @return
	 */
	public CoreReturnObject query() {
		return this.getDataBySqlID("FrmPlnBasePlineLg.query");
	}

	/**
	 * 新增
	 * 
	 * @return
	 */
	public CoreReturnObject add(String plineCode, String plineName,
			String proceeCode, String processDesc, String efMaxLife,
			String stdOutWt, String efWtLeft, String outWtMax, String outWtMin,
			String efAgeNow, String username, String schedulecode) {
		Object[] params = new Object[] { plineCode, plineName, proceeCode,
				processDesc, efMaxLife, stdOutWt, efWtLeft, outWtMax, outWtMin,
				efAgeNow, schedulecode, username };
		return this.setDataBySqlID("FrmPlnBasePlineLg.add", params);
	}

	/**
	 * 修改
	 * 
	 * @return
	 */
	public CoreReturnObject update(String plineCode, String plineName,
			String proceeCode, String processDesc, String efMaxLife,
			String stdOutWt, String efWtLeft, String outWtMax, String outWtMin,
			String efAgeNow, String username, String schedulecode) {
		Object[] params = new Object[] { proceeCode, processDesc, efMaxLife,
				stdOutWt, efWtLeft, outWtMax, outWtMin, efAgeNow, username,
				schedulecode, plineCode };
		return this.setDataBySqlID("FrmPlnBasePlineLg.update", params);
	}

	/**
	 * 删除
	 * 
	 * @param dimater
	 *            直径
	 * @return
	 */
	public CoreReturnObject delete(String plineCode) {
		Object[] params = new Object[] { plineCode };
		return this.setDataBySqlID("FrmPlnBasePlineLg.delete", params);
	}

	/**
	 * 验证产线
	 * 
	 * @param plineCode
	 * @return
	 */
	public CoreReturnObject checkPline(String plineCode) {
		Object[] params = new Object[] { plineCode };
		return this.getDataBySqlID("FrmPlnBasePlineLg.checkPline", params);
	}
}
