private void bttPrint_Click(object sender, EventArgs e) { if (gridViewRefund.GetFocusedRowCellValue("ref_insure_paid_date") != null) { if (gridViewRefund.GetFocusedRowCellValue("ref_insure_paid_date").ToString() == "") { BusinessLogicBridge.DataStore.RefundPaid(textEditID.EditValue.To <int>()); } BusinessLogicBridge.DataStore.addLogAction(DXWindowsApplication2.MainForm.groupid.To <int>(), DXWindowsApplication2.MainForm.userid.To <int>(), "Room Management [Refund Insurance]"); PrintDocuments.bookrefund PrintRefund = new DXWindowsApplication2.PrintDocuments.bookrefund(); PrintRefund.loopGenDataRow(textEditID.EditValue.To <int>()); PrintRefund.ShowPreview(); reloadGrid(); } }
private void bttPrint_Click(object sender, EventArgs e) { if (gridViewRefund.GetFocusedRowCellValue("ref_insure_paid_date") != null) { if (gridViewRefund.GetFocusedRowCellValue("ref_insure_paid_date").ToString() == "") { BusinessLogicBridge.DataStore.RefundPaid(textEditID.EditValue.To<int>()); } BusinessLogicBridge.DataStore.addLogAction(DXWindowsApplication2.MainForm.groupid.To<int>(), DXWindowsApplication2.MainForm.userid.To<int>(), "Room Management [Refund Insurance]"); PrintDocuments.bookrefund PrintRefund = new DXWindowsApplication2.PrintDocuments.bookrefund(); PrintRefund.loopGenDataRow(textEditID.EditValue.To<int>()); PrintRefund.ShowPreview(); reloadGrid(); } }