小程序接口修改
This commit is contained in:
@@ -531,7 +531,7 @@ namespace BLL
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
if (!ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(projectId, unitId))
|
||||
if (!ProjectUnitService.GetProjectUnitTypeByProjectIdUnitIdForApi(projectId, unitId))
|
||||
{
|
||||
unitId = null;
|
||||
}
|
||||
@@ -993,7 +993,7 @@ namespace BLL
|
||||
ApplyManId = x.CompileMan,
|
||||
ApplyManName = x.ApplicantMan,
|
||||
ApplyDate = string.Format("{0:yyyy-MM-dd HH:mm}", x.CompileDate),
|
||||
WorkPalce = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
WorkPalce = UnitWorkService.GetUnitWorkNameForApi(x.WorkAreaId),
|
||||
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.StartDate),
|
||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.EndDate),
|
||||
States = x.WorkStates,
|
||||
@@ -1384,7 +1384,7 @@ namespace BLL
|
||||
ApplyUnitName = db.Base_Unit.First(u => u.UnitId == x.UnitId).UnitName,
|
||||
ApplyManName = x.ApplicantMan,
|
||||
ApplyDate = string.Format("{0:yyyy-MM-dd HH:mm}", x.CompileDate),
|
||||
WorkPalce = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
WorkPalce = UnitWorkService.GetUnitWorkNameForApi(x.WorkAreaId),
|
||||
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.StartDate),
|
||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.EndDate),
|
||||
States = x.WorkStates,
|
||||
@@ -1534,7 +1534,7 @@ namespace BLL
|
||||
newItem.LicenseCode = newFireWork.LicenseCode = CodeRecordsService.ReturnCodeByMenuIdProjectId(Const.ProjectFireWorkMenuId, newFireWork.ProjectId, newFireWork.ApplyUnitId);
|
||||
db.License_FireWork.InsertOnSubmit(newFireWork);
|
||||
////增加一条编码记录
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectFireWorkMenuId, newFireWork.ProjectId, newFireWork.ApplyUnitId, newFireWork.FireWorkId, newFireWork.ApplyDate);
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(Const.ProjectFireWorkMenuId, newFireWork.ProjectId, newFireWork.ApplyUnitId, newFireWork.FireWorkId, newFireWork.ApplyDate);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1619,7 +1619,7 @@ namespace BLL
|
||||
db.License_HeightWork.InsertOnSubmit(newHeightWork);
|
||||
|
||||
////增加一条编码记录
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectHeightWorkMenuId, newHeightWork.ProjectId, newHeightWork.ApplyUnitId, newHeightWork.HeightWorkId, newHeightWork.ApplyDate);
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(Const.ProjectHeightWorkMenuId, newHeightWork.ProjectId, newHeightWork.ApplyUnitId, newHeightWork.HeightWorkId, newHeightWork.ApplyDate);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1701,7 +1701,7 @@ namespace BLL
|
||||
newItem.LicenseCode = newLimitedSpace.LicenseCode = CodeRecordsService.ReturnCodeByMenuIdProjectId(Const.ProjectLimitedSpaceMenuId, newLimitedSpace.ProjectId, newLimitedSpace.ApplyUnitId);
|
||||
db.License_LimitedSpace.InsertOnSubmit(newLimitedSpace);
|
||||
////增加一条编码记录
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectLimitedSpaceMenuId, newLimitedSpace.ProjectId, newLimitedSpace.ApplyUnitId, newLimitedSpace.LimitedSpaceId, newLimitedSpace.ApplyDate);
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(Const.ProjectLimitedSpaceMenuId, newLimitedSpace.ProjectId, newLimitedSpace.ApplyUnitId, newLimitedSpace.LimitedSpaceId, newLimitedSpace.ApplyDate);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1792,7 +1792,7 @@ namespace BLL
|
||||
newItem.LicenseCode = newRadialWork.LicenseCode = CodeRecordsService.ReturnCodeByMenuIdProjectId(Const.ProjectRadialWorkMenuId, newRadialWork.ProjectId, newRadialWork.ApplyUnitId);
|
||||
db.License_RadialWork.InsertOnSubmit(newRadialWork);
|
||||
////增加一条编码记录
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectRadialWorkMenuId, newRadialWork.ProjectId, newRadialWork.ApplyUnitId, newRadialWork.RadialWorkId, newRadialWork.ApplyDate);
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(Const.ProjectRadialWorkMenuId, newRadialWork.ProjectId, newRadialWork.ApplyUnitId, newRadialWork.RadialWorkId, newRadialWork.ApplyDate);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1877,7 +1877,7 @@ namespace BLL
|
||||
newItem.LicenseCode = newOpenCircuit.LicenseCode = CodeRecordsService.ReturnCodeByMenuIdProjectId(Const.ProjectOpenCircuitMenuId, newOpenCircuit.ProjectId, newOpenCircuit.ApplyUnitId);
|
||||
db.License_OpenCircuit.InsertOnSubmit(newOpenCircuit);
|
||||
////增加一条编码记录
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectOpenCircuitMenuId, newOpenCircuit.ProjectId, newOpenCircuit.ApplyUnitId, newOpenCircuit.OpenCircuitId, newOpenCircuit.ApplyDate);
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(Const.ProjectOpenCircuitMenuId, newOpenCircuit.ProjectId, newOpenCircuit.ApplyUnitId, newOpenCircuit.OpenCircuitId, newOpenCircuit.ApplyDate);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1958,7 +1958,7 @@ namespace BLL
|
||||
newItem.LicenseCode = newBreakGround.LicenseCode = CodeRecordsService.ReturnCodeByMenuIdProjectId(Const.ProjectBreakGroundMenuId, newBreakGround.ProjectId, newBreakGround.ApplyUnitId);
|
||||
db.License_BreakGround.InsertOnSubmit(newBreakGround);
|
||||
////增加一条编码记录
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectBreakGroundMenuId, newBreakGround.ProjectId, newBreakGround.ApplyUnitId, newBreakGround.BreakGroundId, newBreakGround.ApplyDate);
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(Const.ProjectBreakGroundMenuId, newBreakGround.ProjectId, newBreakGround.ApplyUnitId, newBreakGround.BreakGroundId, newBreakGround.ApplyDate);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2040,7 +2040,7 @@ namespace BLL
|
||||
newItem.LicenseCode = newNightWork.LicenseCode = CodeRecordsService.ReturnCodeByMenuIdProjectId(Const.ProjectNightWorkMenuId, newNightWork.ProjectId, newNightWork.ApplyUnitId);
|
||||
db.License_NightWork.InsertOnSubmit(newNightWork);
|
||||
////增加一条编码记录
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectNightWorkMenuId, newNightWork.ProjectId, newNightWork.ApplyUnitId, newNightWork.NightWorkId, newNightWork.ApplyDate);
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(Const.ProjectNightWorkMenuId, newNightWork.ProjectId, newNightWork.ApplyUnitId, newNightWork.NightWorkId, newNightWork.ApplyDate);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2130,7 +2130,7 @@ namespace BLL
|
||||
newItem.LicenseCode = newLiftingWork.LicenseCode = CodeRecordsService.ReturnCodeByMenuIdProjectId(Const.ProjectLiftingWorkMenuId, newLiftingWork.ProjectId, newLiftingWork.ApplyUnitId);
|
||||
db.License_LiftingWork.InsertOnSubmit(newLiftingWork);
|
||||
////增加一条编码记录
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectLiftingWorkMenuId, newLiftingWork.ProjectId, newLiftingWork.ApplyUnitId, newLiftingWork.LiftingWorkId, newLiftingWork.ApplyDate);
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(Const.ProjectLiftingWorkMenuId, newLiftingWork.ProjectId, newLiftingWork.ApplyUnitId, newLiftingWork.LiftingWorkId, newLiftingWork.ApplyDate);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2214,7 +2214,7 @@ namespace BLL
|
||||
newItem.LicenseCode = newTempElectricity.LicenseCode = CodeRecordsService.ReturnCodeByMenuIdProjectId(Const.ProjectTempElectricityMenuId, newTempElectricity.ProjectId, newTempElectricity.ApplyUnitId);
|
||||
db.License_TempElectricity.InsertOnSubmit(newTempElectricity);
|
||||
////增加一条编码记录
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectTempElectricityMenuId, newTempElectricity.ProjectId, newTempElectricity.ApplyUnitId, newTempElectricity.TempElectricityId, newTempElectricity.ApplyDate);
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(Const.ProjectTempElectricityMenuId, newTempElectricity.ProjectId, newTempElectricity.ApplyUnitId, newTempElectricity.TempElectricityId, newTempElectricity.ApplyDate);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2299,7 +2299,7 @@ namespace BLL
|
||||
newItem.LicenseCode = newPressureTest.LicenseCode = CodeRecordsService.ReturnCodeByMenuIdProjectId(Const.ProjectPressureTestMenuId, newPressureTest.ProjectId, newPressureTest.ApplyUnitId);
|
||||
db.License_PressureTest.InsertOnSubmit(newPressureTest);
|
||||
////增加一条编码记录
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectTempElectricityMenuId, newPressureTest.ProjectId, newPressureTest.ApplyUnitId, newPressureTest.PressureTestId, newPressureTest.ApplyDate);
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(Const.ProjectTempElectricityMenuId, newPressureTest.ProjectId, newPressureTest.ApplyUnitId, newPressureTest.PressureTestId, newPressureTest.ApplyDate);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2388,7 +2388,7 @@ namespace BLL
|
||||
db.License_JiaBan.InsertOnSubmit(newJiaBan);
|
||||
|
||||
////增加一条编码记录
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectJiaBanWorkMenuId, newJiaBan.ProjectId, newJiaBan.ApplyUnitId, newJiaBan.JiaBanId, newJiaBan.ApplyDate);
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(Const.ProjectJiaBanWorkMenuId, newJiaBan.ProjectId, newJiaBan.ApplyUnitId, newJiaBan.JiaBanId, newJiaBan.ApplyDate);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2469,7 +2469,7 @@ namespace BLL
|
||||
newItem.LicenseCode = newLicenseManager.LicenseManagerCode = CodeRecordsService.ReturnCodeByMenuIdProjectId(Const.ProjectLicenseManagerMenuId, newLicenseManager.ProjectId, newLicenseManager.UnitId);
|
||||
db.License_LicenseManager.InsertOnSubmit(newLicenseManager);
|
||||
////增加一条编码记录
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectLicenseManagerMenuId, newLicenseManager.ProjectId, newLicenseManager.UnitId, newLicenseManager.LicenseManagerId, newLicenseManager.CompileDate);
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(Const.ProjectLicenseManagerMenuId, newLicenseManager.ProjectId, newLicenseManager.UnitId, newLicenseManager.LicenseManagerId, newLicenseManager.CompileDate);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2488,7 +2488,7 @@ namespace BLL
|
||||
}
|
||||
if (newLicenseManager.States == Const.State_2)
|
||||
{
|
||||
CommonService.btnSaveData(newLicenseManager.ProjectId, Const.ProjectLicenseManagerMenuId, newLicenseManager.LicenseManagerId, newLicenseManager.CompileMan, true, newLicenseManager.LicenseManagerCode, "../License/LicenseManagerView.aspx?LicenseManagerId={0}");
|
||||
CommonService.btnSaveDataForApi(newLicenseManager.ProjectId, Const.ProjectLicenseManagerMenuId, newLicenseManager.LicenseManagerId, newLicenseManager.CompileMan, true, newLicenseManager.LicenseManagerCode, "../License/LicenseManagerView.aspx?LicenseManagerId={0}");
|
||||
}
|
||||
//// 保存附件
|
||||
APIUpLoadFileService.SaveAttachUrl(newItem.MenuId, strLicenseId, newItem.AttachUrl, "0");
|
||||
@@ -3744,7 +3744,7 @@ namespace BLL
|
||||
db.License_FlowOperate.DeleteAllOnSubmit(getDelFlows);
|
||||
}
|
||||
//// 删除编码表记录
|
||||
CodeRecordsService.DeleteCodeRecordsByDataId(strLicenseId);
|
||||
CodeRecordsService.DeleteCodeRecordsByDataIdForApi(strLicenseId);
|
||||
#region 动火作业票
|
||||
if (newItem.MenuId == Const.ProjectFireWorkMenuId)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user