主题:[讨论]各位大虾帮我看看哈~我不知道具体是什么意思哈~~~
我只知道是设置权限的代码但是我不知道每句的意思哈~你们哪个能帮帮我哈~~`能不能告诉一下每句话的大概意思哈~~~~~[em12]
procedure Trightform.BitBtn1Click(Sender: TObject);
begin
query1.Close;
query1.SQL.Clear;
query1.SQL.Add('select qx from u where ID='''+loginform.ComboBox1.Text+'''') ;
query1.Open;
if query1.FieldByName('qx').AsString='b' then
begin
if CheckBox1.State=cbChecked then
mainform.N3.Enabled:=true else mainform.N3.Enabled:=false;
if CheckBox2.State=cbChecked then
mainform.N18.Enabled:=true else mainform.N18.Enabled:=false;
if CheckBox7.State=cbChecked then
mainform.N10.Enabled:=true else mainform.N10.Enabled:=false;
end;
//if query1.FieldByName('qx').AsString='a' then
// BitBtn3.Click;
end;
end.
procedure Trightform.BitBtn1Click(Sender: TObject);
begin
query1.Close;
query1.SQL.Clear;
query1.SQL.Add('select qx from u where ID='''+loginform.ComboBox1.Text+'''') ;
query1.Open;
if query1.FieldByName('qx').AsString='b' then
begin
if CheckBox1.State=cbChecked then
mainform.N3.Enabled:=true else mainform.N3.Enabled:=false;
if CheckBox2.State=cbChecked then
mainform.N18.Enabled:=true else mainform.N18.Enabled:=false;
if CheckBox7.State=cbChecked then
mainform.N10.Enabled:=true else mainform.N10.Enabled:=false;
end;
//if query1.FieldByName('qx').AsString='a' then
// BitBtn3.Click;
end;
end.