ColdFusion MX Bible phần 8

Hình 38-11: Màn hình chính. Chú ý khu vực được đánh dấu cụ thể nội dung fusebox-. Sản lượng fuseactions cụ thể đi, mọi thứ khác trên màn hình là một bố trí. Bởi vì phần bố trí được đánh dấu trên màn hình trong hình 38-12 không thay đổi cho các ứng dụng nhỏ này, | 828 Part VII ColdFusion MX Development Practices Figure 38-11 Main screen. Notice the area marked Fusebox-specific content. The output of specific fuseactions goes here everything else on-screen is a layout. Because the layout portion marked up on the screen in Figure 38-12 doesn t change for this small application you can disregard the layout portion and mark up only the fuseactionspecific content portion as shown in Figure 38-13. Figure 38-12 New user screen. Chapter 38 Advanced Fusebox 829 Figure 38-13 View user screen. No XFAs are needed on this screen. Figure 38-14 Edit user screen. Notice that outgoing variables have dotted outlines in Figure 38-14. You may find that using different colors makes differentiating between outgoing and incoming variables easier. With the prototype marked up you re ready to identify the fuseactions and circuits needed. Because this is so small an application you use only a single circuit that is aliased as Users. The fuseactions fuses and their responsibilities are presented together in Table 38-3. 830 Part VII ColdFusion MX Development Practices Figure 38-15 Delete confirmation screen. Table 38-3 Fuseactions Fuses and Responsibilities Fuseaction Fuse Responsibilities dsp_Main I tell users that they re in the Used Manager app. qry_BlankUserInfo qry_Departments dsp_UserInfo I return a blank record set of User info I return a recordset of info on departments. I provide a form for adding editing a user. qry_Create I create a new record in the USER table. qry_UserInfo qry_Departments dsp_UserInfo I return a recordset of info on the userID sent to me. I return a recordset of info on departments. I provide a form for adding editing a user. qry_Update I update the database with the info passed to me. qry_UserInfo qry_Departments dsp_Read I return a recordset of info on the userID sent to me. I return a recordset of info on departments. I display information based on .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.