示例#1
0
    protected void btn_Sub_Click(object sender, EventArgs e)
    {
        ZWL.BLL.ERPGongGao MyModel = new ZWL.BLL.ERPGongGao();
        MyModel.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
        if (MyModel.ZT == "已发送")
        {
            Response.Write("<script>alert('修改失败,已发送状态的公告无法进行修改')</script>");
            return;
        }
        ZWL.BLL.ERPGongGao Model = new ZWL.BLL.ERPGongGao();
        Model.TitleStr   = this.TextBox1.Text;
        Model.NoticeType = this.DropDownList1.SelectedValue;
        Model.ZT         = this.ZT.SelectedValue;
        Model.FuJian     = ZWL.Common.PublicMethod.GetSessionValue("WenJianList");
        Model.TypeStr    = this.TextBox3.Text;
        Model.ContentStr = this.TxtContent.Text;
        Model.ID         = int.Parse(Request.QueryString["ID"].ToString());
        Model.UserBuMen  = this.Send_Person.Value;
        Model.Update();


        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户修改通知公告信息(" + this.TextBox1.Text + ")";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        Response.Write("<script>alert('通知公告信息修改成功!');window.location.href='GongGao.aspx'</script>");
    }
示例#2
0
    string UserName = ""; //用户名

    #endregion Fields

    #region Methods

    protected void btn_Sub_Click(object sender, EventArgs e)
    {
        ZWL.BLL.ERPGongGao MyModel = new ZWL.BLL.ERPGongGao();
        MyModel.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
        if(MyModel.ZT == "已发送") {
            Response.Write("<script>alert('修改失败,已发送状态的公告无法进行修改')</script>");
            return;
        }
        ZWL.BLL.ERPGongGao Model = new ZWL.BLL.ERPGongGao();
        Model.TitleStr = this.TextBox1.Text;
        Model.NoticeType = this.DropDownList1.SelectedValue;
        Model.ZT = this.ZT.SelectedValue;
        Model.FuJian = ZWL.Common.PublicMethod.GetSessionValue("WenJianList");
        Model.TypeStr = this.TextBox3.Text;
        Model.ContentStr = this.TxtContent.Text;
        Model.ID = int.Parse(Request.QueryString["ID"].ToString());
        Model.UserBuMen = this.Send_Person.Value;
        Model.Update();

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户修改通知公告信息(" + this.TextBox1.Text + ")";
        MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        Response.Write("<script>alert('通知公告信息修改成功!');window.location.href='GongGao.aspx'</script>");
    }
示例#3
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPGongGao Model = new ZWL.BLL.ERPGongGao();
        Model.TitleStr   = this.TextBox1.Text;
        Model.FuJian     = ZWL.Common.PublicMethod.GetSessionValue("WenJianList");
        Model.TypeStr    = Request.QueryString["Type"].ToString();
        Model.ContentStr = this.TxtContent.Text;
        Model.NoticeType = this.txt_nt.Text;

        Model.ID = int.Parse(Request.QueryString["ID"].ToString());
        Model.Update();

        //更新公告通知的收阅部门
        if (Request.QueryString["Type"].ToString() == "单位")
        {
            ZWL.DBUtility.DbHelperSQL.ExecuteSQL("update ERPGongGao set UserBuMen='" + this.TextBox2.Text.Trim() + "' where ID=" + Request.QueryString["ID"].ToString());
        }


        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户修改公告通知信息(" + this.TextBox1.Text + ")";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "公告通知信息修改成功!", "GongGao.aspx?Type=" + Request.QueryString["Type"].ToString());
    }
示例#4
0
    protected void ImageButton1_Click(object sender, EventArgs e)
    {
        ZWL.BLL.ERPGongGao Model = new ZWL.BLL.ERPGongGao();
        Model.TitleStr   = this.TextBox1.Text;
        Model.FuJian     = ZWL.Common.PublicMethod.GetSessionValue("WenJianList");
        Model.TypeStr    = Request.QueryString["Type"].ToString();
        Model.ContentStr = this.TxtContent.Text;
        Model.ID         = int.Parse(Request.QueryString["ID"].ToString());
        Model.Update();

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户修改公告通知信息(" + this.TextBox1.Text + ")";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "公告通知信息修改成功!", "GongGao.aspx?Type=" + Request.QueryString["Type"].ToString());
    }
示例#5
0
    protected void ImageButton1_Click(object sender, EventArgs e)
    {
        ZWL.BLL.ERPGongGao Model = new ZWL.BLL.ERPGongGao();
        Model.TitleStr = this.TextBox1.Text;
        Model.FuJian = ZWL.Common.PublicMethod.GetSessionValue("WenJianList");
        Model.TypeStr = Request.QueryString["Type"].ToString();
        Model.ContentStr = this.TxtContent.Text;
        Model.ID = int.Parse(Request.QueryString["ID"].ToString());
        Model.Update();

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户修改公告通知信息(" + this.TextBox1.Text + ")";
        MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "公告通知信息修改成功!", "GongGao.aspx?Type=" + Request.QueryString["Type"].ToString());
    }