/// <summary>
 /// Inserts an entity of <see cref=" Log4Net.DataSourceEntities.Log"/>.
 /// </summary>
 /// <param name="input">input entity</param>
 /// <returns>a message with action result</returns>
 public static Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog InsertEntity(
     Log4Net.DataSourceEntities.Log input)
 {
     Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageBuiltInLog _Request =new Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageBuiltInLog(Framework.CommonBLLEntities.BusinessLogicLayerRequestTypes.Create, Framework.CommonBLLEntities.BusinessLogicLayerRequestTypes.Create.ToString(), Guid.NewGuid().ToString());
     _Request.Critieria = new Log4Net.DataSourceEntities.LogCollection();
     _Request.Critieria.Add(input);
     return InsertRequest(_Request);
 }
        /// <summary>
        /// Validates the value before save to database.
        /// </summary>
        /// <param name="input">The input.</param>
		public static void ValidateValueBeforeSaveToDatabase(Log4Net.DataSourceEntities.LogCollection input)
        {
			for(int i = 0; i < input.Count; i ++)
            {
				Log4Net.DataSourceEntities.Log _Item = input[i];
                ValidateValueBeforeSaveToDatabase(_Item);
            }
        }
        /// <summary>
        /// Assigns the enity reference Ids.
        /// </summary>
        /// <param name="input">The input.</param>
		public static void AssignEnityReferenceIDs(Log4Net.DataSourceEntities.LogCollection input)
		{
			for(int i = 0; i < input.Count; i ++)
            {
				Log4Net.DataSourceEntities.Log _Item = input[i];

            }
		}
        /// <summary>
        /// Validates the value before save to database.
        /// </summary>
        /// <param name="item">The item.</param>
        public static void ValidateValueBeforeSaveToDatabase(Log4Net.DataSourceEntities.Log item)
        {
                    // DateTimePropertiesToMinValueOfDateTimeInSQL
                    if (item.Date < Framework.DateTimePeriodHelper.MinValueOfDateTimeInSQL)
                    {
	                   item.Date = Framework.DateTimePeriodHelper.MinValueOfDateTimeInSQL;
					}

        }
Ejemplo n.º 5
0
        public JsonResult GetInformationAccount(int accountId)
        {
            string functionName = System.Reflection.MethodBase.GetCurrentMethod().Name;

            try
            {
                //Check id account exist in the database
                if (!_accountRepository.AccountExists(accountId))
                {
                    Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.accountNotFound));
                    return(Json(MessageResult.GetMessage(MessageType.ACCOUNT_NOT_FOUND)));
                }

                if (!ModelState.IsValid)
                {
                    Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.notFound));
                    return(Json(MessageResult.GetMessage(MessageType.NOT_FOUND)));
                }

                //Get list all history by id account
                List <HistoryEntity> list = _historyRepository.getHistoryByAccount(accountId);

                List <HistoryResult> listResult = new List <HistoryResult>();

                foreach (var history in list)
                {
                    HistoryResult result = new HistoryResult();
                    ExamEntity    exam   = _examRepository.GetExamById(history.ExamId);
                    GroupEntity   group  = _groupRepository.GetGroupById(history.GroupId);
                    result.nameExam  = exam.Name;
                    result.nameGroup = group.Name;

                    listResult.Add(result);
                }

                return(Json(listResult));
            }
            catch (Exception ex)
            {
                Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(ex.Message));
                return(Json(MessageResult.ShowServerError(ex.Message)));
            }
        }
Ejemplo n.º 6
0
        public static bool DoesExist(UserPreferenceDataModel data, RequestProfile requestProfile)
        {
            var sql = String.Empty;

            try
            {
                var newData = new UserPreferenceDataModel();
                newData.UserPreferenceId    = data.UserPreferenceId;
                newData.UserPreferenceKeyId = data.UserPreferenceKeyId;

                var list = GetEntityDetails(newData, requestProfile, 0);
                return(list.Count > 0);
            }
            catch (Exception ex)
            {
                Log4Net.LogError(sql, MethodBase.GetCurrentMethod().DeclaringType.ToString(), requestProfile.ApplicationId, ex);
                throw ex;
            }
        }
Ejemplo n.º 7
0
        public static void UpdateValueOnly(Data data, int auditId)
        {
            var sql = String.Empty;

            try
            {
                sql  = "EXEC ";
                sql += "dbo.UserPreferenceUpdateValueOnly  " +
                       " " + ToSQLParameter(BaseModel.BaseDataColumns.AuditId, auditId) +
                       ", " + data.ToSQLParameter(DataColumns.UserPreferenceId) +
                       ", " + data.ToSQLParameter(DataColumns.Value);
                DataAccess.DBDML.RunSQL("UserPreference.Update", sql, DataStoreKey);
            }
            catch (Exception ex)
            {
                Log4Net.LogError(sql, MethodBase.GetCurrentMethod().DeclaringType.ToString(), ApplicationId, ex);
                throw ex;
            }
        }
Ejemplo n.º 8
0
        public static bool Delete(IList <int> idList)
        {
            try
            {
                List <B_ORGANIZATION> listOrgCenter = DataAccess <B_ORGANIZATION> .Where(t => idList.Contains(t.ID)).ToList();

                List <B_ORGANIZATION> listOrgStation = DataAccess <B_ORGANIZATION> .Where(t => idList.Contains(t.ParentID)).ToList();

                List <B_ORGANIZATION> listOrgBranch = DataAccess <B_ORGANIZATION> .Where(t => listOrgStation.Select(s => s.ID).Contains(t.ParentID)).ToList();

                //删除TCenter
                List <TCenter> listTCenter = DataAccess <TCenter> .Where(AppConfig.ConnectionStringDispatch,
                                                                         t => listOrgCenter.Select(s => s.编码).Contains(t.编码.ToString()));

                DataAccess <TCenter> .Delete(AppConfig.ConnectionStringDispatch, listTCenter);

                //删除TStation
                List <TStation> listTStation = DataAccess <TStation> .Where(AppConfig.ConnectionStringDispatch,
                                                                            t => listOrgStation.Select(s => s.编码).Contains(t.编码));

                DataAccess <TStation> .Delete(AppConfig.ConnectionStringDispatch, listTStation);

                //删除TZBranch
                List <TZBranch> listTZBranch = DataAccess <TZBranch> .Where(AppConfig.ConnectionStringDispatch,
                                                                            t => listOrgBranch.Select(s => s.编码).Contains(t.编码.ToString()));

                DataAccess <TZBranch> .Delete(AppConfig.ConnectionStringDispatch, listTZBranch);

                //删除B_ORGANIZATION
                DataAccess <B_ORGANIZATION> .Delete(listOrgBranch);

                DataAccess <B_ORGANIZATION> .Delete(listOrgStation);

                DataAccess <B_ORGANIZATION> .Delete(listOrgCenter);

                return(true);
            }
            catch (Exception ex)
            {
                Log4Net.LogError("批量删除中心", ex.Message);
                return(false);
            }
        }
Ejemplo n.º 9
0
        /// <summary>
        /// 页面加载
        /// </summary>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                WxPayHelper wx        = new WxPayHelper();
                string      returnMsg = "<xml> <return_code><![CDATA[{0}]]></return_code> <return_msg><![CDATA[{1}]]></return_msg> </xml>";
                SortedDictionary <string, object> dic = wx.GetReturnData();
                Log4Net.WriteInfoLog("收到微信Web支付回调:" + new JavaScriptSerializer().Serialize(dic));
                string sign = dic["sign"].ToString();
                if (dic["return_code"].ToString() == "SUCCESS")
                {
                    string signLocal = wx.MakeSign(dic, ApplicationSettings.Get("WXNATIVEKEY"));
                    if (sign == signLocal)
                    {
                        decimal amount = Convert.ToDecimal(dic["total_fee"]) / 100M;
                        if (dic["result_code"].ToString() == "SUCCESS")
                        {
                            OnLinePayOrder order = new OnLinePayOrder
                            {
                                OrderID    = dic["out_trade_no"].ToString(),
                                PayAddress = GameRequest.GetUserIP(),
                                Amount     = amount
                            };

                            FacadeManage.aideTreasureFacade.FinishOnLineOrder(order);
                            Response.Write(string.Format(returnMsg, "SUCCESS", "支付成功!"));
                        }
                        else
                        {
                            Response.Write(string.Format(returnMsg, "FAIL", "微信交易失败!"));
                        }
                    }
                    else
                    {
                        Response.Write(string.Format(returnMsg, "FAIL", "签名错误!"));
                    }
                }
                else
                {
                    Response.Write(string.Format(returnMsg, "FAIL", "微信交易失败!"));
                }
            }
        }
