protected void LoadData(string Id) { Model.tTask m = bll.GetModel(Convert.ToInt32(Id)); if (m == null) { Alert.ShowInTop("出错了!"); return; } List <Model.tTaskSave> userList = bllsave.GetModelList(string.Format(" TaskId={0} and SavaDpt={1} ", m.Id, GetIdentityUser().dptId)); Model.tTaskSave msave = userList.Count == 0 ? null : userList[0]; if (msave == null) { hfEditorInitValue2.Text = ""; } else { hfEditorInitValue2.Text = msave.SaveContent; } txtTitle.Text = m.Title; DateTimeTop.SelectedDate = m.SaveTime; DateTimeLock.SelectedDate = m.LockTime; drpSearch.SelectedValue = m.TaskLevel; taskCon = m.TaskContent; if (DateTime.Now > m.LockTime) { btnSaveClose.Text = "已截止上报"; btnSaveClose.Enabled = false; } }
protected void LoadData(string Id) { Model.tTask m = bll.GetModel(Convert.ToInt32(Id)); if (m == null) { Alert.ShowInTop("出错了!"); return; } BindTree((int)m.SaveDpt); hfEditorInitValue2.Text = m.TaskContent; txtTitle.Text = m.Title; DateTimeTop.SelectedDate = m.SaveTime; DateTimeLock.SelectedDate = m.LockTime; drpSearch.SelectedValue = m.TaskLevel; if (m.IsCheck == "已审核") { btnSaveClose.Text = "已审核"; btnSaveClose.Enabled = false; } string[] dptlist = m.LookDptString.Split(','); foreach (string str in dptlist) { TreeDpt.FindNode(str).Checked = true; } }
protected void LoadData(string Id) { Model.tTask m = bll.GetModel(Convert.ToInt32(Id)); if (m == null) { Alert.ShowInTop("出错了!"); return; } BindTree((int)m.SaveDpt); LoadDataSave(); }
protected void btnLook_Click(object sender, EventArgs e) { int roleID = GetSelectedDataKeyID(GridDpt); if (roleID <= 0) { Alert.ShowInTop("请选择要查看的任务"); return; } BLL.tTask bll = new BLL.tTask(); Model.tTask m = bll.GetModel(roleID); string openUrl = String.Format("./TaskEditLook.aspx?Id={0}", HttpUtility.UrlEncode(roleID.ToString())); PageContext.RegisterStartupScript(Window2.GetSaveStateReference(roleID.ToString()) + Window2.GetShowReference(openUrl, m.Title)); }