Beispiel #1
0
        private void editReview(string ReviewID, string strControl)
        {
            staffAddReview objReview = new staffAddReview();

            objReview.CancelControl += new CancelStaff(CancelControlStaff);
            objReview.EnableButton  += new Enable(EnableButton);


            LoadControl(objReview, strControl);

            objReview.LoadControl(ReviewID, Staff);
            objReview.EditReview(ReviewID);
            DisableButton("All");
        }
Beispiel #2
0
        private void addReview()
        {
            staffAddReview objReview = new staffAddReview();

            objReview.CancelControl += new CancelStaff(CancelControlStaff);
            objReview.EnableButton  += new Enable(EnableButton);

            if (Role == "Stf")
            {
                LoadControl(objReview, "staffActivityLog");
            }
            else
            {
                LoadControl(objReview, "ConsumerList");
            }

            objReview.LoadControl(ConsumerID, Consumer, Staff);
            butAddReview.Enabled     = false;
            butMonthlyReport.Enabled = false;
            butDailyReport.Enabled   = false;
        }