Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        FaceLog condition = new FaceLog();
        FaceLog value     = new FaceLog();

        m_tableManageList = TableOperate <FaceLog> .SelectByPage(value, condition, "order by  AddTime desc", PageSize, PageIndex, ref Count);

        DataBind();
    }
Ejemplo n.º 2
0
    protected void Log(string msg)
    {
        FaceLog condition = new FaceLog();
        int     count     = TableOperate <FaceLog> .GetCountValue(condition);

        if (count > 10000)
        {
            string sql = " Delete  FaceLog where ID>0 ";
            int    id  = TableOperate <FaceLog> .Execute(sql);
        }
        condition.Msg     = msg;
        condition.AddTime = DateTime.Now;
        TableOperate <FaceLog> .InsertReturnID(condition);
    }