コード例 #1
0
ファイル: RunTimeView.cs プロジェクト: NALSS/epiinfo-82474
        public RunTimeView(IEnterInterpreterHost pEnterClientInterface, Epi.View pView, int pParentRecordId, string pParentGlobalRecordId, IScope pScope = null)
        {
            // to do set the enter interpreter
            // application domain.
            Assembly a = Assembly.Load(pView.Project.EnterMakeviewIntepreter);
            // Get the type to use.
            Type myType = a.GetType(pView.Project.EnterMakeviewIntepreter + ".EpiInterpreterParser");

            // Create an instance.
            if (pScope == null)
            {
                this.mEpiInterpreter = (IEnterInterpreter)Activator.CreateInstance(myType, new object[] { pEnterClientInterface });
            }
            else
            {
                this.mEpiInterpreter = (IEnterInterpreter)Activator.CreateInstance(myType, new object[] { pEnterClientInterface, pScope });
            }
            this.mEpiInterpreter.Context.Scope.Name = pView.Name;
            this.mEpiInterpreter.Host = pEnterClientInterface;

            this.EnterClientInterface = pEnterClientInterface;
            this.AfterStack = new Stack<KeyValuePair<EventActionEnum, StackCommand>>();
            this.parentViewRecordId = pParentRecordId;
            this.parentViewGlobalRecordId = pParentGlobalRecordId;
            this.RecordNumberMap = new Dictionary<int, int>();
            this.mView = pView;
            this.mView.ForeignKeyField.CurrentRecordValueString = this.ParentGlobalRecordId;
        }
コード例 #2
0
        public RunTimeView(IEnterInterpreterHost pEnterClientInterface, Epi.View pView, int pParentRecordId, string pParentGlobalRecordId, IScope pScope = null)
        {
            // to do set the enter interpreter
            // application domain.
            Assembly a = Assembly.Load(pView.Project.EnterMakeviewIntepreter);
            // Get the type to use.
            Type myType = a.GetType(pView.Project.EnterMakeviewIntepreter + ".EpiInterpreterParser");


            // Create an instance.
            if (pScope == null)
            {
                this.mEpiInterpreter = (IEnterInterpreter)Activator.CreateInstance(myType, new object[] { pEnterClientInterface });
            }
            else
            {
                this.mEpiInterpreter = (IEnterInterpreter)Activator.CreateInstance(myType, new object[] { pEnterClientInterface, pScope });
            }
            this.mEpiInterpreter.Context.Scope.Name = pView.Name;
            this.mEpiInterpreter.Host = pEnterClientInterface;


            this.EnterClientInterface     = pEnterClientInterface;
            this.AfterStack               = new Stack <KeyValuePair <EventActionEnum, StackCommand> >();
            this.parentViewRecordId       = pParentRecordId;
            this.parentViewGlobalRecordId = pParentGlobalRecordId;
            this.RecordNumberMap          = new Dictionary <int, int>();
            this.mView = pView;
            this.mView.ForeignKeyField.CurrentRecordValueString = this.ParentGlobalRecordId;
        }
コード例 #3
0
        public EpiInterpreterParser(IEnterInterpreterHost pEnterCheckCodeInterface)
        {
            Stream stream = EpiInterpreterParser.GetEnterCompiledGrammarTable();

            Init(stream);
            pEnterCheckCodeInterface.Register(this);
            this.EnterCheckCodeInterface = pEnterCheckCodeInterface;
        }
コード例 #4
0
        public EpiInterpreterParser(string filename, IEnterInterpreterHost pEnterCheckCodeInterface)
        {
            this.EnterCheckCodeInterface = pEnterCheckCodeInterface;

            FileStream stream = new FileStream(filename,
                                   FileMode.Open,
                                   FileAccess.Read,
                                   FileShare.Read);
            Init(stream);
            stream.Close();
        }
コード例 #5
0
        public EpiInterpreterParser(string filename, IEnterInterpreterHost pEnterCheckCodeInterface)
        {
            this.EnterCheckCodeInterface = pEnterCheckCodeInterface;

            FileStream stream = new FileStream(filename,
                                               FileMode.Open,
                                               FileAccess.Read,
                                               FileShare.Read);

            Init(stream);
            stream.Close();
        }
コード例 #6
0
ファイル: RunTimeView.cs プロジェクト: NALSS/epiinfo-82474
        public RunTimeView(IEnterInterpreterHost pEnterClientInterface, Epi.View pView)
        {
            // to do set the enter interpreter
            // application domain.
            Assembly a = Assembly.Load(pView.Project.EnterMakeviewIntepreter);
            // Get the type to use.
            Type myType = a.GetType(pView.Project.EnterMakeviewIntepreter + ".EpiInterpreterParser");

            // Create an instance.
            this.mEpiInterpreter = (IEnterInterpreter)Activator.CreateInstance(myType, new object[] { pEnterClientInterface });
            this.mEpiInterpreter.Host = pEnterClientInterface;

            //this.mEpiInterpreter = new EpiInterpreterParser(Epi.Resources.ResourceLoader.GetEnterCompiledGrammarTable(), pEnterClientInterface, Rule_Context.eRunMode.Enter);
            this.EnterClientInterface = pEnterClientInterface;
            this.AfterStack = new Stack<KeyValuePair<EventActionEnum, StackCommand>>();
            this.RecordNumberMap = new Dictionary<int, int>();
            this.mView = pView;
        }
コード例 #7
0
        public RunTimeView(IEnterInterpreterHost pEnterClientInterface, Epi.View pView)
        {
            // to do set the enter interpreter
            // application domain.
            Assembly a = Assembly.Load(pView.Project.EnterMakeviewIntepreter);
            // Get the type to use.
            Type myType = a.GetType(pView.Project.EnterMakeviewIntepreter + ".EpiInterpreterParser");

            // Create an instance.
            this.mEpiInterpreter      = (IEnterInterpreter)Activator.CreateInstance(myType, new object[] { pEnterClientInterface });
            this.mEpiInterpreter.Host = pEnterClientInterface;

            //this.mEpiInterpreter = new EpiInterpreterParser(Epi.Resources.ResourceLoader.GetEnterCompiledGrammarTable(), pEnterClientInterface, Rule_Context.eRunMode.Enter);
            this.EnterClientInterface = pEnterClientInterface;
            this.AfterStack           = new Stack <KeyValuePair <EventActionEnum, StackCommand> >();
            this.RecordNumberMap      = new Dictionary <int, int>();
            this.mView = pView;
        }
コード例 #8
0
 public OpenViewEventArgs(IEnterInterpreterHost pEnterCheckCodeInterface, int pViewId)
 {
     mEnterCheckCodeInterface = pEnterCheckCodeInterface;
     mViewId = pViewId;
 }
コード例 #9
0
 public EpiInterpreterParser(IEnterInterpreterHost pEnterCheckCodeInterface)
 {
     Stream stream = EpiInterpreterParser.GetEnterCompiledGrammarTable();
     Init(stream);
     pEnterCheckCodeInterface.Register(this);
     this.EnterCheckCodeInterface = pEnterCheckCodeInterface;
 }
コード例 #10
0
 public OpenViewEventArgs(IEnterInterpreterHost pEnterCheckCodeInterface, int pViewId)
 {
     mEnterCheckCodeInterface = pEnterCheckCodeInterface;
     mViewId = pViewId;
 }