示例#1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            //绑定页面数据
            ZWL.BLL.ERPMeeting Model = new ZWL.BLL.ERPMeeting();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.TextBox1.Text   = Model.MeetingTitle;
            this.TxtContent.Text = Model.HuiYiJiYao;
            this.TextBox2.Text   = Model.MeetingZhuTi;
            this.TextBox3.Text   = Model.MiaoShu;
            this.TextBox4.Text   = Model.ChuXiRen;
            this.TextBox5.Text   = Model.WangLuoHuiYiShiIP;
            this.TextBox6.Text   = Model.HuiYiZhuChi;

            this.TextBox7.Text = Model.KaiShiTime.ToString().Split(' ')[0];
            this.DropDownList1.SelectedValue = DateTime.Parse(Model.KaiShiTime.ToString()).Hour.ToString("D2");
            this.DropDownList2.SelectedValue = DateTime.Parse(Model.KaiShiTime.ToString()).Minute.ToString("D2");

            this.TextBox8.Text = Model.JieShuTime.ToString().Split(' ')[0];
            this.DropDownList3.SelectedValue = DateTime.Parse(Model.JieShuTime.ToString()).Hour.ToString("D2");
            this.DropDownList4.SelectedValue = DateTime.Parse(Model.JieShuTime.ToString()).Minute.ToString("D2");
        }
    }
示例#2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         //绑定页面数据
         ZWL.BLL.ERPMeeting Model = new ZWL.BLL.ERPMeeting();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.Label1.Text = Model.MeetingTitle;
         this.Label9.Text = Model.HuiYiJiYao;
         this.Label2.Text = Model.MeetingZhuTi;
         this.Label3.Text = Model.MiaoShu;
         this.Label4.Text = Model.ChuXiRen;
         this.Label5.Text = Model.WangLuoHuiYiShiIP;
         MettingIp = this.Label5.Text;
         this.Label6.Text = Model.HuiYiZhuChi;
         this.Label7.Text = Model.KaiShiTime.ToString();
         this.Label8.Text = Model.JieShuTime.ToString();
         //写系统日志
         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();
     }
 }
示例#3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            //绑定页面数据
            ZWL.BLL.ERPMeeting Model = new ZWL.BLL.ERPMeeting();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.TextBox1.Text = Model.MeetingTitle;
            this.TxtContent.Text = Model.HuiYiJiYao;
            this.TextBox2.Text = Model.MeetingZhuTi;
            this.TextBox3.Text = Model.MiaoShu;
            this.TextBox4.Text = Model.ChuXiRen;
            this.TextBox5.Text = Model.WangLuoHuiYiShiIP;
            this.TextBox6.Text = Model.HuiYiZhuChi;

            this.TextBox7.Text = Model.KaiShiTime.ToString().Split(' ')[0];
            this.DropDownList1.SelectedValue = DateTime.Parse(Model.KaiShiTime.ToString()).Hour.ToString("D2");
            this.DropDownList2.SelectedValue = DateTime.Parse(Model.KaiShiTime.ToString()).Minute.ToString("D2");

            this.TextBox8.Text = Model.JieShuTime.ToString().Split(' ')[0];
            this.DropDownList3.SelectedValue = DateTime.Parse(Model.JieShuTime.ToString()).Hour.ToString("D2");
            this.DropDownList4.SelectedValue = DateTime.Parse(Model.JieShuTime.ToString()).Minute.ToString("D2");
        }
    }
示例#4
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPMeeting Model = new ZWL.BLL.ERPMeeting();
        Model.ChuXiRen          = this.TextBox4.Text;
        Model.CurentOnline      = "";
        Model.HuiYiJiYao        = this.TxtContent.Text;
        Model.HuiYiZhuChi       = this.TextBox6.Text;
        Model.JieShuTime        = DateTime.Parse(this.TextBox8.Text.Trim() + " " + this.DropDownList3.SelectedItem.Text + ":" + this.DropDownList4.SelectedItem.Text + ":00");
        Model.KaiShiTime        = DateTime.Parse(this.TextBox7.Text.Trim() + " " + this.DropDownList1.SelectedItem.Text + ":" + this.DropDownList2.SelectedItem.Text + ":00");
        Model.MeetingTitle      = this.TextBox1.Text;
        Model.MeetingZhuTi      = this.TextBox2.Text;
        Model.MiaoShu           = this.TextBox3.Text;
        Model.TimeStr           = DateTime.Now;
        Model.WangLuoHuiYiShiIP = this.TextBox5.Text;
        Model.ZhuanXieRen       = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        Model.Add();

        //写系统日志
        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();

        //发送短信
        SendMainAndSms.SendMessage(CHKSMS, CHKMOB, "您有新的会议需要参加!(" + this.TextBox1.Text + ")", this.TextBox4.Text.Trim());

        ZWL.Common.MessageBox.ShowAndRedirect(this, "会议添加成功!", "MeetingDengJi.aspx");
    }
