示例#1
0
        protected void LoadData()
        {
            CreateWaitDialog("正在查询...", "请稍等");

            List <PersonalTax> rows = PersonalTax.GetPersonalTaxList(Convert.ToInt32(year.Value), Convert.ToInt32(month.Text), (string)ccb发放单位.EditValue);

            //排序
            rows = rows.OrderBy(a => a.表工资.财务公司).ThenBy(a => a.表工资.财务部门序号).ThenBy(a => a.表工资.员工序号).ToList();

            CreateWaitDialog("正在加载...", "请稍等");

            CloseWaitDialog();
            gridControl1.DataSource = rows;
            gridControl1.RefreshDataSource();
            gridView1.ExpandAllGroups();

            btn导出.Enabled = true;
        }
        protected void LoadData()
        {
            CreateWaitDialog("正在查询...", "请稍等");

            List <PersonalTax> rows = PersonalTax.GetPersonalTaxList(Convert.ToInt32(year.Value), Convert.ToInt32(month.Text), (string)ccb发放单位.EditValue);

            //排序
            rows = rows.OrderBy(a => a.表工资.财务公司).ThenBy(a => a.表工资.财务部门序号).ThenBy(a => a.表工资.员工序号).ToList();

            CreateWaitDialog("正在加载...", "请稍等");
            report.工资表        = rows;
            report.DataSource = rows;
            report.GetTotalTax();
            report.CreateDocument(false);

            CloseWaitDialog();
            当前期间 = String.Format("{0}年{1}", year.Value, month.Text) + "月";
        }