Ejemplo n.º 1
0
 public void MyDataGrid_Delete(object sender,DataGridCommandEventArgs e)
 {
     string StyleID = dgStyleList.DataKeys[e.Item.ItemIndex].ToString();
     UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();
     df.DeleteStyle(Int32.Parse(StyleID),Server.MapPath("."));
     df = null;
     Bangding();
 }
Ejemplo n.º 2
0
        public void MyDataGrid_Delete(object sender, DataGridCommandEventArgs e)
        {
            string StyleID = dgStyleList.DataKeys[e.Item.ItemIndex].ToString();

            UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();
            df.DeleteStyle(Int32.Parse(StyleID), Server.MapPath("."));
            df = null;
            Bangding();
        }
Ejemplo n.º 3
0
        private void cmdDeleteStyle_Click(object sender, System.EventArgs e)
        {
            string StyleID = GetSelectedItemID("cboStyleID");

            if(StyleID!="")
            {
                if(StyleID.IndexOf(",")<0)
                {
                    UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();
                    df.DeleteStyle(Int32.Parse(StyleID),Server.MapPath("."));
                    df = null;
                    Bangding();
                }
                else
                    Response.Write("<script laguage='javascript'>alert('ֻ��ɾ��һ����');</script>");
            }
            else
                Response.Write("<script laguage='javascript'>alert('��ѡ��һ��Ҫɾ������ʽ��');</script>");
        }
Ejemplo n.º 4
0
        private void cmdDeleteStyle_Click(object sender, System.EventArgs e)
        {
            string StyleID = GetSelectedItemID("cboStyleID");

            if (StyleID != "")
            {
                if (StyleID.IndexOf(",") < 0)
                {
                    UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();
                    df.DeleteStyle(Int32.Parse(StyleID), Server.MapPath("."));
                    df = null;
                    Bangding();
                }
                else
                {
                    Response.Write("<script laguage='javascript'>alert('只能删除一个!');</script>");
                }
            }
            else
            {
                Response.Write("<script laguage='javascript'>alert('请选择一个要删除的样式!');</script>");
            }
        }