Ejemplo n.º 10
0
        public static DataTable GetDetails(Data data, int auditId)
        {
            var sql = String.Empty;

            try
            {
                sql = "EXEC dbo.UserPreferenceSelectedItemDetails " +
                      " " + ToSQLParameter(BaseModel.BaseDataColumns.AuditId, auditId) +
                      ", " + data.ToSQLParameter(DataColumns.UserPreferenceSelectedItemId);

                var oDT = new DataAccess.DBDataTable("UserPreferenceSelectedItem.Details", sql, DataStoreKey);
                return(oDT.DBTable);
            }
            catch (Exception ex)
            {
                Log4Net.LogError(sql, MethodBase.GetCurrentMethod().DeclaringType.ToString(), ApplicationId, ex);
                throw ex;
            }
        }
Ejemplo n.º 11
0
        public static bool Save(int flowId, int flowNo, HttpPostedFileBase file, string path)
        {
            using (MainDataContext dbContext = new MainDataContext())
            {
                try
                {
                    F_INST_ATTACHMENT entity = new F_INST_ATTACHMENT();

                    var list = dbContext.F_INST_ATTACHMENT.Select(t => t.ID);
                    if (list.LongCount() > 0)
                    {
                        entity.ID = list.Max() + 1;
                    }
                    else
                    {
                        entity.ID = 1;
                    }

                    int lastIndex = file.FileName.LastIndexOf("\\");
                    entity.OriginalName = file.FileName.Substring(lastIndex + 1, file.FileName.Length - lastIndex - 1); //原文件名
                    entity.CodingName   = System.Guid.NewGuid().ToString() + entity.OriginalName;                       //编码附件名
                    entity.Size         = (float)(file.ContentLength * 1.0 / 1024);                                     //文件大小
                    entity.FlowID       = flowId;
                    entity.FlowNo       = flowNo;

                    string _path = path + entity.CodingName;

                    file.SaveAs(_path);    //上传至服务器


                    dbContext.F_INST_ATTACHMENT.InsertOnSubmit(entity);
                    dbContext.SubmitChanges();

                    return(true);
                }
                catch (Exception ex)
                {
                    Log4Net.LogError("Workflow Upload", ex.ToString());

                    return(false);
                }
            }
        }
Ejemplo n.º 12
0
        public static void Delete(DBComponentNameDataModel data, int auditId)
        {
            const string sql = @"dbo.DBComponentNameDelete ";

            var parameters = new
            {
                AuditId             = auditId
                , DBComponentNameId = data.DBComponentNameId
            };

            using (var dataAccess = new DataAccessBase(DataStoreKey))
            {
                var sp = Log4Net.LogSQLInfoStart(sql, DataStoreKey, parameters);

                dataAccess.Connection.Execute(sql, parameters, commandType: CommandType.StoredProcedure);

                Log4Net.LogSQLInfoStop(sp);
            }
        }
Ejemplo n.º 13
0
        public JsonResult CreationGroup([FromBody] GroupForCreationDto group)
        {
            string functionName = System.Reflection.MethodBase.GetCurrentMethod().Name;

            try
            {
                AccountEntity account = _accountRepository.GetAccountById(group.accountId); //get account from AccountController stored data user logged in
                if (group == null)
                {
                    Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.notInformationGroup));
                    return(Json(MessageResult.GetMessage(MessageType.NOT_INFORMATION_GROUP)));
                }

                //This is get current day
                group.CreatedDate = DateTime.Now;

                if (!ModelState.IsValid)
                {
                    Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.notFound));
                    return(Json(MessageResult.GetMessage(MessageType.NOT_FOUND)));
                }

                var finalGroup = Mapper.Map <PPT.Database.Entities.GroupEntity>(group);

                //This is query insert account
                _groupRepository.CreationGroup(finalGroup, account);

                if (!_groupRepository.Save())
                {
                    Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.badRequest));
                    return(Json(MessageResult.GetMessage(MessageType.BAD_REQUEST)));
                }

                Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.groupCreated));
                return(Json(MessageResult.GetMessage(MessageType.GROUP_CREATED)));
            }
            catch (Exception ex)
            {
                Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(ex.Message));
                return(Json(MessageResult.ShowServerError(ex.Message)));
            }
        }
Ejemplo n.º 14
0
        public JsonResult GetInformationGroup(int examId)
        {
            string functionName = System.Reflection.MethodBase.GetCurrentMethod().Name;

            try
            {
                //Check id exam exist in the database
                if (!_examRepository.ExamExist(examId))
                {
                    Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.examNotFound));
                    return(Json(MessageResult.GetMessage(MessageType.EXAM_NOT_FOUND)));
                }

                if (!ModelState.IsValid)
                {
                    Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.notFound));
                    return(Json(MessageResult.GetMessage(MessageType.NOT_FOUND)));
                }

                List <CommentEntity> listComment = _commentRepository.GetCommentByExamId(examId);

                List <CommentResult> listResult = new List <CommentResult>();

                foreach (var comment in listComment)
                {
                    CommentResult result  = new CommentResult();
                    AccountEntity account = _accountRepository.GetAccountById(comment.AccountId);
                    result.name     = account.FullName;
                    result.dateTime = comment.DateTimeComment;
                    result.content  = comment.Content;

                    listResult.Add(result);
                }

                return(Json(listResult));
            }
            catch (Exception ex)
            {
                Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(ex.Message));
                return(Json(MessageResult.ShowServerError(ex.Message)));
            }
        }
Ejemplo n.º 15
0
        }         // Usage

        private Program(string[] args)
        {
            ServicePointManager.SecurityProtocol =
                SecurityProtocolType.Tls12 |
                SecurityProtocolType.Tls11 |
                SecurityProtocolType.Tls |
                SecurityProtocolType.Ssl3;

            m_aryArgs = args;
            m_oEnv    = null;

            try {
                m_oEnv = new Ezbob.Context.Environment();
            }
            catch (Exception e) {
                throw new NullReferenceException("Failed to determine current environment.", e);
            }             // try

            var oLog4NetCfg = new Log4Net(m_oEnv).Init();

            m_oLog = new SafeILog(this);

            NotifyStartStop("started");

            m_oLog.Debug("Current environment: {0}", m_oEnv.Context);
            m_oLog.Debug("Error emails will be sent to: {0}", oLog4NetCfg.ErrorMailRecipient);

            m_oLog.Debug("ServicePointManager.SecurityProtocol = {0}", ServicePointManager.SecurityProtocol);

            NHibernateManager.FluentAssemblies.Add(typeof(User).Assembly);
            NHibernateManager.FluentAssemblies.Add(typeof(Customer).Assembly);
            NHibernateManager.FluentAssemblies.Add(typeof(eBayDatabaseMarketPlace).Assembly);
            NHibernateManager.FluentAssemblies.Add(typeof(AmazonDatabaseMarketPlace).Assembly);
            NHibernateManager.FluentAssemblies.Add(typeof(PayPalDatabaseMarketPlace).Assembly);
            NHibernateManager.FluentAssemblies.Add(typeof(EkmDatabaseMarketPlace).Assembly);
            NHibernateManager.FluentAssemblies.Add(typeof(DatabaseMarketPlace).Assembly);
            NHibernateManager.FluentAssemblies.Add(typeof(YodleeDatabaseMarketPlace).Assembly);
            NHibernateManager.FluentAssemblies.Add(typeof(PayPointDatabaseMarketPlace).Assembly);
            NHibernateManager.FluentAssemblies.Add(typeof(FreeAgentDatabaseMarketPlace).Assembly);
            NHibernateManager.FluentAssemblies.Add(typeof(SageDatabaseMarketPlace).Assembly);
            NHibernateManager.FluentAssemblies.Add(typeof(CompanyFilesDatabaseMarketPlace).Assembly);
        }         // constructor
