Example #1
0
        public xtraRPBaoCaoCongNo(int partnerID, int month, int year, int isPayment)
        {
            InitializeComponent();
            objService       = new BookService();
            partnerService   = new PartnerService();
            groupTourService = new GroupTourService();
            if (isPayment == 3)
            {
                this.objectDataSource1.DataSource = objService.GetListBookedDoneReport(partnerID, month, year, null, true);
            }
            else if (isPayment == 1)
            {
                this.objectDataSource1.DataSource = objService.GetListBookedDoneReport(partnerID, month, year, true, true);
            }
            else if (isPayment == 2)
            {
                this.objectDataSource1.DataSource = objService.GetListBookedDoneReport(partnerID, month, year, false, true);
            }
            //GroupTour g = groupTourService.GetByID(groupID);
            string title = "CÔNG NỢ THÁNG " + month + "/" + year;

            lblTitle.Text = title.ToUpper();
            Partner p = partnerService.GetByID(partnerID);

            lblPartnerName.Text  = p.Name;
            lblPartnerPhone.Text = p.Phone;
        }
        private void loadDataGroup()
        {
            gtService = new GroupTourService();
            var data = gtService.GetList();

            gridControlData.DataSource = data;
            gridControlData.Update();
            gridControlData.Refresh();
        }
Example #3
0
        public xtraRPBaoCaoCongNoDoiTac(int partnerID, int month, int year)
        {
            InitializeComponent();
            objService       = new BookService();
            partnerService   = new PartnerService();
            groupTourService = new GroupTourService();
            this.objectDataSource2.DataSource = objService.GetListBookedDoneReportPartner(partnerID, month, year, true);
            string title = "CÔNG NỢ THÁNG " + month + "/" + year;

            lblTitle.Text = title.ToUpper();
            Partner p = partnerService.GetByID(partnerID);

            lblPartnerName.Text  = p.Name;
            lblPartnerPhone.Text = p.Phone;
        }