Esempio n. 1
0
        public static void SubmitAllVisualProgress(EntityData entity)
        {
            Exception exception;

            try
            {
                using (SingleEntityDAO ydao = new SingleEntityDAO("VisualProgress"))
                {
                    ydao.BeginTrans();
                    try
                    {
                        ydao.SubmitEntity(entity);
                        ydao.CommitTrans();
                    }
                    catch (Exception exception1)
                    {
                        exception = exception1;
                        ydao.RollBackTrans();
                        throw exception;
                    }
                }
            }
            catch (Exception exception2)
            {
                exception = exception2;
                throw exception;
            }
        }
Esempio n. 2
0
        private void SubmitAllOACachet(EntityData entity)
        {
            Exception exception;

            try
            {
                using (SingleEntityDAO ydao = new SingleEntityDAO("OACachet"))
                {
                    ydao.BeginTrans();
                    try
                    {
                        ydao.SubmitEntity(entity);
                        ydao.CommitTrans();
                    }
                    catch (Exception exception1)
                    {
                        exception = exception1;
                        ydao.RollBackTrans();
                        throw exception;
                    }
                }
            }
            catch (Exception exception2)
            {
                exception = exception2;
                throw exception;
            }
        }
Esempio n. 3
0
        public static void SubmitAllConstructPlanStep(EntityData entity)
        {
            Exception exception;

            try
            {
                using (SingleEntityDAO ydao = new SingleEntityDAO("ConstructPlanStep"))
                {
                    ydao.BeginTrans();
                    try
                    {
                        ydao.SubmitEntity(entity);
                        ydao.CommitTrans();
                    }
                    catch (Exception exception1)
                    {
                        exception = exception1;
                        ydao.RollBackTrans();
                        throw exception;
                    }
                }
            }
            catch (Exception exception2)
            {
                exception = exception2;
                throw exception;
            }
        }
Esempio n. 4
0
        public static void SubmitAllGradeDepartmentPercentage(EntityData entity)
        {
            Exception exception;

            try
            {
                using (SingleEntityDAO ydao = new SingleEntityDAO("GradeDepartmentPercentage"))
                {
                    ydao.BeginTrans();
                    try
                    {
                        ydao.SubmitEntity(entity);
                        ydao.CommitTrans();
                    }
                    catch (Exception exception1)
                    {
                        exception = exception1;
                        ydao.RollBackTrans();
                        throw exception;
                    }
                }
            }
            catch (Exception exception2)
            {
                exception = exception2;
                throw exception;
            }
        }
Esempio n. 5
0
        private void SubmitAllBidding_SupplierDepartmentIdea(EntityData entity)
        {
            Exception exception;

            try
            {
                using (SingleEntityDAO ydao = new SingleEntityDAO("Bidding_SupplierDepartmentIdea"))
                {
                    ydao.BeginTrans();
                    try
                    {
                        ydao.SubmitEntity(entity);
                        ydao.CommitTrans();
                    }
                    catch (Exception exception1)
                    {
                        exception = exception1;
                        ydao.RollBackTrans();
                        throw exception;
                    }
                }
            }
            catch (Exception exception2)
            {
                exception = exception2;
                throw exception;
            }
        }
Esempio n. 6
0
        public static void SubmitAllPurchaseFlowOpinion(EntityData entity)
        {
            Exception exception;

            try
            {
                using (SingleEntityDAO ydao = new SingleEntityDAO("PurchaseFlowOpinion"))
                {
                    ydao.BeginTrans();
                    try
                    {
                        ydao.SubmitEntity(entity);
                        ydao.CommitTrans();
                    }
                    catch (Exception exception1)
                    {
                        exception = exception1;
                        ydao.RollBackTrans();
                        throw exception;
                    }
                }
            }
            catch (Exception exception2)
            {
                exception = exception2;
                throw exception;
            }
        }
