protected void GetData() { if (this.KeyId!=string.Empty) { BLL_ScheduleTasks = new ScheduleTasksBLL(); SchedulerObj=BLL_ScheduleTasks.FindSchedulerById(this.KeyId); } }
protected void Page_Load(object sender, EventArgs e) { vUTPScheduleMessager vScheduleLogObj; tblScheduler SchedulerObj; if (!IsPostBack) { if (Request.QueryString["KeyGuid"] != null && Request.QueryString["KeyGuid"] != string.Empty) { KeyId = Request.QueryString["KeyGuid"].ToString(); BLL_ScheduleLog = new vScheduleLogBLL(); //��ʾUserName��Ϣ vScheduleLogObj = BLL_ScheduleLog.FindUserNameByScheduleId(KeyId); if (vScheduleLogObj!=null) { lbl_UserName.Text = vScheduleLogObj.UserName; } //��ʾTaskName BLL_ScheduleTasks = new ScheduleTasksBLL(); SchedulerObj = BLL_ScheduleTasks.FindSchedulerById(KeyId); lbl_TaskName.Text = SchedulerObj.TaskName.Substring(0, SchedulerObj.TaskName.LastIndexOf("-")); } } GridViewDataBinding(KeyId); }