void mrsClient_UpdateEstimateEffectiveDateCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e) { if (e.Error == null) { HomePrice selectedItem = (HomePrice)cmbEffectiveDate.SelectedItem; string extraDescription = string.Format("Price Effective Date changed from {0} ({1}) to {2}", _originalEffectiveDate.ToString("dd/MM/yyyy"), _originalHomePrice.ToString("c"), selectedItem.EffectiveDateOptionName); _mrsClient.CreateSalesEstimateLogCompleted += new EventHandler <CreateSalesEstimateLogCompletedEventArgs>(mrsClient_CreateSalesEstimateLogCompleted); _mrsClient.CreateSalesEstimateLogAsync( (App.Current as App).CurrentUserLoginName, MRSLogAction.ModifyEffectiveDate, _recordId, extraDescription, 0); } else { ExceptionHandler.PopUpErrorMessage(e.Error, "UpdateEstimateEffectiveDateCompleted"); BusyIndicator1.IsBusy = false; } }
private void CreateLog() { _mrsClient.CreateSalesEstimateLogCompleted += new EventHandler <CreateSalesEstimateLogCompletedEventArgs>(mrsClient_CreateSalesEstimateLogCompleted); _mrsClient.CreateSalesEstimateLogAsync( (App.Current as App).CurrentUserLoginName, MRSLogAction.AssignToMe, _estimateRevisionId, null, 0); }
private void CreateLog() { _mrsClient.CreateSalesEstimateLogCompleted += new EventHandler <CreateSalesEstimateLogCompletedEventArgs>(mrsClient_CreateSalesEstimateLogCompleted); _mrsClient.CreateSalesEstimateLogAsync( (App.Current as App).CurrentUserLoginName, MRSLogAction.UpdateAppointment, _recordId, "Appointment Time has changed to " + dtAppointment.SelectedValue.Value.ToString("dd/MM/yyyy hh:mm tt"), 0); }
private void CreateLog() { string description = _headerText.Replace("Change ", "") + " has been changed to " + cmbContractType.Text + " by user " + (App.Current as App).CurrentUserLoginName; _mrsClient.CreateSalesEstimateLogCompleted += new EventHandler <CreateSalesEstimateLogCompletedEventArgs>(mrsClient_CreateSalesEstimateLogCompleted); _mrsClient.CreateSalesEstimateLogAsync( (App.Current as App).CurrentUserLoginName, _headerText == "Change Job Flow" ? MRSLogAction.ChangeJobFlow : MRSLogAction.ChangeContractType, _estimateRevisionId, description, 0); }
private void CreateLog() { User selectedOwner = (User)cmbOwner.SelectedItem; string description = string.Format("Sales Estimate was assigned to {0}", selectedOwner.FullName); _mrsClient.CreateSalesEstimateLogCompleted += new EventHandler <CreateSalesEstimateLogCompletedEventArgs>(mrsClient_CreateSalesEstimateLogCompleted); _mrsClient.CreateSalesEstimateLogAsync( (App.Current as App).CurrentUserLoginName, MRSLogAction.Assign, _estimateRevisionId, description, 0); }
private void CreateLog(string result) { string description = "Reset current milestone by user " + (App.Current as App).CurrentUserLoginName + "." + Environment.NewLine + "Reason:" + Environment.NewLine + txtReason.Text + Environment.NewLine + "Revisons have been removed are:" + Environment.NewLine + result; RetailSystemClient mrsClient = new RetailSystemClient(); mrsClient.Endpoint.Address = new System.ServiceModel.EndpointAddress(Internal.Utilities.GetMetriconRetailSystemWcfClientEndpointUrl()); mrsClient.CreateSalesEstimateLogAsync( (App.Current as App).CurrentUserLoginName, MRSLogAction.UndoCurrentMilestone, _selectedEstimateRevisionId, description, 0); }
private void CreateLog(bool setAsTicked) { string description = (setAsTicked ? "Set" : "Unset") + " this revision as " + _documentType + " by user " + (App.Current as App).CurrentUserLoginName; RetailSystemClient mrsClient = new RetailSystemClient(); mrsClient.Endpoint.Address = new System.ServiceModel.EndpointAddress(Internal.Utilities.GetMetriconRetailSystemWcfClientEndpointUrl()); mrsClient.CreateSalesEstimateLogAsync( (App.Current as App).CurrentUserLoginName, MRSLogAction.CurrentMilestone, _estimateRevisionId, description, 0); }
private void CreateLog() { string description = "Home has been changed to " + selectedfacadehomename + " by user " + (App.Current as App).CurrentUserFullName; RetailSystemClient MRSclient = new RetailSystemClient(); MRSclient.Endpoint.Address = new System.ServiceModel.EndpointAddress(Internal.Utilities.GetMetriconRetailSystemWcfClientEndpointUrl()); MRSclient.CreateSalesEstimateLogCompleted += new EventHandler <CreateSalesEstimateLogCompletedEventArgs>(mrsClient_CreateSalesEstimateLogCompleted); MRSclient.CreateSalesEstimateLogAsync( (App.Current as App).CurrentUserLoginName, MRSLogAction.ChangeHome, estimaterevisionid, description, 0); }
private void CreateLog() { string description = "Skip RSTM by user " + (App.Current as App).CurrentUserFullName; RetailSystemClient MRSclient = new RetailSystemClient(); MRSclient.Endpoint.Address = new System.ServiceModel.EndpointAddress(Internal.Utilities.GetMetriconRetailSystemWcfClientEndpointUrl()); MRSclient.CreateSalesEstimateLogCompleted += new EventHandler <CreateSalesEstimateLogCompletedEventArgs>(mrsClient_CreateSalesEstimateLogCompleted); MRSclient.CreateSalesEstimateLogAsync( (App.Current as App).CurrentUserLoginName, MRSLogAction.SkipRSTM, _estimateRevisionId, description, 0); }
private void SaveDisclaimerUpdateDetails() { string description = "Update New Disclaimer User: "******", Disclaimer Id:" + _estimateDisclaimerNewId; _mrsClient = new RetailSystemClient(); _mrsClient.Endpoint.Address = new System.ServiceModel.EndpointAddress(Internal.Utilities.GetMetriconRetailSystemWcfClientEndpointUrl()); _mrsClient.SaveDisclaimerUpdateDetailsCompleted += new EventHandler <SaveDisclaimerUpdateDetailsCompletedEventArgs>(_mrsClient_SaveDisclaimerUpdateDetailsCompleted); _mrsClient.SaveDisclaimerUpdateDetailsAsync(_estimateRevisionId, 0, _estimateDisclaimerNewId, (App.Current as App).CurrentUserId); _mrsClient.CreateSalesEstimateLogCompleted += new EventHandler <CreateSalesEstimateLogCompletedEventArgs>(mrsClient_CreateSalesEstimateLogCompleted); _mrsClient.CreateSalesEstimateLogAsync( (App.Current as App).CurrentUserLoginName, MRSLogAction.UpdateNewDisclaimer, _estimateRevisionId, description, 0); }
private void CreateLog() { string newHomeName = "blank"; if (!string.IsNullOrEmpty(txtHomeName.Text.Trim())) { newHomeName = txtHomeName.Text.Trim(); } string description = "Home Display Name has been changed to " + newHomeName + " by user " + (App.Current as App).CurrentUserLoginName; _mrsClient.CreateSalesEstimateLogCompleted += new EventHandler <CreateSalesEstimateLogCompletedEventArgs>(mrsClient_CreateSalesEstimateLogCompleted); _mrsClient.CreateSalesEstimateLogAsync( (App.Current as App).CurrentUserLoginName, MRSLogAction.ChangeHomeName, _estimateRevisionId, description, 0); }
private void CreateLog() { string newDestinationEstimateNo = "blank"; if (!string.IsNullOrEmpty(_sourceEstimateNo.ToString())) { newDestinationEstimateNo = _sourceEstimateNo.ToString(); } string description = "Estimate has been copied to " + newDestinationEstimateNo + " by user " + (App.Current as App).CurrentUserLoginName; _mrsClient.CreateSalesEstimateLogCompleted += new EventHandler <CreateSalesEstimateLogCompletedEventArgs>(mrsClient_CreateSalesEstimateLogCompleted); _mrsClient.CreateSalesEstimateLogAsync( (App.Current as App).CurrentUserLoginName, MRSLogAction.CopyEstimate, estimaterevisionid, description, 0); }
private void CreateLog(string result) { string newDestinationEstimateNo = "blank"; if (!string.IsNullOrEmpty(_sourceEstimateNo.ToString())) { newDestinationEstimateNo = _sourceEstimateNo.ToString(); } string description = "Undo this revision " + _selectedEstimateRevisionId + " to " + _previousRevisionId + " by user " + (App.Current as App).CurrentUserLoginName + Environment.NewLine + "Reason:" + Environment.NewLine + txtReason.Text + Environment.NewLine + result; RetailSystemClient mrsClient = new RetailSystemClient(); mrsClient.Endpoint.Address = new System.ServiceModel.EndpointAddress(Internal.Utilities.GetMetriconRetailSystemWcfClientEndpointUrl()); mrsClient.CreateSalesEstimateLogAsync( (App.Current as App).CurrentUserLoginName, MRSLogAction.UndoRevision, _previousRevisionId, description, 0); }
private void CreateLog() { int reasoncode = 0; string comments = string.Empty; string nextuser = ""; if (cmbNextUser.Visibility == Visibility.Visible) { nextuser = cmbNextUser.Text; _ownerId = int.Parse(cmbNextUser.SelectedValue.ToString()); } if (!_createNewRevision) { reasoncode = Convert.ToInt32(cmbReason.SelectedValue); comments = txtComments.Text; } if (nextuser.Trim() != "") { comments = comments + " Completed and assigned to " + nextuser; } switch (_statusId) { // Completed case 2: _logAction = MRSLogAction.Accept; break; // Rejected case 3: _logAction = MRSLogAction.Reject; break; // Reactivate (Work In Progress) case 1: _logAction = MRSLogAction.Reactivate; break; // On Hold case 4: _logAction = MRSLogAction.OnHold; break; // Cancel case 5: _logAction = MRSLogAction.Cancel; break; default: break; } _mrsClient.CreateSalesEstimateLogCompleted += new EventHandler <CreateSalesEstimateLogCompletedEventArgs>(mrsClient_CreateSalesEstimateLogCompleted); _mrsClient.CreateSalesEstimateLogAsync( (App.Current as App).CurrentUserLoginName, _logAction, _estimateRevisionId, comments, reasoncode); }
private void CreateLog() { string changes = string.Empty; int titledLandDays = 0; int basePriceExtensionDays = 0; int radBPEChargeType = 0; int newTitledLandDays = _estmateViewModel.TitledLandDays; int titledLand = 0; int.TryParse(txttitledlanddays.Text.ToString(), out newTitledLandDays); int.TryParse(txtbasepriceextdays.Text, out basePriceExtensionDays); if (radBPECharge.IsChecked ?? false) { radBPEChargeType = 0; } else if (radBPEChargeRollback.IsChecked ?? false) { radBPEChargeType = 1; } int.TryParse(txttitledlanddays.Text.ToString(), out titledLandDays); if (radtitlelandofferyes.IsChecked ?? false) { titledLand = 1; } if (_titledLand != titledLand) { changes += " TitledLand old: " + _titledLand + " new: " + titledLand.ToString(); } if (_estmateViewModel.TitledLandDays != titledLandDays) { changes += " TitledLandDays old: " + _estmateViewModel.TitledLandDays + " new: " + titledLandDays.ToString(); } if (_basePriceExtensionDays != basePriceExtensionDays) { changes += " BasePriceExtensionDays old: " + _basePriceExtensionDays + " new: " + basePriceExtensionDays.ToString(); } if (_requiredBPEChargeType != radBPEChargeType) { changes += " BPEChargeType old: " + _requiredBPEChargeType + " new: " + radBPEChargeType.ToString(); } if (txtrequireBPEcharge.Text.ToString() != txtbasepriceextcharge.Text.ToString()) { changes += " Base Price Ext Charge old: " + txtrequireBPEcharge.Text.ToString() + " new: " + txtbasepriceextcharge.Text.ToString(); } if (txtrequireBPECurrentHomePrice.Text.ToString() != txtrequireBPErollbackprice.Text.ToString()) { changes += " Home Price old: " + txtrequireBPECurrentHomePrice.Text.ToString() + " new: " + txtrequireBPErollbackprice.Text.ToString(); } string description = "Margin report settings have been changed to " + changes + " by user " + (App.Current as App).CurrentUserFullName; RetailSystemClient MRSclient = new RetailSystemClient(); MRSclient.Endpoint.Address = new System.ServiceModel.EndpointAddress(Internal.Utilities.GetMetriconRetailSystemWcfClientEndpointUrl()); MRSclient.CreateSalesEstimateLogCompleted += new EventHandler <CreateSalesEstimateLogCompletedEventArgs>(mrsClient_CreateSalesEstimateLogCompleted); MRSclient.CreateSalesEstimateLogAsync( (App.Current as App).CurrentUserLoginName, MRSLogAction.UpdateMarginReportSettings, _revisionid, description, 0); }