public DataTable GetObjectIdByUserId(string userid) { DataTable res = new DataTable(); DataSet ds = new DataSet(); string[][] param = { new string[] { "p_UserId", userid }, }; PosService.DataStoreProcQuery_Param(Username, Password, "spSelect_ObjectId_By_UserId", ref ds, param, ref errorString); if (string.IsNullOrEmpty(errorString)) { res = ds.Tables[0]; } else { res = null; } return(res); }