Esempio n. 7
0
        public static void SubmitAllSupplierMaterial(EntityData entity)
        {
            Exception exception;

            try
            {
                using (SingleEntityDAO ydao = new SingleEntityDAO("SupplierMaterial"))
                {
                    ydao.BeginTrans();
                    try
                    {
                        ydao.SubmitEntity(entity);
                        ydao.CommitTrans();
                    }
                    catch (Exception exception1)
                    {
                        exception = exception1;
                        ydao.RollBackTrans();
                        throw exception;
                    }
                }
            }
            catch (Exception exception2)
            {
                exception = exception2;
                throw exception;
            }
        }
Esempio n. 8
0
        public static void SubmitAllBiddingGradeConsiderDiathesis(EntityData entity)
        {
            Exception exception;

            try
            {
                using (SingleEntityDAO ydao = new SingleEntityDAO("BiddingGradeConsiderDiathesis"))
                {
                    ydao.BeginTrans();
                    try
                    {
                        ydao.SubmitEntity(entity);
                        ydao.CommitTrans();
                    }
                    catch (Exception exception1)
                    {
                        exception = exception1;
                        ydao.RollBackTrans();
                        throw exception;
                    }
                }
            }
            catch (Exception exception2)
            {
                exception = exception2;
                throw exception;
            }
        }
Esempio n. 9
0
 private void SubmitAllBiddingCost(EntityData entity)
 {
     Exception exception;
     try
     {
         if (this._dao == null)
         {
             using (SingleEntityDAO ydao = new SingleEntityDAO("BiddingCost"))
             {
                 ydao.BeginTrans();
                 try
                 {
                     ydao.SubmitEntity(entity);
                     ydao.CommitTrans();
                 }
                 catch (Exception exception1)
                 {
                     exception = exception1;
                     ydao.RollBackTrans();
                     throw exception;
                 }
             }
         }
         else
         {
             this.dao.EntityName = "BiddingCost";
             this.dao.SubmitEntity(entity);
         }
     }
     catch (Exception exception2)
     {
         exception = exception2;
         throw exception;
     }
 }
Esempio n. 10
0
        public static void SubmitAllClaimsExpressionsDetail(EntityData entity)
        {
            Exception exception;

            try
            {
                using (SingleEntityDAO ydao = new SingleEntityDAO("ClaimsExpressionsDetail"))
                {
                    ydao.BeginTrans();
                    try
                    {
                        ydao.SubmitEntity(entity);
                        ydao.CommitTrans();
                    }
                    catch (Exception exception1)
                    {
                        exception = exception1;
                        ydao.RollBackTrans();
                        throw exception;
                    }
                }
            }
            catch (Exception exception2)
            {
                exception = exception2;
                throw exception;
            }
        }
Esempio n. 11
0
 public static void Add(string TaxItems, string Range, decimal TaxRate, string TaxPayer, string Remarks)
 {
     using (SingleEntityDAO ydao = new SingleEntityDAO("StampDuty"))
     {
         EntityData entitydata = ydao.SelectbyPrimaryKey(0);
         DataRow    newRecord  = entitydata.GetNewRecord();
         newRecord["StampDutyID"] = 0;
         newRecord["TaxItems"]    = TaxItems;
         newRecord["Range"]       = Range;
         newRecord["TaxRate"]     = TaxRate;
         newRecord["TaxPayer"]    = TaxPayer;
         newRecord["Remarks"]     = Remarks;
         entitydata.AddNewRecord(newRecord);
         ydao.SubmitEntity(entitydata);
     }
 }
Esempio n. 12
0
        public void SubmitAllSupplierSurveyOpinion(EntityData entity)
        {
            Exception exception;

            try
            {
                if (this._dao == null)
                {
                    using (SingleEntityDAO ydao = new SingleEntityDAO("SupplierSurveyOpinion"))
                    {
                        ydao.BeginTrans();
                        try
                        {
                            ydao.SubmitEntity(entity);
                            ydao.CommitTrans();
                        }
                        catch (Exception exception1)
                        {
                            exception = exception1;
                            ydao.RollBackTrans();
                            throw exception;
                        }
                    }
                }
                else
                {
                    this.dao.EntityName = "SupplierSurveyOpinion";
                    this.dao.SubmitEntity(entity);
                }
            }
            catch (Exception exception2)
            {
                exception = exception2;
                throw exception;
            }
        }