Exemple #1
0
        private void LoadShiftReport()
        {
            flpReportList.Controls.Clear();

            var dateselect = Convert.ToDateTime(dateSelect.Text).ToString("yyyy-MM-dd");

            var data = ReportService.GetDataShiftReport(dateselect).ToList();

            //string[] str = { "Shift 1", "Shift 2", "Shift All" };
            foreach (var shift in data)
            {
                UCReportItem ucReportItemShift = new UCReportItem();

                ucReportItemShift.lblTitelReportItem.Text = shift.ShiftName;
                ucReportItemShift.Tag = shift;
                ucReportItemShift.Width = flpReportList.Width;
                ucReportItemShift.Click += ucReportItemShift_Click;
                flpReportList.Controls.Add(ucReportItemShift);
            }
        }
Exemple #2
0
 private void LoadReportWekky()
 {
     flpReportList.Controls.Clear();
     int i = 1;
     string[] str =
     {
         "Summary", "Quantity Sale by Group", "Quantity Sale by Item", "Sale by Staff",
         "Total Account", "Payment Details"
     };
     foreach (string strDaily in str)
     {
         UCReportItem ucReportItem = new UCReportItem();
         ucReportItem.lblTitelReportItem.Text = strDaily;
         ucReportItem.Tag = i;
         i++;
         ucReportItem.Width = flpReportList.Width;
         ucReportItem.Click += ucWeeklyReportItem_Click;
         flpReportList.Controls.Add(ucReportItem);
     }
 }