コード例 #1
0
ファイル: FrmCheckProfitLoss.cs プロジェクト: saiganmei/xcxl
        private void InitMainQuery()
        {
            _serverMainPage = new DividPage();
            queryMain       = new ProfitLossInfo();
            lstMain         = new List <ProfitLossInfo>();
            if (_detail == null)
            {
                _detail = new CheckDetailsInfo();
            }

            pageList.GetShowCountsByDGV(dgvList);
        }
コード例 #2
0
ファイル: FrmCheckProfitLoss.cs プロジェクト: saiganmei/xcxl
 private void GetQueryMain()
 {
     if (queryMain == null)
     {
         queryMain = new ProfitLossInfo();
     }
     queryMain.CheckID     = _detail.CheckID;
     queryMain.WarehouseNo = _detail.WarehouseNo;
     queryMain.HouseNo     = _detail.HouseNo;
     queryMain.AreaNo      = _detail.AreaNo;
     queryMain.MaterialNo  = _detail.MaterialNo;
 }
コード例 #3
0
ファイル: FrmCheckAnalyse.cs プロジェクト: xcxlTeam/xcxl
        private bool GetExportDetailData(ref List <ProfitLossInfo> lstExport)
        {
            bsMain.EndEdit();

            string strErrMsg = string.Empty;

            lstExport = new List <ProfitLossInfo>();
            ProfitLossInfo queryExport = new ProfitLossInfo();

            try
            {
                this.Cursor = Cursors.WaitCursor;

                queryExport.CheckID = queryMain.CheckID;
                //queryExport.AreaNo = queryMain.AreaNo;
                //queryExport.ProfitLoss = queryMain.ProfitLoss;

                DividPage serverPage = new DividPage();
                serverPage.CurrentPageNumber     = 1;
                serverPage.CurrentPageShowCounts = -1;

                if (!Check_Func.GetProfitLossListByPage(ref lstExport, queryExport, ref serverPage, ref strErrMsg))
                {
                    Common.Common_Func.ErrorMessage(strErrMsg, "导出失败", 2);
                    return(false);
                }

                lstExport.ForEach(t => t.CheckNo = _check.CheckNo);
                return(true);
            }
            catch (Exception ex)
            {
                Common.Common_Func.ErrorMessage(ex.Message, "导出失败", 2);
                return(false);
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }
コード例 #4
0
ファイル: Check_Func.cs プロジェクト: saiganmei/xcxl
 public static bool GetProfitLossListByPage(ref List <ProfitLossInfo> modelList, ProfitLossInfo model, ref DividPage page, ref string strError)
 {
     return(WMSWebService.service.GetProfitLossListByPage(ref modelList, model, ref page, Common_Var.CurrentUser, ref strError));
 }