/// <summary> /// 用户权限,添加删除,修改 /// </summary> private void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { btnCancellation.Enabled = true; btnCancellation.Visible = true; btnCall.Enabled = true; btnCall.Visible = true; btnSurIn.Enabled = true; btnSurIn.Visible = true; btnUnu.Enabled = true; btnUnu.Visible = true; } else { btnCancellation.Visible = ControlAttributes.BoolControl("btnCancellation", "QueueForm", "Visible"); btnCancellation.Enabled = ControlAttributes.BoolControl("btnCancellation", "QueueForm", "Enabled"); btnCall.Visible = ControlAttributes.BoolControl("btnCall", "QueueForm", "Visible"); btnCall.Enabled = ControlAttributes.BoolControl("btnCall", "QueueForm", "Enabled"); btnSurIn.Visible = ControlAttributes.BoolControl("btnSurIn", "QueueForm", "Visible"); btnSurIn.Enabled = ControlAttributes.BoolControl("btnSurIn", "QueueForm", "Enabled"); btnUnu.Visible = ControlAttributes.BoolControl("btnUnu", "QueueForm", "Visible"); btnUnu.Enabled = ControlAttributes.BoolControl("btnUnu", "QueueForm", "Enabled"); } }
/// <summary> /// 用户权限,添加删除,修改 /// </summary> private void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { btnAdd.Enabled = true; btnAdd.Visible = true; btnModify.Enabled = true; btnModify.Visible = true; btnDel.Enabled = true; btnDel.Visible = true; toolStripLabel1.Enabled = true; toolStripLabel1.Visible = true; btnRestPW.Enabled = true; btnRestPW.Visible = true; } else { btnAdd.Visible = ControlAttributes.BoolControl("btnAdd", "UserManagement", "Visible"); btnAdd.Enabled = ControlAttributes.BoolControl("btnAdd", "UserManagement", "Enabled"); btnModify.Visible = ControlAttributes.BoolControl("btnModify", "UserManagement", "Visible"); btnModify.Enabled = ControlAttributes.BoolControl("btnModify", "UserManagement", "Enabled"); btnDel.Visible = ControlAttributes.BoolControl("btnDel", "UserManagement", "Visible"); btnDel.Enabled = ControlAttributes.BoolControl("btnDel", "UserManagement", "Enabled"); toolStripLabel1.Visible = ControlAttributes.BoolControl("toolStripLabel1", "UserManagement", "Visible"); toolStripLabel1.Enabled = ControlAttributes.BoolControl("toolStripLabel1", "UserManagement", "Enabled"); btnRestPW.Visible = ControlAttributes.BoolControl("btnRestPW", "UserManagement", "Visible"); btnRestPW.Enabled = ControlAttributes.BoolControl("btnRestPW", "UserManagement", "Enabled"); } }
/// <summary> /// 用户权限,添加删除,修改 /// </summary> private void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { btnSave.Enabled = true; btnSave.Visible = true; btnDel.Enabled = true; btnDel.Visible = true; btnUpdate.Enabled = true; btnUpdate.Visible = true; btnFVN.Enabled = true; btnFVN.Visible = true; btnCamera.Enabled = true; btnCamera.Visible = true; } else { btnSave.Visible = ControlAttributes.BoolControl("btnSave", "DrivewayFrom", "Visible"); btnSave.Enabled = ControlAttributes.BoolControl("btnSave", "DrivewayFrom", "Enabled"); btnDel.Visible = ControlAttributes.BoolControl("btnDel", "DrivewayFrom", "Visible"); btnDel.Enabled = ControlAttributes.BoolControl("btnDel", "DrivewayFrom", "Enabled"); btnUpdate.Visible = ControlAttributes.BoolControl("btnUpdate", "DrivewayFrom", "Visible"); btnUpdate.Enabled = ControlAttributes.BoolControl("btnUpdate", "DrivewayFrom", "Enabled"); btnFVN.Visible = ControlAttributes.BoolControl("btnFVN", "DrivewayFrom", "Visible"); btnFVN.Enabled = ControlAttributes.BoolControl("btnFVN", "DrivewayFrom", "Enabled"); btnCamera.Visible = ControlAttributes.BoolControl("btnCamera", "DrivewayFrom", "Visible"); btnCamera.Enabled = ControlAttributes.BoolControl("btnCamera", "DrivewayFrom", "Enabled"); } }
/// <summary> /// 用户权限,添加删除,修改 /// </summary> private void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { btnAdd.Enabled = true; btnAdd.Visible = true; btnDel.Enabled = true; btnDel.Visible = true; btnUpdate.Visible = true; btnUpdate.Enabled = true; toolStripLabel1.Enabled = true; toolStripLabel1.Visible = true; } else { btnAdd.Visible = ControlAttributes.BoolControl("btnAdd", "UserRole", "Visible"); btnAdd.Enabled = ControlAttributes.BoolControl("btnAdd", "UserRole", "Enabled"); btnDel.Visible = ControlAttributes.BoolControl("btnDel", "UserRole", "Visible"); btnDel.Enabled = ControlAttributes.BoolControl("btnDel", "UserRole", "Enabled"); btnUpdate.Visible = ControlAttributes.BoolControl("btnUpdate", "UserRole", "Visible"); btnUpdate.Enabled = ControlAttributes.BoolControl("btnUpdate", "UserRole", "Enabled"); toolStripLabel1.Enabled = ControlAttributes.BoolControl("toolStripLabel1", "UserRole", "Visible"); toolStripLabel1.Visible = ControlAttributes.BoolControl("toolStripLabel1", "UserRole", "Enabled"); } }
/// <summary> /// 用户权限,添加删除,修改 /// </summary> private void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { btnAdd.Enabled = true; btnAdd.Visible = true; btnDelete.Enabled = true; btnDelete.Visible = true; btnUpdate.Enabled = true; btnUpdate.Visible = true; btnSMSApplication.Enabled = true; btnSMSApplication.Visible = true; } else { btnAdd.Visible = ControlAttributes.BoolControl("btnAdd", "VoiceSetForm", "Visible"); btnAdd.Enabled = ControlAttributes.BoolControl("btnAdd", "VoiceSetForm", "Enabled"); btnDelete.Visible = ControlAttributes.BoolControl("btnDelete", "VoiceSetForm", "Visible"); btnDelete.Enabled = ControlAttributes.BoolControl("btnDelete", "VoiceSetForm", "Enabled"); btnUpdate.Visible = ControlAttributes.BoolControl("btnUpdate", "VoiceSetForm", "Visible"); btnUpdate.Enabled = ControlAttributes.BoolControl("btnUpdate", "VoiceSetForm", "Enabled"); btnSMSApplication.Visible = ControlAttributes.BoolControl("btnSMSApplication", "VoiceSetForm", "Visible"); btnSMSApplication.Enabled = ControlAttributes.BoolControl("btnSMSApplication", "VoiceSetForm", "Enabled"); } }
/// <summary> /// 用户权限,添加删除,修改 /// </summary> private void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { btnUpdate.Enabled = true; btnUpdate.Visible = true; btn_Save.Enabled = true; btn_Save.Visible = true; btn_Delete.Enabled = true; btn_Delete.Visible = true; btn_CurrentAdministration.Enabled = true; btn_CurrentAdministration.Visible = true; btn_Administration.Enabled = true; btn_Administration.Visible = true; btn_CarAttribute.Enabled = true; btn_CarAttribute.Visible = true; btn_BusinessType.Enabled = true; btn_BusinessType.Visible = true; } else { btnUpdate.Enabled = ControlAttributes.BoolControl("btnUpdate", "CarTypeForm", "Enabled"); btnUpdate.Visible = ControlAttributes.BoolControl("btnUpdate", "CarTypeForm", "Visible"); btn_Save.Enabled = ControlAttributes.BoolControl("btn_Save", "CarTypeForm", "Enabled"); btn_Save.Visible = ControlAttributes.BoolControl("btn_Save", "CarTypeForm", "Visible"); btn_Delete.Enabled = ControlAttributes.BoolControl("btn_Delete", "CarTypeForm", "Enabled"); btn_Delete.Visible = ControlAttributes.BoolControl("btn_Delete", "CarTypeForm", "Visible"); btn_CurrentAdministration.Enabled = ControlAttributes.BoolControl("btn_CurrentAdministration", "CarTypeForm", "Enabled"); btn_CurrentAdministration.Visible = ControlAttributes.BoolControl("btn_CurrentAdministration", "CarTypeForm", "Visible"); btn_Administration.Enabled = ControlAttributes.BoolControl("btn_Administration", "CarTypeForm", "Enabled"); btn_Administration.Visible = ControlAttributes.BoolControl("btn_Administration", "CarTypeForm", "Visible"); btn_CarAttribute.Enabled = ControlAttributes.BoolControl("btn_CarAttribute", "CarTypeForm", "Enabled"); btn_CarAttribute.Visible = ControlAttributes.BoolControl("btn_CarAttribute", "CarTypeForm", "Visible"); btn_BusinessType.Enabled = ControlAttributes.BoolControl("btn_BusinessType", "CarTypeForm", "Enabled"); btn_BusinessType.Visible = ControlAttributes.BoolControl("btn_BusinessType", "CarTypeForm", "Visible"); } }
/// <summary> /// 用户权限,添加删除,修改 /// </summary> private void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { tsbtnDel.Enabled = true; tsbtnDel.Visible = true; tslbExecl.Enabled = true; tslbExecl.Visible = true; } else { tsbtnDel.Visible = ControlAttributes.BoolControl("tsbtnDel", "CarPicInfoForm", "Visible"); tsbtnDel.Enabled = ControlAttributes.BoolControl("tsbtnDel", "CarPicInfoForm", "Enabled"); tslbExecl.Visible = ControlAttributes.BoolControl("tslbExecl", "CarPicInfoForm", "Visible"); tslbExecl.Enabled = ControlAttributes.BoolControl("tslbExecl", "CarPicInfoForm", "Enabled"); } }
//控件权限 public void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { btnshenqing.Visible = true; btnshenqing.Enabled = true; btn_cz.Visible = true; btn_cz.Enabled = true; } else { btnshenqing.Enabled = ControlAttributes.BoolControl("btnshenqing", "ResetApplication", "Enabled"); btnshenqing.Visible = ControlAttributes.BoolControl("btnshenqing", "ResetApplication", "Visible"); btn_cz.Enabled = ControlAttributes.BoolControl("btn_cz", "ResetApplication", "Enabled"); btn_cz.Visible = ControlAttributes.BoolControl("btn_cz", "ResetApplication", "Visible"); } }
//控件权限 public void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { tsbExecl.Visible = true; tsbExecl.Enabled = true; tsbshenpi.Visible = true; tsbshenpi.Enabled = true; } else { tsbExecl.Enabled = ControlAttributes.BoolControl("tsbExecl", "QueueResult", "Enabled"); tsbExecl.Visible = ControlAttributes.BoolControl("tsbExecl", "QueueResult", "Visible"); tsbshenpi.Enabled = ControlAttributes.BoolControl("tsbshenpi", "QueueResult", "Enabled"); tsbshenpi.Visible = ControlAttributes.BoolControl("tsbshenpi", "QueueResult", "Visible"); } }
/// <summary> /// 用户权限,添加删除,修改 /// </summary> private void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { btnExport.Enabled = true; btnExport.Visible = true; btnImport.Enabled = true; btnImport.Visible = true; } else { btnExport.Visible = ControlAttributes.BoolControl("btnExport", "SystemConfig", "Visible"); btnExport.Enabled = ControlAttributes.BoolControl("btnExport", "SystemConfig", "Enabled"); btnImport.Visible = ControlAttributes.BoolControl("btnImport", "SystemConfig", "Visible"); btnImport.Enabled = ControlAttributes.BoolControl("btnImport", "SystemConfig", "Enabled"); } }
/// <summary> /// 用户权限,添加删除,修改 /// </summary> private void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { btnSave.Enabled = true; btnSave.Visible = true; btnOutPass.Enabled = true; btnOutPass.Visible = true; } else { btnSave.Visible = ControlAttributes.BoolControl("btnSave", "WeighHouseSmalldiscern", "Visible"); btnSave.Enabled = ControlAttributes.BoolControl("btnSave", "WeighHouseSmalldiscern", "Enabled"); btnOutPass.Visible = ControlAttributes.BoolControl("btnOutPass", "WeighHouseSmalldiscern", "Visible"); btnOutPass.Enabled = ControlAttributes.BoolControl("btnOutPass", "WeighHouseSmalldiscern", "Enabled"); } }
/// <summary> /// 用户权限,添加删除,修改 /// </summary> private void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { btnSet.Enabled = true; btnSet.Visible = true; button1.Enabled = true; button1.Visible = true; button4.Enabled = true; button4.Visible = true; } else { btnSet.Visible = ControlAttributes.BoolControl("btnSet", "BlacklistSet", "Visible"); btnSet.Enabled = ControlAttributes.BoolControl("btnSet", "BlacklistSet", "Enabled"); button1.Visible = ControlAttributes.BoolControl("button1", "BlacklistSet", "Visible"); button1.Enabled = ControlAttributes.BoolControl("button1", "BlacklistSet", "Enabled"); button4.Visible = ControlAttributes.BoolControl("button4", "BlacklistSet", "Visible"); button4.Enabled = ControlAttributes.BoolControl("button4", "BlacklistSet", "Enabled"); } }
/// <summary> /// 用户权限,添加删除,修改 /// </summary> private void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { btn_Add.Enabled = true; btn_Add.Visible = true; btn_Delete.Enabled = true; btn_Delete.Visible = true; btn_Update.Enabled = true; btn_Update.Visible = true; } else { btn_Add.Visible = ControlAttributes.BoolControl("btn_Add", "MenuInfoManager", "Visible"); btn_Add.Enabled = ControlAttributes.BoolControl("btn_Add", "MenuInfoManager", "Enabled"); btn_Delete.Visible = ControlAttributes.BoolControl("btn_Delete", "MenuInfoManager", "Visible"); btn_Delete.Enabled = ControlAttributes.BoolControl("btn_Delete", "MenuInfoManager", "Enabled"); btn_Update.Visible = ControlAttributes.BoolControl("btn_Update", "MenuInfoManager", "Visible"); btn_Update.Enabled = ControlAttributes.BoolControl("btn_Update", "MenuInfoManager", "Enabled"); } }
/// <summary> /// 用户权限,添加删除,修改 /// </summary> private void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { btnSave.Enabled = true; btnSave.Visible = true; btnDel.Enabled = true; btnDel.Visible = true; btnUpdate.Enabled = true; btnUpdate.Visible = true; } else { btnSave.Visible = ControlAttributes.BoolControl("btnSave", "DictionaryForm", "Visible"); btnSave.Enabled = ControlAttributes.BoolControl("btnSave", "DictionaryForm", "Enabled"); btnDel.Visible = ControlAttributes.BoolControl("btnDel", "DictionaryForm", "Visible"); btnDel.Enabled = ControlAttributes.BoolControl("btnDel", "DictionaryForm", "Enabled"); btnUpdate.Visible = ControlAttributes.BoolControl("btnUpdate", "DictionaryForm", "Visible"); btnUpdate.Enabled = ControlAttributes.BoolControl("btnUpdate", "DictionaryForm", "Enabled"); } }
/// <summary> /// 用户权限,添加删除,修改 /// </summary> private void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { tsbtnDel.Enabled = true; tsbtnDel.Visible = true; btnUpdate.Enabled = true; btnUpdate.Visible = true; tslbExecl.Enabled = true; tslbExecl.Visible = true; } else { tsbtnDel.Visible = ControlAttributes.BoolControl("tsbtnDel", "UnLoadCarManage", "Visible"); tsbtnDel.Enabled = ControlAttributes.BoolControl("tsbtnDel", "UnLoadCarManage", "Enabled"); btnUpdate.Visible = ControlAttributes.BoolControl("btnUpdate", "UnLoadCarManage", "Visible"); btnUpdate.Enabled = ControlAttributes.BoolControl("btnUpdate", "UnLoadCarManage", "Enabled"); tslbExecl.Visible = ControlAttributes.BoolControl("tslbExecl", "UnLoadCarManage", "Visible"); tslbExecl.Enabled = ControlAttributes.BoolControl("tslbExecl", "UnLoadCarManage", "Enabled"); } }
/// <summary> /// 用户权限,添加删除,修改 /// </summary> private void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { btnupdate.Enabled = true; btnAdd.Enabled = true; btnDelete.Enabled = true; btnupdate.Visible = true; btnAdd.Visible = true; btnDelete.Visible = true; } else { btnupdate.Visible = ControlAttributes.BoolControl("btnupdate", "WeighInfoFrom", "Visible"); btnupdate.Enabled = ControlAttributes.BoolControl("btnupdate", "WeighInfoFrom", "Enabled"); btnAdd.Visible = ControlAttributes.BoolControl("btnAdd", "WeighInfoFrom", "Visible"); btnAdd.Enabled = ControlAttributes.BoolControl("btnAdd", "WeighInfoFrom", "Enabled"); btnDelete.Visible = ControlAttributes.BoolControl("btnDelete", "WeighInfoFrom", "Visible"); btnDelete.Enabled = ControlAttributes.BoolControl("btnDelete", "WeighInfoFrom", "Enabled"); } }
/// <summary> /// 用户权限,添加删除,修改 /// </summary> private void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { btnsz.Enabled = true; btnsz.Visible = true; button2.Enabled = true; button2.Visible = true; btnDY.Enabled = true; btnDY.Visible = true; } else { btnsz.Visible = ControlAttributes.BoolControl("btnsz", "StaffInfoForm", "Visible"); btnsz.Enabled = ControlAttributes.BoolControl("btnsz", "StaffInfoForm", "Enabled"); button2.Visible = ControlAttributes.BoolControl("button2", "StaffInfoForm", "Visible"); button2.Enabled = ControlAttributes.BoolControl("button2", "StaffInfoForm", "Enabled"); btnDY.Visible = ControlAttributes.BoolControl("btnDY", "StaffInfoForm", "Visible"); btnDY.Enabled = ControlAttributes.BoolControl("btnDY", "StaffInfoForm", "Enabled"); } }
/// <summary> /// 用户权限,添加删除,修改 /// </summary> private void userContext() { if (CommonalityEntity.USERNAME.ToLower() == "emewe") { btn_Delete.Enabled = true; btn_Delete.Visible = true; btn_Administration.Enabled = true; btn_Administration.Visible = true; btnUpdate.Enabled = true; btnUpdate.Visible = true; btnUpdate.Enabled = true; } else { btn_Delete.Enabled = ControlAttributes.BoolControl("btn_Delete", "UpdateDrivewayStrategyForm", "Enabled"); btn_Delete.Visible = ControlAttributes.BoolControl("btn_Delete", "UpdateDrivewayStrategyForm", "Visible"); btn_Administration.Enabled = ControlAttributes.BoolControl("btn_Administration", "UpdateDrivewayStrategyForm", "Enabled"); btn_Administration.Visible = ControlAttributes.BoolControl("btn_Administration", "UpdateDrivewayStrategyForm", "Visible"); btnUpdate.Enabled = ControlAttributes.BoolControl("btnUpdate", "UpdateDrivewayStrategyForm", "Enabled"); btnUpdate.Visible = ControlAttributes.BoolControl("btnUpdate", "UpdateDrivewayStrategyForm", "Visible"); } }