Ejemplo n.º 1
0
 public static List<Tuple<int, string>> GetResponseList(int MemberMasterID, int AssessmentId)
 {
     List<Tuple<int, string>> lst = new List<Tuple<int, string>>();
     AssessmentResponse obj = new AssessmentResponse(1);
     lst = obj.GetMemberHRAResponse(MemberMasterID, AssessmentId, 1);
     return lst;
 }
Ejemplo n.º 2
0
 public static void SaveResponses(int MemberMasterID, int AssessmentID, string QuestionId, string Answers)
 {
     AssessmentResponse obj = new AssessmentResponse(1);
     Dictionary<int, string> arr = new Dictionary<int, string>();
     for (int i = 0; i < QuestionId.Split(',').Length; i++)
     {
         arr.Add(Convert.ToInt32(QuestionId.Split(',')[i]), Answers.Split('~')[i].ToString());
     }
     obj.MemberResponses = arr;
     obj.MemberMasterID = MemberMasterID;
     obj.AssessmentID = AssessmentID;
     obj.SaveMemberResponses();
 }
Ejemplo n.º 3
0
    public static void InsertFamilyHRA(int Subscriberid, int AssessmentId, string Responses)
    {
        string[] responseArr = Responses.Split('~');

        AssessmentResponse obj = new AssessmentResponse(1);
        Dictionary<int, string> arr = new Dictionary<int, string>();
        for (int i = 0; i < responseArr.Length; i++)
        {
            arr.Add(Convert.ToInt32(responseArr[i].Split('#')[0]), responseArr[i].Split('#')[1].ToString());
        }
        obj.FamilyResponses = arr;
        obj.MemberMasterID = Subscriberid;
        obj.AssessmentID = AssessmentId;
        obj.SaveFamilyResponses();
    }