public void Update(HPS.BLL.UsedLadBillBLL.BLLUsedLadBill_T businessObject, HPS.BLL.UsedLadBillBLL.BLLUsedLadBill_TKeys businessObjectKey) { try { if (businessObject.UsedLadBillID_int == businessObjectKey.UsedLadBillID_int) { if (businessObject.IsValid(Hepsa.Core.Validation.ValidationExceptionType.Except, "UniqueUsedLadBillID_int") == false) { throw new Hepsa.Core.Validation.InvalidBusinessObjectException(businessObject.BrokenRulesList().ToString()); } } else { if (businessObject.IsValid() == false) { throw new Hepsa.Core.Validation.InvalidBusinessObjectException(businessObject.BrokenRulesList().ToString()); } } _dataObject.Update(businessObject, businessObjectKey); } catch (System.Exception ex) { throw Hepsa.Core.Exception.HandleException.ChangeExceptionLanguage(ex, this); } }
public void GetBy(HPS.BLL.UsedLadBillBLL.BLLUsedLadBill_TKeys keys, ref System.Data.DataTable dataTable) { try { _dataObject.SelectByPrimaryKey(keys, ref dataTable); } catch (System.Exception ex) { throw Hepsa.Core.Exception.HandleException.ChangeExceptionLanguage(ex, this); } }
public HPS.BLL.UsedLadBillBLL.BLLUsedLadBill_T GetBy(HPS.BLL.UsedLadBillBLL.BLLUsedLadBill_TKeys keys) { try { return(_dataObject.SelectByPrimaryKey(keys)); } catch (System.Exception ex) { throw Hepsa.Core.Exception.HandleException.ChangeExceptionLanguage(ex, this); } }
public void Delete(HPS.BLL.UsedLadBillBLL.BLLUsedLadBill_TKeys keys) { try { _dataObject.Delete(keys); } catch (System.Exception ex) { throw Hepsa.Core.Exception.HandleException.ChangeExceptionLanguage(ex, this); } }
public UsedLadBillEntityForm(Hepsa.Core.PL.BaseEntityParentForm.enmState State, DataTable DataTable, HPS.BLL.UsedLadBillBLL.BLLUsedLadBill_TKeys Key) : base(State, DataTable, Key) { InitializeComponent(); }