public MemberSummaryItem(Models.DB.Member dataEntity, Microsoft.Extensions.Options.IOptions <ApplicationSettings> settings, IConfiguration config) { _applicationSettings = settings.Value; this._context = new DB.monosarsqlContext(config); this.ID = dataEntity.MemberId; this.First = dataEntity.FirstName; this.Last = dataEntity.LastName; this.HamCallSign = dataEntity.Ham; this.Joined = dataEntity.Joined; this.PhoneCell = dataEntity.PhoneCell; this.PhoneHome = dataEntity.PhoneHome; this.PhoneWork = dataEntity.PhoneWork; this.Address = dataEntity.Address; this.City = dataEntity.City; this.Email = dataEntity.Email; this.State = dataEntity.State; this.ZIP = dataEntity.Zipcode; this.buildBeaconCheck(dataEntity); this.buildCertification(dataEntity); this.buildCPR(dataEntity); this.buildMedical(dataEntity); this.buildInitialFieldChecks(dataEntity); this.buildTraining(dataEntity); this.buildOperations(dataEntity); this.Capacity = dataEntity.Capacity.CapacityName; }
public ApplicationUserController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IOptions <Models.ApplicationSettings> appSettings) { _userManager = userManager; _signInManager = signInManager; _appSettings = appSettings.Value; }
public Telephony(Microsoft.Extensions.Options.IOptions <ApplicationSettings> settings, IConfiguration config, Models.DB.monosarsqlContext context) { this._applicationSettings = settings.Value; this._config = config; this._context = context; var x = config["sendgridapikey"]; }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.NoCache); litLinkTojQuery.Text = ApplicationUtility.jQueryLink(); litAppStyle.Text = ApplicationUtility.AppStylelink(); hidHomeURL.Value = ApplicationUtility.FormatURL("/FileUploadExample/FileUpload"); Models.ApplicationSettings appsettings = Models.ApplicationSettings.GetInstance(); litApplicationName.Text = appsettings.ApplicationName; StringBuilder SB = new StringBuilder(); SB.Append("Developed by "); SB.Append(appsettings.Author); SB.Append(" on "); SB.Append(appsettings.DevelopmentTime); litAuthorInformation.Text = SB.ToString(); litErrorMessage.Text = ViewData["ERROR"].ToString(); }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.NoCache); Models.ApplicationSettings appsettings = Models.ApplicationSettings.GetInstance(); litApplicationName.Text = appsettings.ApplicationName; hidFileUploadAction.Value = ApplicationUtility.FormatURL("/FileUploadExample/SaveFile"); hidImageBase.Value = ApplicationUtility.FormatURL("/FileUploadExample/GetAFile"); litLinkTojQuery.Text = ApplicationUtility.jQueryLink(); litAppStyle.Text = ApplicationUtility.AppStylelink(); StringBuilder SB = new StringBuilder(); SB.Append("Developed by "); SB.Append(appsettings.Author); SB.Append(" on "); SB.Append(appsettings.DevelopmentTime); litAuthorInformation.Text = SB.ToString(); SB.Remove(0, SB.Length); DataView FileView = (DataView)ViewData["ExistingFileList"]; SB.Append("<table style=\"width: 99%;\" "); SB.Append("rules=\"all\" border=\"1px\" "); SB.Append("cellspacing=\"0px\" cellpadding=\"4px\">"); SB.Append("<tr style=\"background-color: Silver; color: white; "); SB.Append("font-weight: bold\">"); foreach (DataColumn aColumn in FileView.Table.Columns) { if (aColumn.ColumnMapping == MappingType.Hidden) { continue; } SB.Append("<td>"); SB.Append(aColumn.ColumnName); SB.Append("</td>"); } SB.Append("<td> </td>"); SB.Append("<td> </td>"); SB.Append("</tr>"); foreach (DataRowView aRowView in FileView) { SB.Append("<tr>"); foreach (DataColumn aColumn in FileView.Table.Columns) { if (aColumn.ColumnMapping == MappingType.Hidden) { continue; } SB.Append("<td>"); if (aColumn.ColumnName == "ID") { SB.Append("<span class=\"ImagePopLink\">"); SB.Append(aRowView[aColumn.ColumnName].ToString()); SB.Append("</span>"); } else { SB.Append(aRowView[aColumn.ColumnName].ToString()); } SB.Append("</td>"); } string ID = aRowView["ID"].ToString(); SB.Append("<td>"); SB.Append("<a href=\""); SB.Append(ApplicationUtility.FormatURL("/FileUploadExample/GetAFile")); SB.Append("?ATTACH=YES&ID="); SB.Append(ID); SB.Append("\">Download this file</a>"); SB.Append("</td>"); SB.Append("<td>"); SB.Append("<a href=\""); SB.Append(ApplicationUtility.FormatURL("/FileUploadExample/DeleteFile")); SB.Append("?ID="); SB.Append(ID); SB.Append("\">Delete this file</a>"); SB.Append("</td>"); SB.Append("</tr>"); } SB.Append("</table>"); litExistingFiles.Text = SB.ToString(); }
public HomeController(Microsoft.Extensions.Configuration.IConfiguration config, Microsoft.Extensions.Options.IOptions<ApplicationSettings> settings, Microsoft.AspNetCore.Identity.UserManager<ApplicationUser> usermanager) { //var context = new Models.DB.monosarsqlContext(config); _applicationSettings = settings.Value; _userManager = usermanager; }
public AccountController(UserManager <AppUser> userManager, SignInManager <AppUser> signInManager, IOptions <Models.ApplicationSettings> appSettings) { this.userManager = userManager; this.signInManager = signInManager; _appSettings = appSettings.Value; }