Ejemplo n.º 1
0
        /// <summary>
        /// 创建页面控件
        /// </summary>
        public void CreatePage(string SingleProjectID)
        {
            hdSingleProjectID.Value = SingleProjectID;
            BLL.T_WorkFlowDefine_BLL bll = new DigiPower.Onlinecol.Standard.BLL.T_WorkFlowDefine_BLL();
            DataSet ds = bll.GetList("SingleProjectID=" + SingleProjectID);
            //对数据集按照父子关系排序
            DataTable dt = new DataTable();

            dt.Columns.Add("ID");
            dt.Columns.Add("Name");
            dt.Columns.Add("Del");
            OrderDs(dt, ds, "0");
            //创建HTML表格
            CreateTable(dt);
        }
Ejemplo n.º 2
0
 protected void btnDelete_Click(object sender, EventArgs e)
 {
     if (!String.IsNullOrEmpty(this.ctrlMyWorkFlowList1.MyID))
     {
         int MinWorkFlowID = 0;
         BLL.T_WorkFlowDefine_BLL defineBLL = new DigiPower.Onlinecol.Standard.BLL.T_WorkFlowDefine_BLL();
         DataSet ds = defineBLL.GetList("DoStatus=1");
         if (ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
         {
             MinWorkFlowID = Common.ConvertEx.ToInt(ds.Tables[0].Rows[0]["WorkFlowDefineID"].ToString());
         }
         if (Common.ConvertEx.ToInt(this.ctrlMyWorkFlowList1.MyID) > MinWorkFlowID)
         {
             CBLL.WorkFlowManage cbll = new DigiPower.Onlinecol.Standard.CBLL.WorkFlowManage();
             cbll.DeleteFlag(Common.ConvertEx.ToInt(this.ctrlMyWorkFlowList1.MyID), true);
             Response.Redirect("MyWorkFlowList.aspx");
         }
     }
 }