Ejemplo n.º 16
0
        protected override void OnException(ExceptionContext filterContext)
        {
            //Logger.Error("XprepayControllerBase.OnException", filterContext.Exception);
            //只记录系统错误.
            if (filterContext.Exception is Exception)
            {
                Log4Net.Error(filterContext.Exception.Source, filterContext.Exception);
            }
            if (_actionReturnType == null)
            {
                base.OnException(filterContext);
                return;
            }
            string error;

            if (filterContext.Exception is KnownException)
            {
                error = filterContext.Exception.Message;
            }
            else
            {
                error = filterContext.Exception.GetAllMessages();
            }
            if (_actionReturnType == typeof(StandardJsonResult) || (_actionReturnType == typeof(StandardJsonResult <>)))
            {
                var result = new StandardJsonResult();
                result.Fail(error);
                filterContext.Result = result;
            }
            else if (_actionReturnType == typeof(PartialViewResult))
            {
                filterContext.Result = new ContentResult()
                {
                    Content = error
                };
            }
            else
            {
                filterContext.Result = Error(error);
            }
            filterContext.ExceptionHandled = true;
        }
Ejemplo n.º 17
0
        public static bool Save(B_Remind entity)
        {
            using (MainDataContext dbContext = new MainDataContext())
            {
                try
                {
                    if (entity.编码 == 0) //添加
                    {
                        var  list  = from p in dbContext.B_Remind select p.编码;
                        long total = list.LongCount();
                        if (total == 0)
                        {
                            entity.编码 = 1;
                        }
                        else
                        {
                            entity.编码 = dbContext.B_Remind.Max(t => t.编码) + 1;
                        }

                        dbContext.B_Remind.InsertOnSubmit(entity);
                        dbContext.SubmitChanges();
                        return(true);
                    }
                    else //修改
                    {
                        var model = dbContext.B_Remind.FirstOrDefault(t => t.编码 == entity.编码);
                        model.编码   = entity.编码;
                        model.发送对象 = entity.发送对象;
                        model.内容   = entity.内容;
                        model.提醒时间 = entity.提醒时间;
                        dbContext.SubmitChanges();
                        return(true);
                    }
                }
                catch (Exception ex)
                {
                    Log4Net.LogError("定时短信", ex.ToString());

                    return(false);
                }
            }
        }
Ejemplo n.º 18
0
        /// <summary>
        /// 发送分站通知
        /// </summary>
        /// <returns></returns>
        public bool SendStationNotice(string Content, List <string> IPlist)
        {
            try
            {
                GetInstance();

                Other_NoticeInfo noticeInfo = new Other_NoticeInfo();
                noticeInfo.Content           = Content;
                noticeInfo.SendNoticeAimType = SendNoticeAimType.SNAT_SubStations;
                noticeInfo.StationIPList     = IPlist;
                Entrance.GetSendInstence().Other_SendNotice(noticeInfo);
                return(true);
            }
            catch (Exception ex)
            {
                Log4Net.LogError("Notice", ex.ToString());

                return(false);
            }
        }
Ejemplo n.º 19
0
        public void RenderRegistersRenderer()
        {
            Log4Net.Configure()
            .Render.Type <Int16>().Using(new Int16Renderer())
            .Render.Type <Int32>().Using <Int32Renderer>()
            .Render.Type <Int64>().Using(typeof(Int64Renderer))
            .Render.Type(typeof(Decimal)).Using(new DecimalRenderer())
            .Render.Type(typeof(Single)).Using(typeof(SingleRenderer))
            .Render.Type(typeof(Double)).Using <DoubleRenderer>()
            .ApplyConfiguration();

            var repo = LogManager.GetRepository();

            Assert.That(repo.RendererMap.Get(typeof(Int16)), Is.TypeOf <Int16Renderer>());
            Assert.That(repo.RendererMap.Get(typeof(Int32)), Is.TypeOf <Int32Renderer>());
            Assert.That(repo.RendererMap.Get(typeof(Int64)), Is.TypeOf <Int64Renderer>());
            Assert.That(repo.RendererMap.Get(typeof(Decimal)), Is.TypeOf <DecimalRenderer>());
            Assert.That(repo.RendererMap.Get(typeof(Single)), Is.TypeOf <SingleRenderer>());
            Assert.That(repo.RendererMap.Get(typeof(Double)), Is.TypeOf <DoubleRenderer>());
        }
Ejemplo n.º 20
0
        public void ProcessRequest(HttpContext context)
        {
            //允许跨站请求域名
            context.Response.AddHeader("Access-Control-Allow-Origin", AppConfig.MoblieInterfaceDomain);
            //接口返回数据格式
            context.Response.ContentType = "application/json";
            //接口请求类型
            string action = GameRequest.GetQueryString("action").ToLower();

            try
            {
                lock (lockobj)
                {
                    System.IO.Stream s   = context.Request.InputStream;
                    StreamReader     sr  = new StreamReader(s, System.Text.ASCIIEncoding.UTF8);
                    string           ret = sr.ReadToEnd();
                    //Log4Net.WriteInfoLog("ret:" + ret);

                    string userid = context.Request.Form["userid"];
                    //string log = context.Request.Form["logtext"];
                    int    platformType = GameRequest.GetInt("platformType", 0);
                    string TypeName     = "";
                    if (platformType == 1)
                    {
                        TypeName = "Android";
                    }
                    else if (platformType == 2)
                    {
                        TypeName = "IOS";
                    }
                    Writelog(ret, userid, TypeName);
                    context.Response.Write("true");
                }
            }
            catch (Exception ex)
            {
                Log4Net.WriteInfoLog("下面一条为接口故障信息", "LogInterface");
                Log4Net.WriteErrorLog(ex, "LogInterface");
                context.Response.Write(ex);
            }
        }
Ejemplo n.º 21
0
        private static void Main(string[] args)
        {
            Log4Net.Init();

            Settings = SettingManager.ReadConfiguration(args);
            Settings.Client.EnableLogging = true;

            // connect to broker and send data
            MQTT();
            try
            {
                s_Client.Disconnect();
            }
            catch (Exception e)
            {
                Logger.Error("Exception during disconnect. ", e);
            }

            Console.WriteLine("Press ENTER to exit.");
            Console.ReadLine();
        }
        /// <summary>
        /// single item insert with entity input
        /// </summary>
        /// <param name="input">to-be-inserted instance of entity class</param>
        public Log4Net.DataSourceEntities.DataAccessLayerMessageOfEntityCollectionLog Insert(Log4Net.DataSourceEntities.Log input)
        {
            log.Info(string.Format("{0}: Insert", Framework.LoggingOptions.Data_Access_Layer_Process_Started.ToString()));
            Log4Net.DataSourceEntities.DataAccessLayerMessageOfEntityCollectionLog  _retval = new Log4Net.DataSourceEntities.DataAccessLayerMessageOfEntityCollectionLog();
            _retval.OriginalValue = new Log4Net.DataSourceEntities.LogCollection();
            _retval.OriginalValue.Add(input);

            if (input != null)
            {
                Log4Net.EntityFrameworkContext.Log _LinqItem = Log4Net.EntityContracts.ILogHelper.Clone<Log4Net.DataSourceEntities.Log, Log4Net.EntityFrameworkContext.Log>(input);
                this.LinqContext.Log.Add(_LinqItem);
                this.LinqContext.SaveChanges();
                Log4Net.DataSourceEntities.Log _Result = new Log4Net.DataSourceEntities.Log();
                Log4Net.EntityContracts.ILogHelper.Copy<Log4Net.EntityFrameworkContext.Log, Log4Net.DataSourceEntities.Log>(_LinqItem, _Result);
                _retval.Result = new Log4Net.DataSourceEntities.LogCollection();
                _retval.Result.Add(_Result);
            }

            log.Info(string.Format("{0}: Insert", Framework.LoggingOptions.Data_Access_Layer_Process_Ended.ToString()));
            return _retval;
        }
Ejemplo n.º 23
0
        private void Session_Start(object sender, EventArgs e)
        {
            Log4Net.LogInfo("Session_Start");

            var applicationId = int.Parse(ConfigurationManager.AppSettings["PMT.ApplicationId"]);

            SessionVariables.CurrentApplicationCode       = "PMT";
            SessionVariables.CurrentApplicationModuleCode = "PMT";

            SessionVariables.SystemRequestProfile = new RequestProfile(ApplicationCommon.GetSystemAuditId("PMT"), SessionVariables.ApplicationMode, applicationId);

            SessionVariables.RequestProfile = new RequestProfile(WebApplicationUser.GetCurrentUserId(applicationId), SessionVariables.ApplicationMode, applicationId);

            SessionVariables.UserAuthorized = WebApplicationUser.CheckIfUserIsValid(SessionVariables.RequestProfile.AuditId);
            SessionVariables.TopNCount      = 5;

            // Need to revisit this IsTesting logic whether We need this at all?
            SessionVariables.IsTesting = !(SessionVariables.UserApplicationMode > 0);

            Log4NetDataManager.Cleanup(5, SessionVariables.RequestProfile);
        }
