WebUI/AdminM/Mail/ek_mail_templateManage.aspx.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HModel;
using Bll;
using WebBase;

namespace WebUI.AdminM
{
    public partial class ek_mail_templateManage : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            { 
				 if (Request.QueryString["id"] != null)
                {
                    string id = Request.QueryString["id"].ToString(); 
                    ek_mail_template c =Bll_ek_mail_template.GetEntityById(id);

 					  						    						   						             	     		txt_title.Value = c.title.ToString(); 
                      						   						             	     		txt_call_index.Value = c.call_index.ToString(); 
                      						   						             	     		txt_maill_title.Value = c.maill_title.ToString(); 
                      						   						             	     		txt_content.Value = c.content.ToString(); 
                      						   						             	     		txt_is_sys.Value = c.is_sys.ToString(); 
                      						                   }
                else
                {

                } 
            }
        }

        protected void btnSave_Click(object sender, EventArgs e)
        {
            if (Request.QueryString["id"] != null)
            {
                string id = Request.QueryString["id"].ToString();
                 ek_mail_template k = Bll_ek_mail_template.GetEntityById(id);
                k.Attach();


                                           						                          						  k.title  = txt_title.Value.Trim() ; 
                      						                          						  k.call_index  = txt_call_index.Value.Trim() ; 
                      						                          						  k.maill_title  = txt_maill_title.Value.Trim() ; 
                      						                          						  k.content  = txt_content.Value.Trim() ; 
                      						                                                    k.is_sys  = int.Parse(txt_is_sys.Value.Trim()); 
												   
                int c = Bll_ek_mail_template.UpdateEntity(k);
                MessageBox.Show(Page, "保存成功!");
            }
            else
            { 
  
                ek_mail_template k = new ek_mail_template();
                         	     	 					            	     	 						  k.title  = txt_title.Value.Trim() ; 
                  					            	     	 						  k.call_index  = txt_call_index.Value.Trim() ; 
后面还有 12 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。