Esempio n. 1
0
 /// <summary>
 /// 添加HSSE事故(含未遂)处理
 /// </summary>
 /// <param name="accidentHandle"></param>
 public static void AddAccidentHandle(Model.Accident_AccidentHandle accidentHandle)
 {
     Model.SUBHSSEDB db = Funs.DB;
     Model.Accident_AccidentHandle newAccidentHandle = new Model.Accident_AccidentHandle
     {
         AccidentHandleId   = accidentHandle.AccidentHandleId,
         ProjectId          = accidentHandle.ProjectId,
         UnitId             = accidentHandle.UnitId,
         AccidentHandleCode = accidentHandle.AccidentHandleCode,
         AccidentHandleName = accidentHandle.AccidentHandleName,
         AccidentDate       = accidentHandle.AccidentDate,
         AccidentDef        = accidentHandle.AccidentDef,
         Death                  = accidentHandle.Death,
         MoneyLoss              = accidentHandle.MoneyLoss,
         AccidentHandle         = accidentHandle.AccidentHandle,
         Remark                 = accidentHandle.Remark,
         States                 = accidentHandle.States,
         CompileMan             = accidentHandle.CompileMan,
         CompileDate            = accidentHandle.CompileDate,
         DeathPersonNum         = accidentHandle.DeathPersonNum,
         InjuriesPersonNum      = accidentHandle.InjuriesPersonNum,
         MinorInjuriesPersonNum = accidentHandle.MinorInjuriesPersonNum,
         WorkHoursLoss          = accidentHandle.WorkHoursLoss
     };
     db.Accident_AccidentHandle.InsertOnSubmit(newAccidentHandle);
     db.SubmitChanges();
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectAccidentHandleMenuId, accidentHandle.ProjectId, accidentHandle.UnitId, accidentHandle.AccidentHandleId, accidentHandle.CompileDate);
 }
Esempio n. 2
0
 /// <summary>
 /// 添加吊装作业票
 /// </summary>
 /// <param name="liftingWork"></param>
 public static void AddLiftingWork(Model.License_LiftingWork liftingWork)
 {
     Model.SUBHSSEDB           db             = Funs.DB;
     Model.License_LiftingWork newLiftingWork = new Model.License_LiftingWork
     {
         LiftingWorkId     = liftingWork.LiftingWorkId,
         ProjectId         = liftingWork.ProjectId,
         LicenseCode       = liftingWork.LicenseCode,
         ApplyUnitId       = liftingWork.ApplyUnitId,
         ApplyManId        = liftingWork.ApplyManId,
         ApplyDate         = liftingWork.ApplyDate,
         WorkPalce         = liftingWork.WorkPalce,
         WorkLevel         = liftingWork.WorkLevel,
         ValidityStartTime = liftingWork.ValidityStartTime,
         ValidityEndTime   = liftingWork.ValidityEndTime,
         WorkMeasures      = liftingWork.WorkMeasures,
         CraneCapacity     = liftingWork.CraneCapacity,
         CancelManId       = liftingWork.CancelManId,
         CancelReasons     = liftingWork.CancelReasons,
         CancelTime        = liftingWork.CancelTime,
         CloseManId        = liftingWork.CloseManId,
         CloseReasons      = liftingWork.CloseReasons,
         CloseTime         = liftingWork.CloseTime,
         NextManId         = liftingWork.NextManId,
         States            = liftingWork.States,
     };
     db.License_LiftingWork.InsertOnSubmit(newLiftingWork);
     db.SubmitChanges();
     ////增加一条编码记录
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectLiftingWorkMenuId, liftingWork.ProjectId, liftingWork.ApplyUnitId, liftingWork.LiftingWorkId, liftingWork.ApplyDate);
 }
Esempio n. 3
0
 /// <summary>
 /// 添加施工方案/审查
 /// </summary>
 /// <param name="constructSolution"></param>
 public static void AddConstructSolution(Model.Solution_ConstructSolution constructSolution)
 {
     Model.SUBHSSEDB db = Funs.DB;
     Model.Solution_ConstructSolution newConstructSolution = new Model.Solution_ConstructSolution
     {
         ConstructSolutionId   = constructSolution.ConstructSolutionId,
         ProjectId             = constructSolution.ProjectId,
         ConstructSolutionCode = constructSolution.ConstructSolutionCode,
         ConstructSolutionName = constructSolution.ConstructSolutionName,
         VersionNo             = constructSolution.VersionNo,
         UnitId          = constructSolution.UnitId,
         InvestigateType = constructSolution.InvestigateType,
         SolutinType     = constructSolution.SolutinType,
         FileContents    = constructSolution.FileContents,
         Remark          = constructSolution.Remark,
         CompileMan      = constructSolution.CompileMan,
         CompileManName  = constructSolution.CompileManName,
         CompileDate     = constructSolution.CompileDate,
         States          = constructSolution.States
     };
     db.Solution_ConstructSolution.InsertOnSubmit(newConstructSolution);
     db.SubmitChanges();
     if (constructSolution.ConstructSolutionCode == BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(Const.ProjectConstructSolutionMenuId, constructSolution.ProjectId, null))
     {
         CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectConstructSolutionMenuId, constructSolution.ProjectId, null, constructSolution.ConstructSolutionId, constructSolution.CompileDate);
     }
 }
Esempio n. 4
0
 /// <summary>
 /// 添加违章曝光台
 /// </summary>
 /// <param name="exposure"></param>
 public static void AddExposure(Model.InformationProject_Exposure exposure)
 {
     Model.SUBHSSEDB db = Funs.DB;
     Model.InformationProject_Exposure newExposure = new Model.InformationProject_Exposure
     {
         ExposureId   = exposure.ExposureId,
         ProjectId    = exposure.ProjectId,
         ExposureCode = exposure.ExposureCode,
         ExposureDate = exposure.ExposureDate,
         UnitId       = exposure.UnitId,
         UnitName     = exposure.UnitName,
         FileName     = exposure.FileName,
         Remark       = exposure.Remark,
         CompileMan   = exposure.CompileMan,
         CompileDate  = exposure.CompileDate
     };
     db.InformationProject_Exposure.InsertOnSubmit(newExposure);
     db.SubmitChanges();
     if (newExposure.UnitId.Length > 50)
     {
         CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectExposureMenuId, exposure.ProjectId, null, exposure.ExposureId, exposure.CompileDate);
     }
     else
     {
         CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectExposureMenuId, exposure.ProjectId, exposure.UnitId, exposure.ExposureId, exposure.CompileDate);
     }
 }
Esempio n. 5
0
        /// <summary>
        /// 添加物资管理
        /// </summary>
        /// <param name="goodsManage"></param>
        public static void AddGoodsManage(Model.CostGoods_GoodsManage goodsManage)
        {
            Model.SUBHSSEDB             db             = Funs.DB;
            Model.CostGoods_GoodsManage newGoodsManage = new Model.CostGoods_GoodsManage
            {
                GoodsManageId   = goodsManage.GoodsManageId,
                ProjectId       = goodsManage.ProjectId,
                UnitId          = goodsManage.UnitId,
                GoodsCategoryId = goodsManage.GoodsCategoryId,
                GoodsCode       = goodsManage.GoodsCode,
                GoodsName       = goodsManage.GoodsName,
                SizeModel       = goodsManage.SizeModel,
                FactoryCode     = goodsManage.FactoryCode,
                CheckDate       = goodsManage.CheckDate,
                EnableYear      = goodsManage.EnableYear,
                CheckPerson     = goodsManage.CheckPerson,
                InTime          = goodsManage.InTime,
                States          = goodsManage.States,
                CompileMan      = goodsManage.CompileMan,
                CompileDate     = goodsManage.CompileDate,
                Remark          = goodsManage.Remark
            };
            db.CostGoods_GoodsManage.InsertOnSubmit(newGoodsManage);
            db.SubmitChanges();

            CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.GoodsManageMenuId, goodsManage.ProjectId, goodsManage.UnitId, goodsManage.GoodsManageId, goodsManage.CompileDate);
        }
Esempio n. 6
0
 /// <summary>
 /// 添加奖励通知单
 /// </summary>
 /// <param name="incentiveNotice"></param>
 public static void AddIncentiveNotice(Model.Check_IncentiveNotice incentiveNotice)
 {
     Model.SUBHSSEDB             db = Funs.DB;
     Model.Check_IncentiveNotice newIncentiveNotice = new Model.Check_IncentiveNotice
     {
         IncentiveNoticeId   = incentiveNotice.IncentiveNoticeId,
         ProjectId           = incentiveNotice.ProjectId,
         IncentiveNoticeCode = incentiveNotice.IncentiveNoticeCode,
         UnitId         = incentiveNotice.UnitId,
         TeamGroupId    = incentiveNotice.TeamGroupId,
         IncentiveDate  = incentiveNotice.IncentiveDate,
         PersonId       = incentiveNotice.PersonId,
         BasicItem      = incentiveNotice.BasicItem,
         IncentiveMoney = incentiveNotice.IncentiveMoney,
         TitleReward    = incentiveNotice.TitleReward,
         MattleReward   = incentiveNotice.MattleReward,
         FileContents   = incentiveNotice.FileContents,
         AttachUrl      = incentiveNotice.AttachUrl,
         CompileMan     = incentiveNotice.CompileMan,
         CompileDate    = incentiveNotice.CompileDate,
         States         = incentiveNotice.States,
         SignMan        = incentiveNotice.SignMan,
         ApproveMan     = incentiveNotice.ApproveMan,
         RewardType     = incentiveNotice.RewardType,
         Currency       = incentiveNotice.Currency
     };
     db.Check_IncentiveNotice.InsertOnSubmit(newIncentiveNotice);
     db.SubmitChanges();
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectIncentiveNoticeMenuId, incentiveNotice.ProjectId, null, incentiveNotice.IncentiveNoticeId, incentiveNotice.CompileDate);
 }
Esempio n. 7
0
 /// <summary>
 /// 添加采购供货厂家管理
 /// </summary>
 /// <param name="inUnit"></param>
 public static void AddInUnit(Model.QualityAudit_InUnit inUnit)
 {
     Model.SUBHSSEDB           db        = Funs.DB;
     Model.QualityAudit_InUnit newInUnit = new Model.QualityAudit_InUnit
     {
         InUnitId           = inUnit.InUnitId,
         ProjectId          = inUnit.ProjectId,
         InUnitCode         = inUnit.InUnitCode,
         ManufacturerName   = inUnit.ManufacturerName,
         HSEMan             = inUnit.HSEMan,
         HeadTel            = inUnit.HeadTel,
         InDate             = inUnit.InDate,
         PersonCount        = inUnit.PersonCount,
         TrainNum           = inUnit.TrainNum,
         OutDate            = inUnit.OutDate,
         BadgesIssued       = inUnit.BadgesIssued,
         JobTicketValidity  = inUnit.JobTicketValidity,
         TrainRecordsUrl    = inUnit.TrainRecordsUrl,
         PlanUrl            = inUnit.PlanUrl,
         TemporaryPersonUrl = inUnit.TemporaryPersonUrl,
         InPersonTrainUrl   = inUnit.InPersonTrainUrl,
         Accommodation      = inUnit.Accommodation,
         OperationTicket    = inUnit.OperationTicket,
         LaborSituation     = inUnit.LaborSituation,
         CompileMan         = inUnit.CompileMan,
         CompileDate        = inUnit.CompileDate,
         HSEAgreementUrl    = inUnit.HSEAgreementUrl
     };
     db.QualityAudit_InUnit.InsertOnSubmit(newInUnit);
     db.SubmitChanges();
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.InUnitMenuId, inUnit.ProjectId, null, inUnit.InUnitId, inUnit.CompileDate);
 }
Esempio n. 8
0
 /// <summary>
 /// 添加动火作业票
 /// </summary>
 /// <param name="fireWork"></param>
 public static void AddFireWork(Model.License_FireWork fireWork)
 {
     Model.SUBHSSEDB        db          = Funs.DB;
     Model.License_FireWork newFireWork = new Model.License_FireWork
     {
         FireWorkId        = fireWork.FireWorkId,
         ProjectId         = fireWork.ProjectId,
         LicenseCode       = fireWork.LicenseCode,
         ApplyUnitId       = fireWork.ApplyUnitId,
         ApplyManId        = fireWork.ApplyManId,
         ApplyDate         = fireWork.ApplyDate,
         WorkPalce         = fireWork.WorkPalce,
         FireWatchManId    = fireWork.FireWatchManId,
         FireWatchManName  = fireWork.FireWatchManName,
         ValidityStartTime = fireWork.ValidityStartTime,
         ValidityEndTime   = fireWork.ValidityEndTime,
         WorkMeasures      = fireWork.WorkMeasures,
         CancelManId       = fireWork.CancelManId,
         CancelReasons     = fireWork.CancelReasons,
         CancelTime        = fireWork.CancelTime,
         CloseManId        = fireWork.CloseManId,
         CloseReasons      = fireWork.CloseReasons,
         CloseTime         = fireWork.CloseTime,
         NextManId         = fireWork.NextManId,
         States            = fireWork.States,
     };
     db.License_FireWork.InsertOnSubmit(newFireWork);
     db.SubmitChanges();
     ////增加一条编码记录
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectFireWorkMenuId, fireWork.ProjectId, fireWork.ApplyUnitId, fireWork.FireWorkId, fireWork.ApplyDate);
 }
