コード例 #1
0
        public CopyWorkDayToUserForm(Form tMainForm, WorkTimeRegister tWorkTimeRegister)
        {
            MainForm = tMainForm;
            InitializeComponent();

            cbUsers.DataSource    = tWorkTimeRegister.UsersBindingSource;
            cbUsers.DisplayMember = "ShortName";
            cbUsers.ValueMember   = "UserID";
        }
コード例 #2
0
        private void AcceptButton_Click(object sender, EventArgs e)
        {
            decimal hours = Convert.ToDecimal(textBox1.Text);

            WorkTimeRegister.EditTimesheetHours(WorkDayID, hours);

            FormEvent            = eClose;
            AnimateTimer.Enabled = true;
        }
コード例 #3
0
        private void AcceptButton_Click(object sender, EventArgs e)
        {
            DateTime D = Convert.ToDateTime(timeEdit1.EditValue);

            if (DayEventType == dStartDay)
            {
                WorkTimeRegister.EditStartWorkDay(WorkDayID, D);
            }
            if (DayEventType == dEndDay)
            {
                WorkTimeRegister.EditEndWorkDay(WorkDayID, D);
            }
            if (DayEventType == dBreakDay)
            {
                WorkTimeRegister.EditBreakStartWorkDay(WorkDayID, D);
            }
            if (DayEventType == dContinueDay)
            {
                WorkTimeRegister.EditBreakEndWorkDay(WorkDayID, D);
            }

            FormEvent            = eClose;
            AnimateTimer.Enabled = true;
        }