BKI_DichVuMatDat.BaoCao.F460_DANH_SACH_NHAN_VIEN_DANG_HOAT_DONG_O_CONG_TY.m_grv_v_nhan_vien_dang_hoat_dong_CustomSummaryCalculate C# (CSharp) Method

m_grv_v_nhan_vien_dang_hoat_dong_CustomSummaryCalculate() private method

private m_grv_v_nhan_vien_dang_hoat_dong_CustomSummaryCalculate ( object sender, DevExpress e ) : void
sender object
e DevExpress
return void
        void m_grv_v_nhan_vien_dang_hoat_dong_CustomSummaryCalculate(object sender, DevExpress.Data.CustomSummaryEventArgs e)
        {
            try
            {
                GridView view = sender as GridView;
                summaryColumnID = Convert.ToInt16((e.Item as GridGroupSummaryItem).Tag);

                if (e.SummaryProcess == DevExpress.Data.CustomSummaryProcess.Start)
                {
                    so_lao_dong = 0;
                }
                if (e.SummaryProcess == DevExpress.Data.CustomSummaryProcess.Calculate)
                {
                    switch (summaryColumnID)
                    {
                        case 1:
                            so_lao_dong++;
                            break;
                    }
                }
                if (e.SummaryProcess == DevExpress.Data.CustomSummaryProcess.Finalize)
                {
                    switch (summaryColumnID)
                    {
                        case 1:
                            e.TotalValue = so_lao_dong;
                            break;
                    }
                }
            }
            catch (Exception v_e)
            {
                CSystemLog_301.ExceptionHandle(v_e);
            }
        }