Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            frmSyncEclock sync = new frmSyncEclock();

            sync.ClubName    = ClubName;
            sync.DateRelease = DateRelease;
            sync.ActionType  = ActionType;
            sync.ShowDialog();

            if (ActionType == "ENTRYDB")
            {
                ReadEntryLogs();
            }
            else if (ActionType == "RESULTDB")
            {
                ReadResultLogs();
            }

            if (dtList.Rows.Count == 0)
            {
                MessageBox.Show("Eclock " + ActionTypeDescription + " sync to database successfully.", "Sync All");
            }
            else
            {
                MessageBox.Show("Eclock " + ActionTypeDescription + " sync to database error detected.", "Sync All Error");
            }
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            frmSyncEclock sync = new frmSyncEclock();

            sync.ClubName    = ClubName;
            sync.MemberID    = txtMemberID.Text;
            sync.DateRelease = this.dateTimePicker1.Value;
            sync.ActionType  = "RESULTTRAINING";
            sync.ShowDialog();

            GetPigeonList(this.txtMemberID.Text);
        }
Пример #3
0
        private void button9_Click(object sender, EventArgs e)
        {
            DataTable dt = new DataTable();

            dt = (DataTable)this.dtList.DataSource;

            frmSyncEclock sync = new frmSyncEclock();

            sync.DataList   = dt;
            sync.ClubName   = ClubName;
            sync.ActionType = "RESET";
            sync.ShowDialog();
        }
Пример #4
0
        private void button5_Click(object sender, EventArgs e)
        {
            //DataTable dt = new DataTable();
            //dt = (DataTable)this.dtList.DataSource;

            frmSyncEclock sync = new frmSyncEclock();

            //sync.DataList = dt;
            //sync.ClubName = ClubName;
            //sync.DataStartIndex = ;
            //sync.DataEndtIndex = dt.Rows.Count;
            sync.ActionType = "UPLOADPROGRAM";
            sync.ShowDialog();
        }
Пример #5
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            try
            {
                DataTable dt = new DataTable();
                dt = (DataTable)this.dtList.DataSource;

                frmSyncEclock sync = new frmSyncEclock();
                sync.DataList   = dt;
                sync.ClubName   = ClubName;
                sync.ActionType = "UNLOCK";
                sync.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error");
            }
        }
Пример #6
0
        private void button6_Click(object sender, EventArgs e)
        {
            try
            {
                DataTable dt = new DataTable();
                dt = (DataTable)this.dtList.DataSource;

                frmSyncEclock sync = new frmSyncEclock();
                sync.DataList       = dt;
                sync.ClubName       = ClubName;
                sync.DataStartIndex = 1;
                sync.DataEndtIndex  = dt.Rows.Count;
                sync.ActionType     = "BANDED";
                sync.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error");
            }
        }