public ActionResult EamilSetting(int TimeStamp) { ProfilesInfo infoSenderName = ProfilesBLL.Get(ProfilesInfo.EmailItem.发件人显示名, true); ProfilesInfo infoSenderHostName = ProfilesBLL.Get(ProfilesInfo.EmailItem.发件邮件主机, true); ProfilesInfo infoSenderEmailAddress = ProfilesBLL.Get(ProfilesInfo.EmailItem.发件邮箱地址, true); ProfilesInfo infoSenderEmailPwd = ProfilesBLL.Get(ProfilesInfo.EmailItem.发件邮箱密码, true); ProfilesInfo infoSenderEmailPort = ProfilesBLL.Get(ProfilesInfo.EmailItem.发件邮箱端口, true); ProfilesInfo infoReplyAddress = ProfilesBLL.Get(ProfilesInfo.EmailItem.回复地址, true); ProfilesInfo infoReplyDisplayName = ProfilesBLL.Get(ProfilesInfo.EmailItem.回复时显示名, true); infoSenderName.Value = Function.GetRequestString("SenderName"); infoSenderHostName.Value = Function.GetRequestString("SenderHostName"); infoSenderEmailAddress.Value = Function.GetRequestString("SenderEmailAddress"); infoSenderEmailPwd.Value = Function.GetRequestString("SenderEmailPwd"); infoSenderEmailPort.Value = Function.GetRequestString("SenderEmailPort"); infoReplyAddress.Value = Function.GetRequestString("ReplyAddress"); infoReplyDisplayName.Value = Function.GetRequestString("ReplyDisplayName"); ProfilesBLL.Edit(infoSenderName); ProfilesBLL.Edit(infoSenderHostName); ProfilesBLL.Edit(infoSenderEmailAddress); ProfilesBLL.Edit(infoSenderEmailPwd); ProfilesBLL.Edit(infoSenderEmailPort); ProfilesBLL.Edit(infoReplyAddress); ProfilesBLL.Edit(infoReplyDisplayName); return(Content(MVCScriptHelper.AlertRefresh("更新成功", null))); }
public ActionResult MainSetting() { ViewBag.EnableUpdateTimeBegin = ProfilesBLL.Get("EnableUpdateTimeBegin", true); ViewBag.EnableUpdateTimeEnd = ProfilesBLL.Get("EnableUpdateTimeEnd", true); ViewBag.EnableUpdateTimeInterval = ProfilesBLL.Get("EnableUpdateTimeInterval", true); return(View()); }
public ActionResult InportSetting(int TimeStamp) { ProfilesInfo DefaultRuleIDWhenInport = ProfilesBLL.Get(ProfilesInfo.InportSetting.DefaultRuleIDWhenInport, true); DefaultRuleIDWhenInport.Value = Function.GetRequestString("DefaultRuleIDWhenInport"); ProfilesBLL.Edit(DefaultRuleIDWhenInport); return(Content(MVCScriptHelper.AlertRefresh("更新成功", null))); }
public ActionResult Edit() { ProfilesInfo ifnoa = ProfilesBLL.Get("手机购买时间有效小时数", true); ProfilesInfo infoAiQiYiRate = ProfilesBLL.Get("AiQiYiRate", true); ProfilesInfo infoEnableAgenterName = ProfilesBLL.Get("EnableAgenterName", true); ViewBag.ifnoa = ifnoa; ViewBag.infoAiQiYiRate = infoAiQiYiRate; ViewBag.infoEnableAgenterName = infoEnableAgenterName; return(View()); }
public ActionResult EamilSetting() { ViewBag.SenderName = ProfilesBLL.Get(ProfilesInfo.EmailItem.发件人显示名, true); ViewBag.SenderHostName = ProfilesBLL.Get(ProfilesInfo.EmailItem.发件邮件主机, true); ViewBag.SenderEmailAddress = ProfilesBLL.Get(ProfilesInfo.EmailItem.发件邮箱地址, true); ViewBag.SenderEmailPwd = ProfilesBLL.Get(ProfilesInfo.EmailItem.发件邮箱密码, true); ViewBag.SenderEmailPort = ProfilesBLL.Get(ProfilesInfo.EmailItem.发件邮箱端口, true); ViewBag.ReplyAddress = ProfilesBLL.Get(ProfilesInfo.EmailItem.回复地址, true); ViewBag.ReplyDisplayName = ProfilesBLL.Get(ProfilesInfo.EmailItem.回复时显示名, true); return(View()); }
public ActionResult Edit(int TimeStamp) { ProfilesInfo ifnoa = ProfilesBLL.Get("手机购买时间有效小时数", true); ProfilesInfo infoAiQiYiRate = ProfilesBLL.Get("AiQiYiRate", true); ProfilesInfo infoEnableAgenterName = ProfilesBLL.Get("EnableAgenterName", true); ifnoa.Value = Function.GetRequestString("Txtinfoa"); infoAiQiYiRate.Value = Function.GetRequestString("TxtinfoAiQiYiRate"); infoEnableAgenterName.Value = Function.GetRequestString("TxtinfoEnableAgenterName"); ProfilesBLL.Edit(ifnoa); ProfilesBLL.Edit(infoAiQiYiRate); ProfilesBLL.Edit(infoEnableAgenterName); return(Content(MVCScriptHelper.AlertRefresh("更新成功", null))); }
public ActionResult MainSetting(int TimeStamp) { ProfilesInfo EnableUpdateTimeBegin = ProfilesBLL.Get("EnableUpdateTimeBegin", true); ProfilesInfo EnableUpdateTimeEnd = ProfilesBLL.Get("EnableUpdateTimeEnd", true); ProfilesInfo EnableUpdateTimeInterval = ProfilesBLL.Get("EnableUpdateTimeInterval", true); EnableUpdateTimeBegin.Value = Function.GetRequestString("EnableUpdateTimeBegin"); EnableUpdateTimeEnd.Value = Function.GetRequestString("EnableUpdateTimeEnd"); EnableUpdateTimeInterval.Value = Function.GetRequestString("EnableUpdateTimeInterval"); ProfilesBLL.Edit(EnableUpdateTimeBegin); ProfilesBLL.Edit(EnableUpdateTimeEnd); ProfilesBLL.Edit(EnableUpdateTimeInterval); return(Json(new APIJson(0, "更新成功"))); }
public ActionResult UserMenu(string menuJson) { ProfilesInfo info = ProfilesBLL.Get(ProfilesInfo.Wechat.MenuJson); info.Value = menuJson; ProfilesBLL.Edit(info); string URL = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token="; string token = WeiXin.APIClient.WechatService.GetAccessTonken(); string msg = "Token={0};<br/>result={1}"; if (!string.IsNullOrEmpty(token)) { if (token.Length < 10) { return(Content("token有误")); } } var result = DataHelper.PostHttpData(URL + token, menuJson); return(Content(string.Format(msg, token, result))); }
public ActionResult WechatSubscribeContent() { ProfilesInfo info = ProfilesBLL.Get(ProfilesInfo.Wechat.SubcribeContent, true); return(View(info)); }