Пример #1
0
        public DataSet sSysCodeGrp(string pScodeGrp)
        {
            DataSet ds = null;

            DbSysCodeGrp db = null;

            try
            {
                db = new DbSysCodeGrp();
                ds = db.sSysCodeGrp(pScodeGrp);
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::BizSysCodeGrp.cs  (Function)::sSysCodeGrp  (Detail)::pScodeGrp=[" + pScodeGrp + "]", "Error");
                logs.SaveLog("[error]  (page)::BizSysCodeGrp.cs  (Function)::sSysCodeGrp  (Detail)::" + "\r\n" + ex.ToString(), "Error");
            }
            finally
            {
                if (db != null)
                {
                    db.DisConnect();
                }
            }

            return(ds);
        }
Пример #2
0
        public DataSet sSysCodeGrp(string pScodeGrp)
        {
            DataSet ds = null;

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

            return(ds);
        }