public void LoadItem(int id)
 {
     DataAccess da = new DataAccess();
     Item = da.BankAccountView(id);
     edtAccountNumber.Text = Item.BankAccount;
     edtBank.SelectedValue = Item.BankID;
     edtDescription.Text = Item.Description;
 }
Пример #2
0
 /// <summary>
 /// Create a new BankAccountView object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="bankID">Initial value of the BankID property.</param>
 /// <param name="accountID">Initial value of the AccountID property.</param>
 public static BankAccountView CreateBankAccountView(global::System.Int32 id, global::System.Int32 bankID, global::System.Int32 accountID)
 {
     BankAccountView bankAccountView = new BankAccountView();
     bankAccountView.id = id;
     bankAccountView.BankID = bankID;
     bankAccountView.AccountID = accountID;
     return bankAccountView;
 }
Пример #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the BankAccountViews EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBankAccountViews(BankAccountView bankAccountView)
 {
     base.AddObject("BankAccountViews", bankAccountView);
 }
Пример #4
0
 public bank_account BankAccountEdit(BankAccountView x)
 {
     bank_account o = objDataContext.bank_account.FirstOrDefault(i => i.id == x.id);
     if (o != null)
     {
         //o.account = x.account;
         o.bank = BankGet(x.BankID);
         o.BankAccount = x.BankAccount;
         o.Description = x.Description;
         objDataContext.SaveChanges();
     }
     return o;
 }