Start of the project (d)

Author: Old Cen

Last time I wrote about the three project view, and then backfill the data successfully, the next, I will continue writing and then the last, and view audit, their function is not the same, the effect is not the same, click to view when the data can not be audited, the last time I was not looking at where the modal box plus "readonly" this property, then click to see when it can still change the data, although it can not save, this is my last times have not improved a small drawback.
This is what I now see the effect.
Here Insert Picture Description
This property does not need to review, and to see the need, then how to do? ?
I spent two modal box, a view, a review is
Here Insert Picture Description
because the amount of code review a little big I first put the backfill logic out about that, the next like to explain how to achieve reviewed.
Audit? Is performed in the original audit data, so we have to backfill his first original data out
// reviewed and backfill click event
function openUpdate (borrowmoneyID) {
$ ( "# UpformBorrowMoney the INPUT [of the type = 'the RESET']") .click (); // reset form
// bind term drop-down box
createSelect ( "# UpLifeLoan", "/ QJtabulation / BorrowMoney / SleseLife BorrowMoneyID =?" + borrowmoneyID);
// bind loan type drop-down box
createSelect ( " #UpKindName "," / QJtabulation / BorrowMoney / SelectKindType borrowMoneyID = "borrowmoneyID +);?
// bind the drop-down box repayment
createSelect ( "# UpPaymentMethodName", "/ QJtabulation / BorrowMoney / SelecPayment BorrowMoneyID =?" + borrowmoneyID);
// data backfill
$ .post ( "SelseBorrowMoneyByID", {borrowmoneyID: borrowmoneyID}, function (Data) {
// drop-down box backfilling data
createSelect ( "# UpLifeLoan", "/ QJtabulation / BorrowMoney / SleseLife", data.BorrowMoneyID);
createSelect ( "# UpKindName", "/ QJtabulation / BorrowMoney / SelectKindType", data.KindTypeID);
createSelect ( "# UpPaymentMethodName" , "/ QJtabulation / BorrowMoney / SelecPayment", data.KindTypeID);
// data backfill other modalities frame
loadDatatoForm ( "UpformBorrowMoney", data);
$ ( "# UpmodalBorrowMoney") modal ( "Show");. // modal popup window
})
}
This data can be backfilled out, "post" following code is the data backfill, and above that is because I reviewed backfill modal box a bit different, even when the backfill binding drop-down box, although it is reviewed, but can not just go and audit data, which can not be reviewed in the audit would add "readonly" attribute in the audit modal box there, and some can be reviewed, but not how to do can easily review? We developed a good how to be able to field one can review audit to audit, so that the code above to "post" is through the controller binding database, which we then can only choose to give it to set a good field.
This is my review of data backfill modal frame and basic effects.
The rest is left once disintegrated. . .
to be continued. . .

Guess you like

Origin blog.csdn.net/weixin_44541224/article/details/93964015