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

            try
            {
                List <IBatisNetBatchStatement> statements = new List <IBatisNetBatchStatement>();
                string[] arrStationIds = strStationIds.Split("|".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
                if (arrStationIds.Length == 0)
                {
                    result.Success   = false;
                    result.ErrorCode = 59996;
                    return(result);
                }
                string statementName = new InstitutionsCareCenter().GetUpdateMethodName();
                foreach (string strStationId in arrStationIds)
                {
                    InstitutionsCareCenter institutionsCareCenter = new InstitutionsCareCenter {
                        StationId = strStationId.ToGuid(), Status = 0
                    };
                    /***********************begin 自定义代码*******************/
                    institutionsCareCenter.OperatedBy = NormalSession.UserId.ToGuid();
                    institutionsCareCenter.OperatedOn = DateTime.Now;
                    institutionsCareCenter.DataSource = GlobalManager.DIKey_00012_ManualEdit;
                    /***********************end 自定义代码*********************/
                    statements.Add(new IBatisNetBatchStatement {
                        StatementName = statementName, ParameterObject = institutionsCareCenter.ToStringObjectDictionary(false), Type = SqlExecuteType.UPDATE
                    });
                }
                BuilderFactory.DefaultBulder().ExecuteNativeSqlNoneQuery(statements);
            }
            catch (Exception ex)
            {
                result.Success      = false;
                result.ErrorMessage = ex.Message;
            }
            return(result);
        }
        public ModelInvokeResult <InstitutionsCareCenterPK> Nullify(string strStationId)
        {
            ModelInvokeResult <InstitutionsCareCenterPK> result = new ModelInvokeResult <InstitutionsCareCenterPK> {
                Success = true
            };

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

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