示例#5
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPMeeting Model = new ZWL.BLL.ERPMeeting();
        Model.ChuXiRen = this.TextBox4.Text;
        Model.CurentOnline = "";
        Model.HuiYiJiYao = this.TxtContent.Text;
        Model.HuiYiZhuChi = this.TextBox6.Text;
        Model.JieShuTime = DateTime.Parse(this.TextBox8.Text.Trim() + " " + this.DropDownList3.SelectedItem.Text + ":" + this.DropDownList4.SelectedItem.Text + ":00");
        Model.KaiShiTime = DateTime.Parse(this.TextBox7.Text.Trim() + " " + this.DropDownList1.SelectedItem.Text + ":" + this.DropDownList2.SelectedItem.Text + ":00");
        Model.MeetingTitle = this.TextBox1.Text;
        Model.MeetingZhuTi = this.TextBox2.Text;
        Model.MiaoShu = this.TextBox3.Text;
        Model.TimeStr = DateTime.Now;
        Model.WangLuoHuiYiShiIP = this.TextBox5.Text;
        Model.ZhuanXieRen = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        Model.Add();

        //写系统日志
        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();

        //发送短信
        SendMainAndSms.SendMessage(CHKSMS, CHKMOB, "您有新的会议需要参加!(" + this.TextBox1.Text + ")", this.TextBox4.Text.Trim());

        ZWL.Common.MessageBox.ShowAndRedirect(this, "会议添加成功!", "MeetingDengJi.aspx");
    }
示例#6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         //绑定页面数据
         ZWL.BLL.ERPMeeting Model = new ZWL.BLL.ERPMeeting();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.Label1.Text = Model.MeetingTitle;
         this.Label9.Text = Model.HuiYiJiYao;
         this.Label2.Text = Model.MeetingZhuTi;
         this.Label3.Text = Model.MiaoShu;
         this.Label4.Text = Model.ChuXiRen;
         this.Label5.Text = Model.WangLuoHuiYiShiIP;
         MettingIp        = this.Label5.Text;
         this.Label6.Text = Model.HuiYiZhuChi;
         this.Label7.Text = Model.KaiShiTime.ToString();
         this.Label8.Text = Model.JieShuTime.ToString();
         //写系统日志
         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();
     }
 }
示例#7
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPMeeting MyModel = new ZWL.BLL.ERPMeeting();
     GVData.DataSource = MyModel.GetList("MeetingTitle Like '%" + this.TextBox1.Text + "%' and HuiYiZhuChi Like '%" + this.TextBox2.Text + "%' order by ID desc");
     GVData.DataBind();
     LabPageSum.Text = Convert.ToString(GVData.PageCount);
     LabCurrentPage.Text = Convert.ToString(((int)GVData.PageIndex + 1));
     this.GoPage.Text = LabCurrentPage.Text.ToString();
 }
示例#8
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPMeeting MyModel = new ZWL.BLL.ERPMeeting();
     GVData.DataSource = MyModel.GetList("MeetingTitle Like '%" + this.TextBox1.Text + "%' and ZhuanXieRen='"+ZWL.Common.PublicMethod.GetSessionValue("UserName")+"' order by ID desc");
     GVData.DataBind();
     LabPageSum.Text = Convert.ToString(GVData.PageCount);
     LabCurrentPage.Text = Convert.ToString(((int)GVData.PageIndex + 1));
     this.GoPage.Text = LabCurrentPage.Text.ToString();
 }
示例#9
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPMeeting MyModel = new ZWL.BLL.ERPMeeting();
     GVData.DataSource = MyModel.GetList("MeetingTitle Like '%" + this.TextBox1.Text + "%' order by ID desc");
     GVData.DataBind();
     LabPageSum.Text     = Convert.ToString(GVData.PageCount);
     LabCurrentPage.Text = Convert.ToString(((int)GVData.PageIndex + 1));
     this.GoPage.Text    = LabCurrentPage.Text.ToString();
 }
