protected void Button1_Click(object sender, EventArgs e) { WebConfigModel wm = new WebConfigModel(); wm.SiteName = txtSiteName.Text; wm.SiteTitle = txtsitetitle.Text; wm.SiteTitleEn = txtsitetitleen.Text; wm.SiteUrl = txtSiteUrl.Text; wm.SiteICP = txticp.Text; wm.SiteKeyword = txtSiteKeyword.Text; wm.SiteKeywordEn = txtSiteKeyworden.Text; wm.SiteDescription = txtSiteDescription.Text; wm.SiteDescriptionEn = txtSiteDescriptionen.Text; wm.EmailSMTP = txtEmailsmtp.Text; wm.EmailName = txtSmtpName.Text; wm.EmailPassword = txtSmtpPassword.Text; wm.Sitecnzz = txtsitecnzz.Text; wm.SiteMail = txtsiteemail.Text; wm.SiteFax = txtfax.Text; wm.SiteTel = txttel.Text; wm.SiteQQ = txtqq.Text; wm.SiteAddress = txtaddress.Text; wm.Other = txtother.Text; //0基本配置,1留言内容,2留言列表,3单页勾选显示 wm.SiteConfig = SetCheckedBox.GetChecked(this.CheckBoxList1, ",") + "|" + SetCheckedBox.GetChecked(this.CheckBoxList2, ",") + "|" + SetCheckedBox.GetChecked(this.CheckBoxList3, ",") + "|" + RadioButtonList1.SelectedValue; wm.id = 1; bool b = new WebConfigBll().Update(wm); if (b) { BasePage.JscriptPrint(Page, "更新成功!", "WebConfig.aspx"); } }
public AttachmentService(IMapper mapper, IAttachmentRepository attachmentRepository, IMediaTypeRepository mediaTypeRepository, WebConfigModel webConfig) { _mapper = mapper; _attachmentRepository = attachmentRepository; _mediaTypeRepository = mediaTypeRepository; _webConfig = webConfig; }
public AuthController(IAuthService authService, ILoginLogService loginLogService, ILoginInfo loginInfo, IJwtHandler jwtHandler, WebConfigModel webConfigModel, IHttpContextAccessor accessor) { _authService = authService; _loginLogService = loginLogService; _loginInfo = loginInfo; _jwtHandler = jwtHandler; _webConfigModel = webConfigModel; _accessor = accessor; }
public JwtHandler(WebConfigModel options) { _options = options; }
public PermissionValidateFilter(IPermissionService permissionService, ILoginInfo loginInfo, WebConfigModel webConfigModel) { _permissionService = permissionService; _loginInfo = loginInfo; _webConfigModel = webConfigModel; }
public AuditingFilter(IAuditingHandler handler, WebConfigModel config) { _handler = handler; _config = config; }
public AttachmentController(ILoginInfo loginInfo, IAttachmentService AttachmentService, WebConfigModel webConfig) { _service = AttachmentService; _webConfig = webConfig; }