Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Mid > 0)
         {
             M_MailTemp tlpMod = bll.SelReturnModel(Mid);
             TxtTempName.Text = tlpMod.TempName;
             drType.Text      = tlpMod.Type.ToString();
             TxtContent.Value = tlpMod.Content;
         }
         Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='" + customPath2 + "User/UserManage.aspx'>用户管理</a></li><li><a href='MailTemplist.aspx'>邮件模板</a></li><li class='active'>创建邮件模板</li>");
     }
 }
Esempio n. 2
0
        protected void EBtnSubmit_Click(object sender, EventArgs e)
        {
            M_MailTemp tlpMod = new M_MailTemp();

            if (Mid > 0)
            {
                tlpMod = bll.SelReturnModel(Mid);
            }
            tlpMod.TempName = TxtTempName.Text;
            tlpMod.Type     = Convert.ToInt32(drType.SelectedValue);
            tlpMod.Content  = TxtContent.Value;
            tlpMod.AddUser  = abll.GetAdminLogin().AdminName;
            if (Mid > 0)
            {
                tlpMod.ID = Mid;
                bll.UpdateByID(tlpMod);
            }
            else
            {
                tlpMod.CreateTime = DateTime.Now;
                bll.insert(tlpMod);
            }
            function.WriteSuccessMsg("操作成功", "MailTemplist.aspx");
        }
Esempio n. 3
0
 public bool UpdateByID(M_MailTemp model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
Esempio n. 4
0
 public int insert(M_MailTemp model)
 {
     return(Sql.insert(strTableName, initMod.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model)));
 }
Esempio n. 5
0
 public int insert(M_MailTemp model)
 {
     return(DBCenter.Insert(model));
 }