Exemplo n.º 1
0
 private void cmsFindClient_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
 {
     if (e.ClickedItem.Text == "Export To Excel")
     {
         CCFBGlobal.ExportToExcell(dgvClientList, "ClientList_" + DateTime.Now.Year.ToString()
                                   + "_" + CCFBGlobal.formatNumberWithLeadingZero(DateTime.Now.Month));
     }
 }
Exemplo n.º 2
0
 private void cmsDonors_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
 {
     cmsDonors.Close();
     if (e.ClickedItem.Text == "Export To Excel")
     {
         CCFBGlobal.ExportToExcell(gridEditDonor, "Donors_" +
                                   DateTime.Today.Year.ToString() + "_" + CCFBGlobal.formatNumberWithLeadingZero(DateTime.Today.Month));
     }
 }
Exemplo n.º 3
0
        private void cmsForListViews_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            string date = "";

            if (lvApptLog.Visible == true)
            {
                date = tbDateAL.Text;
                date = date.Replace("/", "-");
                CCFBGlobal.ExportToExcell(lvApptLog, "AppointmentLog_" + date);
            }
            else
            {
                date = tbDateDL.Text;
                date = date.Replace("/", "-");
                CCFBGlobal.ExportToExcell(lvDailyLog, "DailyLog_" + date);
            }
        }
Exemplo n.º 4
0
        private void cmsForListViews_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            string date = "";

            if (lvApptLog.Visible == true)
            {
                date = tbDateAL.Text;
                date = date.Replace("/", "-");
                CCFBGlobal.ExportToExcell(lvApptLog, "AppointmentLog_" + date);
            }
            else
            {
                if (e.ClickedItem.Name == "tsmiShowSignature")
                {
                    TrxLogSig tls = new TrxLogSig(CCFBGlobal.connectionString);
                    if (tls.LoadImage(Convert.ToInt32(lvDailyLog.SelectedItems[0].Name), 0) == true)
                    {
                        picSignature.Image      = tls.SigImage;
                        picSignature.Visible    = true;
                        cmsForListViews.Visible = false;
                        MessageBox.Show(this, "Close Signature Display");
                        picSignature.Visible = false;
                    }
                    else
                    {
                        MessageBox.Show("No Signature Found");
                    }
                }
                else
                {
                    date = tbDateDL.Text;
                    date = date.Replace("/", "-");
                    CCFBGlobal.ExportToExcell(lvDailyLog, "DailyLog_" + date);
                }
            }
        }