Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         Maticsoft.BLL.record_FollowUp bll = new Maticsoft.BLL.record_FollowUp();
         if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
         {
             int FollowUpID = (Convert.ToInt32(Request.Params["id"]));
             bll.Delete(FollowUpID);
             Response.Redirect("list.aspx");
         }
     }
 }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         Maticsoft.BLL.record_FollowUp bll=new Maticsoft.BLL.record_FollowUp();
         if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
         {
             int FollowUpID=(Convert.ToInt32(Request.Params["id"]));
             bll.Delete(FollowUpID);
             Response.Redirect("list.aspx");
         }
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void OnStart()
        {
            if (CMD == "New")
            {

            }
            else if (CMD == "Edit")
            {
                HeadMenuButtonItem bi2 = new HeadMenuButtonItem();
                bi2.ButtonPopedom = PopedomType.Delete;
                bi2.ButtonName = "计划";
                bi2.ButtonUrlType = UrlType.JavaScript;
                bi2.ButtonUrl = string.Format("DelData('?CMD=Delete&ActivityID={0}')", FollowUpID);
                HeadMenuWebControls1.ButtonList.Add(bi2);

                InputData();
            }
            else if (CMD == "Delete")
            {
                Maticsoft.BLL.record_FollowUp bll = new Maticsoft.BLL.record_FollowUp();
                Maticsoft.Model.record_FollowUp model = bll.GetModel(FollowUpID);
                bll.Delete(model.FollowUpID);
                EventMessage.MessageBox(1, "操作成功", string.Format("{1}ID({0})成功!", FollowUpID, "删除信息"), Icon_Type.OK, Common.GetHomeBaseUrl("default.aspx"));
            }
        }