コード例 #1
0
ファイル: QueryWhQohStub.cs プロジェクト: jobhesc/u9_jsdy
        //[OperationBehavior]
        public List <UFIDA.U9.Cust.JSDY.BarCode.WhQohInfoDTOData> DoEx(ICommonDataContract commonData, System.String itemID, System.String segLength)
        {
            this.CommonData = commonData;
            try
            {
                BeforeInvoke("UFIDA.U9.Cust.JSDY.BarCode.QueryWhQoh");
                QueryWhQoh objectRef = new QueryWhQoh();

                objectRef.ItemID    = itemID;
                objectRef.SegLength = segLength;

                //处理返回类型.
                List <UFIDA.U9.Cust.JSDY.BarCode.WhQohInfoDTO> result = objectRef.Do();

                if (result == null)
                {
                    return(null);
                }

                List <UFIDA.U9.Cust.JSDY.BarCode.WhQohInfoDTOData> listEntityList = new List <UFIDA.U9.Cust.JSDY.BarCode.WhQohInfoDTOData>();
                foreach (UFIDA.U9.Cust.JSDY.BarCode.WhQohInfoDTO obj in result)
                {
                    if (obj == null)
                    {
                        continue;
                    }

                    UFIDA.U9.Cust.JSDY.BarCode.WhQohInfoDTOData resultdata = obj.ToEntityData();
                    listEntityList.Add(resultdata);
                }
                DoSerializeKey(listEntityList, "UFIDA.U9.Cust.JSDY.BarCode.QueryWhQoh");
                return(listEntityList);
            }
            catch (System.Exception e)
            {
                DealException(e);
                throw;
            }
            finally
            {
                FinallyInvoke("UFIDA.U9.Cust.JSDY.BarCode.QueryWhQoh");
            }
        }