DataAccess da = new DataAccess();
da.sqlPath = Config.Get("System", "dataCntString");
da.open();
SqlParameter[] SP = new SqlParameter[];
SP[] = new SqlParameter("@riskID", SqlDbType.VarChar);
SP[].Value = FormId;
SP[] = new SqlParameter("@riskLeaderIDs", SqlDbType.VarChar);
SP[].Value = userIds;
SP[] = new SqlParameter("@noUnits", SqlDbType.VarChar, );
SP[].Direction = ParameterDirection.Output;
da.ExecuteNonReturn("CheckRiskAndSignSubmit", SP);
da.close(); object noUnits = SP[].Value;
string strnoUnits = noUnits == null ? "" : noUnits.ToString();
三个参数,其中@noUnits 是输出。