升级
This commit is contained in:
@@ -63,7 +63,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager
|
||||
{
|
||||
string strSql = "SELECT EquipmentIn.EquipmentInId,EquipmentInItem.EquipmentInItemId,"
|
||||
+ @"EquipmentIn.ProjectId,"
|
||||
+ @"EquipmentInItem.SpecialEquipmentId,EquipmentInItem.SizeModel,EquipmentInItem.OwnerCheck,EquipmentInItem.CertificateNum,EquipmentInItem.SafetyInspectionNum,EquipmentInItem.DrivingLicenseNum,EquipmentInItem.RegistrationNum,EquipmentInItem.OperationQualificationNum,EquipmentInItem.InsuranceNum,EquipmentInItem.CommercialInsuranceNum,EquipmentInItem.IsUsed,"
|
||||
+ @"EquipmentInItem.SpecialEquipmentId,EquipmentInItem.SizeModel,EquipmentInItem.OwnerCheck,EquipmentInItem.CertificateNum,EquipmentInItem.SafetyInspectionNum,EquipmentInItem.DrivingLicenseNum,EquipmentInItem.RegistrationNum,EquipmentInItem.OperationQualificationNum,EquipmentInItem.InsuranceNum,EquipmentInItem.CommercialInsuranceNum,EquipmentInItem.IsUsed,EquipmentInItem.IsIn,"
|
||||
+ @"CodeRecords.Code AS EquipmentInCode,"
|
||||
+ @"EquipmentIn.UnitId,"
|
||||
+ @"EquipmentIn.CarNumber,"
|
||||
@@ -228,7 +228,21 @@ namespace FineUIPro.Web.HSSE.InApproveManager
|
||||
BindGrid();
|
||||
ShowNotify("设备状态修改成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
protected void btnMenuIsIn_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string id = Grid1.SelectedRowID;
|
||||
|
||||
var equipmentInItem = BLL.EquipmentInItemService.GetEquipmentInItemById(id);
|
||||
equipmentInItem.IsIn = true;
|
||||
BLL.EquipmentInItemService.UpdateEquipmentInItem(equipmentInItem);
|
||||
BindGrid();
|
||||
ShowNotify("设备状态修改成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@@ -249,6 +263,21 @@ namespace FineUIPro.Web.HSSE.InApproveManager
|
||||
BindGrid();
|
||||
ShowNotify("设备状态修改成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
protected void btnMenuIsNotIn_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string id = Grid1.SelectedRowID;
|
||||
|
||||
var equipmentInItem = BLL.EquipmentInItemService.GetEquipmentInItemById(id);
|
||||
equipmentInItem.IsIn = false;
|
||||
BLL.EquipmentInItemService.UpdateEquipmentInItem(equipmentInItem);
|
||||
BindGrid();
|
||||
ShowNotify("设备状态修改成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 删除
|
||||
@@ -308,7 +337,9 @@ namespace FineUIPro.Web.HSSE.InApproveManager
|
||||
{
|
||||
this.btnMenuEdit.Hidden = false;
|
||||
this.btnMenuIsUsed.Hidden = false;
|
||||
this.btnMenuIsNotUsed.Hidden = false;
|
||||
this.btnMenuIsNotUsed.Hidden = false;
|
||||
this.btnMenuIsIn.Hidden = false;
|
||||
this.btnMenuIsNotIn.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnDelete))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user