Пример #1
0
        public int aSysCode(string pScode, string pScodeGrp, string pScodeNm, string pUsingFlag, string pMemo, string pSortNo, string pInputId)
        {
            int reCnt = 0;

            DbSysCodeGrp db = null;

            try
            {
                db    = new DbSysCodeGrp();
                reCnt = db.aSysCode(pScode, pScodeGrp, pScodeNm, pUsingFlag, pMemo, pSortNo, pInputId);
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::BizSysCodeGrp.cs  (Function)::aSysCode  (Detail)::pScode=[" + pScode + "], pScodeGrp=[" + pScodeGrp + "], pScodeNm=[" + pScodeNm + "]" +
                             ", pUsingFlag=[" + pUsingFlag + "], pMemo=[" + pMemo + "], pSortNo=[" + pSortNo + "], pInputId=[" + pInputId + "]", "Error");
                logs.SaveLog("[error]  (page)::BizSysCodeGrp.cs  (Function)::aSysCode  (Detail)::" + "\r\n" + ex.ToString(), "Error");
            }
            finally
            {
                if (db != null)
                {
                    db.DisConnect();
                }
            }

            return(reCnt);
        }
Пример #2
0
        public int aSysCode(string pScode, string pScodeGrp, string pScodeNm, string pUsingFlag, string pMemo, string pSortNo, string pInputId)
        {
            int reCnt = 0;

            DbSysCodeGrp 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 DbSysCodeGrp(dbCon_IP, dbCon_DB, dbCon_USER);
                reCnt = db.aSysCode(pScode, pScodeGrp, pScodeNm, pUsingFlag, pMemo, pSortNo, pInputId);
            }
            catch (Exception ex)
            {
                _logs.SaveLog("[error]  (page)::BizSysCodeGrp.cs  (Function)::aSysCode  (Detail)::pScode=[" + pScode + "], pScodeGrp=[" + pScodeGrp + "], pScodeNm=[" + pScodeNm + "]" +
                              ", pUsingFlag=[" + pUsingFlag + "], pMemo=[" + pMemo + "], pSortNo=[" + pSortNo + "], pInputId=[" + pInputId + "]", "Error");
                _logs.SaveLog("[error]  (page)::BizSysCodeGrp.cs  (Function)::aSysCode  (Detail)::" + "\r\n" + ex.ToString(), "Error");
            }
            finally
            {
                if (db != null)
                {
                    db.DisConnect();
                }
            }

            return(reCnt);
        }