// リスト取得コールバック呼出
        public override void DataSelect(int intKbn, object objList)
        {
            if ((ExWebService.geWebServiceCallKbn)intKbn == this.WebServiceCallKbn)
            {
                if (objList != null)
                {
                    entityList = (ObservableCollection<EntityInvoiceClose>)objList;
                    var records =
                         (from n in entityList
                          orderby n._invoice_yyyymmdd descending, n._no descending
                          select new { n._receipt_receivable_kbn_nm,
                                       n._invoice_print_flg_nm,
                                       n._invoice_kbn_nm,
                                       n._no,
                                       n._invoice_yyyymmdd, 
                                       n._invoice_id, 
                                       n._invoice_nm, 
                                       n._before_invoice_price, 
                                       n._receipt_price, 
                                       n._transfer_price,
                                       n._no_tax_sales_price, 
                                       n._tax, 
                                       n._invoice_price,
                                       n._this_receipt_price,
                                       n._invoice_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._invoice_id, Common.gintidFigureCustomer);
                        if (ExCast.zCLng(_no) == 0) _no = "";

                        DisplayInvoiceList _entity = new DisplayInvoiceList();

                        _entity.exec_flg = false;
                        _entity.receipt_receivable_kbn_nm = rec._receipt_receivable_kbn_nm;
                        _entity.invoice_print_flg_nm = rec._invoice_print_flg_nm;
                        _entity.invoice_kbn_nm = rec._invoice_kbn_nm;
                        _entity.no = rec._no;
                        _entity.invoice_yyyymmdd = rec._invoice_yyyymmdd;
                        _entity.invoice_id = rec._invoice_id;
                        _entity.invoice_nm = rec._invoice_nm;
                        _entity.before_invoice_price = rec._before_invoice_price;
                        _entity.receipt_price = rec._receipt_price;
                        _entity.transfer_price = rec._transfer_price;
                        _entity.no_tax_sales_price = rec._no_tax_sales_price;
                        _entity.tax = rec._tax;
                        _entity.invoice_price = rec._invoice_price;
                        _entity.this_receipt_price = rec._this_receipt_price;
                        _entity.invoice_zan_price = rec._invoice_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.utlInvoiceNo_F.txtID, 10);
                }
            }
        }
        // リスト取得コールバック呼出
        public override void DataSelect(int intKbn, object objList)
        {
            if ((ExWebService.geWebServiceCallKbn)intKbn == this.WebServiceCallKbn)
            {
                if (objList != null)
                {
                    entityList = (ObservableCollection <EntityInvoiceClose>)objList;
                    var records =
                        (from n in entityList
                         orderby n._invoice_yyyymmdd descending, n._no descending
                         select new { n._receipt_receivable_kbn_nm,
                                      n._invoice_print_flg_nm,
                                      n._invoice_kbn_nm,
                                      n._no,
                                      n._invoice_yyyymmdd,
                                      n._invoice_id,
                                      n._invoice_nm,
                                      n._before_invoice_price,
                                      n._receipt_price,
                                      n._transfer_price,
                                      n._no_tax_sales_price,
                                      n._tax,
                                      n._invoice_price,
                                      n._this_receipt_price,
                                      n._invoice_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._invoice_id, Common.gintidFigureCustomer);
                        if (ExCast.zCLng(_no) == 0)
                        {
                            _no = "";
                        }

                        DisplayInvoiceList _entity = new DisplayInvoiceList();

                        _entity.exec_flg = false;
                        _entity.receipt_receivable_kbn_nm = rec._receipt_receivable_kbn_nm;
                        _entity.invoice_print_flg_nm      = rec._invoice_print_flg_nm;
                        _entity.invoice_kbn_nm            = rec._invoice_kbn_nm;
                        _entity.no = rec._no;
                        _entity.invoice_yyyymmdd     = rec._invoice_yyyymmdd;
                        _entity.invoice_id           = rec._invoice_id;
                        _entity.invoice_nm           = rec._invoice_nm;
                        _entity.before_invoice_price = rec._before_invoice_price;
                        _entity.receipt_price        = rec._receipt_price;
                        _entity.transfer_price       = rec._transfer_price;
                        _entity.no_tax_sales_price   = rec._no_tax_sales_price;
                        _entity.tax                = rec._tax;
                        _entity.invoice_price      = rec._invoice_price;
                        _entity.this_receipt_price = rec._this_receipt_price;
                        _entity.invoice_zan_price  = rec._invoice_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.utlInvoiceNo_F.txtID, 10);
                }
            }
        }