コード例 #1
0
ファイル: Photo.cs プロジェクト: ChunTaiChen/K12.Data
 public static void UpdateGraduatePhoto(string picBase64String, string StudentID)
 {
     DSRequest dsreq = new DSRequest();
     DSXmlHelper helper = new DSXmlHelper("UpdateStudentList");
     helper.AddElement("Student");
     helper.AddElement("Student", "Field");
     helper.AddElement("Student/Field", "GraduatePhoto");
     helper.AddCDataSection("Student/Field/GraduatePhoto", picBase64String);
     helper.AddElement("Student", "Condition");
     helper.AddElement("Student/Condition", "ID", StudentID);
     dsreq.SetContent(helper);
     DSResponse dsrsp = DSAServices.CallService(UPDATE_SERVICENAME, dsreq);
 }
コード例 #2
0
        public static void UpdateGraduatePhoto(string picBase64String, string id)
        {
            DSRequest   dsreq  = new DSRequest();
            DSXmlHelper helper = new DSXmlHelper("UpdateStudentList");

            helper.AddElement("Student");
            helper.AddElement("Student", "Field");
            helper.AddElement("Student/Field", "GraduatePhoto");
            helper.AddCDataSection("Student/Field/GraduatePhoto", picBase64String);
            helper.AddElement("Student", "Condition");
            helper.AddElement("Student/Condition", "ID", id);
            dsreq.SetContent(helper);
            DSResponse dsrsp = DSAServices.CallService("SmartSchool.Student.Update", dsreq);
        }
コード例 #3
0
 public static void UpdateFreshmanPhoto(string picBase64String, string id)
 {
     DSRequest dsreq = new DSRequest();
     DSXmlHelper helper = new DSXmlHelper("UpdateStudentList");
     helper.AddElement("Student");
     helper.AddElement("Student", "Field");
     helper.AddElement("Student/Field", "FreshmanPhoto");
     helper.AddCDataSection("Student/Field/FreshmanPhoto", picBase64String);
     helper.AddElement("Student", "Condition");
     helper.AddElement("Student/Condition", "ID", id);
     dsreq.SetContent(helper);
     DSResponse dsrsp = DSAServices.CallService("SmartSchool.Student.Update", dsreq);
 }