Beispiel #1
0
        private void BtnQuery_Click(object sender, EventArgs e)
        {
            int pageNum  = Convert.ToInt16(txtPageNum.Text);
            int pageSize = Convert.ToInt16(txtPageSize.Text);

            dgvData.DataSource = null;
            Application.DoEvents();
            EPoStatus poStatus = (EPoStatus)cbPoStatus.SelectedIndex;

            EPoSubType       subType        = (EPoSubType)cbPoSubType.SelectedIndex;
            EShipmentStatus  shipmentStatus = (EShipmentStatus)cbShipmentStatus.SelectedIndex;
            PoLineListOutput poLine         = bll.GetPoLineList(pageNum, poStatus, subType, shipmentStatus, pageSize);

            if (poLine != null)
            {
                totalPages        = poLine.PageVO.TotalPages;
                lbTotalPages.Text = "/" + totalPages;
                txtTotalRows.Text = poLine.PageVO.TotalRows.ToString();

                dgvData.DataSource = poLine.Result;
            }
        }
Beispiel #2
0
        /// <summary>
        /// 查询华为订单
        /// </summary>
        /// <param name="pageNum">第几页。由于总页数未知,可以从第1页遍历到第n页,当查不出数据时就是最后一页</param>
        /// <param name="poStatus">PO签返标志</param>
        /// <param name="poSubType">PO业务领域</param>
        /// <param name="shipmentStatus">订单状态</param>
        /// <param name="pageSize">每页条数</param>
        /// <returns>PoLineListOutput订单查询输出参数,其中PageVO包含由数据数量信息,Results包含返回的数据集</returns>
        public PoLineListOutput GetPoLineList(int pageNum, EPoStatus poStatus = EPoStatus.all, EPoSubType poSubType = EPoSubType.P, EShipmentStatus shipmentStatus = EShipmentStatus.all, int pageSize = 100)
        {
            PoLineListInput param = new PoLineListInput
            {
                poStatus       = poStatus.ToString(),
                poSubType      = poSubType.ToString(),
                shipmentStatus = shipmentStatus.ToString()
            };

            PoLineListOutput output = dal.GetPoLineList(param, pageNum, pageSize);

            return(output);
        }