Ejemplo n.º 1
0
        protected void _DataBind()
        {
            SYS_Session session = (SYS_Session)Session["SYS_Session"];
            //session.FuncID = funcid;
            int UserID = 0;

            if (Request["UID"] + "" != "")
            {
                UserID = int.Parse(Request["UID"]);
            }
            _lst = _ISYS_LogService.SelectSYSLogByIDBC(session.IDDMDonVi);
            GrdLog.DataSource = _lst;
            GrdLog.DataBind();
        }
Ejemplo n.º 2
0
        //Xoá toàn bộ dữ liệu trong gridview ở trang hiện thời
        protected void btnDeleteLog_Click(object sender, EventArgs e)
        {
            int           _id             = 0;
            List <object> _lstCurrentPage = new List <object>();

            try
            {
                //Lấy ra toàn bộ key trong gridview ở trang hiện thời
                _lstCurrentPage = GrdLog.GetCurrentPageRowValues(new string[] { GrdLog.KeyFieldName });
                if (_lstCurrentPage.Count != 0 && _lstCurrentPage != null)
                {
                    for (int i = 0; i < _lstCurrentPage.Count; i++)
                    {
                        _id = int.Parse(_lstCurrentPage[i].ToString());
                        _ISYS_LogService.DeleteSYS_Logstr(_id);
                    }
                    _DataBind();
                }
            }
            catch (Exception ex)
            {
                throw new Exception(String.Format("btnDeleteLog_Click.Delete: {0}", ex.Message));
            }
        }
Ejemplo n.º 3
0
 private void Load()
 {
     GrdLog.DataSource = ListaLogIntegracionNetShip;
     GrdLog.RefreshDataSource();
 }