public static void DeleteSimpleMode(string operateUserCode, string key) { CheckoutValid.HasPermission(operateUserCode, "DeleteSimpleMode", PermissionCode.SysConfigure, Utilities.ECS3_Module.ConfigsModule); using (ISys_Configure_LXUO table = Global.CreateTable <ISys_Configure_LXUO>()) { DBCondition condition = table.Key_LXUF.EqualTo(key); table.Delete(condition); } }
public static void SetIsSimpleMode(string operateUserCode, string simpleModeKey, bool SimpleModeValue) { if (string.IsNullOrEmpty(simpleModeKey)) { simpleModeKey = Mode_Type.BASE_KEY; } else { string[] sims = simpleModeKey.Split('_'); if (!Mode_Type.BASE_KEY.Equals(sims[0])) { simpleModeKey = Mode_Type.BASE_KEY + "_" + simpleModeKey; } CheckoutValid.HasPermission(operateUserCode, "SetIsSimpleMode", PermissionCode.SysConfigure, Utilities.ECS3_Module.ConfigsModule); ObjectCreatorByConfig_BLLDB.Instance.SetValue(simpleModeKey, SimpleModeValue); } }