Ejemplo n.º 1
0
        public int ModifyPassAuditing(int Code, SqlTransaction Transaction)
        {
            FlowUseSealModel objModel = this.GetModel(Code, Transaction);

            objModel.Auditing = "3";
            return(this.Update(objModel, Transaction));
        }
Ejemplo n.º 2
0
        public int Delete(FlowUseSealModel ObjModel)
        {
            int num = 0;

            using (SqlConnection connection = new SqlConnection(FunctionRule.GetConnectionString()))
            {
                connection.Open();
                SqlTransaction transaction = connection.BeginTransaction();
                try
                {
                    try
                    {
                        num = new FlowUseSealBLL().Delete(ObjModel.UseSealCode, transaction);
                        transaction.Commit();
                    }
                    catch (SqlException exception)
                    {
                        transaction.Rollback();
                        connection.Close();
                        throw exception;
                    }
                    return(num);
                }
                finally
                {
                    connection.Close();
                }
            }
            return(num);
        }
Ejemplo n.º 3
0
        public int Insert(FlowUseSealModel ObjModel, SqlTransaction Transaction)
        {
            FlowUseSealDAL ldal = new FlowUseSealDAL(Transaction);

            ObjModel.Auditing = "1";
            return(ldal.Insert(ObjModel));
        }
Ejemplo n.º 4
0
        public FlowUseSealModel GetFlowUseSeal(int Code)
        {
            FlowUseSealModel model = new FlowUseSealModel();

            using (SqlConnection connection = new SqlConnection(FunctionRule.GetConnectionString()))
            {
                try
                {
                    connection.Open();
                    model = new FlowUseSealBLL().GetModel(Code, connection);
                    connection.Close();
                }
                catch (SqlException exception)
                {
                    throw exception;
                }
            }
            return(model);
        }
Ejemplo n.º 5
0
        public int Update(FlowUseSealModel ObjModel, SqlTransaction Transaction)
        {
            FlowUseSealDAL ldal = new FlowUseSealDAL(Transaction);

            return(ldal.Update(ObjModel));
        }