Пример #1
0
        private void GetListQueryData()
        {
            bsMain.EndEdit();

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

            GetQueryMain();

            ChensControl.DividPage clientPage = pageList.dDividPage;
            Common.Common_Func.GetServerPageFromClientPage(ref _serverMainPage, clientPage);
            bResult = Query_Func.GetTaskTransListByPage(ref lstMain, queryMain, ref _serverMainPage, ref strErr);
            Common.Common_Func.GetClientPageFromServerPage(_serverMainPage, ref clientPage);
            pageList.ShowPage();
            //添加总计
            TaskTransInfo sum_info = new TaskTransInfo();

            foreach (TaskTransInfo tt_info in lstMain)
            {
                sum_info.Qty += tt_info.Qty;
            }
            sum_info.MaterialDesc = "总计";
            lstMain.Add(sum_info);
            dgvList.DataSource = lstMain;

            if (!bResult || !string.IsNullOrEmpty(strErr))
            {
                Common.Common_Func.ErrorMessage(strErr, "查询失败");
            }
            txtFromWarehouseNo.Focus();
        }
Пример #2
0
        private void GetListQueryData()
        {
            bsMain.EndEdit();

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

            GetQueryMain();

            ChensControl.DividPage clientPage = pageList.dDividPage;
            Common.Common_Func.GetServerPageFromClientPage(ref _serverMainPage, clientPage);
            bResult = Query_Func.GetStockListByPage(ref lstMain, queryMain, ref _serverMainPage, ref strErr);
            Common.Common_Func.GetClientPageFromServerPage(_serverMainPage, ref clientPage);
            pageList.ShowPage();
            //添加总计
            Stock_Model sum_model = new Stock_Model();

            foreach (Stock_Model st_model in lstMain)
            {
                sum_model.Qty += st_model.Qty;
            }
            sum_model.AreaName = "总计";
            lstMain.Add(sum_model);
            dgvList.DataSource = lstMain;

            if (!bResult || !string.IsNullOrEmpty(strErr))
            {
                Common.Common_Func.ErrorMessage(strErr, "查询失败");
            }
            txtWarehouseNo.Focus();
        }
Пример #3
0
        private void GetListQueryData()
        {
            bsMain.EndEdit();

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

            GetQueryMain();

            if (queryMain.StartTime != null && queryMain.EndTime != null)
            {
                if (queryMain.StartTime.ToDateTime().Date > queryMain.EndTime.ToDateTime().Date)
                {
                    Common.Common_Func.ErrorMessage("开始日期不能大于结束日期", "查询失败");
                    return;
                }
            }

            ChensControl.DividPage clientPage = pageList.dDividPage;
            Common.Common_Func.GetServerPageFromClientPage(ref _serverMainPage, clientPage);
            bResult = Query_Func.GetPrintRecordListByPage(ref lstMain, queryMain, ref _serverMainPage, ref strErr);
            Common.Common_Func.GetClientPageFromServerPage(_serverMainPage, ref clientPage);
            pageList.ShowPage();
            dgvList.DataSource = lstMain;

            if (!bResult || !string.IsNullOrEmpty(strErr))
            {
                Common.Common_Func.ErrorMessage(strErr, "查询失败");
            }
            txtSUPCODE.Focus();
        }
Пример #4
0
        private void GetListQueryData()
        {
            bsMain.EndEdit();

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

            GetQueryMain();

            ChensControl.DividPage clientPage = pageList.dDividPage;
            Common.Common_Func.GetServerPageFromClientPage(ref _serverMainPage, clientPage);
            bResult = Query_Func.GetTaskTransListByPage(ref lstMain, queryMain, ref _serverMainPage, ref strErr);
            Common.Common_Func.GetClientPageFromServerPage(_serverMainPage, ref clientPage);
            pageList.ShowPage();
            dgvList.DataSource = lstMain;

            if (!bResult || !string.IsNullOrEmpty(strErr))
            {
                Common.Common_Func.ErrorMessage(strErr, "查询失败");
            }
            txtFromWarehouseNo.Focus();
        }
Пример #5
0
 private void BindComboboxs()
 {
     Common.Common_Func.BindComboBoxAddAll(Query_Func.GetOrderType(), cbbVoucherType);
 }