Exemple #1
0
        public void MyBind(string skey = "")
        {
            DataTable dt = null;

            if (string.IsNullOrEmpty(skey))
            {
                dt = scheBll.Sel(TaskType);
            }
            else
            {
                dt = scheBll.Sel(TaskType, skey);
            }
            EGV.DataSource = dt;
            EGV.DataBind();
        }
Exemple #2
0
        public void MyBind()
        {
            DataTable dt = scheBll.Sel(0);

            dt.Columns.Add(new DataColumn("IsRun", typeof(string)));
            foreach (var model in TaskCenter.TaskList)
            {
                DataRow dr = dt.NewRow();
                dr["ID"]          = model.scheMod.ID;
                dr["TaskName"]    = model.scheMod.TaskName;
                dr["LastTime"]    = model.scheMod.LastTime;
                dr["ExecuteType"] = model.scheMod.ExecuteType;
                dr["ExecuteTime"] = model.scheMod.ExecuteTime;
                dr["CDate"]       = model.scheMod.CDate;
                dr["Interval"]    = model.scheMod.Interval;
                dr["Remind"]      = model.scheMod.Remind;
                dr["IsRun"]       = model.flag ? "运行中" : "已停止";
                dt.Rows.Add(dr);
            }
            EGV.DataSource = dt;
            EGV.DataBind();
        }