public ModelInvokeResult <EPay_PackageItemPK> Nullify(string strId)
        {
            ModelInvokeResult <EPay_PackageItemPK> result = new ModelInvokeResult <EPay_PackageItemPK> {
                Success = true
            };

            try
            {
                List <IBatisNetBatchStatement> statements = new List <IBatisNetBatchStatement>();
                EPay_PackageItem ePay = new EPay_PackageItem {
                };
                /***********************begin 自定义代码*******************/
                ePay.OperatedBy = NormalSession.UserId.ToGuid();
                ePay.OperatedOn = DateTime.Now;
                ePay.DataSource = GlobalManager.DIKey_00012_ManualEdit;
                /***********************end 自定义代码*********************/
                statements.Add(new IBatisNetBatchStatement {
                    StatementName = ePay.GetUpdateMethodName(), ParameterObject = ePay.ToStringObjectDictionary(false), Type = SqlExecuteType.UPDATE
                });
                /***********************begin 自定义代码*******************/
                /***********************此处添加自定义代码*****************/
                /***********************end 自定义代码*********************/
                BuilderFactory.DefaultBulder().ExecuteNativeSqlNoneQuery(statements);
                result.instance = new EPay_PackageItemPK {
                    Id = 0
                };
            }
            catch (Exception ex)
            {
                result.Success      = false;
                result.ErrorMessage = ex.Message;
            }
            return(result);
        }
        public InvokeResult NullifySelected(string strIds)
        {
            InvokeResult result = new InvokeResult {
                Success = true
            };

            try
            {
                List <IBatisNetBatchStatement> statements = new List <IBatisNetBatchStatement>();
                string[] arrIds = strIds.Split("|".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
                if (arrIds.Length == 0)
                {
                    result.Success   = false;
                    result.ErrorCode = 59996;
                    return(result);
                }
                string statementName = new EPay_PackageItem().GetUpdateMethodName();
                foreach (string strId in arrIds)
                {
                    EPay_PackageItem ePay = new EPay_PackageItem {
                        Id = Convert.ToInt32(strId)
                    };
                    /***********************begin 自定义代码*******************/
                    ePay.OperatedBy = NormalSession.UserId.ToGuid();
                    ePay.OperatedOn = DateTime.Now;
                    ePay.DataSource = GlobalManager.DIKey_00012_ManualEdit;
                    /***********************end 自定义代码*********************/
                    statements.Add(new IBatisNetBatchStatement {
                        StatementName = statementName, ParameterObject = ePay.ToStringObjectDictionary(false), Type = SqlExecuteType.UPDATE
                    });
                }
                BuilderFactory.DefaultBulder().ExecuteNativeSqlNoneQuery(statements);
            }
            catch (Exception ex)
            {
                result.Success      = false;
                result.ErrorMessage = ex.Message;
            }
            return(result);
        }