public static SchedulePlanningHandler CreatePlanningHandler(string recordType, TinyMoneyDataContext db = null)
 {
     SchedulePlanningHandler handler = null;
     string str = recordType;
     if (str != null)
     {
         if (!(str == "CrateExpenseRecord"))
         {
             if (str == "CreateIncomeRecord")
             {
                 handler.HandlerType = RecordActionType.CreateIncomeRecord;
                 return new ExpenseOrIncomeScheduleHanlder(db);
             }
             if (((str == "CreateTransferingRecord") || (str == "CreateBorrowRecord")) || (str == "CreateLeanRecord"))
             {
             }
             return handler;
         }
         handler = new ExpenseOrIncomeScheduleHanlder(db)
         {
             HandlerType = RecordActionType.CrateExpenseRecord
         };
     }
     return handler;
 }
        /// <summary>
        /// Saves the transaction records via schedule planning component.
        /// </summary>
        /// <param name="accountItem">The account item.</param>
        /// <exception cref="System.NotImplementedException"></exception>
        public bool SaveTransactionRecords(params AccountItem[] accountItem)
        {
            var handler = new ExpenseOrIncomeScheduleHanlder(this.dataContext);

            resetStatus();

            foreach (var item in accountItem)
            {
                HandlerDataParsed(handler, item);
            }

            var success = true;
            SaveRecordsToISO(DateTime.Now.ToString("yyyyMMddHHmmss"), (ex) =>
            {
                success = false;
            });

            resetStatus();

            return success;
        }