예제 #1
0
        /// <summary>
        /// 保存工作日志
        /// </summary>
        /// <param name="data"></param>
        /// <param name="type"></param>
        public void SaveDailyRecord(OperticketmanagerEntity data, string type)
        {
            DailyrRecordEntity entity = new DailyrRecordEntity();

            entity.Content  = data.Transporttype;
            entity.WorkType = 2;
            entity.Theme    = type;
            operticketmanagerbll.InsetDailyRecord(entity);
        }
예제 #2
0
 /// <summary>
 /// 添加工作记录日志
 /// </summary>
 /// <param name="entity"></param>
 public void InsetDailyRecord(DailyrRecordEntity entity)
 {
     try
     {
         service.InsetDailyRecord(entity);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #3
0
 /// <summary>
 /// 写日志功能
 /// </summary>
 public void InsetDailyRecord(DailyrRecordEntity entity)
 {
     try
     {
         if (entity != null)
         {
             Operator user = OperatorProvider.Provider.Current();
             if (user != null)
             {
                 entity.Create();
             }
             Repository <DailyrRecordEntity> equ = new Repository <DailyrRecordEntity>(DbFactory.Base());
             equ.Insert(entity);
         }
     }
     catch (Exception)
     {
         throw;
     }
 }