Ejemplo n.º 1
0
        public static bool fascicolazionCanAddFasc(string idNodo)
        {
            bool rtn = false;

            DocsPaDB.Query_DocsPAWS.Fascicoli fascicoli = new DocsPaDB.Query_DocsPAWS.Fascicoli();
            string sql = "SELECT CHA_RW FROM PROJECT WHERE SYSTEM_ID=" + idNodo;

            using (IDataReader reader = fascicoli.ExecuteReader(sql))
            {
                if (reader.Read())
                {
                    if (!reader.IsDBNull(0))
                    {
                        rtn = reader.GetString(0).Equals("W"); //"R" vuol dire READ only , quindi non si creano fasc/sfasc
                    }
                }
            }
            return(rtn);
        }