示例#1
0
        public BOCls_Story()
        {
            oDBStoryController = new DBCls_Stories();
            ID = "";

            ObjectStatus = (int)StoryStatus.New;
        }
示例#2
0
 public BOCls_Story(String[] ArrStory)
 {
     oDBStoryController = new DBCls_Stories();
     FillInStory(ArrStory);
     ObjectStatus = (int)StoryStatus.NotModified;
 }
示例#3
0
 public BOCls_Story(String StoryID)
 {
     oDBStoryController = new DBCls_Stories();
     GetStoryByID(StoryID);
     ObjectStatus = (int)StoryStatus.NotModified;
 }
示例#4
0
 public bool LoadStoryFromXML(String pXML)
 {
     try
     {
         oDBStoryController = new DBCls_Stories();
         FillStoryWithXML(pXML);
         ObjectStatus = (int)StoryStatus.NotModified;
     }
     catch (Exception ex)
     {
         return false;
     }
     return true;
 }
示例#5
0
 public bool GetStoryByID(String StoryID)
 {
     try
     {
         oDBStoryController = new DBCls_Stories();
         String[,] ArrStory = oDBStoryController.SearchStory(StoryID);
         if (ArrStory != null)
         {
             ID = ArrStory[0, (int)StoryCriteria.cID];
             SubmitterFirstName = ArrStory[0, (int)StoryCriteria.cSUBMITTERFIRSTNAME];
             PhotoID = ArrStory[0, (int)StoryCriteria.cPHOTOID];
             StoryTitle = ArrStory[0, (int)StoryCriteria.cSTORYTITLE];
             StoryPlot = ArrStory[0, (int)StoryCriteria.cSTORYPLOT];
             RoleInStory = ArrStory[0, (int)StoryCriteria.cROLEINSTORY];
             Age = ArrStory[0, (int)StoryCriteria.cAGE];
             StoryDate = ArrStory[0, (int)StoryCriteria.cSTORYDATE];
             DonationTransplant = ArrStory[0, (int)StoryCriteria.cDONATIONTRANSPLANT];
             AuthorizationText = ArrStory[0, (int)StoryCriteria.cAUTHORIZATIONTEXT];
             Authorized = ArrStory[0, (int)StoryCriteria.cAUTHORIZED];
             Submitted = ArrStory[0, (int)StoryCriteria.cSUBMITTED];
             ConfirmationID = ArrStory[0, (int)StoryCriteria.cCONFIRMATIONID];
             StoryState = ArrStory[0, (int)StoryCriteria.cSTORYSTATUS];
             Hearth = ArrStory[0, (int)StoryCriteria.cHEARTH];
             Lung = ArrStory[0, (int)StoryCriteria.cLUNG];
             Liver = ArrStory[0, (int)StoryCriteria.cLIVER];
             Kidney = ArrStory[0, (int)StoryCriteria.cKIDNEY];
             Pancreas = ArrStory[0, (int)StoryCriteria.cPANCREAS];
             Intestines = ArrStory[0, (int)StoryCriteria.cINTESTINES];
             Corneas = ArrStory[0, (int)StoryCriteria.cCORNEAS];
             MiddleEar = ArrStory[0, (int)StoryCriteria.cMIDDLEEAR];
             BloodVessels = ArrStory[0, (int)StoryCriteria.cBLOODVESSELS];
             Bone = ArrStory[0, (int)StoryCriteria.cBONE];
             Skin = ArrStory[0, (int)StoryCriteria.cSKIN];
             OtherOrgan = ArrStory[0, (int)StoryCriteria.cOTHERORGAN];
             OrganDescription = ArrStory[0, (int)StoryCriteria.cORGANDESCRIPTION];
             OrganizationDescription = ArrStory[0, (int)StoryCriteria.cORGANIZATIONDESCRIPTION];
             Email = ArrStory[0, (int)StoryCriteria.cEMAIL];
             IsPublic = ArrStory[0, (int)StoryCriteria.cISPUBLIC];
             Relationship = ArrStory[0, (int)StoryCriteria.cRELATIONSHIP];
         }
         oDBStoryController = null;
     }
     catch (Exception ex)
     {
         return false;
     }
     return true;
 }