Esempio n. 1
0
        public string ExecuteScalar(string parms)
        {
            ParamInfo parm = ParamInfo.Parse(parms);

            if (parm == null)
            {
                return("");
            }
            return(DBHelper.ExecuteScalar(parm.SQL_ID, parm.Dic, parm.Arr));
        }
Esempio n. 2
0
        public int ExecuteNoQuery(string parms)
        {
            ParamInfo parm = ParamInfo.Parse(parms);

            if (parm == null)
            {
                return(-1);
            }

            return(DBHelper.ExecuteNoQuery(parm.SQL_ID, parm.Dic, parm.Arr));
        }
Esempio n. 3
0
        public DataTable ExecuteQuery(string parms)
        {
            ParamInfo parm = ParamInfo.Parse(parms);

            if (parm == null)
            {
                return(null);
            }

            return(DBHelper.ExecuteQuery(parm.SQL_ID, parm.Dic, parm.Arr));
        }
Esempio n. 4
0
        public string ExecuteQuery8ID(string parms)
        {
            ParamInfo parm = ParamInfo.Parse(parms);

            if (parm == null)
            {
                return("");
            }

            DataTable dt = null;

            if (parm.Dic == null)
            {
                dt = DBHelper.ExecuteQuery(parm.SQL_ID, parm.Arr);
            }
            else
            {
                dt = DBHelper.ExecuteQuery(parm.SQL_ID, parm.Dic);
            }
            return(HiCSUtil.Json.DataTable2Json(dt));
        }