Пример #1
0
        public void UpdateOne(ArrayList ParameterList)
        {
            ArrayList Para = new ArrayList();
            try
            {
                CGD.VDS_CGD33_DBO CGDM = new VDS_CGD33_DBO(ref USEDB);

                Conn = USEDB.CreateConnection();
                Conn.Open();
                DBT = Conn.BeginTransaction();

                CGDM.UpdateMain(ParameterList, DBT);

                DBT.Commit();
            }
            catch (Exception ex)
            {
                if (DBT != null)
                    DBT.Rollback();

                throw ex;
            }
            finally
            {
                if (Conn.State == ConnectionState.Connecting)
                {
                    Conn.Close();
                }
            }
        }
Пример #2
0
        public DataTable DoQuery(ArrayList ParameterList)
        {
            CGD.VDS_CGD33_DBO CGDM = new VDS_CGD33_DBO(ref USEDB);
            DataTable Dt;

            try
            {
                Dt = CGDM.DoQuery(ParameterList);
                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }