Example #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();
        }
Example #2
0
        private void InitMainQuery()
        {
            _serverMainPage = new DividPage();
            queryMain = new TaskTransInfo();
            lstMain = new List<TaskTransInfo>();

            pageList.GetShowCountsByDGV(dgvList);
        }
Example #3
0
 private void GetQueryMain()
 {
     if (queryMain == null)
     {
         queryMain = new TaskTransInfo();
     }
     queryMain.TaskDetail_ID = _detail.ID;
 }
Example #4
0
        private void InitMainQuery()
        {
            _serverMainPage = new DividPage();
            queryMain       = new TaskTransInfo();
            lstMain         = new List <TaskTransInfo>();

            pageList.GetShowCountsByDGV(dgvList);
            bsMain.DataSource = queryMain;

            if (Common.Common_Func.IsWarehouseUserNo(Common.Common_Var.CurrentUser.UserNo))
            {
                queryMain.FromWarehouseNo = Common.Common_Var.CurrentUser.UserNo.Substring(0, 1);
            }
        }
Example #5
0
 private void GetQueryMain()
 {
     if (queryMain == null)
     {
         queryMain = new TaskTransInfo(); bsMain.DataSource = queryMain;
     }
     queryMain.TaskType = 3;
     if (dtpStartTime.Checked)
     {
         queryMain.StartTime = dtpStartTime.Value;
     }
     else
     {
         queryMain.StartTime = null;
     }
     if (dtpEndTime.Checked)
     {
         queryMain.EndTime = dtpEndTime.Value;
     }
     else
     {
         queryMain.EndTime = null;
     }
 }
Example #6
0
 private void GetQueryMain()
 {
     if (queryMain == null)
     {
         queryMain = new TaskTransInfo(); bsMain.DataSource = queryMain;
     }
     queryMain.TaskType = 2;
     if (dtpStartTime.Checked)
     {
         queryMain.StartTime = new DateTime(dtpStartTime.Value.Year, dtpStartTime.Value.Month, dtpStartTime.Value.Day);
     }
     else
     {
         queryMain.StartTime = null;
     }
     if (dtpEndTime.Checked)
     {
         queryMain.EndTime = new DateTime(dtpEndTime.Value.Year, dtpEndTime.Value.Month, dtpEndTime.Value.Day);
     }
     else
     {
         queryMain.EndTime = null;
     }
 }
Example #7
0
 public static bool GetTaskTransListByPage(ref List <TaskTransInfo> modelList, TaskTransInfo model, ref DividPage page, ref string strError)
 {
     return(WMSWebService.service.GetTaskTransListByPage(ref modelList, model, ref page, Common_Var.CurrentUser, ref strError));
 }