Web/TelFile/FileView.aspx.cs

(开头部分) 3KB

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

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class TelFile_FileView : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.DBUtility.DbHelperSQL.BindDropDownList2("select * from ERPJSDIC where UserName='" + ZWL.Common.PublicMethod.GetSessionValue("UserName") + "'", this.DropDownList1, "DicName", "ID");


            ZWL.BLL.ERPTelFile MyModel = new ZWL.BLL.ERPTelFile();
            MyModel.GetModel(int.Parse(Request.QueryString["ID"].ToString().Trim()));
            this.Label1.Text=MyModel.TitleStr;
            this.Label2.Text=MyModel.FromUser;
            this.Label3.Text=MyModel.TimeStr.ToString();
            this.Label4.Text=MyModel.ToUser;
            this.Label5.Text=MyModel.YiJieShouRen;
            this.Label6.Text=MyModel.FileType;
            this.Label7.Text = ZWL.Common.PublicMethod.GetWenJian(MyModel.FuJianStr, "../UploadFile/");
            this.Label8.Text=MyModel.ContentStr;
            this.Label9.Text = MyModel.ChuanYueYiJian;

            //写系统日志
            ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
            MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            MyRiZhi.DoSomething = "用户查看文件(" + this.Label1.Text + ")";
            MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();            
        }
    }
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.DBUtility.DbHelperSQL.ExecuteSQL("update ERPTelFile set ChuanYueYiJian='" + this.Label9.Text + "<font color=#001EFF>" + ZWL.Common.PublicMethod.GetSessionValue("UserName") + "(" + DateTime.Now.ToString() + "):</font>" + this.TextBox1.Text.Trim() + "<hr height=1px>" + "' where ID=" + Request.QueryString["ID"].ToString().Trim());
        this.Label9.Text = this.Label9.Text + "<font color=#001EFF>" + ZWL.Common.PublicMethod.GetSessionValue("UserName") + "(" + DateTime.Now.ToString() + "):</font>" + this.TextBox1.Text.Trim() + "<hr height=1px>";
        this.TextBox1.Text = "";
        ZWL.Common.MessageBox.Show(this, "传阅意见添加成功!");
    }
    protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
    {
        if (this.Label5.Text.Trim().Length > 0)
        {
            //判断是否在"已接收人"列表中存在
            if (ZWL.Common.PublicMethod.StrIFIn("," + ZWL.Common.PublicMethod.GetSessionValue("UserName") + ",", "," + this.Label5.Text + ",") == false)
            {
                ZWL.DBUtility.DbHelperSQL.ExecuteSQL("update ERPTelFile set QianShouHouIDList=QianShouHouIDList+'," + this.DropDownList1.SelectedItem.Value.ToString() + "',YiJieShouRen=YiJieShouRen+'," + ZWL.Common.PublicMethod.GetSessionValue("UserName") + "' where ID=" + Request.QueryString["ID"].ToString().Trim());
            }
            else
            {
                ZWL.DBUtility.DbHelperSQL.ExecuteSQL("update ERPTelFile set QianShouHouIDList=QianShouHouIDList+'," + this.DropDownList1.SelectedItem.Value.ToString() + "' where ID=" + Request.QueryString["ID"].ToString().Trim());
后面还有 9 行代码,购买后查看完整代码

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

AI 解读 AI

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

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