Example #1
0
        private void btnSubmit_Click(object sender, EventArgs e)
        {
            if (BeforePassEvent != null)
            {
                if (!BeforePassEvent())
                {
                    return;
                }
            }
            WF_AuditRecordLogic logicWF  = new WF_AuditRecordLogic(this);
            WCFAddUpdateResult  rstAudit = logicWF.SubmitBill(new Entity.UserModel.WF.WF_AuditRecordParam()
            {
                SourceTableEngName = _tableName,
                SourceBillGuid     = _sourceGuidKey,
                SourceBillNo       = _sourceBillNo
            });

            if (rstAudit.Key > 0)
            {
                if (AfterPassEvent != null)
                {
                    AfterPassEvent();
                }
                this.Close();
            }
        }
Example #2
0
        void ExeAudit(string auditResult)
        {
            if (BeforePassEvent != null)
            {
                if (!BeforePassEvent())
                {
                    return;
                }
            }
            WF_AuditRecordLogic logicWF  = new WF_AuditRecordLogic(this);
            WCFAddUpdateResult  rstAudit = logicWF.AuditBill(new Entity.UserModel.WF.WF_AuditRecordParam()
            {
                SourceTableEngName = _tableName,
                SourceBillGuid     = _sourceGuidKey,
                SourceBillNo       = _sourceBillNo,
                AuditResult        = auditResult,
                AuditRemark        = txtCheckRemark.Text
            });

            if (rstAudit.Key > 0)
            {
                if (AfterPassEvent != null)
                {
                    AfterPassEvent();
                }
                this.Close();
            }
        }
Example #3
0
        void BindData(int pageIndex)
        {
            this.btnReturn.Enabled      = false; //收回
            this.btnNoPass.Enabled      = false; //拒绝
            this.btnCancelCheck.Enabled = false; //驳回
            this.btnArgee.Enabled       = false; //同意

            WF_AuditRecordLogic logic = new WF_AuditRecordLogic(this);
            WF_AuditRecordParam param = new WF_AuditRecordParam();

            param.SourceTableEngName = _tableName;
            param.SourceBillGuid     = _sourceGuidKey;
            param.PageIndex          = pageIndex;
            param.PageSize           = int.MaxValue;
            param.IsPage             = true;
            WF_AuditBillResult rst = this.AsyncExecute <WF_AuditBillResult, WF_AuditRecordParam>(param, logic.GetAuditBillRecord, BindDataComplete);
        }
Example #4
0
        private void btnCancelCheck_Click(object sender, EventArgs e)
        {
            WF_AuditRecordLogic logicWF  = new WF_AuditRecordLogic(this);
            WCFAddUpdateResult  rstAudit = logicWF.TakeBackBill(new Entity.UserModel.WF.WF_AuditRecordParam()
            {
                SourceTableEngName = _tableName,
                SourceBillGuid     = _sourceGuidKey,
            });

            if (rstAudit.Key > 0)
            {
                if (AfterPassEvent != null)
                {
                    AfterPassEvent();
                }
                this.Close();
            }
        }