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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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); } }
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; } }