コード例 #1
0
        private Result <bool> SendData(ProjectAuditRecord model)
        {
            Result <bool> result = new Result <bool>();

            try
            {
                using (ClientSiteClientProxy proxy = new ClientSiteClientProxy(ProxyEx))
                {
                    if (model != null)
                    {
                        Epm_ProjectAuditRecord record = new Epm_ProjectAuditRecord();

                        record.WorkFlowId    = model.Id;
                        record.AuditName     = model.AuditName;
                        record.AuditRemark   = model.AuditRemark;
                        record.AuditSign     = model.AuditSign;
                        record.AuditState    = model.AuditState;
                        record.AuditTime     = Convert.ToDateTime(model.AuditTime);
                        record.AuditUserCode = model.AuditUserCode;
                        record.StepId        = model.StepId;
                        record.StepName      = model.StepName;

                        record.NextAuditName     = model.NextAuditName;
                        record.NextAuditUserCode = model.NextAuditUserCode;
                        record.NextStepId        = model.NextStepId;
                        record.NextStepName      = model.NextStepName;
                        record.ApprovalState     = model.ApprovalState;

                        result = proxy.AddProjectAuditRecord(record);
                    }
                }
            }
            catch (Exception ex)
            {
                result.Flag      = EResultFlag.Failure;
                result.Data      = false;
                result.Exception = new ExceptionEx(ex, "SendData");
            }
            return(result);
        }