Ejemplo n.º 24
0
        /// <summary>
        /// 调度台或者回访程序登录
        /// </summary>
        /// <param name="loginName">TPerson编码</param>
        /// <param name="passWord"></param>
        /// <returns></returns>
        public static B_WORKER DeskLogin(string loginName)
        {
            using (MainDataContext dbContext = new MainDataContext())
            {
                try
                {
                    B_WORKER entity = (from w in dbContext.B_WORKER
                                       join o in dbContext.B_WORKER_ROLE on w.ID equals o.WorkerID into workerRole
                                       from o in workerRole.DefaultIfEmpty()
                                       where w.IsActive == "Y" && o.TPerson编码 == loginName
                                       select w).FirstOrDefault();;

                    return(entity);
                }
                catch (Exception e)
                {
                    Log4Net.LogError("Anchor.FA.DAL.Organize/Login()", e.Message);
                    return(null);
                }
            }
        }
        public void NullChildLoggingLevelAppliesRootLevel()
        {
            Log4Net.Configure()
            .Logging.Default(log => log.At(Level.Trace))
            .Logging.For <Int32>(log => log.At(null))
            .Logging.For(typeof(Int64), log => log.At(null))
            .Logging.For("Foo", log => log.At(null))
            .ApplyConfiguration();

            var intLogger  = (Logger)LogManager.GetLogger(typeof(Int32)).Logger;
            var longLogger = (Logger)LogManager.GetLogger(typeof(Int64)).Logger;
            var fooLogger  = (Logger)LogManager.GetLogger("Foo").Logger;

            Assert.That(intLogger.Level, Is.Null);
            Assert.That(longLogger.Level, Is.Null);
            Assert.That(fooLogger.Level, Is.Null);

            Assert.That(intLogger.EffectiveLevel, Is.EqualTo(Level.Trace));
            Assert.That(longLogger.EffectiveLevel, Is.EqualTo(Level.Trace));
            Assert.That(fooLogger.EffectiveLevel, Is.EqualTo(Level.Trace));
        }
Ejemplo n.º 26
0
 //完成从_list<TagMetaData>  ===>   _mapping<string,ITag>里面通过 名字找出 Itag
 public ITag this[string name]
 {
     get
     {
         try
         {
             if (string.IsNullOrEmpty(name))
             {
                 return(null);
             }
             ITag dataItem;
             _mapping.TryGetValue(name.ToUpper(), out dataItem);
             return(dataItem);
         }
         catch (Exception ex)
         {
             Log4Net.AddLog(ex.StackTrace, InfoLevel.ERROR);
             return(null);
         }
     }
 }
Ejemplo n.º 27
0
        static WebBase()
        {
            try
            {
                var actions = ServiceCollectionExtension.Get <IPermissionService>();

                if (actions != null)
                {
                    var provider       = ServiceCollectionExtension.Get <IActionDescriptorCollectionProvider>();
                    var descriptorList = provider.ActionDescriptors.Items.Cast <ControllerActionDescriptor>()
                                         .Where(t => t.MethodInfo.GetCustomAttribute <ActionAttribute>() != null).ToList();
                    actions.RegistAction(descriptorList);

                    actions.RegistRole();
                }
            }
            catch (Exception ex)
            {
                Log4Net.Error(ex);
            }
        }
Ejemplo n.º 28
0
        static void Main(string[] args)
        {
            Log4Net.InitLogger();
            SetLang(System.Globalization.CultureInfo.CurrentCulture.Name);
            //Console.WriteLine("WCF服务启动中...");
            Log4Net.Info(typeof(Program), "WCF服务启动中...", true);

            List <ServiceInfo> serviceInfoList = new List <ServiceInfo>();

            serviceInfoList = ServiceManager.Instance.ServiceProvider();
            ServiceManager.Instance.OpenService(serviceInfoList);
            Console.WriteLine("按Q键退出程序...");
            while (Console.ReadLine() == "C")
            {
                ServiceManager.Instance.CloseService(serviceInfoList);
            }
            while (Console.ReadLine() != "Q")
            {
                continue;
            }
        }
Ejemplo n.º 29
0
        /// <summary>
        /// 发送短信
        /// </summary>
        /// <param name="TelList">电话列表</param>
        /// <param name="Content">内容</param>
        /// <returns></returns>
        public bool SendSMG(List <string> TelList, string Content, string OperatorCode)
        {
            try
            {
                GetInstance();

                Other_SMGInfo smginfo = new Other_SMGInfo();
                smginfo.DeskCode     = "00";
                smginfo.TelCodeList  = TelList;
                smginfo.SMGContent   = Content;
                smginfo.OperatorCode = OperatorCode;
                Entrance.GetSendInstence().Other_SendSMG(smginfo);
                return(true);
            }
            catch (Exception ex)
            {
                Log4Net.LogError("Notice", ex.ToString());

                return(false);
            }
        }
Ejemplo n.º 30
0
        public JsonResult DeleteMember(int groupId, int accountId)
        {
            string functionName = System.Reflection.MethodBase.GetCurrentMethod().Name;

            try
            {
                //Check id group exist in the database
                if (!_accountRepository.AccountExists(accountId))
                {
                    Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.accountNotFound));
                    return(Json(MessageResult.GetMessage(MessageType.ACCOUNT_NOT_FOUND)));
                }

                //This is get all member of group by id acount
                var memberEntity = _groupMemberRepository.GetGroupMemberByGroupIdAndAccountId(groupId, accountId);

                if (memberEntity == null)
                {
                    Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.notInformationMember));
                    return(Json(MessageResult.GetMessage(MessageType.NOT_INFORMATION_MEMBER)));
                }

                //This is query to delete member
                _groupRepository.DeleteMember(memberEntity);

                if (!_groupRepository.Save())
                {
                    Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.badRequest));
                    return(Json(MessageResult.GetMessage(MessageType.BAD_REQUEST)));
                }

                Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.memberDeleted));
                return(Json(MessageResult.GetMessage(MessageType.MEMBER_DELETED)));
            }
            catch (Exception ex)
            {
                Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(ex.Message));
                return(Json(MessageResult.ShowServerError(ex.Message)));
            }
        }
Ejemplo n.º 31
0
        public JsonResult DeleteAccount(int id)
        {
            string functionName = System.Reflection.MethodBase.GetCurrentMethod().Name;

            try
            {
                //Check id account exist in the database
                if (!_accountRepository.AccountExists(id))
                {
                    Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.accountNotFound));
                    return(Json(MessageResult.GetMessage(MessageType.ACCOUNT_NOT_FOUND)));
                }

                //This is get all information of account
                var accountEntity = _accountRepository.GetAccountById(id);

                if (accountEntity == null)
                {
                    Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.emailAndPasswordWrong));
                    return(Json(MessageResult.GetMessage(MessageType.EMAIL_AND_PASSWORD_WRONG)));
                }

                //This is query to delete account
                _accountRepository.DeleteAccount(accountEntity);

                if (!_accountRepository.Save())
                {
                    Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.badRequest));
                    return(Json(MessageResult.GetMessage(MessageType.BAD_REQUEST)));
                }

                Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.accountDeleted));
                return(Json(MessageResult.GetMessage(MessageType.ACCOUNT_DELETED)));
            }
            catch (Exception ex)
            {
                Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(ex.Message));
                return(Json(MessageResult.ShowServerError(ex.Message)));
            }
        }
Ejemplo n.º 32
0
        public JsonResult DeleteGroup(int groupId)
        {
            string functionName = System.Reflection.MethodBase.GetCurrentMethod().Name;

            try
            {
                //Check id group exist in the database
                if (!_groupRepository.GroupExist(groupId))
                {
                    Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.groupNotFound));
                    return(Json(MessageResult.GetMessage(MessageType.GROUP_NOT_FOUND)));
                }

                //This is get all information of group by Id
                var groupEntity = _groupRepository.GetGroupById(groupId);

                if (groupEntity == null)
                {
                    Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.groupNotFound));
                    return(Json(MessageResult.GetMessage(MessageType.GROUP_NOT_FOUND)));
                }

                //This is query to delete group
                _groupRepository.DeleteGroup(groupEntity);

                if (!_groupRepository.Save())
                {
                    Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.badRequest));
                    return(Json(MessageResult.GetMessage(MessageType.BAD_REQUEST)));
                }

                Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(Constants.groupDeleted));
                return(Json(MessageResult.GetMessage(MessageType.GROUP_DELETED)));
            }
            catch (Exception ex)
            {
                Log4Net.log.Error(className + "." + functionName + " - " + Log4Net.AddErrorLog(ex.Message));
                return(Json(MessageResult.ShowServerError(ex.Message)));
            }
        }
