Exemple #1
0
    public void LoadData()
    {
        TaskInfoBll BLL = new TaskInfoBll();

        //role = BLL.GetById(1);
        task = BLL.GetById(Convert.ToInt32(Request["id"]));
    }
Exemple #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request["commandNumber"] == null)
     {
         LoadData();
     }
     else
     {
         task = new TaskInfoModel();
         TaskInfoBll BLL            = new TaskInfoBll();
         int         commandContent = Convert.ToInt32(Request["commandNumber"]);
         task.CommandNumber  = commandContent;
         task.CommandContent = Request["commandContent"];
         //task.UpdateTime = DateTime.Now;
         int rows = BLL.Update(task);
         task = BLL.GetById(Convert.ToInt32(Request["commandNumber"]));
         Response.Write(rows);
     }
 }