public override void execute(Tag tag) { //更新系统日期 SystemDateTag systemDateTag = tag as SystemDateTag; AdlerCmd.currentSystemDate = systemDateTag.CollectDate; AdlerCmd.adlerSession.Logger.Info("系统日期TAG:oid:" + systemDateTag.Oid + "系统日期:" + systemDateTag.CollectDate); }
public static Tag create(String oid, int len, String value) { Tag tag; if (UploadTag.isUploadTag(oid)) { tag = new UploadTag(oid, len, value); } else if (oid == SystemDateTag.SYSTEM_DATE_OID) { tag = new SystemDateTag(oid, len, value); } else if (oid == SystemTimeTag.SYSTEM_TIME_OID) { tag = new SystemTimeTag(oid, len, value); } else { tag = new NormalTag(oid, len, value); } return(tag); }