public InvokeResult NullifySelected(string strRequisitionIds)
        {
            InvokeResult result = new InvokeResult {
                Success = true
            };

            try
            {
                List <IBatisNetBatchStatement> statements = new List <IBatisNetBatchStatement>();
                string[] arrRequisitionIds = strRequisitionIds.Split("|".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
                if (arrRequisitionIds.Length == 0)
                {
                    result.Success   = false;
                    result.ErrorCode = 59996;
                    return(result);
                }
                string statementName = new EvaluatedRequisition().GetUpdateMethodName();
                foreach (string strRequisitionId in arrRequisitionIds)
                {
                    EvaluatedRequisition evaluatedRequisition = new EvaluatedRequisition {
                        RequisitionId = strRequisitionId.ToGuid(), Status = 0
                    };
                    /***********************begin 自定义代码*******************/
                    evaluatedRequisition.OperatedBy = NormalSession.UserId.ToGuid();
                    evaluatedRequisition.OperatedOn = DateTime.Now;
                    evaluatedRequisition.DataSource = GlobalManager.DIKey_00012_ManualEdit;
                    /***********************end 自定义代码*********************/
                    statements.Add(new IBatisNetBatchStatement {
                        StatementName = statementName, ParameterObject = evaluatedRequisition.ToStringObjectDictionary(false), Type = SqlExecuteType.UPDATE
                    });
                }
                BuilderFactory.DefaultBulder(GetHttpHeader("ConnectId")).ExecuteNativeSqlNoneQuery(statements);
            }
            catch (Exception ex)
            {
                result.Success      = false;
                result.ErrorMessage = ex.Message;
            }
            return(result);
        }
        public InvokeResult EvaluationFinalResults(EvaluatedRequisition evaluatedRequisition)
        {
            InvokeResult result = new InvokeResult {
                Success = true
            };

            try
            {
                List <IBatisNetBatchStatement> statements = new List <IBatisNetBatchStatement>();
                /***********************begin 自定义代码*******************/
                evaluatedRequisition.OperatedBy = NormalSession.UserId.ToGuid();
                evaluatedRequisition.OperatedOn = DateTime.Now;
                evaluatedRequisition.DataSource = GlobalManager.DIKey_00012_ManualEdit;
                statements.Add(new IBatisNetBatchStatement {
                    StatementName = evaluatedRequisition.GetUpdateMethodName(), ParameterObject = evaluatedRequisition.ToStringObjectDictionary(false), Type = SqlExecuteType.UPDATE
                });
                //基础信息库
                ResidentBaseInfo residentBaseInfo = new ResidentBaseInfo();
                residentBaseInfo.ResidentId = evaluatedRequisition.ResidentId;
                residentBaseInfo.OperatedBy = NormalSession.UserId.ToGuid();
                residentBaseInfo.OperatedOn = DateTime.Now;
                residentBaseInfo.DataSource = GlobalManager.DIKey_00012_ManualEdit;
                residentBaseInfo.StationId  = evaluatedRequisition.StationId;
                /***********************end 自定义代码*********************/
                statements.Add(new IBatisNetBatchStatement {
                    StatementName = residentBaseInfo.GetUpdateMethodName(), ParameterObject = residentBaseInfo.ToStringObjectDictionary(false), Type = SqlExecuteType.UPDATE
                });
                /***********************begin 自定义代码*******************/
                /***********************此处添加自定义代码*****************/
                /***********************end 自定义代码*********************/
                BuilderFactory.DefaultBulder(GetHttpHeader("ConnectId")).ExecuteNativeSqlNoneQuery(statements);
            }
            catch (Exception ex)
            {
                result.Success      = false;
                result.ErrorMessage = ex.Message;
            }
            return(result);
        }
        public ModelInvokeResult <EvaluatedRequisitionPK> Nullify(string strRequisitionId)
        {
            ModelInvokeResult <EvaluatedRequisitionPK> result = new ModelInvokeResult <EvaluatedRequisitionPK> {
                Success = true
            };

            try
            {
                List <IBatisNetBatchStatement> statements = new List <IBatisNetBatchStatement>();
                Guid?_RequisitionId = strRequisitionId.ToGuid();
                if (_RequisitionId == null)
                {
                    result.Success   = false;
                    result.ErrorCode = 59996;
                    return(result);
                }
                EvaluatedRequisition evaluatedRequisition = new EvaluatedRequisition {
                    RequisitionId = _RequisitionId, Status = 0
                };
                /***********************begin 自定义代码*******************/
                evaluatedRequisition.OperatedBy = NormalSession.UserId.ToGuid();
                evaluatedRequisition.OperatedOn = DateTime.Now;
                evaluatedRequisition.DataSource = GlobalManager.DIKey_00012_ManualEdit;
                /***********************end 自定义代码*********************/
                statements.Add(new IBatisNetBatchStatement {
                    StatementName = evaluatedRequisition.GetUpdateMethodName(), ParameterObject = evaluatedRequisition.ToStringObjectDictionary(false), Type = SqlExecuteType.UPDATE
                });
                /***********************begin 自定义代码*******************/
                /***********************此处添加自定义代码*****************/
                /***********************end 自定义代码*********************/
                BuilderFactory.DefaultBulder(GetHttpHeader("ConnectId")).ExecuteNativeSqlNoneQuery(statements);
                result.instance = new EvaluatedRequisitionPK {
                    RequisitionId = _RequisitionId
                };
            }
            catch (Exception ex)
            {
                result.Success      = false;
                result.ErrorMessage = ex.Message;
            }
            return(result);
        }
        public ModelInvokeResult <EvaluatedRequisitionPK> Create(EvaluatedRequisition evaluatedRequisition)
        {
            ModelInvokeResult <EvaluatedRequisitionPK> result = new ModelInvokeResult <EvaluatedRequisitionPK> {
                Success = true
            };

            try
            {
                List <IBatisNetBatchStatement> statements = new List <IBatisNetBatchStatement>();
                if (evaluatedRequisition.RequisitionId == GlobalManager.GuidAsAutoGenerate)
                {
                    evaluatedRequisition.RequisitionId = Guid.NewGuid();
                }
                /***********************begin 自定义代码*******************/
                evaluatedRequisition.OperatedBy = NormalSession.UserId.ToGuid();
                evaluatedRequisition.OperatedOn = DateTime.Now;
                evaluatedRequisition.DataSource = GlobalManager.DIKey_00012_ManualEdit;
                /***********************end 自定义代码*********************/
                statements.Add(new IBatisNetBatchStatement {
                    StatementName = evaluatedRequisition.GetCreateMethodName(), ParameterObject = evaluatedRequisition.ToStringObjectDictionary(false), Type = SqlExecuteType.INSERT
                });
                /***********************begin 自定义代码*******************/
                /***********************此处添加自定义代码*****************/
                /***********************end 自定义代码*********************/
                BuilderFactory.DefaultBulder(GetHttpHeader("ConnectId")).ExecuteNativeSqlNoneQuery(statements);
                result.instance = new EvaluatedRequisitionPK {
                    RequisitionId = evaluatedRequisition.RequisitionId
                };
            }
            catch (Exception ex)
            {
                result.Success      = false;
                result.ErrorMessage = ex.Message;
            }
            return(result);
        }