예제 #1
0
        public int exMenuSub(string pSubMenuCd, string pTopMenuCd, string pSubMenuNm)
        {
            int reCnt = 0;

            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);
                reCnt = db.exMenuSub(pSubMenuCd, pTopMenuCd, pSubMenuNm);
            }
            catch (Exception ex)
            {
                _logs.SaveLog("[error]  (page)::BizMenuMainDB.cs  (Function)::exMenuSub  (Detail)::pSubMenuCd=[" + pSubMenuCd + "]" +
                              ", pTopMenuCd=[" + pTopMenuCd + "], pSubMenuNm=[" + pSubMenuNm + "]", "Error");
                _logs.SaveLog("[error]  (page)::BizMenuMainDB.cs  (Function)::exMenuSub  (Detail)::" + "\r\n" + ex.ToString(), "Error");
            }
            finally
            {
                if (db != null)
                {
                    db.DisConnect();
                }
            }

            return(reCnt);
        }