예제 #1
0
 public override void onCaseDeleted (l3.cargo.corba.XCase c)
 {
     if (m_WSServer != null)
     {
         m_WSServer.DeleteFromCaseList(c);
     }
 }
예제 #2
0
 public override void onCaseAdded(l3.cargo.corba.XCase c)
 {
     if (m_WSServer != null)
     {
         m_WSServer.AddToCaseList(c);
     }
 }
예제 #3
0
 public void AddAnalystWSComm(l3.cargo.corba.WorkstationComm wsComm)
 {
     try { GetWorkstationManager(l3.cargo.corba.WorkstationArea.AWS).addWSComm(wsComm); }
     catch (l3.cargo.corba.CargoException ex) { throw new Exception(ex.error_msg, ex.InnerException); }
     catch (omg.org.CORBA.INTERNAL ex) { throw new Exception(ex.Message, ex.InnerException); }
     catch (System.Reflection.TargetInvocationException ex) { throw new Exception(ex.Message, ex.InnerException); }
     catch (AbstractCORBASystemException ex) { throw new Exception(ex.Message, ex.InnerException); }
 }
예제 #4
0
 public void AddCaseChangeListener(l3.cargo.corba.CaseChangeListener caseChangeListener)
 {
     try { GetCaseManager().addCaseChangeListener(caseChangeListener); }
     catch (l3.cargo.corba.CargoException ex) { throw new Exception(ex.error_msg, ex.InnerException); }
     catch (omg.org.CORBA.INTERNAL ex) { throw new Exception(ex.Message, ex.InnerException); }
     catch (System.Reflection.TargetInvocationException ex) { throw new Exception(ex.Message, ex.InnerException); }
     catch (AbstractCORBASystemException ex) { throw new Exception(ex.Message, ex.InnerException); }
 }
예제 #5
0
        public override void onCaseAdded(l3.cargo.corba.XCase xc)
        {
            if (m_WSServer != null)
            {
                m_WSServer.ModifyCaseList(xc);
            }

            base.onCaseAdded(xc);
        }
예제 #6
0
        public override void onCaseAdded(l3.cargo.corba.XCase xc)
        {
            if (m_WSServer != null)
            {
                m_WSServer.ModifyCaseList(xc);
                m_WSServer.AutoVerifyManualCodingCaseEnabled = m_WSServer.AutoVerifyCaseEnabled;
            }

            base.onCaseAdded(xc);
        }
예제 #7
0
 public void SetResult(string caseId, l3.cargo.corba.Result result)
 {
     try
     {
         l3.cargo.corba.XCase xc = GetHost().getCaseManager().getLiveCase(caseId);
         xc.addResult(result);
     }
     catch (l3.cargo.corba.CargoException ex) { throw new Exception(ex.error_msg, ex.InnerException); }
     catch (omg.org.CORBA.INTERNAL ex) { throw new Exception(ex.Message, ex.InnerException); }
     catch (System.Reflection.TargetInvocationException ex) { throw new Exception(ex.Message, ex.InnerException); }
     catch (AbstractCORBASystemException ex) { throw new Exception(ex.Message, ex.InnerException); }
 }
예제 #8
0
 public void ReleaseAreaCases(l3.cargo.corba.WorkstationArea area)
 {
     try
     {
         foreach (l3.cargo.corba.XCase xc in GetWorkstationManager(area).getCaseList())
             GetWorkstationManager(area).releaseCase(xc.getId());
     }
     catch (l3.cargo.corba.CargoException ex) { throw new Exception(ex.error_msg, ex.InnerException); }
     catch (omg.org.CORBA.INTERNAL ex) { throw new Exception(ex.Message, ex.InnerException); }
     catch (System.Reflection.TargetInvocationException ex) { throw new Exception(ex.Message, ex.InnerException); }
     catch (AbstractCORBASystemException ex) { throw new Exception(ex.Message, ex.InnerException); }
 }
예제 #9
0
 private l3.cargo.corba.WorkstationManager GetWorkstationManager(l3.cargo.corba.WorkstationArea area)
 {
     try { return GetHost().getWorkstationManager(area); }
     catch (l3.cargo.corba.CargoException ex) { throw new Exception(ex.error_msg, ex.InnerException); }
     catch (omg.org.CORBA.INTERNAL ex) { throw new Exception(ex.Message, ex.InnerException); }
     catch (System.Reflection.TargetInvocationException ex) { throw new Exception(ex.Message, ex.InnerException); }
     catch (AbstractCORBASystemException ex) { throw new Exception(ex.Message, ex.InnerException); }
 }
예제 #10
0
 public List<l3.cargo.corba.XCase> GetWorkstationAreaCases(l3.cargo.corba.WorkstationArea area)
 {
     List<l3.cargo.corba.XCase> ret = new List<l3.cargo.corba.XCase>();
     try
     {
         foreach (l3.cargo.corba.XCase xc in GetWorkstationManager(area).getCaseList())
             ret.Add(xc);
     }
     catch (l3.cargo.corba.CargoException ex) { throw new Exception(ex.error_msg, ex.InnerException); }
     catch (omg.org.CORBA.INTERNAL ex) { throw new Exception(ex.Message, ex.InnerException); }
     catch (System.Reflection.TargetInvocationException ex) { throw new Exception(ex.Message, ex.InnerException); }
     catch (AbstractCORBASystemException ex) { throw new Exception(ex.Message, ex.InnerException); }
     return ret;
 }
예제 #11
0
파일: WSServer.cs 프로젝트: BdGL3/CXPortal
 public void DeleteFromCaseList(l3.cargo.corba.XCase xCase)
 {
     lock (_updateCaseAssignmentLock)
     {
         base.caseList.Delete(xCase.getId());
         CaseListUpdateEvent(xCase.getId(), String.Empty, xCase.getCurrentArea(), false);
     }
 }
예제 #12
0
파일: WSServer.cs 프로젝트: BdGL3/CXPortal
        public void ModifyCaseList(l3.cargo.corba.XCase xCase)
        {
            base.caseList.Modify(xCase.getId(), xCase.getContainerId(), xCase.getConveyanceId(), string.Empty, string.Empty, 0, xCase.getCaseDir(), false,
                (Int32) WorkstationDecision.Unknown, DateTime.Now, false, null, DateTime.Parse(xCase.getCreateTime()), xCase.getCurrentArea(), false, string.Empty, false);

            CaseListUpdateEvent(xCase.getId(), String.Empty, xCase.getCurrentArea(), true);
        }