ConstructorClass.min.js 1.8 KB

1
  1. function AlarmPoints(t,i,s,n,e){this.TagName=t;this.AlarmAreaId=i;this.DelayTime=s;this.DeadBand=n;this.AlarmFilterSetting=e;this.getJson=function(){return objJson(this)}}function AlarmFilterSetting(t,i,s,n,e){this.AlarmCategoryId=t;this.AlarmLevelId=i;this.AlarmGroupId=s;this.AlarmException=n;this.LimitValue=e;this.getJson=function(){return objJson(this)}}var objJson=function(t){return JSON.stringify(t)};function ResultData(t,i,s){this.TagName=t;this.ErrorCode=i;this.Message=s;this.getJson=function(){return objJson(this)}}function AlarmLevels(t,i,s,n,e,o,a,r,h,l){this.Id=t;this.Name=i;this.WavFile=s;this.WavNoticeCount=n;this.AlarmColor=e;this.ResetColor=o;this.EnsureColor=a;this.IsSpangled=r;this.LevelValue=h;this.FinallyColor=l;this.getJson=function(){return objJson(this)}}function AlarmCategories(t,i,s,n){this.Id=t;this.Name=i;this.Desc=s;this.LevelValue=n;this.getJson=function(){return objJson(this)}}function AlarmGroup(t,i,s){this.Id=t;this.Name=i;this.Desc=s;this.getJson=function(){return objJson(this)}}function AlarmArea(t,i){this.Name=t;this.ParentAreaId=i;this.getJson=function(){return objJson(this)}}function AlarmRules(t,i,s,n){this.TagName=t;this.DeadBand=i;this.DelayTime=s;this.AlarmFilterSettings=n;this.getJson=function(){return objJson(this)}}function SearchCondition(t,i,s,n,e){this.pageIndex=t;this.pageSize=i;this.condition=s;this.orderby=n;this.ascending=e;this.getJson=function(){return objJson(this)}}function FieldCondition(t,i,s){this.field=t;this.value=i;this.method=s;this.getJson=function(){return objJson(this)}}var ErrorCode={Ok:1,ArgumentIllegal:2,OpreateFailed:3,UnkownException:4};var TagOptCode={Sucess:0,TagUnExsit:1,TagTypeIllage:2,AlarmTagUnExsit:3,AlarmTagHasExsit:4,AlarmTagLoadFailed:5,AlarmSnapshotUnExsit:6,Other:7};var DataType={BOOL:0,UINT8:1,INT8:2,UINT16:4,INT16:5,UINT32:6,INT32:7,INT64:8,REAL16:9,REAL32:10,REAL64:11};