在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
function GetcdsAccountsData: OleVariant; var ASQLQuery: TSQLQuery; Adsp: TProvider; begin ASQLQuery:=CreateSQLQuery; Adsp:=TProvider.Create(nil); with ASQLQuery do try SQL.Add('Select AccID, pAccID, AccName, AccFullName, Explan, Grade, Property, Detailed, DC, SublegType'); SQL.Add(',DeptAcc, EmplAcc, CorpAcc, ItemAcc, pItemID, Fcy, FcyNo, FcyExrate'); SQL.Add(',Qty, QtyUnit, QtySpecs, QtyPrice,QDigits, PDigits, FDigits'); SQL.Add('from Accounts'); SQL.Add('where SysID=:SysID and Status=''A'''); SQL.Add('and accYear=:accYear'); SQL.Add('Order by AccID'); ParamByName('SysID').AsInteger:=FSysID; ParamByName('accYear').AsInteger:=FLoginDate.Year; Adsp.DataSet:=ASQLQuery; Result:=Adsp.Data; finally Adsp.Free; Free; end; end; function CheckOpencdsAccounts: Boolean; begin if FcdsAccounts=nil then FcdsAccounts:=TClientDataSet.Create(Self); with FcdsAccounts do begin if not Active then begin Data:=GetcdsAccountsData; IndexFieldNames:='AccID'; end; Result:=Active; end; end;
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论