Detailed Instructions
Task 2: Creating MDI Sheets
1. Using the System Tree, Inherit from w_data_sheet (windows_abstract.pbl).
2. You are creating the Claim Search window. Save the window as w_claims_search in the claims.pbl. The final window will look as follows:
3. Change the window’s Title property to “Claims Search”. 4. Set the window’s height to 1800.
5. Set the DataWindow control location as follows: X – 20, Y – 470. This will leave room at the top of the window for entering search criteria.
6. Users can search claims based on a claim number, a patient number, or a claim date. 7. Drag a u_st to the top left of the window. Give this control Text of Claim ID:. 8. With focus on the static text control, press Ctrl-T to duplicate two others whose text
you will set to Patient ID: and Claim Date: respectively.
9. Drag a u_sle onto the window beside the Claim ID static text. Name this control sle_claim_id.
10. Duplicate to create another u_sle beside Patient ID. Name this control sle_pat_id.
Task 2: Creating MDI Sheets
1. Using the System Tree, Inherit from w_data_sheet (windows_abstract.pbl).
2. You are creating the Claim Search window. Save the window as w_claims_search in the claims.pbl. The final window will look as follows:
3. Change the window’s Title property to “Claims Search”. 4. Set the window’s height to 1800.
5. Set the DataWindow control location as follows: X – 20, Y – 470. This will leave room at the top of the window for entering search criteria.
6. Users can search claims based on a claim number, a patient number, or a claim date. 7. Drag a u_st to the top left of the window. Give this control Text of Claim ID:. 8. With focus on the static text control, press Ctrl-T to duplicate two others whose text
you will set to Patient ID: and Claim Date: respectively.
9. Drag a u_sle onto the window beside the Claim ID static text. Name this control sle_claim_id.
11. Drag a u_cb to the right of sle_pat_id. Name this control cb_patid_search. Set other properties as follows: Text = “…”. Font Bold, Width – 140, Height – 110. Later, clicking this button will display a modal window showing patients, letting you select a patient to obtain his ID.
12. Drag a u_em to the right of Claim Date. Name this control em_claim_date. Set the MaskDataType as datemask!, the Mask property to mm/dd/yyyy and enable the DropDown Calendar property. Older versions of PowerBuilder may not allow for the DropDown Calendar. If this is the case, you can still manually enter a date into the Edit Mask.
13. Drag another u_cb to the right of sle_claim_id. Name this button cb_search and enable the default property.
14. Drag a u_gb (GroupBox control) on top of the above controls and resize the group box as seen in the illustration shown earlier. Change the group box’s Text to Enter Search Criteria.
15. Verify your work to the picture shown above. The functionality (and DataWindows) will be finished in later labs.
16. Set an appropriate Tab Order for this window. 17. Save your work.
18. Close the painter. 19. Inherit from w_data_sheet.
20. Change the Title to “Doctor Directory”.
21. Save the window as w_doctor_list in the doctors.pbl. 22. Close the painter.
23. Inherit from w_data_sheet.
24. Change the Title to “SybHealth Reports”.
25. Save the window as w_reports in the SybHealth.pbl. 26. Close the painter.
27. Inherit from w_master_detail_sheet. 28. Change the Title to “Patient Details”.
29. Save this window as w_patient_master_detail in the patients.pbl. 30. Close the painter.
31. Inherit from w_response.
32. Change the window’s Width to 2500 and Height to 1500.
33. Drag a u_dw on top of the window and resize the control so that it covers the majority of the window.
34. Name the DataWindow control dw_data.
11. Drag a u_cb to the right of sle_pat_id. Name this control cb_patid_search. Set other properties as follows: Text = “…”. Font Bold, Width – 140, Height – 110. Later, clicking this button will display a modal window showing patients, letting you select a patient to obtain his ID.
12. Drag a u_em to the right of Claim Date. Name this control em_claim_date. Set the MaskDataType as datemask!, the Mask property to mm/dd/yyyy and enable the DropDown Calendar property. Older versions of PowerBuilder may not allow for the DropDown Calendar. If this is the case, you can still manually enter a date into the Edit Mask.
13. Drag another u_cb to the right of sle_claim_id. Name this button cb_search and enable the default property.
14. Drag a u_gb (GroupBox control) on top of the above controls and resize the group box as seen in the illustration shown earlier. Change the group box’s Text to Enter Search Criteria.
15. Verify your work to the picture shown above. The functionality (and DataWindows) will be finished in later labs.
16. Set an appropriate Tab Order for this window. 17. Save your work.
18. Close the painter. 19. Inherit from w_data_sheet.
20. Change the Title to “Doctor Directory”.
21. Save the window as w_doctor_list in the doctors.pbl. 22. Close the painter.
23. Inherit from w_data_sheet.
24. Change the Title to “SybHealth Reports”.
25. Save the window as w_reports in the SybHealth.pbl. 26. Close the painter.
27. Inherit from w_master_detail_sheet. 28. Change the Title to “Patient Details”.
29. Save this window as w_patient_master_detail in the patients.pbl. 30. Close the painter.
31. Inherit from w_response.
32. Change the window’s Width to 2500 and Height to 1500.
33. Drag a u_dw on top of the window and resize the control so that it covers the majority of the window.
35. Verify your work:
36. Save the window in the windows_abstract.pbl as w_data_response. 37. Close the painter.
38. Inherit from w_data_response. 39. Change the Title to “New Claim”.
40. Save this window as w_claim_new in the claims.pbl. 41. Close the painter.
42. Inherit from w_data_response. 43. Change the Title to “Patient Search”.
44. Save the window as w_patient_search in the patients.pbl. 45. Close the painter.
46. Inherit from w_data_response. 47. Change the Title to “New Patient”.
48. Save this window as w_patient_new in the patients.pbl. 49. Close the painter.
50. Inherit from w_data_response. 51. Change the Title to “New Policy”.
52. Save this window as w_policy_new in the patients.pbl. 53. Close the painter.
35. Verify your work:
36. Save the window in the windows_abstract.pbl as w_data_response. 37. Close the painter.
38. Inherit from w_data_response. 39. Change the Title to “New Claim”.
40. Save this window as w_claim_new in the claims.pbl. 41. Close the painter.
42. Inherit from w_data_response. 43. Change the Title to “Patient Search”.
44. Save the window as w_patient_search in the patients.pbl. 45. Close the painter.
46. Inherit from w_data_response. 47. Change the Title to “New Patient”.
48. Save this window as w_patient_new in the patients.pbl. 49. Close the painter.
50. Inherit from w_data_response. 51. Change the Title to “New Policy”.
52. Save this window as w_policy_new in the patients.pbl. 53. Close the painter.