Esempio n. 9
0
 /// <summary>
 /// 添加高处作业票
 /// </summary>
 /// <param name="heightWork"></param>
 public static void AddHeightWork(Model.License_HeightWork heightWork)
 {
     Model.SUBHSSEDB          db            = Funs.DB;
     Model.License_HeightWork newHeightWork = new Model.License_HeightWork
     {
         HeightWorkId      = heightWork.HeightWorkId,
         ProjectId         = heightWork.ProjectId,
         LicenseCode       = heightWork.LicenseCode,
         ApplyUnitId       = heightWork.ApplyUnitId,
         ApplyManId        = heightWork.ApplyManId,
         ApplyDate         = heightWork.ApplyDate,
         WorkPalce         = heightWork.WorkPalce,
         WorkType          = heightWork.WorkType,
         ValidityStartTime = heightWork.ValidityStartTime,
         ValidityEndTime   = heightWork.ValidityEndTime,
         WorkMeasures      = heightWork.WorkMeasures,
         EquipmentTools    = heightWork.EquipmentTools,
         CancelManId       = heightWork.CancelManId,
         CancelReasons     = heightWork.CancelReasons,
         CancelTime        = heightWork.CancelTime,
         CloseManId        = heightWork.CloseManId,
         CloseReasons      = heightWork.CloseReasons,
         CloseTime         = heightWork.CloseTime,
         NextManId         = heightWork.NextManId,
         States            = heightWork.States,
     };
     db.License_HeightWork.InsertOnSubmit(newHeightWork);
     db.SubmitChanges();
     ////增加一条编码记录
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectHeightWorkMenuId, heightWork.ProjectId, heightWork.ApplyUnitId, heightWork.HeightWorkId, heightWork.ApplyDate);
 }
Esempio n. 10
0
 /// <summary>
 /// 添加特殊机具设备资质
 /// </summary>
 /// <param name="equipmentQuality"></param>
 public static void AddEquipmentQuality(Model.QualityAudit_EquipmentQuality equipmentQuality)
 {
     Model.SUBHSSEDB db = Funs.DB;
     Model.QualityAudit_EquipmentQuality newEquipmentQuality = new Model.QualityAudit_EquipmentQuality
     {
         EquipmentQualityId   = equipmentQuality.EquipmentQualityId,
         ProjectId            = equipmentQuality.ProjectId,
         EquipmentQualityCode = equipmentQuality.EquipmentQualityCode,
         UnitId               = equipmentQuality.UnitId,
         SpecialEquipmentId   = equipmentQuality.SpecialEquipmentId,
         EquipmentQualityName = equipmentQuality.EquipmentQualityName,
         SizeModel            = equipmentQuality.SizeModel,
         FactoryCode          = equipmentQuality.FactoryCode,
         CertificateCode      = equipmentQuality.CertificateCode,
         CheckDate            = equipmentQuality.CheckDate,
         LimitDate            = equipmentQuality.LimitDate,
         InDate               = equipmentQuality.InDate,
         OutDate              = equipmentQuality.OutDate,
         ApprovalPerson       = equipmentQuality.ApprovalPerson,
         CarNum               = equipmentQuality.CarNum,
         Remark               = equipmentQuality.Remark,
         CompileMan           = equipmentQuality.CompileMan,
         CompileDate          = equipmentQuality.CompileDate
     };
     db.QualityAudit_EquipmentQuality.InsertOnSubmit(newEquipmentQuality);
     db.SubmitChanges();
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.EquipmentQualityMenuId, equipmentQuality.ProjectId, null, equipmentQuality.EquipmentQualityId, equipmentQuality.CompileDate);
 }
Esempio n. 11
0
        /// <summary>
        /// 添加隐患整改通知单
        /// </summary>
        /// <param name="rectifyNotices"></param>
        public static void AddRectifyNotices(Model.Check_RectifyNotices rectifyNotices)
        {
            Model.Check_RectifyNotices newRectifyNotices = new Model.Check_RectifyNotices
            {
                RectifyNoticesId   = rectifyNotices.RectifyNoticesId,
                ProjectId          = rectifyNotices.ProjectId,
                RectifyNoticesCode = rectifyNotices.RectifyNoticesCode,
                UnitId             = rectifyNotices.UnitId,
                WorkAreaId         = rectifyNotices.WorkAreaId,
                CheckedDate        = rectifyNotices.CheckedDate,
                WrongContent       = rectifyNotices.WrongContent,
                SignPerson         = rectifyNotices.SignPerson,
                SignDate           = rectifyNotices.SignDate,
                CompleteStatus     = rectifyNotices.CompleteStatus,
                DutyPerson         = rectifyNotices.DutyPerson,
                DutyPersonId       = rectifyNotices.DutyPersonId,
                CompleteDate       = rectifyNotices.CompleteDate,
                IsRectify          = rectifyNotices.IsRectify,
                CheckPerson        = rectifyNotices.CheckPerson,
                ReCheckDate        = rectifyNotices.ReCheckDate,
                Isprint            = "0",
                Isprintf           = "0"
            };

            db.Check_RectifyNotices.InsertOnSubmit(newRectifyNotices);
            db.SubmitChanges();
            CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectRectifyNoticeMenuId, rectifyNotices.ProjectId, rectifyNotices.UnitId, rectifyNotices.RectifyNoticesId, rectifyNotices.CompleteDate);
        }
