tianjiabeizhu.aspx.cs

来自「OA自动化办公系统,就是OA自动化办公系统」· CS 代码 · 共 51 行

CS
51
字号
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;
using COM.OA.Entity;
using System.Collections.Generic;
using COM.OA.BLL;

public partial class qs_wenjian_tianjiabeizhu : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack) { 
        string id=this.Request.QueryString["f_id"];
        int fid = Int32.Parse(id);
        
        string where2 = "f_id='{0}'";
        where2 = string.Format(where2, fid);
        IList<files> listhf = filesBLL.Select(where2);
        files fs = listhf[0];
        //回复的文件名
        this.Label1.Text = fs.f_filename;
    }


    }
    protected void btSave_Click(object sender, EventArgs e)
    {
        //取备注内容
        string beizhu=this.txtBeiZhu.Text;
        
        string id = this.Request.QueryString["f_id"];
        int fid = Int32.Parse(id);

        string where2 = "f_id='{0}'";
        where2 = string.Format(where2, fid);
        IList<files> listhf = filesBLL.Select(where2);
        files fs = listhf[0];
        fs.f_remark = beizhu;

        filesBLL.Update(fs);
        this.Response.Write(string.Format(GetRedirect.REDIRECT, "fileslog.aspx"));
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?