示例#1
0
        public int aMenu(string pTopMenuCd, string pSubMenuCd, string pMenuCd, string pMenuNm, string pUsingFlag, string pSortNo, string pMenuPath, string pFileFolder, string pInputId)
        {
            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.aMenu(pTopMenuCd, pSubMenuCd, pMenuCd, pMenuNm, pUsingFlag, pSortNo, pMenuPath, pFileFolder, pInputId);
            }
            catch (Exception ex)
            {
                _logs.SaveLog("[error]  (page)::BizMenuMainDB.cs  (Function)::aMenu  (Detail)::, pMenuCd=[" + pMenuCd + "], pTopMenuCd=[" + pTopMenuCd + "], pSubMenuCd=[" + pSubMenuCd + "]" +
                              ", pMenuNm=[" + pMenuNm + "], pUsingFlag =[" + pUsingFlag + "], pSortNo=[" + pSortNo + "], pInputId=[" + pInputId + "]", "Error");
                _logs.SaveLog("[error]  (page)::BizMenuMainDB.cs  (Function)::aMenu  (Detail)::" + "\r\n" + ex.ToString(), "Error");
            }
            finally
            {
                if (db != null)
                {
                    db.DisConnect();
                }
            }

            return(reCnt);
        }