private void CustomerLicVerification_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { TargetViewId = "CustomerLicenseVerifications_DetailViewEntry"; IObjectSpace objectSpace = Application.CreateObjectSpace(); CustomerLicenseVerifications clr = objectSpace.CreateObject <CustomerLicenseVerifications>(); clr.Customer = objectSpace.GetObject <Customer>((Customer)View.CurrentObject); clr.LicenseNumber = clr.Customer.DeaNo; clr.LicenseExpirationDate = clr.Customer.DeaExpDate; e.View = Application.CreateDetailView(objectSpace, TargetViewId, true, clr); e.View.Caption = e.View.Caption + " - " + clr.Customer.CustomerName; //e.Size = new Size(1000, 1000); System.Diagnostics.Process.Start("https://apps.deadiversion.usdoj.gov/webforms/validateLogin.jsp"); }
private void CustomerLicVerification_Execute(object sender, PopupWindowShowActionExecuteEventArgs e) { e.PopupWindow.View.ObjectSpace.CommitChanges(); IObjectSpace objectSpace = Application.CreateObjectSpace(); CustomerLicenseVerifications clr = objectSpace.CreateObject <CustomerLicenseVerifications>(); MessageOptions options = new MessageOptions(); options.Duration = 3000; options.Message = string.Format("{0} Varified Dea Number of {1} with the Exp date of: {2} updated!", "", clr.LicenseNumber, clr.LicenseExpirationDate); options.Type = InformationType.Success; options.Web.Position = InformationPosition.Right; options.Win.Caption = "Success"; options.Win.Type = WinMessageType.Alert; Application.ShowViewStrategy.ShowMessage(options); View.ObjectSpace.Refresh(); View.Refresh(); }