protected void btnDelete_Click(object sender, EventArgs e)
        {
            string TWFIDs = hdnTmpIDs.Value;

            if (TWFIDs.Length <= 0)
            {
                return;
            }
            string[] templIdList;
            try
            {
                templIdList = TWFIDs.Split(',');
                if (templIdList.Length <= 0)
                {
                    return;
                }
                int wflTemplId           = 0;
                BLL.Template_Workflow tw = new Template_Workflow();
                foreach (string tempId in templIdList)
                {
                    try
                    {
                        wflTemplId = 0;
                        int.TryParse(tempId, out wflTemplId);
                        if (wflTemplId > 0)
                        {
                            tw.WorkflowTemplateDelete(wflTemplId);
                        }
                    }
                    catch (Exception ex)
                    {
                    }
                }
                BindTemplatesGrid();
            }
            catch
            { }
            finally
            {
                hdnTmpIDs.Value = string.Empty;
            }
        }
        protected void btnDeleteTemplate_Click(object sender, EventArgs e)
        {
            string TmpID = hdnTmpID.Value;

            if (TmpID.Length > 0 && TmpID != "0")
            {
                try
                {
                    int wflTemplId = 0;
                    int.TryParse(TmpID, out wflTemplId);
                    if (wflTemplId > 0)
                    {
                        template.WorkflowTemplateDelete(wflTemplId);
                    }
                }
                catch
                { }
            }
            hdnTmpIDs.Value = string.Empty;
        }