示例#10
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPMeeting MyModel = new ZWL.BLL.ERPMeeting();
     GVData.DataSource = MyModel.GetList("MeetingTitle Like '%" + this.TextBox1.Text + "%' and ZhuanXieRen='" + ZWL.Common.PublicMethod.GetSessionValue("UserName") + "' order by ID desc");
     GVData.DataBind();
     LabPageSum.Text     = Convert.ToString(GVData.PageCount);
     LabCurrentPage.Text = Convert.ToString(((int)GVData.PageIndex + 1));
     this.GoPage.Text    = LabCurrentPage.Text.ToString();
 }
示例#11
0
    public void DataBindToGridview()
    {
        GVData.PageSize  = AspNetPager1.PageSize;
        GVData.PageIndex = AspNetPager1.CurrentPageIndex - 1;
        ZWL.BLL.ERPMeeting MyModel = new ZWL.BLL.ERPMeeting();
        DataSet            ds      = MyModel.GetList("MeetingTitle Like '%" + this.TextBox1.Text + "%' order by ID desc");

        GVData.DataSource = ds;
        GVData.DataBind();
        AspNetPager1.RecordCount = ds.Tables[0].Rows.Count;
    }
示例#12
0
    public void DataBindToGridview()
    {
        GVData.PageSize  = AspNetPager1.PageSize;
        GVData.PageIndex = AspNetPager1.CurrentPageIndex - 1;
        ZWL.BLL.ERPMeeting MyModel = new ZWL.BLL.ERPMeeting();
        DataSet            ds      = MyModel.GetList("MeetingTitle Like '%" + this.TextBox1.Text + "%' and ZhuanXieRen='" + ZWL.Common.PublicMethod.GetSessionValue("UserName") + "' order by ID desc");

        GVData.DataSource = ds;
        GVData.DataBind();
        AspNetPager1.RecordCount = ds.Tables[0].Rows.Count;
    }
示例#13
0
    protected void ImageButton1_Click(object sender, EventArgs e)
    {
        ZWL.BLL.ERPMeeting Model = new ZWL.BLL.ERPMeeting();
        Model.ID                = int.Parse(Request.QueryString["ID"].ToString());
        Model.ChuXiRen          = this.TextBox4.Text;
        Model.HuiYiJiYao        = this.TxtContent.Text;
        Model.HuiYiZhuChi       = this.TextBox6.Text;
        Model.JieShuTime        = DateTime.Parse(this.TextBox8.Text.Trim() + " " + this.DropDownList3.SelectedItem.Text + ":" + this.DropDownList4.SelectedItem.Text + ":00");
        Model.KaiShiTime        = DateTime.Parse(this.TextBox7.Text.Trim() + " " + this.DropDownList1.SelectedItem.Text + ":" + this.DropDownList2.SelectedItem.Text + ":00");
        Model.MeetingTitle      = this.TextBox1.Text;
        Model.MeetingZhuTi      = this.TextBox2.Text;
        Model.MiaoShu           = this.TextBox3.Text;
        Model.WangLuoHuiYiShiIP = this.TextBox5.Text;
        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, "网络会议修改成功!", "MeetingDengJi.aspx");
    }
示例#14
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPMeeting Model = new ZWL.BLL.ERPMeeting();
        Model.ID = int.Parse(Request.QueryString["ID"].ToString());
        Model.ChuXiRen = this.TextBox4.Text;
        Model.HuiYiJiYao = this.TxtContent.Text;
        Model.HuiYiZhuChi = this.TextBox6.Text;
        Model.JieShuTime = DateTime.Parse(this.TextBox8.Text.Trim() + " " + this.DropDownList3.SelectedItem.Text + ":" + this.DropDownList4.SelectedItem.Text + ":00");
        Model.KaiShiTime = DateTime.Parse(this.TextBox7.Text.Trim() + " " + this.DropDownList1.SelectedItem.Text + ":" + this.DropDownList2.SelectedItem.Text + ":00");
        Model.MeetingTitle = this.TextBox1.Text;
        Model.MeetingZhuTi = this.TextBox2.Text;
        Model.MiaoShu = this.TextBox3.Text;
        Model.WangLuoHuiYiShiIP = this.TextBox5.Text;
        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, "会议修改成功!", "MeetingDengJi.aspx");
    }