Esempio n. 12
0
        /// <summary>
        /// 添加一般设备机具出场报批
        /// </summary>
        /// <param name="generalEquipmentOut"></param>
        public static void AddGeneralEquipmentOut(Model.InApproveManager_GeneralEquipmentOut generalEquipmentOut)
        {
            Model.SUBHSSEDB db = Funs.DB;
            Model.InApproveManager_GeneralEquipmentOut newGeneralEquipmentOut = new Model.InApproveManager_GeneralEquipmentOut
            {
                GeneralEquipmentOutId   = generalEquipmentOut.GeneralEquipmentOutId,
                ProjectId               = generalEquipmentOut.ProjectId,
                GeneralEquipmentOutCode = generalEquipmentOut.GeneralEquipmentOutCode,
                UnitId          = generalEquipmentOut.UnitId,
                ApplicationDate = generalEquipmentOut.ApplicationDate,
                CarNum          = generalEquipmentOut.CarNum,
                CarModel        = generalEquipmentOut.CarModel,
                DriverName      = generalEquipmentOut.DriverName,
                DriverNum       = generalEquipmentOut.DriverNum,
                TransPortStart  = generalEquipmentOut.TransPortStart,
                TransPortEnd    = generalEquipmentOut.TransPortEnd,
                State           = generalEquipmentOut.State,
                CompileMan      = generalEquipmentOut.CompileMan,
                CompileDate     = generalEquipmentOut.CompileDate
            };
            db.InApproveManager_GeneralEquipmentOut.InsertOnSubmit(newGeneralEquipmentOut);
            db.SubmitChanges();

            CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.GeneralEquipmentOutMenuId, generalEquipmentOut.ProjectId, null, generalEquipmentOut.GeneralEquipmentOutId, generalEquipmentOut.CompileDate);
        }
Esempio n. 13
0
 /// <summary>
 /// 添加受限空间作业票
 /// </summary>
 /// <param name="limitedSpace"></param>
 public static void AddLimitedSpace(Model.License_LimitedSpace limitedSpace)
 {
     Model.SUBHSSEDB            db = Funs.DB;
     Model.License_LimitedSpace newLimitedSpace = new Model.License_LimitedSpace
     {
         LimitedSpaceId    = limitedSpace.LimitedSpaceId,
         ProjectId         = limitedSpace.ProjectId,
         LicenseCode       = limitedSpace.LicenseCode,
         ApplyUnitId       = limitedSpace.ApplyUnitId,
         ApplyManId        = limitedSpace.ApplyManId,
         ApplyDate         = limitedSpace.ApplyDate,
         WorkPalce         = limitedSpace.WorkPalce,
         FireWatchManId    = limitedSpace.FireWatchManId,
         FireWatchManName  = limitedSpace.FireWatchManName,
         ValidityStartTime = limitedSpace.ValidityStartTime,
         ValidityEndTime   = limitedSpace.ValidityEndTime,
         WorkMeasures      = limitedSpace.WorkMeasures,
         CancelManId       = limitedSpace.CancelManId,
         CancelReasons     = limitedSpace.CancelReasons,
         CancelTime        = limitedSpace.CancelTime,
         CloseManId        = limitedSpace.CloseManId,
         CloseReasons      = limitedSpace.CloseReasons,
         CloseTime         = limitedSpace.CloseTime,
         NextManId         = limitedSpace.NextManId,
         States            = limitedSpace.States,
     };
     db.License_LimitedSpace.InsertOnSubmit(newLimitedSpace);
     db.SubmitChanges();
     ////增加一条编码记录
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectLimitedSpaceMenuId, limitedSpace.ProjectId, limitedSpace.ApplyUnitId, limitedSpace.LimitedSpaceId, limitedSpace.ApplyDate);
 }
Esempio n. 14
0
 /// <summary>
 /// 添加射线作业票
 /// </summary>
 /// <param name="radialWork"></param>
 public static void AddRadialWork(Model.License_RadialWork radialWork)
 {
     Model.SUBHSSEDB          db            = Funs.DB;
     Model.License_RadialWork newRadialWork = new Model.License_RadialWork
     {
         RadialWorkId      = radialWork.RadialWorkId,
         ProjectId         = radialWork.ProjectId,
         LicenseCode       = radialWork.LicenseCode,
         ApplyUnitId       = radialWork.ApplyUnitId,
         ApplyManId        = radialWork.ApplyManId,
         ApplyDate         = radialWork.ApplyDate,
         RadialType        = radialWork.RadialType,
         WorkLeaderId      = radialWork.WorkLeaderId,
         WorkLeaderTel     = radialWork.WorkLeaderTel,
         ValidityStartTime = radialWork.ValidityStartTime,
         ValidityEndTime   = radialWork.ValidityEndTime,
         WorkPalce         = radialWork.WorkPalce,
         WorkMeasures      = radialWork.WorkMeasures,
         FireWatchManId    = radialWork.FireWatchManId,
         WatchManContact   = radialWork.WatchManContact,
         CancelManId       = radialWork.CancelManId,
         CancelReasons     = radialWork.CancelReasons,
         CancelTime        = radialWork.CancelTime,
         CloseManId        = radialWork.CloseManId,
         CloseReasons      = radialWork.CloseReasons,
         CloseTime         = radialWork.CloseTime,
         NextManId         = radialWork.NextManId,
         States            = radialWork.States,
     };
     db.License_RadialWork.InsertOnSubmit(newRadialWork);
     db.SubmitChanges();
     ////增加一条编码记录
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectRadialWorkMenuId, radialWork.ProjectId, radialWork.ApplyUnitId, radialWork.RadialWorkId, radialWork.ApplyDate);
 }
Esempio n. 15
0
 /// <summary>
 /// 添加其他会议记录
 /// </summary>
 /// <param name="attendMeeting"></param>
 public static void AddAttendMeeting(Model.Meeting_AttendMeeting attendMeeting)
 {
     Model.SUBHSSEDB             db = Funs.DB;
     Model.Meeting_AttendMeeting newAttendMeeting = new Model.Meeting_AttendMeeting
     {
         AttendMeetingId       = attendMeeting.AttendMeetingId,
         ProjectId             = attendMeeting.ProjectId,
         UnitId                = attendMeeting.UnitId,
         AttendMeetingCode     = attendMeeting.AttendMeetingCode,
         AttendMeetingName     = attendMeeting.AttendMeetingName,
         AttendMeetingDate     = attendMeeting.AttendMeetingDate,
         CompileMan            = attendMeeting.CompileMan,
         AttendMeetingContents = attendMeeting.AttendMeetingContents,
         CompileDate           = attendMeeting.CompileDate,
         States                = attendMeeting.States,
         MeetingHours          = attendMeeting.MeetingHours,
         MeetingHostMan        = attendMeeting.MeetingHostMan,
         AttentPerson          = attendMeeting.AttentPerson,
         MeetingPlace          = attendMeeting.MeetingPlace,
         MeetingHostManId      = attendMeeting.MeetingHostManId,
         AttentPersonIds       = attendMeeting.AttentPersonIds,
         AttentPersonNum       = attendMeeting.AttentPersonNum,
     };
     db.Meeting_AttendMeeting.InsertOnSubmit(attendMeeting);
     db.SubmitChanges();
     ////增加一条编码记录
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectAttendMeetingMenuId, attendMeeting.ProjectId, null, attendMeeting.AttendMeetingId, attendMeeting.CompileDate);
 }
