Exemple #1
0
 public ApprovalSheetTemplateMaintMethod(
     ApprovalSheetTemplateMaint Cdo,
     ApprovalSheetTemplateMaintMethods Method,
     ApprovalSheetTemplateMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Exemple #2
0
        public ResultStatus Freeze(
            ApprovalSheetTemplateMaint approvalSheetTemplateMaint,
            ApprovalSheetTemplateMaint_Parameters parameters,
            ApprovalSheetTemplateMaint_Request request,
            out ApprovalSheetTemplateMaint_Result result)
        {
            result = (ApprovalSheetTemplateMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)approvalSheetTemplateMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IApprovalSheetTemplateMaintService)this._Channel).Freeze(this._UserProfile, approvalSheetTemplateMaint, parameters, request, out result) : this.AddMethod((Method) new ApprovalSheetTemplateMaintMethod(approvalSheetTemplateMaint, ApprovalSheetTemplateMaintMethods.Freeze, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(Freeze), res, (DCObject)approvalSheetTemplateMaint, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }