Beispiel #1
0
 public ResultStatus CreateParametricData(
     ChangeQty changeQty,
     ChangeQty_Request request,
     out ChangeQty_Result result)
 {
     return(this.CreateParametricData(changeQty, (ChangeQty_Parameters)null, request, out result));
 }
Beispiel #2
0
 public ResultStatus GetActions(
     ChangeQty changeQty,
     ChangeQty_Request request,
     out ChangeQty_Result result)
 {
     return(this.GetActions(changeQty, (ChangeQty_Parameters)null, request, out result));
 }
Beispiel #3
0
 public ResultStatus ProcessComputation(
     ChangeQty changeQty,
     ChangeQty_Request request,
     out ChangeQty_Result result)
 {
     return(this.ProcessComputation(changeQty, (ChangeQty_Parameters)null, request, out result));
 }
Beispiel #4
0
 public ResultStatus LoadESigDetails(
     ChangeQty changeQty,
     ChangeQty_Request request,
     out ChangeQty_Result result)
 {
     return(this.LoadESigDetails(changeQty, (ChangeQty_LoadESigDetails_Parameters)null, request, out result));
 }
Beispiel #5
0
 public ResultStatus GetEnvironment(
     ChangeQty cdo,
     ChangeQty_Request request,
     out ChangeQty_Result result)
 {
     result = (ChangeQty_Result)null;
     try
     {
         return(((IChangeQtyService)this._Channel).GetEnvironment(this._UserProfile, cdo, request, out result));
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
Beispiel #6
0
        public ResultStatus AddDataTransaction(ChangeQty cdo)
        {
            this.OnBeforeCall(nameof(AddDataTransaction), (DCObject)cdo, (Parameters)null, (Request)null);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? this.GetAddDataTransactionException() : this.AddMethod((Method) new ChangeQtyMethod(cdo, ChangeQtyMethods.AddDataTransaction, (ChangeQty_Parameters)null));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                Result result;
                this.OnAfterCall(nameof(AddDataTransaction), res, (DCObject)cdo, (Parameters)null, (Request)null, result);
            }
            return(res);
        }
Beispiel #7
0
        public override void Encode()
        {
            encodeBuf.Clear();

            encodeBuf.AddRange(AddString(LineId, 2));
            encodeBuf.AddRange(AddString(StationId, 4));
            encodeBuf.AddRange(AddString(OperatorId, 6));
            encodeBuf.AddRange(AddString(DoublePrivilegeId, 6));
            encodeBuf.AddRange(AddString(OperateTime, 14));
            encodeBuf.AddRange(AddString(OperateType, 2));
            encodeBuf.AddRange(AddString(StoreType, 4));
            encodeBuf.AddRange(AddString(TicketType, 4));
            encodeBuf.AddRange(AddString(TicketStatus, 2));

            encodeBuf.AddRange(AddString(ChangeQty.PadLeft(8, '0'), 8));
            encodeBuf.AddRange(AddString(RemainQty.PadLeft(8, '0'), 8));

            encodeBuf.AddRange(AddString(ShiftId.PadLeft(10, ' '), 10));
            encodeBuf.AddRange(AddString(DeviceId.PadLeft(8, ' '), 8));
            encodeBuf.AddRange(AddString(ShiftFlag.PadLeft(2, ' '), 2));
        }
Beispiel #8
0
        public ResultStatus ExecuteTransaction(
            ChangeQty cdo,
            ChangeQty_Request request,
            out ChangeQty_Result result)
        {
            result = (ChangeQty_Result)null;
            this.OnBeforeCall(nameof(ExecuteTransaction), (DCObject)cdo, (Parameters)null, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IChangeQtyService)this._Channel).ExecuteTransaction(this._UserProfile, cdo, request, out result) : this.AddMethod((Method) new ChangeQtyMethod(cdo, ChangeQtyMethods.ExecuteTransaction, (ChangeQty_Parameters)null));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(ExecuteTransaction), res, (DCObject)cdo, (Parameters)null, (Request)request, (Result)result);
            }
            return(res);
        }
Beispiel #9
0
        public ResultStatus GetActions(
            ChangeQty changeQty,
            ChangeQty_Parameters parameters,
            ChangeQty_Request request,
            out ChangeQty_Result result)
        {
            result = (ChangeQty_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)changeQty, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IChangeQtyService)this._Channel).GetActions(this._UserProfile, changeQty, parameters, request, out result) : this.AddMethod((Method) new ChangeQtyMethod(changeQty, ChangeQtyMethods.GetActions, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(GetActions), res, (DCObject)changeQty, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }
Beispiel #10
0
 public ChangeQtyMethod(ChangeQty Cdo, ChangeQtyMethods Method, ChangeQty_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Beispiel #11
0
 public ResultStatus GetActions(ChangeQty changeQty)
 {
     return(this.GetActions(changeQty, (ChangeQty_Parameters)null, (ChangeQty_Request)null, out ChangeQty_Result _));
 }
Beispiel #12
0
 public ResultStatus ExecuteTransaction(ChangeQty cdo)
 {
     return(this.ExecuteTransaction(cdo, (ChangeQty_Request)null, out ChangeQty_Result _));
 }
Beispiel #13
0
 public ResultStatus CreateParametricData(ChangeQty changeQty)
 {
     return(this.CreateParametricData(changeQty, (ChangeQty_Parameters)null, (ChangeQty_Request)null, out ChangeQty_Result _));
 }
Beispiel #14
0
 public ResultStatus ProcessComputation(ChangeQty changeQty)
 {
     return(this.ProcessComputation(changeQty, (ChangeQty_Parameters)null, (ChangeQty_Request)null, out ChangeQty_Result _));
 }
Beispiel #15
0
 public ResultStatus Load(ChangeQty changeQty)
 {
     return(this.Load(changeQty, (ChangeQty_Parameters)null, (ChangeQty_Request)null, out ChangeQty_Result _));
 }