Files
lserp_cs_6.0/插件库/Lskj.Business/Impl/PullSampleImpl.cs
T
cyf ab56a9bcf7 基线 SVN r240
SVN-Revision: r240
2025-02-06 06:46:06 +00:00

71 lines
2.8 KiB
C#

/******************************
* 说明:执行拉样存储过程
* 创建人:钱雄
* 创建日期: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
{
/// <summary>
/// 执行拉样存储过程
/// </summary>
/// <param name="GdBillid">工单号</param>
/// <param name="TmQzTag">,QS=确色拉样,QSLD=确色拉大,JTLD=机台拉大</param>
/// <param name="qsNumber">次数>0</param>
/// <param name="qsAmount">用料数量</param>
/// <param name="operatorid">操作员id</param>
/// <param name="operatorname">操作员名</param>
/// <param name="bz">班组</param>
/// <param name="bc">班次</param>
/// <param name="jtid">机台id</param>
/// <param name="msg"></param>
/// <returns></returns>
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());
}
}
}