private void btnPrintPayment_OldStyle_Click(object sender, EventArgs e) { List<int> ListIDServiceGroup = new List<int>(); ListIDServiceGroup.Add(18); ListIDServiceGroup.Add(21); ListIDServiceGroup.Add(26); ListIDServiceGroup.Add(27); ListIDServiceGroup.Add(28); ListIDServiceGroup.Add(23); ListIDServiceGroup.Add(15); ListIDServiceGroup.Add(16); List<RptPaymentStyle1_ForDisplay> aList = this.aNewPaymentEN.ConvertDataFor_RptPaymentStyle1(ListIDServiceGroup); frmTsk_ReportPaymentStyle1 afrm = new frmTsk_ReportPaymentStyle1(aList.OrderBy(p=>p.Date).ToList(), ListIDServiceGroup, this.aNewPaymentEN.NameCompany, this.aNewPaymentEN.AddressCompany, this.aNewPaymentEN.NameCustomerGroup, this.aNewPaymentEN.InvoiceNumber, this.aNewPaymentEN.GetFirstDate(), this.aNewPaymentEN.GetLastDate(), this.aNewPaymentEN.BookingHMoney, this.aNewPaymentEN.BookingRMoney, this.IDBookingR); afrm.ShowDialog(); }
private void btnPrintPayment_OldStyle_Click(object sender, EventArgs e) { ServiceGroupsBO aServiceGroupsBO = new ServiceGroupsBO(); List<ServiceGroups> aListServiceGroups = new List<ServiceGroups>(); aListServiceGroups = aServiceGroupsBO.Sel_all().OrderBy(p => p.Order).ToList(); List<int> ListIDServiceGroup = new List<int>(); ListIDServiceGroup.AddRange(aListServiceGroups.Select(p => p.ID).ToList()); List<RptPaymentStyle1_ForDisplay> aList = this.aNewPaymentEN.ConvertDataFor_RptPaymentStyle1(ListIDServiceGroup); frmTsk_ReportPaymentStyle1 afrm = new frmTsk_ReportPaymentStyle1(aList.OrderBy(p => p.Date).ToList(), aListServiceGroups, this.aNewPaymentEN.NameCompany, this.aNewPaymentEN.AddressCompany, this.aNewPaymentEN.NameCustomerGroup, this.aNewPaymentEN.InvoiceNumber, this.aNewPaymentEN.GetFirstDate(), this.aNewPaymentEN.GetLastDate(), this.aNewPaymentEN.BookingHMoney, this.aNewPaymentEN.BookingRMoney, this.IDBookingR); afrm.ShowDialog(); }
private void simpleButton1_Click_1(object sender, EventArgs e) { List<int> ListIDServiceGroup = new List<int>(); ListIDServiceGroup.Add(18); ListIDServiceGroup.Add(21); ListIDServiceGroup.Add(26); ListIDServiceGroup.Add(27); ListIDServiceGroup.Add(28); ListIDServiceGroup.Add(23); ListIDServiceGroup.Add(15); ListIDServiceGroup.Add(16); List<RptPaymentStyle1_ForDisplay> aList = this.aNewPaymentEN.ConvertDataFor_RptPaymentStyle1(ListIDServiceGroup); frmTsk_ReportPaymentStyle1 afrm = new frmTsk_ReportPaymentStyle1(aList, ListIDServiceGroup, this.aNewPaymentEN.NameCompany, this.aNewPaymentEN.AddressCompany, this.aNewPaymentEN.NameCustomerGroup, this.aNewPaymentEN.InvoiceNumber,this.aNewPaymentEN.GetFirstDate(),this.aNewPaymentEN.GetLastDate(),this.aNewPaymentEN.BookingHMoney,this.aNewPaymentEN.BookingRMoney,this.IDBookingR); afrm.Show(); }