Пример #1
0
 public LBNode LB()
 {
     if (lexer.GetToken().Id == 3)
     {
         var result = new LBNode(lexer.GetText());
         lexer.NextToken();
         return(result);
     }
     throw new ParserException("Got unxpected token from lexer");
 }
Пример #2
0
        private LBNode GetNode()
        {
            const string conPROC_NAME  = "GetNode";
            string       strCurrentOpp = "prior to TRY";

            ArrayList arrLBSubCases = null;

            try {
                mobjPerson.Database.Logger.EnterFunction(conPROC_NAME);

                try {
                    arrLBSubCases = mobjLBNLCore.GetCase(mintSubLink).GetSubCases("Week Activity");
                }
                catch {
                    MessageBox.Show("Error retrieving LB Sub cases.", mconPROJECT_NAME,
                                    MessageBoxButtons.OK, MessageBoxIcon.Information);
                    //throw new Exception("Error retrieving LB Sub cases");
                }

                try {
                    mobjLBNode = ((LBSubCase)arrLBSubCases[arrLBSubCases.Count - 1]).GetLatestNode();
                }
                catch {
                    MessageBox.Show("Error getting LB node (TimePeriod maybe in use by another user).", mconPROJECT_NAME,
                                    MessageBoxButtons.OK, MessageBoxIcon.Information);
                    //throw new Exception("Error getting latest LB node");
                }
                return(mobjLBNode);
            }
            catch (Exception objException) {
                mobjPerson.Database.Logger.LogFunctionError(mconCLASS_NAME, conPROC_NAME, strCurrentOpp, objException.Message);
                throw objException;
            }
            finally {
                mobjPerson.Database.Logger.LeaveFunction(conPROC_NAME);
            }
        }
Пример #3
0
 public bool Lock()
 {
     return(LBNode.Lock());
 }
Пример #4
0
 public bool UnLock()
 {
     return(LBNode.UnLock());
 }