/******************************
* 说明:执行拉样存储过程
* 创建人:钱雄
* 创建日期:2020-09-11
* 修改人:
* 修改日期:
* 修改备注:
* 版本:1.0.0.0
******************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;namespace Lskj.Business.Impl
{
public class PullSampleImpl : BaseImpl
{
///
/// 执行拉样存储过程
///
/// 工单号
/// ,QS=确色拉样,QSLD=确色拉大,JTLD=机台拉大
/// 次数>0
/// 用料数量
/// 操作员id
/// 操作员名
/// 班组
/// 班次
/// 机台id
///
///
public static int Pullsample( string GdBillid, string TmQzTag,int qsNumber,decimal qsAmount,int operatorid, string operatorname, string bz, string bc,int jtid, out string tipMsg)
{
SqlParameter pMsg = new SqlParameter("@msg", SqlDbType.VarChar, 2000);
pMsg.Direction = ParameterDirection.Output;
SqlParameter returnValue = new SqlParameter("@return", SqlDbType.Int, 4);
returnValue.Direction = ParameterDirection.ReturnValue;
SqlParameter[] param =
{
new SqlParameter("@GdBillid",SqlDbType.VarChar,50),
new SqlParameter("@TmQzTag",SqlDbType.VarChar,20),
new SqlParameter("@qsNumber",SqlDbType.Int),
new SqlParameter("@qsAmount",SqlDbType.Decimal),
new SqlParameter("@operatorid",SqlDbType.Int),
new SqlParameter("@operatorname",SqlDbType.VarChar,20),
new SqlParameter("@bz",SqlDbType.VarChar,20),
new SqlParameter("@bc",SqlDbType.VarChar,20),
new SqlParameter("@jtid",SqlDbType.Int),
pMsg,
returnValue
};
param[0].Value = GdBillid;
param[1].Value = TmQzTag;
param[2].Value = qsNumber;
param[3].Value = qsAmount;
param[4].Value = operatorid;
param[5].Value = operatorname;
param[6].Value = bz;
param[7].Value = bc;
param[8].Value = jtid;
BaseImpl.ExecProcedure("[p_mrp_SampleDrawingProcess]", param);
tipMsg = pMsg.Value + "";
return Convert.ToInt32(returnValue.Value.ToString());
}
}
}