protected void bt_Out_Click(object sender, EventArgs e)
 {
     WT_WorkTimeBLL _bll = new WT_WorkTimeBLL();
     _bll.EndWork(int.Parse(Session["UserID"].ToString()), Request.UserHostAddress);
     bt_On.Visible = true;
     bt_Out.Visible = false;
 }
Пример #2
0
    protected void bt_Out_Click(object sender, EventArgs e)
    {
        WT_WorkTimeBLL _bll = new WT_WorkTimeBLL();

        _bll.EndWork(int.Parse(Session["UserID"].ToString()), Request.UserHostAddress);
        bt_On.Visible  = true;
        bt_Out.Visible = false;
    }
    protected DateTime _pageInitTime; //= DateTime.Now;           //用于计算页面生成时间

    #endregion Fields

    #region Methods

    protected void bt_On_Click(object sender, EventArgs e)
    {
        WT_WorkTimeBLL _bll = new WT_WorkTimeBLL();
        Org_Staff _s = new Org_StaffBLL(int.Parse(Session["UserID"].ToString())).Model;
        if (_bll.IsBeginWork(int.Parse(Session["UserID"].ToString())))
        {
            MessageBox.Show(this.Page, "你今天已经上班了!");
        }
        else
        {
            _bll.BeginWork(int.Parse(Session["UserID"].ToString()), _s.OrganizeCity);
            bt_On.Visible = false;
            bt_Out.Visible = true;
        }
    }
Пример #4
0
    protected void bt_On_Click(object sender, EventArgs e)
    {
        WT_WorkTimeBLL _bll = new WT_WorkTimeBLL();
        Org_Staff      _s   = new Org_StaffBLL(int.Parse(Session["UserID"].ToString())).Model;

        if (_bll.IsBeginWork(int.Parse(Session["UserID"].ToString())))
        {
            MessageBox.Show(this.Page, "你今天已经上班了!");
        }
        else
        {
            _bll.BeginWork(int.Parse(Session["UserID"].ToString()), _s.OrganizeCity);
            bt_On.Visible  = false;
            bt_Out.Visible = true;
        }
    }