//--------------------------------------
    // Internal Events
    //--------------------------------------



    /*
     * Save
     */

    private void OnSaveRecordSuccess(string data)
    {
        string[] values   = SA.Common.Data.Converter.ParseArray(data);
        int      dbId     = System.Convert.ToInt32(values[0]);
        int      recordId = System.Convert.ToInt32(values[1]);

        CK_Database db = CK_Database.GetDatabaseByInternalId(dbId);

        CK_RecordResult result = new CK_RecordResult(recordId);

        db.FireSaveRecordResult(result);
    }
    private void OnSaveRecordFailed(string data)
    {
        string[] DataArray = data.Split(new string[] { SA.Common.Data.Converter.DATA_SPLITTER2 }, StringSplitOptions.None);


        int         dbId = System.Convert.ToInt32(DataArray[0]);
        CK_Database db   = CK_Database.GetDatabaseByInternalId(dbId);


        string          errorData = DataArray[1];
        CK_RecordResult result    = new CK_RecordResult(errorData);

        db.FireSaveRecordResult(result);
    }