Esempio n. 1
0
        public static object SubmitFXSwapDeal(SessionInfo sessioninfo
                                                , DA_TRN trn1
                                                , DA_TRN trn2
                                                , string strOverApprover
                                                , string strOverComment
                                                , string strProductId1
                                                , string strProductId2)
        {
            try
             {
                 DealBusiness _dealBusiness = new DealBusiness();

                 string strDealNO1 = _dealBusiness.SubmitFXDeal(sessioninfo
                                                                 , trn1
                                                                 , strOverApprover
                                                                 , strOverComment
                                                                 , strProductId1);
                 trn2.INT_DEAL_NO = strDealNO1;
                 string strDealNO2 = _dealBusiness.SubmitFXDeal(sessioninfo
                                                                 , trn2
                                                                 , strOverApprover
                                                                 , strOverComment
                                                                 , strProductId2
                                                                 );
                 return new { Result = "OK", Message = strDealNO1 };
             }
             catch (Exception ex)
             {
                 return new { Result = "ERROR", Message = ex.Message };
             }
        }
Esempio n. 2
0
        public static object SubmitFXSpotDeal(SessionInfo sessioninfo
                                                , DA_TRN trn
                                                , string strOverApprover
                                                , string strOverComment
                                                , string strProductId)
        {
            try
             {
                 DealBusiness _dealBusiness = new DealBusiness();

                 string strDealNO = _dealBusiness.SubmitFXDeal(sessioninfo
                                                                 , trn
                                                                 , strOverApprover
                                                                 , strOverComment
                                                                 , strProductId);

                 return new { Result = "OK", Message = strDealNO };
             }
             catch (Exception ex)
             {
                 return new { Result = "ERROR", Message = ex.Message };
             }
        }