Ejemplo n.º 33
0
        /// <summary>
        ///     终止线程
        /// </summary>
        public static async Task Kill()
        {
            if (HeartbeatThread == null)
            {
                return;
            }

            int ec = GDUT_Drcom.exit_auth?.Invoke() ?? 0x7f7f7f7f;

            if (ec == 0x7f7f7f7f)
            {
                Log4Net.WriteLog($"exit_auth Failed({ec})");
            }
            else
            {
                Log4Net.WriteLog($"wait heartbeat exit");
                await HeartbeatThread;
                HeartbeatExited?.Invoke(null, HeartbeatExitCode);
            }

            HeartbeatThread = null;
        }
Ejemplo n.º 34
0
        /// <summary>
        /// 页面加载
        /// </summary>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SortedDictionary <string, string> sPara = AlipayHelper.GetRequestPost();
                Log4Net.WriteInfoLog("收到支付宝支付回调:" + new JavaScriptSerializer().Serialize(sPara));

                if (sPara.Count > 0)//判断是否有带返回参数
                {
                    bool verifyResult = AlipayHelper.Verify(sPara, Request.Form["notify_id"], Request.Form["sign"], Request.Form["sign_type"]);
                    if (verifyResult)
                    {
                        string outTradeNo  = Request.Form["out_trade_no"];
                        string tradeStatus = Request.Form["trade_status"];

                        if (tradeStatus == "TRADE_SUCCESS" || tradeStatus == "TRADE_FINISHED")
                        {
                            OnLinePayOrder order = new OnLinePayOrder
                            {
                                OrderID    = outTradeNo,
                                PayAddress = GameRequest.GetUserIP(),
                                Amount     = Convert.ToDecimal(Request.Form["total_fee"])
                            };

                            FacadeManage.aideTreasureFacade.FinishOnLineOrder(order);
                        }
                        Response.Write("success");
                    }
                    else
                    {
                        Response.Write("fail");
                    }
                }
                else
                {
                    Response.Write("无通知参数");
                }
            }
        }
