示例#1
0
        public override object GetPrintParameter()
        {
            var fromDate = this.fromDate == DateTime.MinValue ? string.Empty : this.fromDate.ToShortDateString();
            var toDate   = this.toDate == DateTime.MinValue ? string.Empty : this.toDate.ToShortDateString();

            var printData = new PageReportHeader()
            {
                CurDateTime = DateTime.Now.ToString("g"),
                CompanyName = api.CompanyEntity._Name,
                ReportName  = Uniconta.ClientTools.Localization.lookup("Statement"),
                Header      = string.Format("({0} - {1})", fromDate, toDate),
            };

            return(printData);
        }
示例#2
0
        public override object GetPrintParameter()
        {
            if (!manualExpanded)
            {
                for (int rowHandle = 0; rowHandle < dataRowCount; rowHandle++)
                {
                    dgGLTrans.ExpandMasterRow(rowHandle);
                }
            }
            var FromDate  = txtDateFrm.Text == string.Empty ? string.Empty : txtDateFrm.DateTime.ToShortDateString();
            var ToDate    = txtDateTo.Text == string.Empty ? string.Empty : txtDateTo.DateTime.ToShortDateString();
            var printData = new PageReportHeader()
            {
                CurDateTime = DateTime.Now.ToString("g"),
                CompanyName = api.CompanyEntity._Name,
                ReportName  = Uniconta.ClientTools.Localization.lookup("AccountStatement"),
                Header      = string.Format("({0} - {1})", FromDate, ToDate),
                SecondLine  = cmbJournal.SelectedItem == null ? "" : Uniconta.ClientTools.Localization.lookup("JournalLinesIncluded")
            };

            return(printData);
        }