Esempio n. 16
0
 /// <summary>
 /// 添加断路(占道)作业票
 /// </summary>
 /// <param name="openCircuit"></param>
 public static void AddOpenCircuit(Model.License_OpenCircuit openCircuit)
 {
     Model.SUBHSSEDB           db             = Funs.DB;
     Model.License_OpenCircuit newOpenCircuit = new Model.License_OpenCircuit
     {
         OpenCircuitId     = openCircuit.OpenCircuitId,
         ProjectId         = openCircuit.ProjectId,
         LicenseCode       = openCircuit.LicenseCode,
         ApplyUnitId       = openCircuit.ApplyUnitId,
         ApplyManId        = openCircuit.ApplyManId,
         ApplyDate         = openCircuit.ApplyDate,
         WorkPalce         = openCircuit.WorkPalce,
         WorkMeasures      = openCircuit.WorkMeasures,
         ValidityStartTime = openCircuit.ValidityStartTime,
         ValidityEndTime   = openCircuit.ValidityEndTime,
         RoadName          = openCircuit.RoadName,
         SafeMeasures      = openCircuit.SafeMeasures,
         CancelManId       = openCircuit.CancelManId,
         CancelReasons     = openCircuit.CancelReasons,
         CancelTime        = openCircuit.CancelTime,
         CloseManId        = openCircuit.CloseManId,
         CloseReasons      = openCircuit.CloseReasons,
         CloseTime         = openCircuit.CloseTime,
         NextManId         = openCircuit.NextManId,
         States            = openCircuit.States,
     };
     db.License_OpenCircuit.InsertOnSubmit(newOpenCircuit);
     db.SubmitChanges();
     ////增加一条编码记录
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectOpenCircuitMenuId, openCircuit.ProjectId, openCircuit.ApplyUnitId, openCircuit.OpenCircuitId, openCircuit.ApplyDate);
 }
        /// <summary>
        /// 增加职工伤亡事故原因分析报表
        /// </summary>
        /// <param name="AccidentCauseReport">职工伤亡事故原因分析报表实体</param>
        public static void AddAccidentCauseReport(Model.InformationProject_AccidentCauseReport AccidentCauseReport)
        {
            Model.SUBHSSEDB db = Funs.DB;
            Model.InformationProject_AccidentCauseReport newAccidentCauseReport = new Model.InformationProject_AccidentCauseReport
            {
                AccidentCauseReportId   = AccidentCauseReport.AccidentCauseReportId,
                ProjectId               = AccidentCauseReport.ProjectId,
                AccidentCauseReportCode = AccidentCauseReport.AccidentCauseReportCode,
                Year                    = AccidentCauseReport.Year,
                Month                   = AccidentCauseReport.Month,
                UnitId                  = AccidentCauseReport.UnitId,
                DeathAccident           = AccidentCauseReport.DeathAccident,
                DeathToll               = AccidentCauseReport.DeathToll,
                InjuredAccident         = AccidentCauseReport.InjuredAccident,
                InjuredToll             = AccidentCauseReport.InjuredToll,
                MinorWoundAccident      = AccidentCauseReport.MinorWoundAccident,
                MinorWoundToll          = AccidentCauseReport.MinorWoundToll,
                AverageTotalHours       = AccidentCauseReport.AverageTotalHours,
                AverageManHours         = AccidentCauseReport.AverageManHours,
                TotalLossMan            = AccidentCauseReport.TotalLossMan,
                LastMonthLossHoursTotal = AccidentCauseReport.LastMonthLossHoursTotal,
                KnockOffTotal           = AccidentCauseReport.KnockOffTotal,
                DirectLoss              = AccidentCauseReport.DirectLoss,
                IndirectLosses          = AccidentCauseReport.IndirectLosses,
                TotalLoss               = AccidentCauseReport.TotalLoss,
                TotalLossTime           = AccidentCauseReport.TotalLossTime,
                CompileMan              = AccidentCauseReport.CompileMan,
                CompileDate             = AccidentCauseReport.CompileDate,
                States                  = AccidentCauseReport.States
            };

            db.InformationProject_AccidentCauseReport.InsertOnSubmit(newAccidentCauseReport);
            db.SubmitChanges();
            CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectAccidentCauseReportMenuId, AccidentCauseReport.ProjectId, null, AccidentCauseReport.AccidentCauseReportId, AccidentCauseReport.CompileDate);
        }
Esempio n. 18
0
 /// <summary>
 /// 添加处罚通知单
 /// </summary>
 /// <param name="punishNotice"></param>
 public static void AddPunishNotice(Model.Check_PunishNotice punishNotice)
 {
     Model.SUBHSSEDB          db = Funs.DB;
     Model.Check_PunishNotice newPunishNotice = new Model.Check_PunishNotice
     {
         PunishNoticeId   = punishNotice.PunishNoticeId,
         ProjectId        = punishNotice.ProjectId,
         PunishNoticeCode = punishNotice.PunishNoticeCode,
         UnitId           = punishNotice.UnitId,
         PunishNoticeDate = punishNotice.PunishNoticeDate,
         BasicItem        = punishNotice.BasicItem,
         PunishMoney      = punishNotice.PunishMoney,
         FileContents     = punishNotice.FileContents,
         AttachUrl        = punishNotice.AttachUrl,
         CompileMan       = punishNotice.CompileMan,
         CompileDate      = punishNotice.CompileDate,
         States           = punishNotice.States,
         PunishStates     = punishNotice.PunishStates,
         SignMan          = punishNotice.SignMan,
         ApproveMan       = punishNotice.ApproveMan,
         ContractNum      = punishNotice.ContractNum,
         IncentiveReason  = punishNotice.IncentiveReason,
         Currency         = punishNotice.Currency,
         PunishName       = punishNotice.PunishName,
     };
     db.Check_PunishNotice.InsertOnSubmit(newPunishNotice);
     db.SubmitChanges();
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectPunishNoticeMenuId, punishNotice.ProjectId, null, punishNotice.PunishNoticeId, punishNotice.CompileDate);
 }
