示例#1
0
        //[OperationBehavior]
        public System.String DoEx(ICommonDataContract commonData, System.String itemCode, System.Int32 segLength, System.String operatorCode, System.DateTime businessDate)
        {
            this.CommonData = commonData;
            try
            {
                BeforeInvoke("UFIDA.U9.Cust.JSDY.BarCode.GetBaseBarCode");
                GetBaseBarCode objectRef = new GetBaseBarCode();

                objectRef.ItemCode     = itemCode;
                objectRef.SegLength    = segLength;
                objectRef.OperatorCode = operatorCode;
                objectRef.BusinessDate = businessDate;

                //处理返回类型.
                System.String result = objectRef.Do();
                return(result);

                return(result);
            }
            catch (System.Exception e)
            {
                DealException(e);
                throw;
            }
            finally
            {
                FinallyInvoke("UFIDA.U9.Cust.JSDY.BarCode.GetBaseBarCode");
            }
        }
示例#2
0
        public override object Do(object obj)
        {
            GetBaseBarCode bpObj = (GetBaseBarCode)obj;

            return(ProductBarCode.GetBaseBarCode(bpObj.ItemCode, bpObj.SegLength, bpObj.BusinessDate, bpObj.OperatorCode));
        }