Ejemplo n.º 35
0
 private async void LoadClientsByFilter()
 {
     try
     {
         App.ContainerVM.IsBusy = true;
         await Task.Run(() =>
         {
             IsFilter    = true;
             var clients = clientRepo.GetByFilter(SelectedReturnTypeId, SelectedFilter, SearchClient, OffSet, TotalClients <= 0);
             Clients     = clients.Clients.ToObservableCollection();
             if (TotalClients <= 0)
             {
                 TotalClients = clients.TotalCount;
             }
             App.ContainerVM.IsBusy = false;
         });
     }
     catch (Exception ex)
     {
         Log4Net.WriteException(ex);
     }
 }
        /// <summary>
        /// Batches the update.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>a message with action result</returns>
        public Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog BatchUpdate(Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageBuiltInLog request)
        {
            log.Info(string.Format("{0}: BatchUpdate", Framework.LoggingOptions.Business_Logic_Layer_Process_Started.ToString()));
            Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog _retval = new Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog();
            _retval.BusinessLogicLayerRequestID = request.BusinessLogicLayerRequestID;

            if (request != null)
            {
                Log4Net.DataSourceEntities.DataAccessLayerMessageOfEntityCollectionLog _resultFromDAL = this.DALClassInstance.BatchDelete(request.Critieria);

                Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageBaseHelper.MapDataAccessLayerMessageToBusinessLogicLayerResponseMessage<Log4Net.DataSourceEntities.LogCollection>(_resultFromDAL, _retval);
            }
            else
            {
                _retval.BusinessLogicLayerResponseStatus = Framework.CommonBLLEntities.BusinessLogicLayerResponseStatus.RequestError;
            }
            log.Info(string.Format("{0}: BatchUpdate", Framework.LoggingOptions.Business_Logic_Layer_Process_Ended.ToString()));
            return _retval;
        }		
        /// <summary>
        /// Gets the count of entity of Entity of Common .
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>an instance of integer wrapper: <see cref="Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageInteger"/></returns>
        public Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageInteger GetCountOfEntityOfCommon(
			Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageUserDefinedLogOfCommon request)
        {
            log.Info(string.Format("{0}: GetCountOfEntityOfCommon", Framework.LoggingOptions.Business_Logic_Layer_Process_Started.ToString()));
            Framework.DataSourceEntities.DataAccessLayerMessageOfInteger _resultFromDAL = this.DALClassInstance.GetCountOfEntityOfCommon(
				request.Critieria.BusinessLogicLayerQueryCriteriaEntityLogCommon.DateCommonOft
				, request.Critieria.BusinessLogicLayerQueryCriteriaEntityLogCommon.ThreadCommonOft
				, request.Critieria.BusinessLogicLayerQueryCriteriaEntityLogCommon.LevelCommonOft
				, request.Critieria.BusinessLogicLayerQueryCriteriaEntityLogCommon.LoggerCommonOft
				, request.Critieria.BusinessLogicLayerQueryCriteriaEntityLogCommon.MessageCommonOft
				, request.Critieria.BusinessLogicLayerQueryCriteriaEntityLogCommon.ExceptionCommonOft
				, request.QueryPagingSetting.CurrentIndex
				, request.QueryPagingSetting.PageSize
				, request.QueryOrderBySettingCollection);
            Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageInteger _retval = new Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageInteger();

            _retval.BusinessLogicLayerRequestID = request.BusinessLogicLayerRequestID;
			Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageBaseHelper.MapDataAccessLayerMessageToBusinessLogicLayerResponseMessage<int>(_resultFromDAL, _retval);
            log.Info(string.Format("{0}: GetCountOfEntityOfCommon", Framework.LoggingOptions.Business_Logic_Layer_Process_Ended.ToString()));
            return _retval;
        }
 /// <summary>
 /// Deletes an entity of <see cref=" Log4Net.DataSourceEntities.Log"/> in a request message.
 /// </summary>
 /// <param name="_Request">the request message</param>
 /// <returns>a message with action result</returns>
 public static Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog DeleteRequest(
     Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageBuiltInLog _Request)
 {
     Log4Net.WcfContracts.ILogWcfService _BusinessLogicLayerInstance = Log4Net.WcfContracts.WcfServiceResolver.ResolveWcfServiceLog();
     return _BusinessLogicLayerInstance.DeleteEntity(_Request);
 }
        /// <summary>
        /// Deletes the by identifier.
        /// </summary>
        /// <param name="id">The id.</param>
        /// <returns>a message with action result</returns>
        public Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog DeleteByIdentifierEntity(Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageBuiltInOfIdentifierLog id)
        {
            Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog _retval = new Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog();
            _retval.BusinessLogicLayerRequestID = id.BusinessLogicLayerRequestID;

            if (id != null && id.Critieria != null)
            {
                log.Info(string.Format("{0}: DeleteByIdentifierEntity", Framework.LoggingOptions.Business_Logic_Layer_Process_Started.ToString()));
                Log4Net.DataSourceEntities.DataAccessLayerMessageOfEntityCollectionLog _resultFromDAL = this.DALClassInstance.DeleteByIdentifier(id.Critieria);

                Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageBaseHelper.MapDataAccessLayerMessageToBusinessLogicLayerResponseMessage<Log4Net.DataSourceEntities.LogCollection>(_resultFromDAL, _retval);
                log.Info(string.Format("{0}: DeleteByIdentifierEntity", Framework.LoggingOptions.Business_Logic_Layer_Process_Ended.ToString()));
            }
            else
            {
                _retval.BusinessLogicLayerResponseStatus = Framework.CommonBLLEntities.BusinessLogicLayerResponseStatus.RequestError;
            }
            return _retval;
        }
        /// <summary>
        /// Gets the collection of entity of KeyInformation of ByIdentifier .
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>an instance of Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog.KeyInformation if any</returns>
        public Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog.KeyInformation GetSingleOfKeyInformationOfByIdentifier(
			Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageUserDefinedLogOfByIdentifier request)
        {
            log.Info(string.Format("{0}: GetSingleOfKeyInformationOfByIdentifier", Framework.LoggingOptions.Business_Logic_Layer_Process_Started.ToString()));
            Log4Net.DataSourceEntities.Log.DataAccessLayerMessageOfKeyInformation _resultFromDAL = this.DALClassInstance.GetSingleOfKeyInformationOfByIdentifier(
				request.Critieria.BusinessLogicLayerQueryCriteriaEntityLogByIdentifier.IdByIdentifierOft
				, request.QueryOrderBySettingCollection);
            Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog.KeyInformation _retval = new Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog.KeyInformation();
            _retval.BusinessLogicLayerRequestID = request.BusinessLogicLayerRequestID;

            if (request.DataServiceType == Framework.DataServiceTypes.DataSourceResult)
            {
				Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageBaseHelper.MapDataAccessLayerMessageToBusinessLogicLayerResponseMessage<Log4Net.DataSourceEntities.Log.KeyInformation, Log4Net.DataSourceEntities.Log.KeyInformationCollection>(_resultFromDAL, _retval);
            }
            else
            {
				Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageBaseHelper.MapDataAccessLayerMessageToBusinessLogicLayerResponseMessage<Log4Net.DataSourceEntities.Log.KeyInformation, Log4Net.DataSourceEntities.Log.KeyInformationCollection>(_resultFromDAL, _retval, request.DataServiceType, new Log4Net.CommonBLL.DataStreamServiceProviderLog.KeyInformation());
            }

            log.Info(string.Format("{0}: GetSingleOfKeyInformationOfByIdentifier", Framework.LoggingOptions.Business_Logic_Layer_Process_Ended.ToString()));
            return _retval;
		}
        /// <summary>
        /// Gets the linq object by identifier.
        /// </summary>
        /// <param name="id">The id.</param>
        /// <returns>an instance of <see cref="Log4Net.EntityFrameworkContext.Log"/> class, with same identifier, which is a IQueryable.</returns>
        private Log4Net.EntityFrameworkContext.Log GetLinqObjectByIdentifier(Log4Net.EntityContracts.ILogIdentifier id)
        {
            Func<Log4Net.EntityFrameworkContext.Log, bool> m_Predicate = (Log4Net.EntityFrameworkContext.Log t) =>
            {
                return Log4Net.EntityContracts.ILogIdentifierHelper.Equals<Log4Net.EntityContracts.ILogIdentifier, Log4Net.EntityFrameworkContext.Log>(id, t);
            };

            return this.LinqContext.Log.SingleOrDefault<Log4Net.EntityFrameworkContext.Log>(m_Predicate);
        }
		/// <summary>
        /// batch delete a collection of <see cref=" Log4Net.DataSourceEntities.Log"/>.
        /// </summary>
        /// <param name="input">The input collection.</param>
        public static Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog BatchDelete(Log4Net.DataSourceEntities.LogCollection input)
        {
            Log4Net.WcfContracts.ILogWcfService _BusinessLogicLayerInstance = Log4Net.WcfContracts.WcfServiceResolver.ResolveWcfServiceLog();
            Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageBuiltInLog _Request = new Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageBuiltInLog(Framework.CommonBLLEntities.BusinessLogicLayerRequestTypes.Delete, Framework.CommonBLLEntities.BusinessLogicLayerRequestTypes.Delete.ToString(), Guid.NewGuid().ToString());
            _Request.Critieria = new Log4Net.DataSourceEntities.LogCollection();
            _Request.Critieria.AddRange(input);
            return _BusinessLogicLayerInstance.BatchDelete(_Request);
        }
        /// <summary>
        /// Gets the collection of entity of NameValuePair of All .
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>an instance of Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageNameValuePairCollection if any</returns>
        public Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageNameValuePairCollection GetSingleOfNameValuePairOfAll(
			Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageUserDefinedLogOfAll request)
        {
            log.Info(string.Format("{0}: GetSingleOfNameValuePairOfAll", Framework.LoggingOptions.Business_Logic_Layer_Process_Started.ToString()));
            Framework.DataSourceEntities.DataAccessLayerMessageOfNameValuePairEntity _resultFromDAL = this.DALClassInstance.GetSingleOfNameValuePairOfAll(
				request.QueryOrderBySettingCollection);
            Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageNameValuePairCollection _retval = new Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageNameValuePairCollection();
            _retval.BusinessLogicLayerRequestID = request.BusinessLogicLayerRequestID;

            if (request.DataServiceType == Framework.DataServiceTypes.DataSourceResult)
            {
				Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageBaseHelper.MapDataAccessLayerMessageToBusinessLogicLayerResponseMessage<Framework.NameValuePair, Framework.NameValueCollection>(_resultFromDAL, _retval);
            }
            else
            {
				//Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageBaseHelper.MapDataAccessLayerMessageToBusinessLogicLayerResponseMessage<Framework.NameValuePair, Framework.NameValueCollection>(_resultFromDAL, _retval, request.DataServiceType, new Log4Net.CommonBLL.DataStreamServiceProviderLog.NameValuePair());
            }

            log.Info(string.Format("{0}: GetSingleOfNameValuePairOfAll", Framework.LoggingOptions.Business_Logic_Layer_Process_Ended.ToString()));
            return _retval;
		}
        /// <summary>
        /// Gets message of the collection of entity of common.
        /// </summary>
        /// <param name="criteria"></param>
        /// <param name="queryPagingSetting"></param>
        /// <param name="queryOrderBySettingCollection"></param>
        /// <returns>business layer built-in message <see cref="Log4Net.DataSourceEntities.LogCollection"/></returns>
        public static Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog GetMessageOfEntityOfCommon(
            Log4Net.CommonBLLEntities.BusinessLogicLayerChainedQueryCriteriaEntityLogCommon criteria
            , Framework.EntityContracts.QueryPagingSetting queryPagingSetting
            , Framework.EntityContracts.QueryOrderBySettingCollection queryOrderBySettingCollection)
        {
			return GetMessageOfEntityOfCommon(
				criteria
				, queryPagingSetting
				, queryOrderBySettingCollection
				, Framework.DataServiceTypes.DataSourceResult);
        }
        /// <summary>
        /// Gets the page count of entity of common.
        /// </summary>
        /// <param name="criteria"></param>
        /// <param name="queryPagingSetting"></param>
        /// <param name="queryOrderBySettingCollection"></param>
        /// <returns>total pages</returns>
        public static int GetPageCountOfEntityOfCommon(
            Log4Net.CommonBLLEntities.BusinessLogicLayerChainedQueryCriteriaEntityLogCommon criteria
            , Framework.EntityContracts.QueryPagingSetting queryPagingSetting
            , Framework.EntityContracts.QueryOrderBySettingCollection queryOrderBySettingCollection)
        {
            //log.Info(string.Format("{0}: GetPageCountOfEntityOfCommon", Framework.LoggingOptions.UI_Process_Started.ToString()));
            Log4Net.WcfContracts.ILogWcfService _BusinessLogicLayerInstance = Log4Net.WcfContracts.WcfServiceResolver.ResolveWcfServiceLog();
            Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageUserDefinedLogOfCommon _Request = new Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageUserDefinedLogOfCommon(
                Framework.CommonBLLEntities.BusinessLogicLayerRequestTypes.Search
                , "GetCountOfEntityOfCommon for GetPageCountOfEntityOfCommon"
                , Guid.NewGuid().ToString()
                );
            _Request.Critieria = criteria;
            _Request.QueryPagingSetting = queryPagingSetting;
            if (queryOrderBySettingCollection == null || queryOrderBySettingCollection.Count == 0)
            {
                _Request.QueryOrderBySettingCollection = DefaultQueryOrderBySettingCollection;
            }
            else
            {
                _Request.QueryOrderBySettingCollection = queryOrderBySettingCollection;
            }
			int pageSize = queryPagingSetting == null ? 0 : queryPagingSetting.PageSize;

            Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageInteger _Response = _BusinessLogicLayerInstance.GetCountOfEntityOfCommon(_Request);
            if (_Response.BusinessLogicLayerResponseStatus == Framework.CommonBLLEntities.BusinessLogicLayerResponseStatus.MessageOK)
            {
				int _RecordCount = _Response.Message;

				int _PageCount;
				if (pageSize > 0)
				{
					_PageCount = _RecordCount / pageSize + _RecordCount % pageSize > 0 ? 1 : 0;
				}
				else
				{
					_PageCount = 0;
				}
	            //log.Info(string.Format("{0}: GetPageCountOfEntityOfCommon", Framework.LoggingOptions.UI_Process_Succeeded.ToString()));
				return _PageCount;
			}
            else
            {
                //log.Error(string.Format("{0}: GetPageCountOfEntityOfCommon", Framework.LoggingOptions.UI_Process_Failed.ToString()));
	            //Framework.Web.WebFormApplicationExceptionHandler.Process("BusinessLogicLayerEntityStaticLog", "GetCountOfEntityOfCommon", _Response.BusinessLogicLayerResponseStatus.ToString(), _Response.ServerErrorMessage);
                return 0;
            }
        }
        /// <summary>
        /// Gets message of the collection of entity of common.
        /// </summary>
        /// <param name="criteria"></param>
        /// <param name="queryPagingSetting"></param>
        /// <param name="queryOrderBySettingCollection"></param>
        /// <returns>business layer built-in message <see cref="Log4Net.DataSourceEntities.LogCollection"/></returns>
        public static Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog GetMessageOfEntityOfCommon(
            Log4Net.CommonBLLEntities.BusinessLogicLayerChainedQueryCriteriaEntityLogCommon criteria
            , Framework.EntityContracts.QueryPagingSetting queryPagingSetting
            , Framework.EntityContracts.QueryOrderBySettingCollection queryOrderBySettingCollection
			, Framework.DataServiceTypes dataServiceType)
        {
            //log.Info(string.Format("{0}: GetMessageOfEntityOfCommon", Framework.LoggingOptions.UI_Process_Started.ToString()));
            Log4Net.WcfContracts.ILogWcfService _BusinessLogicLayerInstance = Log4Net.WcfContracts.WcfServiceResolver.ResolveWcfServiceLog();
            Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageUserDefinedLogOfCommon _Request = new Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageUserDefinedLogOfCommon(
                Framework.CommonBLLEntities.BusinessLogicLayerRequestTypes.Search
                , "GetMessageOfEntityOfCommon"
                , Guid.NewGuid().ToString()
                );
            _Request.Critieria = criteria;
            _Request.QueryPagingSetting = queryPagingSetting;
            if (queryOrderBySettingCollection == null || queryOrderBySettingCollection.Count == 0)
            {
                _Request.QueryOrderBySettingCollection = DefaultQueryOrderBySettingCollection;
            }
            else
            {
                _Request.QueryOrderBySettingCollection = queryOrderBySettingCollection;
            }
			_Request.DataServiceType = dataServiceType;

            Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog _Response = _BusinessLogicLayerInstance.GetCollectionOfEntityOfCommon(_Request);
            return _Response;
        }
        /// <summary>
        /// Gets the single of entity of common.
        /// </summary>
        /// <param name="criteria"></param>
        /// <param name="queryPagingSetting"></param>
        /// <param name="queryOrderBySettingCollection"></param>
        /// <returns>the collection of type <see cref="Log4Net.DataSourceEntities.LogCollection"/></returns>
        public static Log4Net.DataSourceEntities.LogCollection GetSingleOfEntityOfCommon(
            Log4Net.CommonBLLEntities.BusinessLogicLayerChainedQueryCriteriaEntityLogCommon criteria
            , Framework.EntityContracts.QueryPagingSetting queryPagingSetting
            , Framework.EntityContracts.QueryOrderBySettingCollection queryOrderBySettingCollection)
        {
            //log.Info(string.Format("{0}: GetSingleOfEntityOfCommon", Framework.LoggingOptions.UI_Process_Started.ToString()));
            Log4Net.WcfContracts.ILogWcfService _BusinessLogicLayerInstance = Log4Net.WcfContracts.WcfServiceResolver.ResolveWcfServiceLog();
            Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageUserDefinedLogOfCommon _Request = new Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageUserDefinedLogOfCommon(
                Framework.CommonBLLEntities.BusinessLogicLayerRequestTypes.Search
                , "GetSingleOfEntityOfCommon"
                , Guid.NewGuid().ToString()
                );
            _Request.Critieria = criteria;
            _Request.QueryPagingSetting = queryPagingSetting;
            if (queryOrderBySettingCollection == null || queryOrderBySettingCollection.Count == 0)
            {
                _Request.QueryOrderBySettingCollection = DefaultQueryOrderBySettingCollection;
            }
            else
            {
                _Request.QueryOrderBySettingCollection = queryOrderBySettingCollection;
            }

            Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog _Response = _BusinessLogicLayerInstance.GetSingleOfEntityOfCommon(_Request);
            if (_Response.BusinessLogicLayerResponseStatus == Framework.CommonBLLEntities.BusinessLogicLayerResponseStatus.MessageOK)
            {
	            //log.Info(string.Format("{0}: GetSingleOfEntityOfCommon", Framework.LoggingOptions.UI_Process_Succeeded.ToString()));
                return _Response.Message;
            }
            else
            {
                //Framework.Web.WebFormApplicationExceptionHandler.Process("BusinessLogicLayerEntityStaticLog", "GetSingleOfEntityOfCommon", _Response.BusinessLogicLayerResponseStatus.ToString(), _Response.ServerErrorMessage);
	            //log.Error(string.Format("{0}: GetSingleOfEntityOfCommon", Framework.LoggingOptions.UI_Process_Failed.ToString()));
                return null;
            }
        }
