/// <summary> /// 调用存储过程 /// </summary> /// <param name="iSPType">存储过程号</param> /// <param name="dtInput">参数数据</param> /// <param name="dsReturn">返回的查询数据</param> /// <param name="dtOut">返回的参数值</param> public static void CallSP(int iSPType, DataTable dtInput, out DataSet dsReturn, out DataTable dtOut) { if (string.IsNullOrEmpty(dtInput.TableName)) { dtInput.TableName = "SPIN"; } LBWebService.LBWebService webservice = new LBWebService.LBWebService(); string strErrorMsg; bool bolIsError; dsReturn = webservice.RunProcedure(iSPType, LoginInfo.LoginName, dtInput, out dtOut, out strErrorMsg, out bolIsError); if (bolIsError) { throw new Exception(strErrorMsg); } }