public bool CheckInput()
        {
            if (txbTemplateName.Text.Trim().Length < 1)
            {
                PageCommon.AlertMsg(this, "Please enter the workflow template name.");
                return(false);
            }
            else
            {
                try
                {
                    DataSet ds = template.GetList(" [name] = '" + txbTemplateName.Text.Trim() + "' and WflTemplId <> " + WflTemplId.ToString());
                    if (ds == null || ds.Tables.Count < 1 || ds.Tables[0].Rows.Count < 1)
                    {
                    }
                    else
                    {
                        PageCommon.AlertMsg(this, "The workflow template name already exists.");
                        return(false);
                    }
                }
                catch { }
            }


            try
            {
                int.Parse(txbEstClose.Text.Trim());
            }
            catch
            {
                PageCommon.AlertMsg(this, "Please enter the stage target completion days from Est Close.");
                return(false);
            }
            return(true);
        }