示例#1
0
    public static string ReadNote()
    {
        MF_Note newnote = new MF_Note();

        newnote.FillSelf(MF_Note.M_NoteID + "=19");
        return(Encoding.Default.GetString(newnote.Note));
    }
示例#2
0
    public static bool SaveNote(string Note)
    {
        MF_Note newnote = new MF_Note();

        newnote.UserID      = 1;
        newnote.KnowledgeID = 21;
        newnote.NoteDate    = DateTime.Now;
        newnote.NoteTime    = DateTime.Now;
        newnote.Title       = "mytest";
        newnote.Note        = Encoding.Default.GetBytes(Note);
        newnote.OPTag       = MyFramework.EDBOperationTag.AddNew;
        newnote.DB_InsertEntity();

        return(true);
    }