Exemplo n.º 1
0
        private void sbtnAppointmentEdit_Click(object sender, System.EventArgs e)
        {
            if (!ValidateRowSelectedAppointment())
                return;

            DataRow row = gvAppointment.GetDataRow(gvAppointment.FocusedRowHandle);
            ACMS.ACMSStaff.Appointment.frmAppointment form = new ACMS.ACMSStaff.Appointment.frmAppointment(employee.Id, Convert.ToInt32(row["nAppointmentId"]), terminalUser.Branch.Id, Convert.ToInt32(row["nContactId"]));
            form.Date = Convert.ToDateTime(row["dtDate"]);
            form.StartTime = Convert.ToDateTime(row["dtStartTime"]);
            form.EndTime = Convert.ToDateTime(row["dtEndTime"]);
            form.BranchCode = row["strBranchCode"].ToString();
            form.ContactID = Convert.ToInt32(row["nContactId"]);
            form.Remark = row["strRemarks"].ToString();
            form.strMembership = row["strMembership"].ToString();
            form.ServedBy = Convert.ToInt32(row["nServedBy"]);

            if (DialogResult.OK == form.ShowDialog())
                ListAppointment();
            form.Dispose();
        }
Exemplo n.º 2
0
 private void sbtnAppointmentNew_Click(object sender, System.EventArgs e)
 {
     ACMS.ACMSStaff.Appointment.frmAppointment form = new ACMS.ACMSStaff.Appointment.frmAppointment(employee.Id, -1, terminalUser.Branch.Id, -1);
     if (DialogResult.OK == form.ShowDialog())
         ListAppointment();
     form.Dispose();
 }
Exemplo n.º 3
0
        private void sbtnAppointmentEdit_Click(object sender, System.EventArgs e)
        {
            if (!ValidateRowSelectedAppointment())
                return;

            DataRow row = gvAppointment.GetDataRow(gvAppointment.FocusedRowHandle);
            ACMS.ACMSStaff.Appointment.frmAppointment form = new ACMS.ACMSStaff.Appointment.frmAppointment(employee.Id,
                Convert.ToInt32(row["nAppointmentId"]));
            form.Date = Convert.ToDateTime(row["dtDate"]);
            form.StartTime = Convert.ToDateTime(row["dtStartTime"]);
            form.EndTime = Convert.ToDateTime(row["dtEndTime"]);
            form.Organization = row["strOrganization"].ToString();
            form.AppointmetnType = Convert.ToInt32(row["nAppointmentTypeId"]);
            form.ContactID = Convert.ToInt32(row["nContactId"]);
            form.Remark = row["strRemarks"].ToString();
            if (DialogResult.OK == form.ShowDialog())
                ListAppointment();
            form.Dispose();
        }