Example #1
0
        private void GetListQueryData()
        {
            bsMain.EndEdit();

            bool   bResult  = false;
            string strError = string.Empty;

            GetQueryMain();

            bResult = Print_Func.GetPrintInfo(_type, queryMain, ref lstMain, ref strError);
            //ChensControl.DividPage clientPage = pageList.dDividPage;
            //Common.Common_Func.GetServerPageFromClientPage(ref _serverMainPage, clientPage);
            //bResult = Print_Func.GetPrintInfo(ref lstMain, queryMain, ref _serverMainPage, ref strError);
            //Common.Common_Func.GetClientPageFromServerPage(_serverMainPage, ref clientPage);
            //pageList.ShowPage();
            dgvList.DataSource = lstMain;

            if (!bResult || !string.IsNullOrEmpty(strError))
            {
                Common.Common_Func.ErrorMessage(strError, "查询失败");
            }

            if (bResult)
            {
                SetBarcodeParameter(0);
            }
            else
            {
                txtVoucherNo.Focus();
                txtVoucherNo.SelectAll();
            }
        }