/// <summary> /// Сохранить скрипт в указаном файле /// </summary> /// <param name="rs"></param> /// <param name="namefile"></param> public void SaveScript(ResultScript rs, string namefile) { StringBuilder sb = new StringBuilder(); sb.Append(rs.ScriptDeclare); sb.Append(rs.ScriptOperation); SaveScript(sb, namefile); }
/// <summary> /// /// </summary> /// <param name="owner"></param> /// <param name="idStop"></param> /// <param name="idrenumbering"></param> /// <returns></returns> public ResultScript CreateIUScriptInOwner(int owner, int[] idStop, int?idrenumbering) { ResultScript rs = new ResultScript(); List <ResultIDScript> lrid = rs.ListResultID; rs.ScriptDeclare = Declare(); rs.ScriptOperation.Append(RootScriptOwner(owner, ref lrid, idStop, ref idrenumbering)); return(rs); }
/// <summary> /// /// </summary> /// <param name="Parentid"></param> /// <param name="idStop"></param> /// <param name="idrenumbering"></param> public void GetIUScriptInOwner(int owner, int[] idStop, int?idrenumbering) { this.resultscript.Clear(); this.resultscript = CreateIUScriptInOwner(owner, idStop, idrenumbering); }
/// <summary> /// /// </summary> /// <param name="Parentid"></param> /// <param name="idStop"></param> /// <param name="idrenumbering"></param> public void GetIUScriptInParentID(int?Parentid, int[] idStop, int?idrenumbering) { this.resultscript.Clear(); this.resultscript = CreateIUScriptInParentID(Parentid, idStop, idrenumbering); }
public BackupTable() : base() { this.resultscript = new ResultScript(); DeclareTable(); }