Esempio n. 1
0
        public static int SetTsFieldValue(string fieldName, string fieldValue, TsCallbackHelper tsCallBackHelper)
        {
            int i = 0;
            try
            {
                string blobSettings = string.Empty;

                TsMemFiles.SetString("Lookup Command", "Function", "103", ref blobSettings);
                TsMemFiles.SetString("Lookup Command", "Control", string.Empty, ref blobSettings);
                TsMemFiles.SetString("Field Data", fieldName, fieldValue, ref blobSettings);
                TsMemFiles.SetString("Field Confidence", fieldName, Convert.ToString(SetConfidenceForField(fieldValue, 95)), ref blobSettings);
                i = tsCallBackHelper.SetCustom(ref blobSettings);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error in SetTSFieldValue: " + ex.Message);
            }
            return i;
        }
Esempio n. 2
0
        public static void SetTsFieldFocus(string fieldName, TsCallbackHelper tsCallBackHelper)
        {
            try
            {
                string blobSettings = "";
                int i = 0;

                //  Set focus to field
                TsMemFiles.SetString("Lookup Command", "Function", "102", ref blobSettings);
                TsMemFiles.SetString("Lookup Command", "Control", string.Empty, ref blobSettings);
                TsMemFiles.SetString("Lookup Command", "Action", "102", ref blobSettings);
                TsMemFiles.SetString("Group Fields", fieldName, "1", ref blobSettings);
                i = tsCallBackHelper.SetCustom(ref blobSettings);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error in SetTSFieldFocus: " + ex.Message);
            }
        }