Example #1
0
 private UFIDA.U9.Cust.GS.FI.PubBP.ErrorMessageDTOData ApprovedDoc(int type)
 {
     UFIDA.U9.Cust.GS.FI.PubBP.ErrorMessageDTOData dto = new UFIDA.U9.Cust.GS.FI.PubBP.ErrorMessageDTOData();
     UFIDA.U9.Cust.GS.FI.PrePaymentBP.Proxy.ApprovedPrePaymentBPProxy bp = new PrePaymentBP.Proxy.ApprovedPrePaymentBPProxy();
     bp.Type      = type;
     bp.EntityKey = this.Model.PrePayment.FocusedRecord.ID;
     dto          = bp.Do();
     this.Action.NavigateAction.Refresh(null, true);
     return(dto);
 }
 private UFIDA.U9.Cust.GS.FI.PubBP.ErrorMessageDTOData ApprovedDoc(int type)
 {
     UFIDA.U9.Cust.GS.FI.PubBP.ErrorMessageDTOData dto = new UFIDA.U9.Cust.GS.FI.PubBP.ErrorMessageDTOData();
     UFIDA.U9.Cust.GS.FI.DeductionRegisterBP.Proxy.ApprovedDeductionRegisterBPProxy bp = new DeductionRegisterBP.Proxy.ApprovedDeductionRegisterBPProxy();
     bp.DocStatus = type;
     bp.EntityKey = this.Model.DeductionRegister.FocusedRecord.ID;
     dto          = bp.Do();
     this.Action.NavigateAction.Refresh(null, true);
     return(dto);
 }
Example #3
0
        //BtnSubmit_Click...
        private void BtnSubmit_Click_Extend(object sender, EventArgs e)
        {
            //调用模版提供的默认实现.--默认实现可能会调用相应的Action.
            UFIDA.U9.Cust.GS.FI.PubBP.ErrorMessageDTOData dto = ApprovedDoc(0);
            if (dto != null)
            {
                if (dto.IsSuccess)
                {
                    PrePaymentRecord rd = this.Model.PrePayment.FocusedRecord;
                    if (rd != null)
                    {
                        UFIDA.U9.Approval.Util.ApprovalService.Instance.DoAfterSubmitApproval(this, this.Model.PrePayment.FocusedRecord.ID, "UFIDA.U9.Cust.GS.FI.PrePaymentBE.PrePayment");
                    }
                }
                else
                {
                    throw new Exception(dto.ErrorMessage);
                }
            }

            BtnSubmit_Click_DefaultImpl(sender, e);
        }