protected void btnUpdateVersion_Click(object sender, EventArgs e) { SystemParameter.UpdateBlacklistVersion(); BlackTableHelper.Update(); this.JscriptMsg("版本更新成功,新版本号:{0}".FormatWith(SystemParameter.BlacklistVersion), null, "Success"); }
protected void btnClear_Click(object sender, EventArgs e) { if (this.cbCurrencyInfo.Checked) { var service = ServiceFactory.GetService <ICurrencyService>(); service.DeleteAll_Info(); } if (this.cbBlackList.Checked) { var service = ServiceFactory.GetService <ICurrencyService>(); service.Delete_Blacklist(0); SystemParameter.UpdateBlacklistVersion(); BlackTableHelper.Update(); } if (this.cbDeviceInfo.Checked) { var service = ServiceFactory.GetService <IDeviceService>(); service.Delete_Info(0); } if (this.cbOrg.Checked) { var service = ServiceFactory.GetService <IBasicService>(); service.Delete_Organization(0, null); } if (this.cbUserlogin.Checked) { var service = ServiceFactory.GetService <IUserService>(); service.Delete_Login(0); } this.JscriptMsg("数据删除成功", null, "Success"); }