Ejemplo n.º 48
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LogIdentifier"/> class.
 /// </summary>
 public LogIdentifier(Log4Net.EntityContracts.ILogIdentifier item)
 {
     Log4Net.EntityContracts.ILogIdentifierHelper.Copy<Log4Net.EntityContracts.ILogIdentifier, LogIdentifier>(item, this);
 }
        /// <summary>
        /// Gets the collection of entity of Entity of All .
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>an instance of Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog if any</returns>
		public Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog GetCollectionOfEntityOfAll(
			Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageUserDefinedLogOfAll request)
        {
            log.Info(string.Format("{0}: GetCollectionOfEntityOfAll", Framework.LoggingOptions.Business_Logic_Layer_Process_Started.ToString()));
            Log4Net.DataSourceEntities.DataAccessLayerMessageOfEntityCollectionLog _resultFromDAL = this.DALClassInstance.GetCollectionOfEntityOfAll(
				request.QueryPagingSetting.CurrentIndex
				, request.QueryPagingSetting.PageSize
				, request.QueryOrderBySettingCollection
				);
            Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog _retval = new Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog();
            _retval.BusinessLogicLayerRequestID = request.BusinessLogicLayerRequestID;

			//Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageBaseHelper.MapDataAccessLayerMessageToBusinessLogicLayerResponseMessage<Log4Net.DataSourceEntities.LogCollection>(_resultFromDAL, _retval);

            if (request.DataServiceType == Framework.DataServiceTypes.DataSourceResult)
            {
				Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageBaseHelper.MapDataAccessLayerMessageToBusinessLogicLayerResponseMessage<Log4Net.DataSourceEntities.LogCollection>(_resultFromDAL, _retval);
            }
            else
            {
				Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageBaseHelper.MapDataAccessLayerMessageToBusinessLogicLayerResponseMessage<Log4Net.DataSourceEntities.Log, Log4Net.DataSourceEntities.LogCollection>(_resultFromDAL, _retval, request.DataServiceType, new Log4Net.CommonBLL.DataStreamServiceProviderLog());
            }

            log.Info(string.Format("{0}: GetCollectionOfEntityOfAll", Framework.LoggingOptions.Business_Logic_Layer_Process_Ended.ToString()));
            return _retval;
        }
        /// <summary>
        /// Gets message of the collection of entity of common.
        /// </summary>
        /// <param name="criteria"></param>
        /// <param name="queryPagingSetting"></param>
        /// <param name="queryOrderBySettingCollection"></param>
        /// <returns>business layer built-in message <see cref="Framework.NameValueCollection"/></returns>
        public static Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageNameValuePairCollection GetMessageOfNameValuePairOfAll(
            Log4Net.CommonBLLEntities.BusinessLogicLayerChainedQueryCriteriaEntityLogAll criteria
            , Framework.EntityContracts.QueryPagingSetting queryPagingSetting
            , Framework.EntityContracts.QueryOrderBySettingCollection queryOrderBySettingCollection)
        {
			return GetMessageOfNameValuePairOfAll(
				criteria
				, queryPagingSetting
				, queryOrderBySettingCollection
				, Framework.DataServiceTypes.DataSourceResult);
        }
        /// <summary>
        /// Gets the count of entity of NameValuePair of All .
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>an instance of integer wrapper: <see cref="Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageInteger"/></returns>
        public Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageInteger GetCountOfNameValuePairOfAll(
			Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageUserDefinedLogOfAll request)
        {
            log.Info(string.Format("{0}: GetCountOfNameValuePairOfAll", Framework.LoggingOptions.Business_Logic_Layer_Process_Started.ToString()));
            Framework.DataSourceEntities.DataAccessLayerMessageOfInteger _resultFromDAL = this.DALClassInstance.GetCountOfNameValuePairOfAll(
				request.QueryPagingSetting.CurrentIndex
				, request.QueryPagingSetting.PageSize
				, request.QueryOrderBySettingCollection);
            Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageInteger _retval = new Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageInteger();

            _retval.BusinessLogicLayerRequestID = request.BusinessLogicLayerRequestID;
			Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageBaseHelper.MapDataAccessLayerMessageToBusinessLogicLayerResponseMessage<int>(_resultFromDAL, _retval);
            log.Info(string.Format("{0}: GetCountOfNameValuePairOfAll", Framework.LoggingOptions.Business_Logic_Layer_Process_Ended.ToString()));
            return _retval;
        }