Esempio n. 19
0
 /// <summary>
 /// 添加动土作业票
 /// </summary>
 /// <param name="breakGround"></param>
 public static void AddBreakGround(Model.License_BreakGround breakGround)
 {
     Model.SUBHSSEDB           db             = Funs.DB;
     Model.License_BreakGround newBreakGround = new Model.License_BreakGround
     {
         BreakGroundId     = breakGround.BreakGroundId,
         ProjectId         = breakGround.ProjectId,
         LicenseCode       = breakGround.LicenseCode,
         ApplyUnitId       = breakGround.ApplyUnitId,
         ApplyManId        = breakGround.ApplyManId,
         ApplyDate         = breakGround.ApplyDate,
         WorkPalce         = breakGround.WorkPalce,
         WorkDepth         = breakGround.WorkDepth,
         ValidityStartTime = breakGround.ValidityStartTime,
         ValidityEndTime   = breakGround.ValidityEndTime,
         WorkMeasures      = breakGround.WorkMeasures,
         CancelManId       = breakGround.CancelManId,
         CancelReasons     = breakGround.CancelReasons,
         CancelTime        = breakGround.CancelTime,
         CloseManId        = breakGround.CloseManId,
         CloseReasons      = breakGround.CloseReasons,
         CloseTime         = breakGround.CloseTime,
         NextManId         = breakGround.NextManId,
         States            = breakGround.States,
     };
     db.License_BreakGround.InsertOnSubmit(newBreakGround);
     db.SubmitChanges();
     ////增加一条编码记录
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectBreakGroundMenuId, breakGround.ProjectId, breakGround.ApplyUnitId, breakGround.BreakGroundId, breakGround.ApplyDate);
 }
Esempio n. 20
0
 /// <summary>
 /// 添加夜间施工作业票
 /// </summary>
 /// <param name="nightWork"></param>
 public static void AddNightWork(Model.License_NightWork nightWork)
 {
     Model.SUBHSSEDB         db           = Funs.DB;
     Model.License_NightWork newNightWork = new Model.License_NightWork
     {
         NightWorkId       = nightWork.NightWorkId,
         ProjectId         = nightWork.ProjectId,
         LicenseCode       = nightWork.LicenseCode,
         ApplyUnitId       = nightWork.ApplyUnitId,
         ApplyManId        = nightWork.ApplyManId,
         ApplyDate         = nightWork.ApplyDate,
         WorkPalce         = nightWork.WorkPalce,
         WorkMeasures      = nightWork.WorkMeasures,
         ValidityStartTime = nightWork.ValidityStartTime,
         ValidityEndTime   = nightWork.ValidityEndTime,
         WorkLeaderId      = nightWork.WorkLeaderId,
         WorkLeaderTel     = nightWork.WorkLeaderTel,
         SafeLeaderId      = nightWork.SafeLeaderId,
         SafeLeaderTel     = nightWork.SafeLeaderTel,
         CancelManId       = nightWork.CancelManId,
         CancelReasons     = nightWork.CancelReasons,
         CancelTime        = nightWork.CancelTime,
         CloseManId        = nightWork.CloseManId,
         CloseReasons      = nightWork.CloseReasons,
         CloseTime         = nightWork.CloseTime,
         NextManId         = nightWork.NextManId,
         States            = nightWork.States,
     };
     db.License_NightWork.InsertOnSubmit(newNightWork);
     db.SubmitChanges();
     ////增加一条编码记录
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectNightWorkMenuId, nightWork.ProjectId, nightWork.ApplyUnitId, nightWork.NightWorkId, nightWork.ApplyDate);
 }
Esempio n. 21
0
 /// <summary>
 /// 添加个人绩效评价
 /// </summary>
 /// <param name="personPerfomance"></param>
 public static void AddPersonPerfomance(Model.Perfomance_PersonPerfomance personPerfomance)
 {
     Model.SUBHSSEDB db = Funs.DB;
     Model.Perfomance_PersonPerfomance newPersonPerfomance = new Model.Perfomance_PersonPerfomance
     {
         PersonPerfomanceId   = personPerfomance.PersonPerfomanceId,
         ProjectId            = personPerfomance.ProjectId,
         PersonPerfomanceCode = personPerfomance.PersonPerfomanceCode,
         UnitId          = personPerfomance.UnitId,
         TeamGroupId     = personPerfomance.TeamGroupId,
         PersonId        = personPerfomance.PersonId,
         SubContractNum  = personPerfomance.SubContractNum,
         EvaluationDate  = personPerfomance.EvaluationDate,
         EvaluationDef   = personPerfomance.EvaluationDef,
         RewardOrPunish  = personPerfomance.RewardOrPunish,
         RPMoney         = personPerfomance.RPMoney,
         AssessmentGroup = personPerfomance.AssessmentGroup,
         Behavior_1      = personPerfomance.Behavior_1,
         Behavior_2      = personPerfomance.Behavior_2,
         Behavior_3      = personPerfomance.Behavior_3,
         Behavior_4      = personPerfomance.Behavior_4,
         Behavior_5      = personPerfomance.Behavior_5,
         Behavior_6      = personPerfomance.Behavior_6,
         Behavior_7      = personPerfomance.Behavior_7,
         Behavior_8      = personPerfomance.Behavior_8,
         Behavior_9      = personPerfomance.Behavior_9,
         Behavior_10     = personPerfomance.Behavior_10,
         Score_1         = personPerfomance.Score_1,
         Score_2         = personPerfomance.Score_2,
         Score_3         = personPerfomance.Score_3,
         Score_4         = personPerfomance.Score_4,
         Score_5         = personPerfomance.Score_5,
         Score_6         = personPerfomance.Score_6,
         Score_7         = personPerfomance.Score_7,
         Score_8         = personPerfomance.Score_8,
         Score_9         = personPerfomance.Score_9,
         Score_10        = personPerfomance.Score_10,
         TotalJudging    = personPerfomance.TotalJudging,
         TotalScore      = personPerfomance.TotalScore,
         States          = personPerfomance.States,
         CompileMan      = personPerfomance.CompileMan,
         CompileDate     = personPerfomance.CompileDate,
         AttachUrl       = personPerfomance.AttachUrl
     };
     db.Perfomance_PersonPerfomance.InsertOnSubmit(newPersonPerfomance);
     db.SubmitChanges();
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.PersonPerfomanceMenuId, personPerfomance.ProjectId, null, personPerfomance.PersonPerfomanceId, personPerfomance.CompileDate);
 }
