public static Collateral HandleCreate(Asset asset, PartyRole customerPartyRole)
        {
            var bankAccount = new BankAccountCollateral();
            BankAccount ba = asset.BankAccount;
            bankAccount.BankAccountType = ba.BankAccountTypeId;
            bankAccount.BankPartyRoleId = ba.BankPartyRoleId ?? 0;
            bankAccount.BankAccountNumber = ba.AccountNumber;
            bankAccount.BankAccountName = ba.AccountName;
            PartyRole partyRole = PartyRole.GetById(bankAccount.BankPartyRoleId);
            bankAccount.BankName = partyRole.Party.Organization.OrganizationName;

            return bankAccount;
        }
        public void Fill(BankAccountCollateral collateral)
        {
            //collateral.AssetTypeId = AssetType.BankAccount;
            this.txtCollateralDesc.Text = collateral.Description ;

            this.chkMortgaged.Checked = collateral.IsPropertyMortgage;
            this.chkNotMortgaged.Checked = collateral.IsPropertyMortgage == false;
            this.btnPickMortgagee.Disabled = collateral.IsPropertyMortgage == false;
            this.hiddenMortgageeId.Value = collateral.MortgageeId;
            this.txtMortgageeName.Text = collateral.Mortgagee;
            this.txtMortgageeName.AllowBlank = !this.chkMortgaged.Checked;
            this.cmbBankAccountType.SetValueAndFireSelect(collateral.BankAccountType);
            this.hiddenBankPartyRoleId.Value = collateral.BankPartyRoleId;
            this.txtBankName.Text= collateral.BankName ;
            this.txtAccountNumber.Text = collateral.BankAccountNumber ;
            this.txtAccountName.Text = collateral.BankAccountName ;

            StorePropertyOwner.DataSource = collateral.AvailablePropertyOwners;
            StorePropertyOwner.DataBind();
        }