|
|
@ -35,6 +35,8 @@ export class TemplateParam
|
|
|
|
@AutoRecord option: any[];
|
|
|
|
@AutoRecord option: any[];
|
|
|
|
@AutoRecord actions: TemplateAction[];
|
|
|
|
@AutoRecord actions: TemplateAction[];
|
|
|
|
@AutoRecord parent: TemplateRecord;
|
|
|
|
@AutoRecord parent: TemplateRecord;
|
|
|
|
|
|
|
|
@AutoRecord isLock = false;
|
|
|
|
|
|
|
|
|
|
|
|
constructor()
|
|
|
|
constructor()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//监听
|
|
|
|
//监听
|
|
|
@ -177,11 +179,14 @@ export class TemplateParam
|
|
|
|
this.actions.length = 0;
|
|
|
|
this.actions.length = 0;
|
|
|
|
for (let i = 0; i < count; i++)
|
|
|
|
for (let i = 0; i < count; i++)
|
|
|
|
this.actions.push(file.ReadObject());
|
|
|
|
this.actions.push(file.ReadObject());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ver > 1)
|
|
|
|
|
|
|
|
this.isLock = file.Read();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//对象将自身数据写入到文件.
|
|
|
|
//对象将自身数据写入到文件.
|
|
|
|
WriteFile(file: CADFiler)
|
|
|
|
WriteFile(file: CADFiler)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
file.Write(1);
|
|
|
|
file.Write(2);
|
|
|
|
file.Write(this.name);
|
|
|
|
file.Write(this.name);
|
|
|
|
file.Write(this.expr);
|
|
|
|
file.Write(this.expr);
|
|
|
|
file.Write(this.value);
|
|
|
|
file.Write(this.value);
|
|
|
@ -193,8 +198,8 @@ export class TemplateParam
|
|
|
|
file.Write(this.option);
|
|
|
|
file.Write(this.option);
|
|
|
|
file.Write(this.actions.length);
|
|
|
|
file.Write(this.actions.length);
|
|
|
|
for (let action of this.actions)
|
|
|
|
for (let action of this.actions)
|
|
|
|
{
|
|
|
|
|
|
|
|
file.WriteObject(action);
|
|
|
|
file.WriteObject(action);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
file.Write(this.isLock);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|