示例#1
0
        private void Export_Click()
        {
            string msg = gridMain.Export(null, new List <Tuple <string, string> >()
            {
                Tuple.Create(labelDate.Text, PIn.Date(textDate.Text).ToShortDateString())
            });

            if (!string.IsNullOrEmpty(msg))
            {
                MsgBox.Show(this, msg);
            }
        }
示例#2
0
        private void Export_Click()
        {
            //FillGrid();//this is in case the date range has been changed but the grid has not been refreshed to reflect the new date range, so the date range on the report will match the data in the grid.
            List <Tuple <string, string> > listOtherDetails = new List <Tuple <string, string> >()
            {
                Tuple.Create(labelDateFrom.Text, PIn.Date(textDateFrom.Text).ToShortDateString()),
                Tuple.Create(labelDateTo.Text, PIn.Date(textDateTo.Text).ToShortDateString())
            };
            string msg = gridMain.Export(listOtherDetails: listOtherDetails);

            if (!string.IsNullOrEmpty(msg))
            {
                MsgBox.Show(this, msg);
            }
        }
示例#3
0
        private void butExport_Click(object sender, EventArgs e)
        {
            List <Tuple <string, string> > listOtherDetails = new List <Tuple <string, string> >()
            {
                Tuple.Create(labelDate.Text, PIn.Date(textDate.Text).ToShortDateString()),
                Tuple.Create(labelStart.Text, PIn.Double(textStart.Text).ToString("n")),
                Tuple.Create(labelEnd.Text, PIn.Double(textEnd.Text).ToString("n")),
                Tuple.Create(labelTarget.Text, PIn.Double(textTarget.Text).ToString("n")),
                Tuple.Create(labelSum.Text, PIn.Double(textSum.Text).ToString("n"))
            };
            string msg = gridMain.Export(listOtherDetails: listOtherDetails);

            if (!string.IsNullOrEmpty(msg))
            {
                MsgBox.Show(this, msg);
            }
        }