예제 #1
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPTiXing MyModel = new ZWL.BLL.ERPTiXing();
        MyModel.ID         = int.Parse(ZWL.Common.PublicMethod.GetSessionValue("UserID"));
        MyModel.TiXingTime = this.DropDownList1.SelectedItem.Value.ToString();
        MyModel.IfTiXing   = this.DropDownList2.SelectedItem.Value.ToString();
        MyModel.Update();
        ZWL.Common.MessageBox.Show(this, "修改系统提醒参数成功!");

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户设置系统提醒参数";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();
    }
예제 #2
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPTiXing MyModel = new ZWL.BLL.ERPTiXing();
        MyModel.ID = int.Parse(ZWL.Common.PublicMethod.GetSessionValue("UserID"));
        MyModel.TiXingTime = this.DropDownList1.SelectedItem.Value.ToString();
        MyModel.IfTiXing = this.DropDownList2.SelectedItem.Value.ToString();
        MyModel.Update();
        ZWL.Common.MessageBox.Show(this, "修改系统提醒参数成功!");

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户设置系统提醒参数";
        MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        //Server.Transfer("~/Main/MyDesk.aspx?time=1000");
        //Response.Redirect("~/Main/Main.aspx?time=1000");
        ClientScript.RegisterStartupScript(ClientScript.GetType(), "12", "<script>parent.sendRequest();</script>");
           // ClientScript.RegisterStartupScript(ClientScript.GetType(), "12", "<script>parent. window.location.reload();</script>");
    }
예제 #3
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPTiXing MyModel = new ZWL.BLL.ERPTiXing();
        MyModel.ID         = int.Parse(ZWL.Common.PublicMethod.GetSessionValue("UserID"));
        MyModel.TiXingTime = this.DropDownList1.SelectedItem.Value.ToString();
        MyModel.IfTiXing   = this.DropDownList2.SelectedItem.Value.ToString();
        MyModel.Update();
        ZWL.Common.MessageBox.Show(this, "修改系统提醒参数成功!");

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户设置系统提醒参数";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        //Server.Transfer("~/Main/MyDesk.aspx?time=1000");
        //Response.Redirect("~/Main/Main.aspx?time=1000");
        ClientScript.RegisterStartupScript(ClientScript.GetType(), "12", "<script>parent.sendRequest();</script>");
        // ClientScript.RegisterStartupScript(ClientScript.GetType(), "12", "<script>parent. window.location.reload();</script>");
    }