protected void btnSave_Click(Object Sender, EventArgs e)
 {
     oProjectRequest.DeleteQA(intQuestion);
     foreach (TreeNode oNode in oTreeview.Nodes)
     {
         SaveQA(oNode);
     }
     Reload();
 }
예제 #2
0
 private void SaveQA(TreeNode oParent)
 {
     foreach (TreeNode oNode in oParent.ChildNodes)
     {
         if (oNode.Checked == true && !(oParent.Text.ToString() == strBase && oNode.Value.ToString() == intOrganizationID.ToString()))
         {
             int _organization_id = Int32.Parse(oNode.Value);
             oProjectRequest.DeleteQA(oParent.Text, _organization_id);
             dsQA = oProjectRequest.GetQA(strBase, intOrganizationID);
             foreach (DataRow drQA in dsQA.Tables[0].Rows)
             {
                 intQuestion = Int32.Parse(drQA["questionid"].ToString());
                 oProjectRequest.AddQA(oParent.Text, _organization_id, intQuestion);
             }
         }
     }
 }