Esempio n. 1
0
        public string GetName(int _id)
        {
            string strName = "Unavailable";

            try {
                ds      = Get(_id);
                strName = "Application: " + oApplication.GetName(Int32.Parse(ds.Tables[0].Rows[0]["applicationid"].ToString())) + " with Group: " + oGroup.GetName(Int32.Parse(ds.Tables[0].Rows[0]["groupid"].ToString()));
            }
            catch { }
            return(strName);
        }
Esempio n. 2
0
 public void Add(int _pageid, int _applicationid)
 {
     if (logging == true)
     {
         oLog.Add("Add application page " + oPage.GetName(_pageid) + " and application " + oApplication.GetName(_applicationid));
     }
     arParams    = new SqlParameter[2];
     arParams[0] = new SqlParameter("@pageid", _pageid);
     arParams[1] = new SqlParameter("@applicationid", _applicationid);
     SqlHelper.ExecuteNonQuery(dsn, CommandType.StoredProcedure, "pr_addAppPage", arParams);
 }