public void reportdel(string id) { Model.Report report = new Model.Report(); report.newsid = id; BLL.ReportBLL reportBLL = new BLL.ReportBLL(); reportBLL.DelReport(report); }
protected void Button1_Click(object sender, EventArgs e) { Model.Report report = new Model.Report(); BLL.ReportBLL reportBLL = new BLL.ReportBLL(); report.title = Request["search"].ToString().Trim(); reportBLL.SearchTitle(report); this.SqlDataSource1.SelectCommand = report.sql; }
protected void Button1_Click(object sender, EventArgs e) { Model.Report report = new Model.Report(); report.newsid = this.Label1.Text.ToString(); report.title = this.Label2.Text.ToString(); report.contents = this.txtEditorContents.Text; report.reportTime = DateTime.Now.ToLocalTime().ToString(); BLL.ReportBLL reportBLL = new BLL.ReportBLL(); reportBLL.AddReport(report); }
public void start(SCApplication _app) { LineBLL = _app.LineBLL; CMDBLL = _app.CMDBLL; VehicleBLL = _app.VehicleBLL; MapBLL = _app.MapBLL; SegmentBLL = _app.SegmentBLL; SectionBLL = _app.SectionBLL; PortStationBLL = _app.PortStationBLL; ReportBLL = _app.ReportBLL; VehicleService = _app.VehicleService; LineService = _app.LineService; RouteGuide = _app.RouteGuide; NodeBLL = _app.NodeBLL; app = _app; }