Example #1
0
 public Setting(SettingMaster ArgDay)
 {
     Value     = ArgDay;
     ValueStr  = ArgDay.StartTime.ToString("MM月dd日(ddd)", new System.Globalization.CultureInfo("ja-JP"));
     StartTime = new TimeSpan(ArgDay.StartTime.Hour, ArgDay.StartTime.Minute, 0);
     EndTime   = new TimeSpan(ArgDay.EndTime.Hour, ArgDay.EndTime.Minute, 0);
     BreakTime = "1";
 }
Example #2
0
        /// <summary>

        /// 更新・追加(設定画面)

        /// </summary>

        /// <param name="item"></param>

        /// <returns></returns>

        public int SaveItem_SettingMaster(SettingMaster item)

        {
            lock (Locker)

            {
                //ID <> 0の場合は更新

                if (item.ID != 0)

                {
                    _db.Update(item);

                    return(item.ID);
                }

                //追加

                return(_db.Insert(item));
            }
        }