QiHaiFengProgram/SysMail/Mail_Edit.aspx.cs

(开头部分) 11KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using SuLinClass;
using ProgramLib;
using Telerik.WebControls;
using System.Collections;


namespace QiHaiFengProgram.SysMail
{    
    public partial class Mail_Edit : System.Web.UI.Page
    {
        Pub list = new Pub();
        protected void Page_Load(object sender, EventArgs e)
        {
            lblMsg.Text = "";
            FileUpload1.Focus();
            if (!IsPostBack)
            {
                txtMA_Title.Focus();
                txtMA_AcceptName.Attributes.Add("readonly", "readonly");
                MailCSH();
            }
        }

        public void MailCSH()
        {
            Random g = new Random();
            string rad = g.Next(10000).ToString();
            hidMA_LsId.Value = "" + System.DateTime.Now.Year.ToString() + "" + System.DateTime.Now.Month.ToString() + "" + System.DateTime.Now.Day.ToString() + "" + System.DateTime.Now.Hour.ToString() + "" + System.DateTime.Now.Minute.ToString() + "" + System.DateTime.Now.Second.ToString() + "" + System.DateTime.Now.Millisecond.ToString() + "" + rad + "";
            SqlDataReader sdr = PublicFunctions.GetDataRows(" where MS_ID=" + Request["id"].ToString(), "", " T_MailSend");
            if (sdr.Read())
            {
                string mode = Request["action"].ToString();
                if (mode == "update")
                {
                    lblPath.Text = "内部邮件 >> 邮件编辑";
                    hidMA_LsId.Value = sdr["MS_LsId"].ToString();
                    txtMA_Title.Text =  sdr["MS_Title"].ToString();
                    txtMA_Content.Value = sdr["MS_Content"].ToString();
                    txtMA_AcceptName.Text = sdr["MS_AcceptName"].ToString();
                    hidMA_AcceptID.Value = sdr["MS_AcceptID"].ToString();
                    hidUserName.Value = sdr["MS_OpName"].ToString();
                    hidUserID.Value = sdr["MS_OPID"].ToString();
                    hiddate.Value = sdr["MS_Times"].ToString();
                }
                BindFjlbList();
            }
            sdr.Close();
            sdr.Dispose();
        }

        public void MailClear()
        {
后面还有 183 行代码,解锁后查看完整代码

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

AI 解读

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

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