/// <summary>
        /// 修改数据信息
        /// </summary>
        /// <typeparam name="T">数据表类型集合</typeparam>
        /// <param name="args">参数</param>
        /// <returns>影响行数</returns>
        public CustomResult Update(UpdateHdayExViewModel args)
        {
            using (DataSubmittedEntities db = new DataSubmittedEntities())
            {
                using (TransactionScope transaction = new TransactionScope())
                {
                    CustomResult pReturnValue = new CustomResult();
                    int count = (args.EndTime.Value - args.StartTime.Value).Days + 1;
                    HDayExViewModel model = null;
                    if (args.DataInfo.Count > 0)
                    {
                        if (args.DataInfo[0].Num == 15)
                            model = args.DataInfo[0];
                    }
                    try
                    {

                        for (int i = 0; i < count; i++)
                        {
                            DateTime pDateTime = args.StartTime.Value.AddDays(i);
                            var listHDa = db.RP_HDayAADT.Where(a => a.CalcuTime == pDateTime).ToList();
                            foreach (RP_HDayAADT hd in listHDa)
                            {
                                Type myType = model.GetType();
                                PropertyInfo pinfo = myType.GetProperty("Tra" + (i + 1));
                                hd.Out = (double)pinfo.GetValue(model);
                                hd.UpdDate = DateTime.Now;
                                hd.State = "1";
                                if (SessionManage.GetLoginUser() != null)
                                {
                                    hd.UpdBy = SessionManage.GetLoginUser().UserName;
                                }
                            }
                        }
                        db.SaveChanges();
                        transaction.Complete();
                        pReturnValue.ResultKey = (byte)EResult.Succeed;
                        pReturnValue.ResultValue = TipInfo.UpdateSuccess;
                        return pReturnValue;
                    }
                    catch (Exception ex)
                    {
                        Common.SystemLog.GetInstance().Log.Info(TipInfo.UpdateDataRepeat, ex);
                        pReturnValue.ResultKey = (byte)EResult.Fail;
                        pReturnValue.ResultValue = TipInfo.UpdateDataRepeat;
                        return pReturnValue;
                    }
                }
            }
        }
        public JsonResult UpdateHDayEx(UpdateHdayExViewModel args)
        {
            try
            {
                ReportFactory.Instance.log.WriteLog(OperationType.Update, Utility.GetReportNameByType(12), Utility.GetFormatDate(args.StartTime, args.EndTime));

                return Json(ReportFactory.Instance.report12.Update(args));
            }
            catch (Exception ex)
            {
                CustomResult ret = new CustomResult();
                ret.ResultKey = 0;
                ret.ResultValue = ex.Message;
                return Json(ret, JsonRequestBehavior.DenyGet);
            }
        }