Ejemplo n.º 1
0
 protected void MyDataGrid_Delete(object source, DataGridCommandEventArgs e)
 {
     string StyleID = dgStyleList.DataKeys[e.Item.ItemIndex].ToString();
     if (FlowFieldObject.IsStyleInUse(StyleID))
     {
         Response.Write("<script laguage='javascript'>alert('此字段被表单使用,不能删除。请先从表单中删除。');</script>");
         return;
     }
     UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();
     df.DeleteField(Int32.Parse(StyleID));
     df = null;
     Bangding();
 }