在 _layout里修改了
<p>? @DateTime.Now.Year - My ASP.BANK </p>
作業(yè)細(xì)節(jié)要求
A bank accounts listing with URL suffix /Bank/Account/List, shows all of the accounts presently open.
The user should see this screen upon first logging in.
The listing should show the name of the account, account number and current balance of each one (see create account screen below for details), as well as a link that navigates the user to the account details screen for that account (see below), and a link that deletes the account /Bank/Account/Delete/{id}.
See Html.ActionLink and the Visual Studio scaffolding features for ideas on implementing these links. The user should be asked to confirm the deletion first.
- 【已完成】都要先登錄再操作
- 【已完成】URL后綴 /Bank/Account/List ,其中設(shè)置的name就是在
Html.ActionLink
會(huì)使用到的參數(shù)
routes.MapRoute(
name: "Index",
url: "Bank/Account/List",
defaults: new { controller = "BankAccounts", action = "Index", id = UrlParameter.Optional }
);
- 【已完成】 /Bank/Account/Delete/{id} 抵栈,id應(yīng)該就是創(chuàng)建時(shí)候的 PK*
routes.MapRoute(
name: "Delete",
url: "Bank/Account/Delete/{id}",
defaults: new { controller = "BankAccounts", action = "Delete", id = UrlParameter.Optional }
);
- 【已完成】顯示 name of the account, account number and current balance of each one
- 【已完成】a link that navigates the user to the account details*
At ASP Bank, we have a clear purpose to help make financial lives better through the power of every connection. We fulfill this purpose through a strategy of responsible growth, which includes a focus on environmental, social and governance leadership.
Every day, we’re proud to partner with 20 million individuals in New York, families and businesses, in hundreds of communities through operations in more than 35 countries to help them achieve their financial goals.
There should exist a Submit and Cancel button at the bottom of the screen. Transactions cannot be deleted once created, though they should be completely hidden from view if the parent account is deleted.
Upon pressing the Submit button, the following validation should occur: all visible fields should be required.
The transaction cannot be for $0.00, less than -$5,000.00 or more than $5,000.00.
Transactions that would bring the account balance below $0.00 are not permitted.
If valid, the transaction should be recorded and the user taken to the account transactions screen, described below. If the user presses the Cancel button, they should be directed to the account details screen described above.
- 【已完成】該交易不能為$ 0.00囚霸,小于 - $ 5,000.00或超過(guò)$ 5,000.00
- 【已完成】屏幕底部應(yīng)該有一個(gè)提交和取消按鈕。
- 【已完成】不允許將賬戶余額低于0.00美元的交易
- 【已完成】如下所述澄步。如果用戶按下“取消”按鈕南缓,則應(yīng)將其指向上述帳戶 account details screen
【未完成】交易無(wú)法在創(chuàng)建后刪除蛀骇,但如果父賬戶被刪除厌秒,它們應(yīng)該完全隱藏。
【未完成】按提交按鈕后擅憔,應(yīng)該發(fā)生以下驗(yàn)證:all visible fields should be required
【已完成】如果有效鸵闪,應(yīng)記錄交易并將用戶帶到 account transactions screen
A transaction details screen (/Bank/Account/{id1}/Transaction/{id2}) where {id1} is a the account number and {id2} is the transaction number. You should validate that the transaction corresponds to the account in question. The transaction details screen should provide a “read only” 3 view of the transaction: date and time of the transaction (month, day, and year, hour and minute), description of the transaction, and the amount of the transaction expressed as a decimal (positive for deposit, negative for check). A button should take the user back to the account details screen. Users should under no circumstance be allowed to view accounts that are not theirs or transactions for accounts that are not theirs. Other requirements are as follows:
- 【未解決】/Bank/Account/{id1}/Transaction/{id2}) where {id1}
- 【未解決】 這個(gè)頁(yè)面什么都不需要做,沒(méi)有點(diǎn)擊的按鈕
- 【未解決】數(shù)字上有區(qū)別暑诸!
- 【不確定】任何用戶都不可以去修改或者查閱不屬于他們自己的賬戶
@if (item.IsCheck == true)
{ <td>@String.Format("{0:$#,##0.00;($#,##0.00)}",item.TransactionAmount) </td> }
else { <td>@String.Format("{0:$#,##0.00;($#,##0.00)}", -item.TransactionAmount) </td> }
@if (item.IsCheck == true)
{ <td> check to </td> }
else { <td> deposit to </td> }