Esempio n. 22
0
 /// <summary>
 /// 添加安全措施费使用计划
 /// </summary>
 /// <param name="measuresPlan"></param>
 public static void AddMeasuresPlan(Model.CostGoods_MeasuresPlan measuresPlan)
 {
     Model.SUBHSSEDB db = Funs.DB;
     Model.CostGoods_MeasuresPlan newMeasuresPlan = new Model.CostGoods_MeasuresPlan
     {
         MeasuresPlanId   = measuresPlan.MeasuresPlanId,
         ProjectId        = measuresPlan.ProjectId,
         MeasuresPlanCode = measuresPlan.MeasuresPlanCode,
         UnitId           = measuresPlan.UnitId,
         FileContents     = measuresPlan.FileContents,
         CompileMan       = measuresPlan.CompileMan,
         CompileDate      = measuresPlan.CompileDate
     };
     db.CostGoods_MeasuresPlan.InsertOnSubmit(newMeasuresPlan);
     db.SubmitChanges();
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectMeasuresPlanMenuId, measuresPlan.ProjectId, measuresPlan.UnitId, measuresPlan.MeasuresPlanId, measuresPlan.CompileDate);
 }
Esempio n. 23
0
 /// <summary>
 /// 添加项目协议记录
 /// </summary>
 /// <param name="projectRecord"></param>
 public static void AddProjectRecord(Model.QualityAudit_ProjectRecord projectRecord)
 {
     Model.SUBHSSEDB db = Funs.DB;
     Model.QualityAudit_ProjectRecord newProjectRecord = new Model.QualityAudit_ProjectRecord
     {
         ProjectRecordId   = projectRecord.ProjectRecordId,
         UnitId            = projectRecord.UnitId,
         ProjectId         = projectRecord.ProjectId,
         ProjectRecordCode = projectRecord.ProjectRecordCode,
         ProjectRecordName = projectRecord.ProjectRecordName,
         Remark            = projectRecord.Remark,
         CompileMan        = projectRecord.CompileMan,
         CompileDate       = projectRecord.CompileDate
     };
     db.QualityAudit_ProjectRecord.InsertOnSubmit(newProjectRecord);
     db.SubmitChanges();
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectRecordMenuId, projectRecord.ProjectId, null, projectRecord.ProjectRecordId, projectRecord.CompileDate);
 }
Esempio n. 24
0
 /// <summary>
 /// 添加获奖证书或奖杯
 /// </summary>
 /// <param name="hSECertificate"></param>
 public static void AddHSECertificate(Model.Check_HSECertificate hSECertificate)
 {
     Model.SUBHSSEDB            db = Funs.DB;
     Model.Check_HSECertificate newHSECertificate = new Model.Check_HSECertificate
     {
         HSECertificateId   = hSECertificate.HSECertificateId,
         ProjectId          = hSECertificate.ProjectId,
         HSECertificateCode = hSECertificate.HSECertificateCode,
         HSECertificateName = hSECertificate.HSECertificateName,
         AttachUrl          = hSECertificate.AttachUrl,
         CompileMan         = hSECertificate.CompileMan,
         CompileDate        = hSECertificate.CompileDate,
         States             = hSECertificate.States
     };
     db.Check_HSECertificate.InsertOnSubmit(newHSECertificate);
     db.SubmitChanges();
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectHSECertificateMenuId, hSECertificate.ProjectId, null, hSECertificate.HSECertificateId, hSECertificate.CompileDate);
 }
 /// <summary>
 /// 增加标准规范辨识信息
 /// </summary>
 /// <param name="lawRegulationIdentify">标准规范辨识实体</param>
 public static void AddConstructionStandardIdentify(Model.InformationProject_ConstructionStandardIdentify constructionStandardIdentify)
 {
     Model.SUBHSSEDB db = Funs.DB;
     Model.InformationProject_ConstructionStandardIdentify newConstructionStandardIdentify = new Model.InformationProject_ConstructionStandardIdentify
     {
         ConstructionStandardIdentifyId   = constructionStandardIdentify.ConstructionStandardIdentifyId,
         ConstructionStandardIdentifyCode = constructionStandardIdentify.ConstructionStandardIdentifyCode,
         VersionNumber  = constructionStandardIdentify.VersionNumber,
         ProjectId      = constructionStandardIdentify.ProjectId,
         IdentifyPerson = constructionStandardIdentify.IdentifyPerson,
         IdentifyDate   = constructionStandardIdentify.IdentifyDate,
         State          = constructionStandardIdentify.State,
         Remark         = constructionStandardIdentify.Remark,
         UpdateDate     = constructionStandardIdentify.UpdateDate
     };
     db.InformationProject_ConstructionStandardIdentify.InsertOnSubmit(newConstructionStandardIdentify);
     db.SubmitChanges();
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ConstructionStandardIdentifyMenuId, constructionStandardIdentify.ProjectId, null, constructionStandardIdentify.ConstructionStandardIdentifyId, constructionStandardIdentify.IdentifyDate);
 }
Esempio n. 26
0
 /// <summary>
 /// 添加物资入库管理
 /// </summary>
 /// <param name="goodsIn"></param>
 public static void AddGoodsIn(Model.CostGoods_GoodsIn goodsIn)
 {
     Model.SUBHSSEDB         db         = Funs.DB;
     Model.CostGoods_GoodsIn newGoodsIn = new Model.CostGoods_GoodsIn
     {
         GoodsInId   = goodsIn.GoodsInId,
         ProjectId   = goodsIn.ProjectId,
         GoodsInCode = goodsIn.GoodsInCode,
         GoodsDefId  = goodsIn.GoodsDefId,
         GoodsNum    = goodsIn.GoodsNum,
         InPerson    = goodsIn.InPerson,
         InDate      = goodsIn.InDate,
         States      = goodsIn.States,
         CompileMan  = goodsIn.CompileMan,
         CompileDate = goodsIn.CompileDate
     };
     db.CostGoods_GoodsIn.InsertOnSubmit(newGoodsIn);
     db.SubmitChanges();
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.GoodsIn2MenuId, goodsIn.ProjectId, null, goodsIn.GoodsInId, goodsIn.CompileDate);
 }
