public void QueryExcute(IRetention retention) { if (LoadFromResFile(Secrecy.GetResFileName(GetType().Name))) { InBlock = new HashSet <InBlock>(); SendMessage(retention.Code, retention.LastDate, string.Empty); foreach (var param in GetInBlocks(GetType().Name)) { if (InBlock.Add(new InBlock { Block = param.Block, Field = param.Field, Occurs = param.Occurs, Data = param.Data ?? retention.Code })) { SetFieldData(param.Block, param.Field, param.Occurs, param.Data ?? retention.Code); } } new Task(() => { Thread.Sleep(0xBB9); SendErrorMessage(GetType().Name, Request(false)); }).Start(); } Charts = new Stack <string>(); Retention = retention.LastDate?.Substring(0, 0xC); }
public void QueryExcute(IRetention retention) { if (LoadFromResFile(Secrecy.GetResFileName(GetType().Name))) { InBlock = new HashSet <InBlock>(); foreach (var param in GetInBlocks(GetType().Name)) { if (InBlock.Add(new InBlock { Block = param.Block, Field = param.Field, Occurs = param.Occurs, Data = param.Data ?? retention.Code })) { SetFieldData(param.Block, param.Field, param.Occurs, param.Data ?? retention.Code); } } Connect.GetInstance().Request.RequestTrData(new Task(() => SendErrorMessage(GetType().Name, Request(false)))); } Charts = new Stack <string>(); if (retention is Retention tention) { Retention = tention; } }