Ejemplo n.º 1
0
 protected void btnCreate_Click(object sender, EventArgs e)
 {
     try
     {
         int    OldWfltID    = int.Parse(hdnTmpID.Value);
         string TemplateName = txbTemplateName1.Text.Trim();
         try
         {
             DataSet ds = template.GetList(" [name] = '" + txbTemplateName.Text.Trim() + "'");
             if (ds == null || ds.Tables.Count < 1 || ds.Tables[0].Rows.Count < 1)
             {
             }
             else
             {
                 PageCommon.AlertMsg(this, "The workflow template name already exists.");
                 return;
             }
         }
         catch { }
         hdnTmpID.Value = template.WorkflowTemplateClone(OldWfltID, TemplateName).ToString();
         PageLoad();
     }
     catch
     {
     }
 }