Esempio n. 1
0
        /// <summary>
        /// Show user detail form
        /// </summary>
        /// <remarks>
        /// Mode = E
        /// </remarks>
        private void gridUser_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                //Get user id, name
                string Id   = gridView1.GetFocusedRowCellDisplayText(gcUserId);
                string Name = gridView1.GetFocusedRowCellDisplayText(gcUserName);

                //Show info
                ucUserInfo uc = new ucUserInfo("E", Id, Name, userId);
                Common.GoBack(uc, this);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Show door detail
        /// </summary>
        /// <remarks>
        /// Mode = E, send user login id and id of door what user choose
        /// </remarks>
        private void gridData_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                //Get doorId in grid
                DataRowView drv      = (DataRowView)gridView1.GetFocusedRow();
                DataRow     dr       = drv.Row;
                string      doorId   = dr[0].ToString();
                string      doorName = dr[1].ToString();

                //Show detail device
                ucDoorDetail uc = new ucDoorDetail("E", userId, doorId);
                Common.GoBack(uc, this);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Go to Schedule detail form
        /// </summary>
        /// <remarks>
        /// Mode = E: show schedule detail, userId: user login
        /// </remarks>
        private void gridSchedule_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                //Get scheduleId in grid
                DataRowView drv          = (DataRowView)gridView1.GetFocusedRow();
                DataRow     dr           = drv.Row;
                string      scheduleId   = dr[0].ToString();
                string      scheduleName = dr[1].ToString();

                //Show detail schedule
                ucScheduleDetail uc = new ucScheduleDetail("E", scheduleId, scheduleName, userId);
                Common.GoBack(uc, this);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
                return;
            }
        }
Esempio n. 4
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            ucSetting uc = new ucSetting(userId);

            Common.GoBack(uc, this);
        }
Esempio n. 5
0
        /// <summary>
        /// Go back to Schedule master form
        /// </summary>
        private void GoBack()
        {
            ucSchedule uc = new ucSchedule(userId);

            Common.GoBack(uc, this);
        }
Esempio n. 6
0
        /// <summary>
        /// Go back to door master form
        /// </summary>
        private void GoBack()
        {
            ucDoor uc = new ucDoor(userId);

            Common.GoBack(uc, this);
        }
Esempio n. 7
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            ucDashBoard uc = new ucDashBoard(userId);

            Common.GoBack(uc, this);
        }
Esempio n. 8
0
        private void btnAccount_Click(object sender, EventArgs e)
        {
            ucChangePass uc = new ucChangePass(userId);

            Common.GoBack(uc, this);
        }
Esempio n. 9
0
        private void btnSchedule_Click(object sender, EventArgs e)
        {
            ucSchedule uc = new ucSchedule(userId);

            Common.GoBack(uc, this);
        }
Esempio n. 10
0
        /// <summary>
        /// Go back to Device master form
        /// </summary>
        private void GoBack()
        {
            ucDevice uc = new ucDevice(userId);

            Common.GoBack(uc, this);
        }
Esempio n. 11
0
        /// <summary>
        /// Go back to Access Control form
        /// </summary>
        private void GoBack()
        {
            ucAccessControl uc = new ucAccessControl(userId);

            Common.GoBack(uc, this);
        }
Esempio n. 12
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            ucAccessControl uc = new ucAccessControl(userId);

            Common.GoBack(uc, this);
        }