Esempio n. 1
0
        public void moveInstrumentToThis(clsMAST_FP_INSTRUMENT_TB clstb)
        {
            // book change
            clstb.BOOK_CD = this.bookCode_;

            if (clstb.UpdateBook() != 1)
                { throw new Exception("move instrument fail : " + clstb.INSTRUMENT_NM); }


            // position change
            clsHITM_FP_POSITION_TB clstb_position = new clsHITM_FP_POSITION_TB();

            clstb_position.BOOK_CD = this.bookCode_;
            clstb_position.INSTRUMENT_ID = clstb.INSTRUMENT_ID;

            if (clstb_position.UpdateBookChange() == 0)
                { throw new Exception("0 position is moved : " + clstb.INSTRUMENT_NM); }


        }