Ejemplo n.º 52
0
        public ActionResult Edit(bool isToCompareIdByIdentifierOftOfByIdentifier, System.Int64 valueToCompareIdByIdentifierOftOfByIdentifier, Log4Net.DataSourceEntities.Log input)
        {
            try
            {
                log.Info(string.Format("{0}: Edit", Framework.LoggingOptions.UI_Process_Started.ToString()));
				Log4Net.DataSourceEntities.Log entity = input;

                entity.Id = valueToCompareIdByIdentifierOftOfByIdentifier;


                var _Response = Log4Net.CommonBLLIoC.BusinessLogicLayerEntityStaticLog.UpdateEntity(entity);



                log.Info(string.Format("{0}: Edit", Framework.LoggingOptions.UI_Process_Ended.ToString()));
                return RedirectToAction("Index");
            }
            catch
            {
                return View(new Log4Net.DataSourceEntities.Log());
            }
        }
        /// <summary>
        /// Exists the of entity of KeyInformation of ByIdentifier .
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns> Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageBoolean</returns>
        public Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageBoolean ExistsOfKeyInformationOfByIdentifier(
			Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageUserDefinedLogOfByIdentifier request)
        {
            log.Info(string.Format("{0}: ExistsOfKeyInformationOfByIdentifier", Framework.LoggingOptions.Business_Logic_Layer_Process_Started.ToString()));
            Framework.DataSourceEntities.DataAccessLayerMessageOfBoolean _resultFromDAL = this.DALClassInstance.ExistsOfKeyInformationOfByIdentifier(
				request.Critieria.BusinessLogicLayerQueryCriteriaEntityLogByIdentifier.IdByIdentifierOft
				, request.QueryPagingSetting.CurrentIndex
				, request.QueryPagingSetting.PageSize
				, request.QueryOrderBySettingCollection);
            Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageBoolean _retval = new Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageBoolean();

            _retval.BusinessLogicLayerRequestID = request.BusinessLogicLayerRequestID;
			Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageBaseHelper.MapDataAccessLayerMessageToBusinessLogicLayerResponseMessage<bool>(_resultFromDAL, _retval);
            log.Info(string.Format("{0}: ExistsOfKeyInformationOfByIdentifier", Framework.LoggingOptions.Business_Logic_Layer_Process_Ended.ToString()));
            return _retval;
		}
Ejemplo n.º 54
0
        public ActionResult AddNew(Log4Net.DataSourceEntities.Log input)
        {
            try
            {
                log.Info(string.Format("{0}: AddNew", Framework.LoggingOptions.UI_Process_Started.ToString()));

				Log4Net.DataSourceEntities.Log entity = input;

                var _Response = Log4Net.CommonBLLIoC.BusinessLogicLayerEntityStaticLog.InsertEntity(entity);



				TempData[TempDataKey_LogController_Copy] = null;
                TempData.Remove(TempDataKey_LogController_Copy);
                log.Info(string.Format("{0}: Insert", Framework.LoggingOptions.UI_Process_Ended.ToString()));

                return RedirectToAction("Index");
            }
            catch
            {
                return View(new Log4Net.DataSourceEntities.Log());
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="BusinessLogicLayerEntityLog"/> class.
 /// </summary>
 /// <param name="dalClassInstance">The dal class instance.</param>
 /// <param name="businessLogicLayerMemberShip">The business logic layer member ship.</param>
 public BusinessLogicLayerEntityLog(
     Log4Net.DALContracts.DataAccessLayerEntityContractLog dalClassInstance
     , Framework.CommonBLLEntities.BusinessLogicLayerMemberShipContract businessLogicLayerMemberShip)
 {
     this.DALClassInstance = dalClassInstance;
     this.BusinessLogicLayerMemberShip = businessLogicLayerMemberShip;
 }
 /// <summary>
 /// constructor with Linq DataContext parameter
 /// </summary>
 /// <param name="linqContext">see<see cref="Log4Net.EntityFrameworkContext.Log4NetEntities"/></param>
 public EFDataAccessLayerEntityLog(Log4Net.EntityFrameworkContext.Log4NetEntities linqContext)
 {
     this.LinqContext = linqContext;
 }
 /// <summary>
 /// Gets an entity instance by input identifier.
 /// </summary>
 /// <param name="id">The id.</param>
 /// <returns>an instance of <see cref="Log4Net.DataSourceEntities.LogIdentifier"/> class, with same identifier.</returns>
 public Log4Net.DataSourceEntities.Log GetByIdentifier(Log4Net.DataSourceEntities.LogIdentifier id)
 {
     Log4Net.EntityFrameworkContext.Log _Only = GetLinqObjectByIdentifier(id);
     if (_Only != null)
     {
         return new Log4Net.DataSourceEntities.Log(_Only);
     }
     else
     {
         return null;
     }
 }
Ejemplo n.º 58
0
 void Awake()
 {
     instance = this;
 }
 /// <summary>
 /// delete an entity of <see cref=" Log4Net.DataSourceEntities.Log"/> by identifier.
 /// </summary>
 /// <param name="identifier">input identifier of an entity</param>
 /// <returns>a message with action result</returns>
 public static Log4Net.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInLog DeleteByIdentifierEntity(
     Log4Net.DataSourceEntities.LogIdentifier identifier)
 {
     Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageBuiltInOfIdentifierLog _Request = new Log4Net.CommonBLLEntities.BusinessLogicLayerRequestMessageBuiltInOfIdentifierLog(Framework.CommonBLLEntities.BusinessLogicLayerRequestTypes.Delete, Framework.CommonBLLEntities.BusinessLogicLayerRequestTypes.Delete.ToString(), Guid.NewGuid().ToString());
     _Request.Critieria = identifier;
     return DeleteByIdentifierRequest(_Request);
 }
        /// <summary>
        /// Batches the update with entity collection input.
        /// </summary>
        /// <param name="input">The input.</param>
        public Log4Net.DataSourceEntities.DataAccessLayerMessageOfEntityCollectionLog BatchUpdate(Log4Net.DataSourceEntities.LogCollection input)
        {
            log.Info(string.Format("{0}: BatchUpdate", Framework.LoggingOptions.Data_Access_Layer_Process_Started.ToString()));

			Log4Net.DataSourceEntities.DataAccessLayerMessageOfEntityCollectionLog  _retval = new Log4Net.DataSourceEntities.DataAccessLayerMessageOfEntityCollectionLog();
            _retval.OriginalValue = input;

            if (input != null)
            {
                List<Log4Net.EntityFrameworkContext.Log> _ListOfLinq = new List<Log4Net.EntityFrameworkContext.Log>();
                foreach (Log4Net.DataSourceEntities.Log _ItemOfInput in input)
                {
                    Log4Net.EntityFrameworkContext.Log _LinqItem = GetLinqObjectByIdentifier(_ItemOfInput);
                    Log4Net.EntityContracts.ILogHelper.Copy<Log4Net.DataSourceEntities.Log, Log4Net.EntityFrameworkContext.Log>(_ItemOfInput, _LinqItem);
                    _ListOfLinq.Add(_LinqItem);
                }
                this.LinqContext.SaveChanges();

                for (int i = 0; i < input.Count; i++)
                {
                    Log4Net.EntityContracts.ILogHelper.Copy
                        <
                            Log4Net.EntityFrameworkContext.Log, Log4Net.DataSourceEntities.Log
                        >(_ListOfLinq[i], input[i]);
                }
            }
            log.Info(string.Format("{0}: BatchUpdate", Framework.LoggingOptions.Data_Access_Layer_Process_Ended.ToString()));
			return _retval;
        }