public UserSettings(int associateId, object connectionManager) : base(connectionManager) { this._AssociateId = associateId; this._NumberOfRecordsPerPage = ApplicationConstants.DEFAULT_DATAGRID_PAGESIZE; this._AmountScaleOption = AmountScaleOption.Unit; this._CurrencyRepresentation = CurrencyRepresentationMode.CostCenter; }
/// <summary> /// /// </summary> /// <param name="associateId"></param> /// <param name="amountScaleOption"></param> /// <param name="numberOfRecordsPerPage"></param> /// <param name="currencyRepresentation"></param> public UserSettings(int associateId, AmountScaleOption amountScaleOption, int numberOfRecordsPerPage, CurrencyRepresentationMode currencyRepresentation, object connectionManager) : base(connectionManager) { this._AssociateId = associateId; this._AmountScaleOption = amountScaleOption; this._CurrencyRepresentation = currencyRepresentation; this._NumberOfRecordsPerPage = numberOfRecordsPerPage; }
/// <summary> /// load currency combo /// </summary> private void LoadCurrencyRepresentation(CurrencyRepresentationMode currencyRepresentationMode) { cmbCurrencyRepresentation.Items.Clear(); cmbCurrencyRepresentation.Items.Add(new RadComboBoxItem("local currency", ((int)CurrencyRepresentationMode.CostCenter).ToString())); cmbCurrencyRepresentation.Items.Add(new RadComboBoxItem("user currency", ((int)CurrencyRepresentationMode.Associate).ToString())); }