protected void Page_Load(object sender, EventArgs e) { DateTime dtNow = DateTime.Now; days = DateTime.DaysInMonth(dtNow.Year, dtNow.Month); View_News condition = new View_News(); View_News value = new View_News(); condition.ExhibitionID = AdminMethod.ExhibitionID; condition.TypeID = 0; MyList = TableOperate <View_News> .Select(value, condition); ExhibitionOpen exhibition = new ExhibitionOpen(); ExhibitionOpen exhibitionvalue = new ExhibitionOpen(); exhibition.ExhibitionID = AdminMethod.ExhibitionID; OpenList = TableOperate <ExhibitionOpen> .Select(exhibitionvalue, exhibition); Count = OpenList.Count; DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.Request["seviceID"])) { return; } int SeviceID = Convert.ToInt32(this.Request["seviceID"]); string sn = RequestString.NoHTML(Convert.ToString(this.Request["sn"])); if (!SysConfig.IsTrueSn(SeviceID, sn)) { string error = "加密不正确"; Response.Write(error); return; } ExhibitionOpen condition = new ExhibitionOpen(); condition.ExhibitionID = SeviceID; condition.AddTime = DateTime.Now; int Sid = TableOperate <ExhibitionOpen> .InsertReturnID(condition); if (Sid > 0) { Response.Write("true"); return; } }