/// <summary>
        /// 导出卡号
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnExport_Click(object sender, RoutedEventArgs e)
        {
            //CreateGiftCardInfoList

            //ResetGiftCardFabrication
            //GiftCardFabricationMaster item = new GiftCardFabricationMaster();
            //item = VM.ConvertVM<GiftCardFabricationVM, GiftCardFabricationMaster>();
            //foreach (GiftCardFabricationItemVM gift in gridVM)
            //{
            //    item.GiftCardFabricationList.Add(gift.ConvertVM <GiftCardFabricationItemVM, GiftCardFabrication>());
            //}

            facade.GetAddGiftCardInfoList(VM.SysNo.Value, (obj, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }

                if (args.Result)
                {
                    ColumnSet col = new ColumnSet();
                    col.Insert(0, "TransactionNumber", ResGiftCardInfo.Column_SysNo);
                    col.Insert(1, "Code", ResGiftCardInfo.Column_CardSysNo);
                    col.Insert(2, "Password", ResGiftCardInfo.Column_Password);
                    col.Insert(3, "BarCode", ResGiftCardInfo.Column_BarCard);
                    col.Insert(4, "TotalAmount", ResGiftCardInfo.Column_Amount);
                    facade.ExportGiftCardExcelFile(VM.SysNo.Value, new ColumnSet[] { col });

                    if (Dialog != null)
                    {
                        Dialog.ResultArgs.Data         = null;
                        Dialog.ResultArgs.DialogResult = DialogResultType.OK;
                        Dialog.Close();
                    }
                }
                else
                {
                    CPApplication.Current.CurrentPage.Context.Window.Alert(ResGiftCardInfo.Information_GiftCardIsInProcess, MessageType.Warning);
                }
                //??????????
                //facade.ResetGiftCardFabrication(item.SysNo.Value, (obj2, args2) =>
                //{
                //    if (args2.FaultsHandle())
                //        return;

                //    CPApplication.Current.CurrentPage.Context.Window.Alert("操作成功!", MessageType.Information);
                //});
            });
        }