Пример #1
0
        /// <summary>
        /// 返回销售订单SaleOrderDTOData
        /// </summary>
        /// <param name="so">销售订单单头</param>
        /// <returns></returns>
        private List <UFIDA.U9.ISV.SM.SaleOrderDTOData> QuerySOByDocNo(long so)
        {
            UFIDA.U9.ISV.SM.Proxy.CommonQuerySOSRVProxy querySv = new ISV.SM.Proxy.CommonQuerySOSRVProxy();
            List <UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTOData> queryDtos = new List <UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTOData>();

            UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTOData queryDto = new UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTOData();
            queryDto.ID = so;
            queryDtos.Add(queryDto);

            querySv.SOs           = queryDtos;
            querySv.TargetOrgCode = Context.LoginOrg.Code;
            List <UFIDA.U9.ISV.SM.SaleOrderDTOData> dtoList = querySv.Do();

            return(dtoList);
        }
Пример #2
0
        private static List <UFIDA.U9.ISV.SM.SaleOrderDTOData> QuerySOByDocNo(SoOrderSaleBE.SoOrderSaleHead saleHead)
        {
            UFIDA.U9.ISV.SM.Proxy.CommonQuerySOSRVProxy querySv = new ISV.SM.Proxy.CommonQuerySOSRVProxy();
            List <UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTOData> queryDtos = new List <CBO.Pub.Controller.CommonArchiveDataDTOData>();

            UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTOData queryDto = new CBO.Pub.Controller.CommonArchiveDataDTOData();
            queryDto.Code = saleHead.SourceOrderID.DocNo;
            queryDto.ID   = saleHead.SourceOrderID.ID;
            queryDtos.Add(queryDto);

            querySv.SOs = queryDtos;
            // 本组织不需要传组织信息
            //querySv.TargetOrgCode = Context.LoginOrg.Code;
            List <UFIDA.U9.ISV.SM.SaleOrderDTOData> dtoList = querySv.Do();

            return(dtoList);
        }