Esempio n. 1
0
        public void SetTRItemCancel(TRItem tritem)
        {
            //대기중 취소, 세션에 할당된 상태에서 취소가 생길수 있다.
            TRItemStatus statusBefore = tritem.status;

            if (statusBefore == TRItemStatus.ready || statusBefore == TRItemStatus.attached)
            {
                tritem.status = TRItemStatus.canceled;
            }
        }
Esempio n. 2
0
        public TRItem(short inType, string strTrCode, int nSvrNo, int nDataSeq, int nDataType, string strSendData, byte[] bytSendData, int nDataAgentHash)
        {
            unchecked
            {
                _nSeq = ++nStaticSeq;
            }

            this.status         = TRItemStatus.ready;
            this.nDataAgentHash = nDataAgentHash;

            this.inType      = inType;
            this.strTrCode   = strTrCode;
            this.nSvrNo      = nSvrNo;
            this.nDataSeq    = nDataSeq;
            this.nDataType   = nDataType;
            this.strSendData = strSendData;
            this.bytSendData = bytSendData;
        }