}//setFinalUserNameOnServer public static TFI_CS_Shared.ResultCodes setUserPasswordOnServer(String strNewPassword, int idUser) { // Signs up the user + client TFI_CS_Shared.ResultCodes enumResults = TFI_CS_Shared.ResultCodes.LoginError; string ErrStr = ""; String strEncryptedPassword = cAesSecurity.getEncryptedMessage(strNewPassword, cProperties.EncryptionPass); //enumResults = ClientBiz.cltBiz.setFinalUser(strPrevUser, strNewUsername, strEncryptedPassword, out ErrStr); // Checks if there is an available license enumResults = ClientBiz.cltBiz.setNewPassword(strNewPassword, idUser, out ErrStr); // Checks if there is an available license return(enumResults); }//setUserPasswordOnServer
}//setUserPasswordOnServer public static Boolean isUserAvailableInServer(String strUsername) { // Verifies whether the user selected is available Boolean isAvailable = false; string ErrStr = ""; TFI_CS_Shared.ResultCodes m_enumResult = ClientBiz.cltBiz.isServerUserAvailable(strUsername, ref isAvailable, out ErrStr); // Checks if there is an available license if (m_enumResult != TFI_CS_Shared.ResultCodes.ok) { return(false); } return(isAvailable); }//isUserExistsInServer
}//isUserExistsInServer public static int isUserTemporary(String strUsername) { // Verifies whether the user selected is available int iTempStatus = 0; string ErrStr = ""; TFI_CS_Shared.ResultCodes m_enumResult = ClientBiz.cltBiz.isServerUserTemporary(strUsername, ref iTempStatus, out ErrStr); // Checks if there is an available license if (m_enumResult != TFI_CS_Shared.ResultCodes.ok) { return(0); } return(iTempStatus); }//isUserExistsInServer
}//GetLastUSDprice private DataSet bringUpToDateData(String SecurityIDlist, DateTime fromDate, DateTime toDate) { // Brings up to date the securities dynamic parameters (FAC, avgYield, stdYield) DataSet dsFinalData; try { // In this case we take prices as is from Historical Data, so passing "-1" to stored procedure m_enumErrorCode = ClientBiz.cltBiz.GetBringUpToDateData(SecurityIDlist, fromDate, toDate, out dsFinalData, out m_strErrorMsg); if (m_enumErrorCode != TFI_CS_Shared.ResultCodes.ok) { m_objErrorHandler.LogInfo(new Exception("m_strErrorMsg")); } return(dsFinalData); } catch (Exception ex) { m_objErrorHandler.LogInfo(ex); throw; } }//bringUpToDateData
}//bringUpToDateAllSecurities private string GetLastUSDprice() { // Brings up to date the securities dynamic parameters (FAC, avgYield, stdYield) DataSet dsLastUSD; try { // In this case we take prices as is from Historical Data, so passing "-1" to stored procedure m_enumErrorCode = ClientBiz.cltBiz.GetLastUSDprice(out dsLastUSD, out m_strErrorMsg); if (m_enumErrorCode != TFI_CS_Shared.ResultCodes.ok) { m_objErrorHandler.LogInfo(new Exception("m_strErrorMsg")); } return(dsLastUSD.ExtendedProperties["LastUSDprice"].ToString()); } catch (Exception ex) { m_objErrorHandler.LogInfo(ex); throw; } }//GetLastUSDprice