ChrisCompleteCodeTrunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Telerik.Reporting;
namespace Action_Tire_Payment_Processor
{
public partial class BatchReportForm : Form
{
BatchReport report = new BatchReport();
public BatchReportForm(string StoreID)
{
InitializeComponent();
report.store = StoreID;
ddGroupBy.SelectedIndex = 0;
ddPaymentMethod.SelectedIndex = 0;
dtStart.Value = DateTime.Now;
dtEnd.Value = DateTime.Now;
}
private void btnClose_Click(object sender, EventArgs e)
{
}
private void btnView_Click(object sender, EventArgs e)
{
report.start = dtStart.Value;
report.end = dtEnd.Value;
report.groupStore = cbStoreID.Checked;
report.groupBy = ddGroupBy.SelectedItem.ToString();
report.displayDetails = cbDisplayDetails.Checked;
report.ReportType = ddPaymentMethod.SelectedIndex + 1;
BatchReportViewerForm brv = new BatchReportViewerForm(report);
brv.ShowDialog();
}
private void ddPaymentMethod_SelectedIndexChanged(object sender, EventArgs e)
{
}
}
public class BatchReport
{
public Report report { get; set; }
public string store { get; set; }
public DateTime start { get; set; }
public DateTime end { get; set; }
public bool groupStore { get; set; }
public string groupBy { get; set; }
public bool displayDetails { get; set; }
public int ReportType { get; set; } // 1 = Credit/Debit
// 2 = Gift/Loyalty
}
}
|
Revision |
Author |
Commited |
Message |
1
|
BBDSCHRIS
|
Wed 22 Aug, 2018 20:08:03 +0000 |
|