2010. 12. 23. 20:14

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.

2010. 12. 16. 02:56

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.

Powerbuilder/DataWindow2010. 12. 13. 20:06




ad_dw.SetRow(li_Row)
ad_dw.ScrollToRow(li_Row)
ad_dw.SetColumn(ls_Column)
ad_dw.SetFocus()




Posted by Julyus
Powerbuilder/DataWindow2010. 12. 13. 17:26




Case 'gbn2'
ls_gbn2 = func.of_nvl(this.GetItemString(row, 'gbn2'   ), 'LEAC')
dw_main.SetRedraw(FALSE)
If ls_gbn2 = 'LEAC' Then
dw_main.Modify("t_leac.X='"+ String(Long(dw_main.Describe("t_prd.X")) + Long(dw_main.Describe("t_prd.Width")) + 13)+"'")
dw_main.Modify("t_leacnm.X='"+ String(Long(dw_main.Describe("t_leac.X")) + Long(dw_main.Describe("t_leac.Width")) + 13)+"'")
dw_main.Modify("t_dta.X='"+ String(Long(dw_main.Describe("t_leacnm.X")) + Long(dw_main.Describe("t_leacnm.Width")) + 13)+"'")
dw_main.Modify("leac.X='"+ String(Long(dw_main.Describe("prd.X")) + Long(dw_main.Describe("prd.Width")) + 13)+"'")
dw_main.Modify("leacnm.X='"+ String(Long(dw_main.Describe("leac.X")) + Long(dw_main.Describe("leac.Width")) + 13)+"'")
dw_main.Modify("dta.X='"+ String(Long(dw_main.Describe("leacnm.X")) + Long(dw_main.Describe("leacnm.Width")) + 13)+"'")
dw_main.SetSort("dcd asc, leac asc, dta asc")
dw_main.Sort()
ElseIf ls_gbn2 = 'DTA' Then
dw_main.Modify("t_dta.X='"+ String(Long(dw_main.Describe("t_prd.X")) + Long(dw_main.Describe("t_prd.Width")) + 13)+"'")
dw_main.Modify("t_leac.X='"+ String(Long(dw_main.Describe("t_dta.X")) + Long(dw_main.Describe("t_dta.Width")) + 13)+"'")
dw_main.Modify("t_leacnm.X='"+ String(Long(dw_main.Describe("t_leac.X")) + Long(dw_main.Describe("t_leac.Width")) + 13)+"'")
dw_main.Modify("dta.X='"+ String(Long(dw_main.Describe("prd.X")) + Long(dw_main.Describe("prd.Width")) + 13)+"'")
dw_main.Modify("leac.X='"+ String(Long(dw_main.Describe("dta.X")) + Long(dw_main.Describe("dta.Width")) + 13)+"'")
dw_main.Modify("leacnm.X='"+ String(Long(dw_main.Describe("leac.X")) + Long(dw_main.Describe("leac.Width")) + 13)+"'")
dw_main.SetSort("dcd asc, dta asc, leac asc")
dw_main.Sort()
End If
dw_main.SetRedraw(TRUE)
Posted by Julyus
Powerbuilder/DataWindow2010. 12. 3. 19:01
This.Post setItem(This.GetRow(), String(dwo.name), '11')
Posted by Julyus
Powerbuilder/DataWindow2010. 6. 9. 22:34
This statement sets the status of row 5 in the Salary column of the primary buffer of dw_history to NotModified!:

dw_history.SetItemStatus(5, "Salary", &

        Primary!, NotModified!)

This statement sets the status of row 5 in the emp_status column of the primary buffer of dw_new_hire to DataModified!:

dw_new_hire.SetItemStatus(5, "emp_status", &

        Primary!, DataModified!)

This code sets the status of row 5 in the primary buffer of dw_rpt to DataModified! if its status is currently NewModified!:

dwItemStatus l_status

l_status = dw_rpt.GetItemStatus(5, 0, Primary!)

IF l_status = NewModified! THEN

        dw_rpt.SetItemStatus(5, 0, 

            Primary!, DataModified!)

END IF

/* Modified ! */




dw_main.GetNextModified(0, Primary!)
Posted by Julyus