private void Print_btn_Click(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; var dInitDate = Convert.ToDateTime(string.Format("{0:d}", ShopDateTime.Instance.ShopDate)); var stoNum = GlobalDataAccessor.Instance.CurrentSiteId.StoreNumber; string fileName = @"loan_detail_report_" + dInitDate.Ticks + ".pdf"; string rptDir = SecurityAccessor.Instance.EncryptConfig.ClientConfig.GlobalConfiguration. BaseLogPath; var rpt = new LoanDetailReport( rptDir + "\\" + fileName, stoNum, GlobalDataAccessor.Instance.CurrentSiteId.StoreName, dInitDate, "LOAN PROFILE\nTicket # " + cur_loan_nr.Text ); var key = _selectedData[_rowNum].Row.Field <int>("TICKET_NUMBER"); DataView reportView = _selectedData.DataViewManager.CreateDataView(_selectedData.Table); reportView.RowFilter = "TICKET_NUMBER='" + key + "'"; rpt.CreateReport(reportView); this.TopMost = false; Cursor.Current = Cursors.Default; CashlinxDesktopSession.ShowPDFFile(rptDir + "\\" + fileName, false); }
public ExecuteNewLoanExistCustomer( ProcessTenderController pTender, CashlinxDesktopSession c, TupleType <int, LoadTestInputVO, List <TupleType <int, string, double> > > tInput) : base(NAME) { this.tender = pTender; this.cds = c; this.input = tInput; }