Esempio n. 1
0
        public DataSet sMenuMemberDB(string pDbnm, string pSiteCd, string pTopMenuCd, string pSubMenuCd)
        {
            DataSet ds = null;

            DbMenuMainDB db = null;

            try
            {
                string dbCon_IP   = WebConfigurationManager.ConnectionStrings["ConnectionStr_IP"].ConnectionString;
                string dbCon_DB   = WebConfigurationManager.ConnectionStrings["ConnectionStr_DB"].ConnectionString;
                string dbCon_USER = WebConfigurationManager.ConnectionStrings["ConnectionStr_USER"].ConnectionString;

                db = new DbMenuMainDB(dbCon_IP, dbCon_DB, dbCon_USER);
                ds = db.sMenuMemberDB(pDbnm, pSiteCd, pTopMenuCd, pSubMenuCd);
            }
            catch (Exception ex)
            {
                _logs.SaveLog("[error]  (page)::BizMenuMainDB.cs  (Function)::sMenuMemberDB  (Detail)::" + "\r\n" + ex.ToString(), "Error");
            }
            finally
            {
                if (db != null)
                {
                    db.DisConnect();
                }
            }

            return(ds);
        }