コード例 #1
0
        private void initDash()
        {
            AdministrationDAC dac = new AdministrationDAC();

            int actCount = dac.RetrieveActivitiesCount((int)SystemConstants.ActivityStatus.Active, true) + dac.RetrieveActivitiesCount((int)SystemConstants.ActivityStatus.WillExpire, true);

            lblApprovedActivity.Text = actCount.ToString();
            lblDeletedAct.Text       = dac.RetrieveActivitiesCount((int)SystemConstants.ActivityStatus.Deleting, true).ToString();
            lblTotalActivity.Text    = dac.RetrieveActivitiesCount().ToString();
            //lblApprovedActivity.Text = dac.RetrieveApprovedActivitiesCount().ToString();
            lblCat.Text             = dac.RetrieveCategoriesCount().ToString();
            lblMember.Text          = dac.RetrieveCustomerListCount("").ToString();
            lblProviders.Text       = dac.RetrieveProviderListCount("").ToString();
            lblWaitingActivity.Text = dac.RetrievePendingActivitiesCount().ToString();
            lblExpiredAct.Text      = dac.RetrieveActivitiesCount((int)SystemConstants.ActivityStatus.Expired, true).ToString();

            try
            {
                lblstat.Text = VisitsNumber();
            }
            catch (Exception ex)
            {
                lblstat.Text  = "ERR";
                lblerror.Text = ex.Message;
            }
        }