private void btnOpenVoucher_Click(object sender, EventArgs e) { if (dgJourHeader.CurrentRow.Index < 0) { glb_function.MsgBox("الرجاء تحديد سند"); return; } if (dgJourHeader[4, dgJourHeader.CurrentRow.Index].Value.ToString() == "قيد") { frmJournal frm = new frmJournal(); frm.strTempswid = (dgJourHeader[1, dgJourHeader.CurrentRow.Index].Value.ToString()); frm.ShowDialog(); } else if (dgJourHeader[4, dgJourHeader.CurrentRow.Index].Value.ToString() == "سند صرف") { //frmReceipts frm = new frmReceipts(); //frm.strTempswid = (dgJourHeader[1, dgJourHeader.CurrentRow.Index].Value.ToString()); //frm.ShowDialog(); } else if (dgJourHeader[4, dgJourHeader.CurrentRow.Index].Value.ToString() == "سند قبض") { //frmCatchReceipt frm = new frmCatchReceipt(); //frm.strTempswid = (dgJourHeader[1, dgJourHeader.CurrentRow.Index].Value.ToString()); //frm.ShowDialog(); } }
private void journalToolStripMenuItem_Click(object sender, EventArgs e) { frmJournal obj = new frmJournal(); obj.MdiParent = this; obj.StartPosition = FormStartPosition.CenterScreen; obj.Show(); }
private void JournalScreen(int vno) { frmJournal obj = new frmJournal(); obj.MdiParent = this.MdiParent; obj.CallFromDailyAccMaster(vno); obj.Show(); }
private void Tsm_Click(object sender, EventArgs e) { frmJournal journal = new frmJournal(); journal.VouncherId = Convert.ToInt32(((ToolStripMenuItem)sender).Tag); journal.MdiParent = this; journal.Text = ((ToolStripMenuItem)sender).Text; journal.Show(); journal.BringToFront(); }
/// <summary> /// Displays journal dialogue as for touch based or keyboard based. /// </summary> /// <param name="journalDialogResults"></param> /// <param name="dialogResultObject"></param> /// <param name="posTransaction"></param> public void ShowJournalDialog(ref JournalDialogResults journalDialogResults, ref object dialogResultObject, IPosTransaction posTransaction) { // Touch based hardware using (frmJournal journalDialog = new frmJournal(posTransaction, Application)) { LSRetailPosis.POSProcesses.POSFormsManager.ShowPOSForm(journalDialog); journalDialogResults = journalDialog.JournalDialogResults; dialogResultObject = journalDialog.JournalDialogResultObject; } }