/// <summary>Информацио о удаляемом объекте</summary> /// <param name="name">Имя таблицы</param> /// <param name="subName">Имя подтаблицы</param> /// <param name="field">Имя поля</param> /// <param name="id">ИД</param> /// <param name="row">Номер строки в подтаблице</param> public DeleteObjectInfo(string name, string subName, string field, long id, long row) { IDatabaseObjectInfo databaseObjectInfo = SystemConfiguration.DBConfigurationTree[name]; string tableName = databaseObjectInfo.DBObjectType ==AramisObjectType.Catalog ? new CatalogsViewer(name, id).ToString() : new DocumentsViewer(name, id).ToString(); string subTableName; string fieldName; if (string.IsNullOrEmpty(subName)) { subTableName = null; fieldName = databaseObjectInfo.FieldsDictionary[field].Attr.Description; } else { subTableName = databaseObjectInfo.SubTablesDesc[subName]; fieldName = databaseObjectInfo.InfoSubTables[subName].SubtableFields[field].Attr.Description; } TableName = new InformationName<string>(name, tableName); SubTableName = new InformationName<string>(subName, subTableName); FieldName = new InformationName<string>(field, fieldName); Id = id; LineNumber = row; }
// General-purpose memory store // General-purpose memory transfer // General-purpose memory send /// <summary> /// Send each display status information. /// </summary> /// <param name="device">GU256x128c device</param> /// <param name="name">Informarion name</param> /// <param name="address">Start address</param> /// <param name="length">Data length</param> public static void DisplayStatusSend(this Gu256x128c device, InformationName name, byte address, byte length) { var a = (byte)name; var b = address; var c = length; device.WriteBytes(new byte[] { 0x1F, 0x28, 0x65, 0x40, a, b, c }); }
protected override Task <XDocument[]> ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken, Application client) { var officename = MeteorologicalOffice.Get(context); var feedType = AtomFeedType.Get(context); var informationName = InformationName.Get(context); var isReturnAllMatches = ReturnAllMatches.Get(context); if (!client.WaitForReady()) { throw new System.Exception("Timeout Exception"); } return(client.GetXml(officename, informationName, feedType, isReturnAllMatches)); }