|
@@ -70,7 +70,7 @@ procedure TSetGuestForm.btnAddClick(Sender: TObject);
|
|
|
var
|
|
|
FindUserForm: TFindUserForm;
|
|
|
begin
|
|
|
- FindUserForm := TFindUserForm.Create(self, 1, []);
|
|
|
+ FindUserForm := TFindUserForm.Create(self, 1, [FWebID, -1]);
|
|
|
try
|
|
|
FindUserForm.ShowModal;
|
|
|
finally
|
|
@@ -89,18 +89,18 @@ var i: Integer;
|
|
|
begin
|
|
|
inherited Create(nil);
|
|
|
FWebID := AWebID;
|
|
|
-// GetGuests;
|
|
|
+ GetGuests;
|
|
|
|
|
|
// for test
|
|
|
- for i := 1 to 5 do
|
|
|
- begin
|
|
|
- cdsGuest.Append;
|
|
|
- cdsGuestID.AsString := IntToStr(i);
|
|
|
- cdsGuestName.AsString := 'aaa' + IntToStr(i);
|
|
|
- cdsGuestAccount.AsString := 'aaaa@qq.com';
|
|
|
- cdsGuestOperate.AsString := '取消关注';
|
|
|
- cdsGuest.Post;
|
|
|
- end;
|
|
|
+// for i := 1 to 5 do
|
|
|
+// begin
|
|
|
+// cdsGuest.Append;
|
|
|
+// cdsGuestID.AsString := IntToStr(i);
|
|
|
+// cdsGuestName.AsString := 'aaa' + IntToStr(i);
|
|
|
+// cdsGuestAccount.AsString := 'aaaa@qq.com';
|
|
|
+// cdsGuestOperate.AsString := '取消关注';
|
|
|
+// cdsGuest.Post;
|
|
|
+// end;
|
|
|
end;
|
|
|
|
|
|
procedure TSetGuestForm.GetGuests;
|
|
@@ -110,7 +110,7 @@ var sURL: string;
|
|
|
begin
|
|
|
Screen.Cursor := crHourGlass;
|
|
|
try
|
|
|
- sURL := Format('%sapi/client/tender/%s/concernaudit/list', [PHPWeb.MeasureURL, InttoStr(FwebID)]); // AAAAAA 查询标段的关注人
|
|
|
+ sURL := Format('%stender/%s/concernaudit/list', [PHPWeb.MeasureURL, InttoStr(FwebID)]); // AAAAAA 查询标段的关注人
|
|
|
case PHPWeb.Search(sURL, [], [], UserArr) of
|
|
|
1:
|
|
|
begin
|
|
@@ -134,12 +134,14 @@ begin
|
|
|
Application.MessageBox(PChar(PHPWeb.NetError('无法查询到关注人')),
|
|
|
'警告', MB_OK + MB_ICONWARNING);
|
|
|
Exit;
|
|
|
+ close;
|
|
|
end;
|
|
|
0:
|
|
|
begin
|
|
|
Application.MessageBox(PChar(PHPWeb.PageError('无法查询到关注人')),
|
|
|
'警告', MB_OK + MB_ICONWARNING);
|
|
|
Exit;
|
|
|
+ close;
|
|
|
end;
|
|
|
end;
|
|
|
finally
|
|
@@ -180,7 +182,8 @@ procedure TSetGuestForm.zgGuestMouseDown(Sender: TObject;
|
|
|
var s, sURL: string;
|
|
|
vArr: array of string;
|
|
|
begin
|
|
|
- if zgGuest.CurCol = Col(zaGuest, 'Operate') then
|
|
|
+
|
|
|
+ if ((zgGuest.CurCol = Col(zaGuest, 'Operate')) and (zgGuest.CurRow <= cdsGuest.RecordCount)) then
|
|
|
begin
|
|
|
s := Format('确定要取消用户“%s”对该标段的关注吗?', [cdsGuestName.AsString]);
|
|
|
if Application.MessageBox(PChar(s), '询问', MB_YESNO + MB_ICONQUESTION) = ID_No then
|
|
@@ -189,7 +192,7 @@ begin
|
|
|
Screen.Cursor := crHourGlass;
|
|
|
vArr := VarArrayOf(['msg']);
|
|
|
try
|
|
|
- sURL := PHPWeb.MeasureURL + '/api/client/tender/concernaudit/del'; // AAAAAA 取消关注人
|
|
|
+ sURL := PHPWeb.MeasureURL + 'tender/concernaudit/del'; // AAAAAA 取消关注人
|
|
|
|
|
|
case PHPWeb.Search(sURL, ['tenderid', 'uid'], [InttoStr(FwebID), cdsGuestID.AsString], vArr) of
|
|
|
1:
|