Exemplo n.º 1
0
        private void CB_ThongBao_KhiCoThayDoi_VaoForm()
        {
            //1. Lay cv chua hoan thanh va thoi gian can canh bao
            var cls        = new clsCongViec();
            var dt         = cls.Select_CongViec_ThongBao_KhiCoThayDoi(GlobalVariables.GetID_NhanSu().ToString());
            var strMessage = "";

            foreach (DataRow dataRow in dt.Rows)
            {
                strMessage = dataRow["NoiDung"].ToString();
                alertControl3.Show(ActiveMdiChild, "Thông báo", strMessage);
            }
        }
Exemplo n.º 2
0
        private void CB_ThongBao_KhiCoThayDoi()
        {
            var cls = new clsCongViec();
            var dt  = cls.Select_CongViec_ThongBao_KhiCoThayDoi(GlobalVariables.GetID_NhanSu()
                                                                .ToString(CultureInfo.InvariantCulture));
            var strMessage = "";

            int iID_ThongBao;

            foreach (DataRow dataRow in dt.Rows)
            {
                iID_ThongBao = int.Parse(dataRow["ID_ThongBao"].ToString());
                if (!m_lstID_DaThongBao.Contains(iID_ThongBao))
                {
                    m_lstID_DaThongBao.Add(iID_ThongBao);
                    strMessage = dataRow["NoiDung"].ToString();
                    alertControl3.Show(ActiveMdiChild, "Thông báo", strMessage);
                }
            }
        }