protected void Linkbutton1_Click(object sender, EventArgs e) { if (!String.IsNullOrEmpty(this.ctrlMyWorkFlowList1.MyID)) { CBLL.WorkFlowManage cbll = new DigiPower.Onlinecol.Standard.CBLL.WorkFlowManage(); cbll.DeleteFlag(Common.ConvertEx.ToInt(this.ctrlMyWorkFlowList1.MyID), false); Response.Redirect("MyWorkFlowList.aspx"); } }
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"); } } }