111,126
社区成员
发帖
与我相关
我的任务
分享
public static DataSet ExecPrc_库存明细(string date, string huowei,string no)
{
SqlDataAdapter adp = new SqlDataAdapter();
adp.SelectCommand = new SqlCommand("库存明细", clsSql.cn);
adp.SelectCommand.CommandType = CommandType.StoredProcedure;
SqlParameter 日期 = adp.SelectCommand.Parameters.Add("@日期", SqlDbType.VarChar, 50);
日期.Direction = ParameterDirection.Input;
SqlParameter 货位 = adp.SelectCommand.Parameters.Add("@货位", SqlDbType.VarChar, 50);
货位.Direction = ParameterDirection.Input;
SqlParameter 物料编号 = adp.SelectCommand.Parameters.Add("@物料编号", SqlDbType.VarChar, 50);
物料编号.Direction = ParameterDirection.Input;
日期.Value = date;
货位.Value = huowei;
物料编号.Value = no;
DataSet ds = new DataSet();
adp.Fill(ds);
return ds;
}