private void PaymentForm_Load(object sender, EventArgs e) { courseObj = new AlexLabBL.PaymentClass(); safeObj = new AlexLabBL.SafeClass(); gridControl1.DataSource = AlexLabBL.MainClass.getPayment(); lookUpPaymentType.Properties.DataSource = AlexLabBL.MainClass.getPaymentType(); lookUpPaymentType.EditValue = 3; }
private void WorkSpaceForm_Load(object sender, EventArgs e) { courseObj = new AlexLabBL.PaymentClass(); safeObj = new AlexLabBL.SafeClass(); LookUpClient.Properties.DataSource = AlexLabBL.MainClass.getClientsWorkSpace(); lookUpPaymentType.Properties.DataSource = AlexLabBL.MainClass.getPaymentType(); lookUpPaymentType.EditValue = 2; gridControl1.DataSource = AlexLabBL.MainClass.getPaymentByClient(); }
public CoursePaymentForm() { InitializeComponent(); courseObj = new AlexLabBL.PaymentClass(); safeObj = new AlexLabBL.SafeClass(); lookUpCourse.Properties.DataSource = AlexLabBL.MainClass.getCourses(); lookUpPaymentType.Properties.DataSource = AlexLabBL.MainClass.getPaymentType(); lookUpPaymentType.EditValue = 1; gridControl1.DataSource = AlexLabBL.MainClass.getPaymentByCourse(); }
public CoursePaymentForm(int appointmentId) { InitializeComponent(); courseObj = new AlexLabBL.PaymentClass(); safeObj = new AlexLabBL.SafeClass(); lookUpCourse.Properties.DataSource = AlexLabBL.MainClass.getCourses(); lookUpPaymentType.Properties.DataSource = AlexLabBL.MainClass.getPaymentType(); lookUpPaymentType.EditValue = 1; lookUpCourse.EditValue = appointmentId; lookUpCourse.Enabled = false; isSingleAppointment = true; appointmentID = appointmentId; CustomAppointmentForm.PaidMoney = 0; gridControl1.DataSource = AlexLabBL.MainClass.getPaymentByCourse(appointmentId); }