示例#1
0
        /// <summary>
        /// 导出付款单列表
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dgPayItemQueryResult_ExportAllClick(object sender, EventArgs e)
        {
            if (lastQueryVM == null || this.dgPayItemQueryResult.TotalCount <= 0)
            {
                Window.Alert(ResCommon.Message_NoData2Export);
                return;
            }
            ColumnSet col = new ColumnSet(this.dgPayItemQueryResult);

            col.Insert(15, "InvoiceUpdate", ResPayItemQuery.Grid_InvoiceUpdate);
            col.SetFormat("EstimatePayTime", ConstValue.Invoice_ShortTimeFormat);
            facade.ExportExcelFile(lastQueryVM, new ColumnSet[] { col });
        }