// リスト取得コールバック呼出
        public override void DataSelect(int intKbn, object objList)
        {
            if ((ExWebService.geWebServiceCallKbn)intKbn == this.WebServiceCallKbn)
            {
                if (objList != null)
                {
                    entityList = (ObservableCollection<EntityPaymentClose>)objList;
                    var records =
                         (from n in entityList
                          orderby n._payment_close_yyyymmdd descending, n._no descending
                          select new { n._payment_cash_receivable_kbn_nm,
                                       n._payment_print_flg_nm,
                                       n._payment_kbn_nm,
                                       n._no,
                                       n._payment_close_yyyymmdd, 
                                       n._purchase_id, 
                                       n._purchase_nm, 
                                       n._before_payment_price, 
                                       n._payment_cash_price, 
                                       n._transfer_price,
                                       n._no_tax_purchase_price, 
                                       n._tax, 
                                       n._payment_price,
                                       n._this_payment_cash_price,
                                       n._payment_zan_price}).Distinct();

                    this.lst.Clear();
                    foreach (var rec in records)
                    {
                        string _no = ExCast.zFormatForID(rec._no, Common.gintidFigureSlipNo);
                        string _invoice_id = ExCast.zFormatForID(rec._purchase_id, Common.gintidFigureCustomer);
                        if (ExCast.zCLng(_no) == 0) _no = "";

                        DisplayPaymentList _entity = new DisplayPaymentList();

                        _entity.exec_flg = false;
                        _entity.payment_receivable_kbn_nm = rec._payment_cash_receivable_kbn_nm;
                        _entity.payment_print_flg_nm = rec._payment_print_flg_nm;
                        //_entity.invoice_kbn_nm = rec._invoice_kbn_nm;
                        _entity.no = rec._no;
                        _entity.payment_yyyymmdd = rec._payment_close_yyyymmdd;
                        _entity.purchase_id = rec._purchase_id;
                        _entity.purchase_nm = rec._purchase_nm;
                        _entity.before_payment_price = rec._before_payment_price;
                        _entity.payment_cash_price = rec._payment_cash_price;
                        _entity.transfer_price = rec._transfer_price;
                        _entity.no_tax_purchase_price = rec._no_tax_purchase_price;
                        _entity.tax = rec._tax;
                        _entity.payment_price = rec._payment_price;
                        _entity.this_payment_cash_price = rec._this_payment_cash_price;
                        _entity.payment_zan_price = rec._payment_zan_price;

                        lst.Add(_entity);
                    }

                    this.dgPrint.Focus();
                    this.dgPrint.ItemsSource = null;
                    this.dgPrint.ItemsSource = lst;
                    this.dgSelect.ItemsSource = null;
                    this.dgSelect.ItemsSource = lst;
                    if (lst.Count > 0)
                    {
                        this.dgPrint.SelectedIndex = 0;
                    }
                    ExBackgroundWorker.DoWork_Focus(this.dgSelect, 10);
                }
                else
                {
                    entityList = null;
                    this.lst.Clear();
                    this.dgPrint.ItemsSource = null;
                    this.dgSelect.ItemsSource = null;
                    ExBackgroundWorker.DoWork_Focus(this.utlPaymentNo_F.txtID, 10);
                }
            }
        }
        // リスト取得コールバック呼出
        public override void DataSelect(int intKbn, object objList)
        {
            if ((ExWebService.geWebServiceCallKbn)intKbn == this.WebServiceCallKbn)
            {
                if (objList != null)
                {
                    entityList = (ObservableCollection <EntityPaymentClose>)objList;
                    var records =
                        (from n in entityList
                         orderby n._payment_close_yyyymmdd descending, n._no descending
                         select new { n._payment_cash_receivable_kbn_nm,
                                      n._payment_print_flg_nm,
                                      n._payment_kbn_nm,
                                      n._no,
                                      n._payment_close_yyyymmdd,
                                      n._purchase_id,
                                      n._purchase_nm,
                                      n._before_payment_price,
                                      n._payment_cash_price,
                                      n._transfer_price,
                                      n._no_tax_purchase_price,
                                      n._tax,
                                      n._payment_price,
                                      n._this_payment_cash_price,
                                      n._payment_zan_price }).Distinct();

                    this.lst.Clear();
                    foreach (var rec in records)
                    {
                        string _no         = ExCast.zFormatForID(rec._no, Common.gintidFigureSlipNo);
                        string _invoice_id = ExCast.zFormatForID(rec._purchase_id, Common.gintidFigureCustomer);
                        if (ExCast.zCLng(_no) == 0)
                        {
                            _no = "";
                        }

                        DisplayPaymentList _entity = new DisplayPaymentList();

                        _entity.exec_flg = false;
                        _entity.payment_receivable_kbn_nm = rec._payment_cash_receivable_kbn_nm;
                        _entity.payment_print_flg_nm      = rec._payment_print_flg_nm;
                        //_entity.invoice_kbn_nm = rec._invoice_kbn_nm;
                        _entity.no = rec._no;
                        _entity.payment_yyyymmdd      = rec._payment_close_yyyymmdd;
                        _entity.purchase_id           = rec._purchase_id;
                        _entity.purchase_nm           = rec._purchase_nm;
                        _entity.before_payment_price  = rec._before_payment_price;
                        _entity.payment_cash_price    = rec._payment_cash_price;
                        _entity.transfer_price        = rec._transfer_price;
                        _entity.no_tax_purchase_price = rec._no_tax_purchase_price;
                        _entity.tax                     = rec._tax;
                        _entity.payment_price           = rec._payment_price;
                        _entity.this_payment_cash_price = rec._this_payment_cash_price;
                        _entity.payment_zan_price       = rec._payment_zan_price;

                        lst.Add(_entity);
                    }

                    this.dgPrint.Focus();
                    this.dgPrint.ItemsSource  = null;
                    this.dgPrint.ItemsSource  = lst;
                    this.dgSelect.ItemsSource = null;
                    this.dgSelect.ItemsSource = lst;
                    if (lst.Count > 0)
                    {
                        this.dgPrint.SelectedIndex = 0;
                    }
                    ExBackgroundWorker.DoWork_Focus(this.dgSelect, 10);
                }
                else
                {
                    entityList = null;
                    this.lst.Clear();
                    this.dgPrint.ItemsSource  = null;
                    this.dgSelect.ItemsSource = null;
                    ExBackgroundWorker.DoWork_Focus(this.utlPaymentNo_F.txtID, 10);
                }
            }
        }