Beispiel #1
0
        private void cmdDeleteFlow_Click(object sender, System.EventArgs e)
        {
            long FlowID;

            UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();
            string IDstr = this.GetSelectedItemID(dgFlowList, "FlowID");

            if (IDstr.Length > 0)
            {
                if (IDstr.IndexOf(",") > 0)
                {
                    Response.Write("<script lanauage='javascript'>alert('不能同时删除多个流程!');</script>");
                }
                else
                {
                    FlowID = Int32.Parse(IDstr);
                    if (df.DeleteFlow(FlowID) != 0)
                    {
                        Response.Write("<script lanauage='javascript'>alert('流程删除失败!此流程正在被一个文档使用!');</script>");
                    }
                    else
                    {
                        Response.Write("<script lanauage='javascript'>alert('流程删除成功!');</script>");
                    }
                }
            }
            else
            {
                Response.Write("<script lanauage='javascript'>alert('请选择流程!');</script>");
            }

            Bangding();

            //Response.AddHeader("Refresh","1");
        }
Beispiel #2
0
 public void MyDataGrid_Delete(object sender,DataGridCommandEventArgs e)
 {
     string FlowID = dgFlowList.DataKeys[e.Item.ItemIndex].ToString();
     UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();
     df.DeleteFlow(Int32.Parse(FlowID));
     df = null;
     Bangding();
 }
Beispiel #3
0
        public void MyDataGrid_Delete(object sender, DataGridCommandEventArgs e)
        {
            string FlowID = dgFlowList.DataKeys[e.Item.ItemIndex].ToString();

            UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();
            df.DeleteFlow(Int32.Parse(FlowID));
            df = null;
            Bangding();
        }
Beispiel #4
0
 private void cmdCancel_Click(object sender, System.EventArgs e)
 {
     //删除流程
     UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();
     if (df.DeleteFlow(FlowID) == 0)
     {
         Server.Transfer("Listview.aspx");
     }
     else
     {
         Server.Transfer("../../Error.aspx");
     }
 }
Beispiel #5
0
 private void cmdCancel_Click(object sender, System.EventArgs e)
 {
     //ɾ������
     UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();
     if(df.DeleteFlow(FlowID)==0)
     {
         Server.Transfer("Listview.aspx");
     }
     else
     {
         Server.Transfer("../../Error.aspx");
     }
 }
Beispiel #6
0
        private void cmdDeleteFlow_Click(object sender, System.EventArgs e)
        {
            long FlowID;
            UDS.Components.DocumentFlow df	= new UDS.Components.DocumentFlow();
            string IDstr					= this.GetSelectedItemID(dgFlowList,"FlowID");

            if(IDstr.Length >0)
            {
                if(IDstr.IndexOf(",")>0)
                    Response.Write("<script lanauage='javascript'>alert('����ͬʱɾ��������̣�');</script>");
                else
                {
                    FlowID = Int32.Parse(IDstr);
                    if(df.DeleteFlow(FlowID)!=0)
                        Response.Write("<script lanauage='javascript'>alert('����ɾ��ʧ�ܣ����������ڱ�һ���ĵ�ʹ�ã�');</script>");
                    else
                        Response.Write("<script lanauage='javascript'>alert('����ɾ���ɹ���');</script>");
                }
            }
            else
                Response.Write("<script lanauage='javascript'>alert('��ѡ�����̣�');</script>");

            Bangding();

            //Response.AddHeader("Refresh","1");
        }