Exemplo n.º 1
0
        private void butDailyReport_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;

            if (Review != null)
            {
                clsReports objReports = new clsReports();
                objReports.CreateActivityLog(Review);
            }
            else
            {
                MessageBox.Show("You have not selected a review.");
            }

            this.Cursor = Cursors.Default;
        }
Exemplo n.º 2
0
        private void butEnter_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;

            clsReports objReports = new clsReports();

            string[] Month = cmbMonth.Text.Split('-');
            strMonth = Month[0].Trim();
            string strReturn = objReports.CreateMonthlyActivityLog(strConsumerID, strMonth, cmbYear.Text);

            if (strReturn.Length > 0)
            {
                MessageBox.Show(strReturn);
            }
            else
            {
                this.Dispose();
            }

            this.Cursor = Cursors.Default;
        }
Exemplo n.º 3
0
        private void mnuEdit_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            string ReviewID = grdActivity[1, grdActivity.CurrentRow.Index].Value.ToString();

            switch (e.ClickedItem.Text)
            {
            case "Edit":
                EditReview();
                break;

            case "Delete":
                DeleteReview();
                break;

            case "Create Daily Report":
                this.Cursor = Cursors.WaitCursor;
                clsReports objReport = new clsReports();
                objReport.CreateActivityLog(ReviewID);
                this.Cursor = Cursors.Default;
                break;
            }
        }