//执行存储过程oracle public bool sqlPro() { List <DbHelper.SqlHelperParameter> lstPara = new List <DbHelper.SqlHelperParameter>(); lstPara.Add(da.AddProcParameter("v_ReturnMsg", RomensDataType.Varchar, ParameterDirection.Output, 50)); lstPara.Add(da.AddProcParameter("v_ReturnValue", RomensDataType.Int, ParameterDirection.Output, 0)); NameValueCollection returnValue = new NameValueCollection(); returnValue = da.ExecProc("HISPRESCRIPTIONPRO", lstPara); string result = ReturnExecProMsg(returnValue); if (!string.IsNullOrEmpty(result)) { ToolsClass.TxtLog("DDLog", "执行存储过程报错:" + result); return(false); } return(true); }
//执行存储过程oracle public bool sqlPro() { List <DbHelper.SqlHelperParameter> lstPara = new List <DbHelper.SqlHelperParameter>(); lstPara.Add(da.AddProcParameter("BillGuid", RomensDataType.Varchar, ParameterDirection.Input, billno)); lstPara.Add(da.AddProcParameter("BillTypeGuid", RomensDataType.Varchar, ParameterDirection.Input, billTypeNo)); lstPara.Add(da.AddProcParameter("OperatorGuid", RomensDataType.Varchar, ParameterDirection.Input, operatorGuid)); lstPara.Add(da.AddProcParameter("ReturnMsg", RomensDataType.Varchar, ParameterDirection.Output, 50)); lstPara.Add(da.AddProcParameter("ReturnValue", RomensDataType.Int, ParameterDirection.Output, 0)); NameValueCollection returnValue = new NameValueCollection(); returnValue = da.ExecProc(ProName, lstPara); ProResult = ReturnExecProMsg(returnValue); if (!string.IsNullOrEmpty(ProResult)) { ToolsClass.TxtLog("DDLog", "执行存储过程报错:" + ProResult); return(false); } return(true); }