Home > database > Can you tell me what's the problem with this code? Trouble for help have a look, be urgent!
Can you tell me what's the problem with this code? Trouble for help have a look, be urgent!
Time:09-26
String r_czyxm r_czyxm1, r_shr r_shbj, r_zhr, g_id The integer r_row,.net R_row=dw_wgrk. Getrow () R_czyxm=dw_wgrk. Getitemstring (r_row, 'SHR) R_shbj=dw_wgrk. Getitemstring (r_row, 'SHBJ) If r_shbj='Y' then Messagebox (' hint: ', 'the receipt already review! ') The else The select czyxm into: r_czyxm1 from czyxxb where czybh=: g_id; The select czyxm into: r_shr from czyxxb where czyqx like '%' outsourcing audit; If r_czyxm1 & lt;> R_shr then Messagebox (' prompt ', 'you have no right to review! ') The else Net=messagebox (' prompt ', 'really want to review the operation? ', the exclamation! Yesno! , 2) If the.net=2 then return Dw_wgrk. Setitem (r_row, 'SHR, r_shr)//reviewer Dw_wgrk. Setitem (r_row, 'SHBJ', 'Y')//audit tag Dw_wgrk. Accepttext () Messagebox (' hint: ', 'audit success! ') Cb_bc. Triggerevent (clicked! End the if End the if
This is an implementation of the audit code, but every time they perform all tips "did not have the right to audit", but operators have audit authority, i.e., how be to return a responsibility excuse me? Trouble help solve, thank you very much
CodePudding user response:
A, the DEBUG variable is exactly the same as Second, the trim try,
CodePudding user response:
Check g_id value is how much
Messagebox (r_czyxm1 r_shr)
According to the value, to find the problem
CodePudding user response:
The select czyxm into: r_czyxm1 from czyxxb where czybh=: g_id; The select czyxm into: r_shr from czyxxb where czyqx like '%' outsourcing audit;
The second sentence add a where clause condition The select czyxm into: r_shr from czyxxb where czybh=: g_id and czyqx like '%' outsourcing audit;
Actually I just a statement The select czyqx into: czyqx from czyxxb where czybh=: g_id; To assess the czyqx whether outsourcing review
CodePudding user response:
Still not solve the ah, which expert help
CodePudding user response:
Each execution are prompt "did not have the right to audit" you use a select statement to get r_czyxm1, r_shr they always not equal, you want to see the two variables