Esempio n. 27
0
 /// <summary>
 /// 添加物资出库管理
 /// </summary>
 /// <param name="goodsOut"></param>
 public static void AddGoodsOut(Model.CostGoods_GoodsOut goodsOut)
 {
     Model.SUBHSSEDB          db          = Funs.DB;
     Model.CostGoods_GoodsOut newGoodsOut = new Model.CostGoods_GoodsOut
     {
         GoodsOutId   = goodsOut.GoodsOutId,
         ProjectId    = goodsOut.ProjectId,
         GoodsOutCode = goodsOut.GoodsOutCode,
         GoodsDefId   = goodsOut.GoodsDefId,
         GoodsNum     = goodsOut.GoodsNum,
         OutPerson    = goodsOut.OutPerson,
         OutDate      = goodsOut.OutDate,
         States       = goodsOut.States,
         CompileMan   = goodsOut.CompileMan,
         CompileDate  = goodsOut.CompileDate
     };
     db.CostGoods_GoodsOut.InsertOnSubmit(newGoodsOut);
     db.SubmitChanges();
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.GoodsOut2MenuId, goodsOut.ProjectId, null, goodsOut.GoodsOutId, goodsOut.CompileDate);
 }
 /// <summary>
 /// 添加一般机具设备资质
 /// </summary>
 /// <param name="generalEquipmentQuality"></param>
 public static void AddGeneralEquipmentQuality(Model.QualityAudit_GeneralEquipmentQuality generalEquipmentQuality)
 {
     Model.SUBHSSEDB db = Funs.DB;
     Model.QualityAudit_GeneralEquipmentQuality newGeneralEquipmentQuality = new Model.QualityAudit_GeneralEquipmentQuality
     {
         GeneralEquipmentQualityId = generalEquipmentQuality.GeneralEquipmentQualityId,
         ProjectId = generalEquipmentQuality.ProjectId,
         GeneralEquipmentQualityCode = generalEquipmentQuality.GeneralEquipmentQualityCode,
         UnitId             = generalEquipmentQuality.UnitId,
         SpecialEquipmentId = generalEquipmentQuality.SpecialEquipmentId,
         EquipmentCount     = generalEquipmentQuality.EquipmentCount,
         IsQualified        = generalEquipmentQuality.IsQualified,
         Remark             = generalEquipmentQuality.Remark,
         CompileMan         = generalEquipmentQuality.CompileMan,
         CompileDate        = generalEquipmentQuality.CompileDate,
         InDate             = generalEquipmentQuality.InDate
     };
     db.QualityAudit_GeneralEquipmentQuality.InsertOnSubmit(newGeneralEquipmentQuality);
     db.SubmitChanges();
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.GeneralEquipmentQualityMenuId, generalEquipmentQuality.ProjectId, null, generalEquipmentQuality.GeneralEquipmentQualityId, generalEquipmentQuality.CompileDate);
 }
Esempio n. 29
0
 /// <summary>
 /// 添加事故调查报告
 /// </summary>
 /// <param name="accidentReport"></param>
 public static void AddAccidentReport(Model.Accident_AccidentReport accidentReport)
 {
     Model.SUBHSSEDB db = Funs.DB;
     Model.Accident_AccidentReport newAccidentReport = new Model.Accident_AccidentReport
     {
         AccidentReportId            = accidentReport.AccidentReportId,
         ProjectId                   = accidentReport.ProjectId,
         AccidentReportCode          = accidentReport.AccidentReportCode,
         UnitId                      = accidentReport.UnitId,
         AccidentReportType          = accidentReport.AccidentReportType,
         FileContent                 = accidentReport.FileContent,
         CompileMan                  = accidentReport.CompileMan,
         CompileDate                 = accidentReport.CompileDate,
         States                      = accidentReport.States,
         AccidentReportName          = accidentReport.AccidentReportName,
         AccidentTypeId              = accidentReport.AccidentTypeId,
         Abstract                    = accidentReport.Abstract,
         AccidentDate                = accidentReport.AccidentDate,
         WorkAreaId                  = accidentReport.WorkAreaId,
         PeopleNum                   = accidentReport.PeopleNum,
         WorkingHoursLoss            = accidentReport.WorkingHoursLoss,
         EconomicLoss                = accidentReport.EconomicLoss,
         EconomicOtherLoss           = accidentReport.EconomicOtherLoss,
         ReportMan                   = accidentReport.ReportMan,
         ReporterUnit                = accidentReport.ReporterUnit,
         ReportDate                  = accidentReport.ReportDate,
         ProcessDescription          = accidentReport.ProcessDescription,
         EmergencyMeasures           = accidentReport.EmergencyMeasures,
         WorkArea                    = accidentReport.WorkArea,
         IsNotConfirm                = accidentReport.IsNotConfirm,
         NotConfirmWorkingHoursLoss  = accidentReport.NotConfirmWorkingHoursLoss,
         NotConfirmEconomicLoss      = accidentReport.NotConfirmEconomicLoss,
         NotConfirmEconomicOtherLoss = accidentReport.NotConfirmEconomicOtherLoss,
         NotConfirmed                = accidentReport.NotConfirmed
     };
     db.Accident_AccidentReport.InsertOnSubmit(newAccidentReport);
     db.SubmitChanges();
     CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectAccidentReportMenuId, accidentReport.ProjectId, null, accidentReport.AccidentReportId, accidentReport.CompileDate);
 }
Esempio n. 30
0
        /// <summary>
        /// 添加一般设备机具入场报批
        /// </summary>
        /// <param name="GeneralGeneralEquipmentIn"></param>
        public static void AddGeneralEquipmentIn(Model.InApproveManager_GeneralEquipmentIn generalEquipmentIn)
        {
            Model.SUBHSSEDB db = Funs.DB;
            Model.InApproveManager_GeneralEquipmentIn newGeneralEquipmentIn = new Model.InApproveManager_GeneralEquipmentIn
            {
                GeneralEquipmentInId   = generalEquipmentIn.GeneralEquipmentInId,
                ProjectId              = generalEquipmentIn.ProjectId,
                GeneralEquipmentInCode = generalEquipmentIn.GeneralEquipmentInCode,
                UnitId         = generalEquipmentIn.UnitId,
                CarNumber      = generalEquipmentIn.CarNumber,
                SubProjectName = generalEquipmentIn.SubProjectName,
                ContentDef     = generalEquipmentIn.ContentDef,
                OtherDef       = generalEquipmentIn.OtherDef,
                State          = generalEquipmentIn.State,
                CompileMan     = generalEquipmentIn.CompileMan,
                CompileDate    = generalEquipmentIn.CompileDate
            };
            db.InApproveManager_GeneralEquipmentIn.InsertOnSubmit(newGeneralEquipmentIn);
            db.SubmitChanges();

            CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.GeneralEquipmentInMenuId, generalEquipmentIn.ProjectId, null, generalEquipmentIn.GeneralEquipmentInId, generalEquipmentIn.CompileDate);
        }