public override Position build_position() { Ftp_DepositLoanPosition ifp = new Ftp_DepositLoanPosition(); ifp.DAO_ = new DatabaseLayer.clsHITM_FP_POSITION_TB(); //ifp.Financial_instrument_ = this.Financial_instrument_; ifp.DAO_.POSITION_ID = IDGenerator.getNewPositionID(this.DAO_.INSTRUMENT_ID, this.DAO_.TRADE_DT); ifp.DAO_.FP_MASTER_TYP = this.DAO_.FP_MASTER_TYP; ifp.DAO_.POSITION_DT = this.DAO_.TRADE_DT; ifp.DAO_.INSTRUMENT_ID = this.DAO_.INSTRUMENT_ID; ifp.DAO_.INSTRUMENT_QNT = this.DAO_.TRADE_QNT; ifp.DAO_.EVAL_CURR = this.DAO_.TRADE_CURR; ifp.DAO_.CURR_RATE = this.DAO_.CURR_RATE; ifp.DAO_.NOTIONAL_AMT = this.DAO_.ACCOUNT_AMT; ifp.DAO_.ACCOUNT_AMT = this.DAO_.ACCOUNT_AMT; ifp.DAO_.ACCOUNT_UNIT = this.DAO_.ACCOUNT_AMT / this.DAO_.TRADE_QNT; ifp.DAO_.ACCOUNT_INDEX = this.DAO_.TRADE_INDEX; ifp.DAO_.EVAL_AMT = 0.0; ifp.DAO_.EVAL_PRICE = 0.0; ifp.DAO_.EVAL_ACCOUNT_PL = 0.0; ifp.DAO_.TRADE_PROFIT = 0.0; ifp.DAO_.TRADE_LOSS = 0.0; ifp.DAO_.TRADE_TOTAL = this.DAO_.TRADE_PL; ifp.DAO_.TRANSACTION_FEE = this.DAO_.TRADE_FEE; ifp.DAO_.ETC_PL = 0.0; ifp.DAO_.TOTAL_ACCOUNT_PL = 0.0; ifp.DAO_.DAILY_EVAL_PL = 0.0; ifp.DAO_.DAILY_TOTAL_PL = 0.0; //ifp.DAO_.BOOK_CD = ; return ifp; }
public override Position nextDateClone(DateTime nextDate) { Position clone = new Ftp_DepositLoanPosition(); this.nextDatepositionBaseCopy(clone, nextDate); return clone; }