Beispiel #1
0
 protected void btnDelete_Click(object sender, System.EventArgs e)
 {
     System.Collections.Generic.List <string> listFromJson = JsonHelper.GetListFromJson(this.hfldPurchaseChecked.Value);
     try
     {
         foreach (string current in listFromJson)
         {
             SelfEventAction.SuperDelete(current, "Bud_ConsReport", "FlowState");
         }
         ConstructReport.Delete(listFromJson);
         base.RegisterScript("$('#btnBindResTask').hide();setWidthAndHeight(); alert('系统提示:\\n\\删除成功!')");
         this.BindGv();
     }
     catch
     {
         base.RegisterScript("setWidthAndHeight();alert('系统提示:\\n\\n删除失败!');");
     }
 }
Beispiel #2
0
    protected void btnDelete_Click(object sender, EventArgs e)
    {
        List <string> listFromJson = JsonHelper.GetListFromJson(this.hfldRptId.Value);

        try
        {
            foreach (string current in listFromJson)
            {
                SelfEventAction.SuperDelete(current, "Bud_ConsReport", "FlowState");
            }
            ConstructReport.Delete(listFromJson);
            base.RegisterScript("top.ui.show('删除成功');");
            this.BindRpt();
        }
        catch
        {
            base.RegisterScript("top.ui.alert('删除失败');");
        }
    }
 protected void btnDelete_Click(object sender, System.EventArgs e)
 {
     System.Collections.Generic.List <string> list = new System.Collections.Generic.List <string>();
     if (this.hfldPurchaseChecked.Value.Contains('['))
     {
         list = JsonHelper.GetListFromJson(this.hfldPurchaseChecked.Value);
     }
     else
     {
         list.Add(this.hfldPurchaseChecked.Value);
     }
     try
     {
         ConstructReport.Delete(list);
         base.RegisterScript("$('#btnBindResTask').hide(); alert('系统提示:\\n\\删除成功!')");
         this.BindGv();
     }
     catch
     {
         base.RegisterScript("alert('系统提示:\\n\\n删除失败!');");
     }
 }