This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.AlertDialog; | |
import android.content.ContentValues; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.content.Intent; | |
import android.content.SharedPreferences; | |
import android.database.Cursor; | |
import android.os.Bundle; | |
import android.os.PersistableBundle; | |
import android.preference.PreferenceManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ua.com.programmer.webapp; | |
import org.jawin.COMException; | |
import org.jawin.DispatchPtr; | |
import org.jawin.win32.Ole32; | |
import org.json.simple.JSONArray; | |
import org.json.simple.JSONObject; | |
public class Connector { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Перем Пусто, ИтОстатки, ИтСальдо, ДатаОстатков; | |
Перем ФильтрПоТоварам, ФильтрПоКлиентам, спТовары, спКлиенты; | |
Перем ЕстьОстаткиТоваров,ЕстьОстаткиВР, КоличествоСтрокОстатков; | |
Перем НомерПоПорядку, ДанныеТоваров, ДанныеЦен, ДатаДокументаВР; | |
Перем НомерТовараПоПорядку; | |
Перем ПреобразовательОЛЕ; | |
Перем мФайлЖурнала,мИмяЖурнала,мЦикловВыгрузки; | |
Перем мИмяФайлаОстатковТоваров; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Nullable | |
private SoapObject getData(String objectCode) { | |
errorText = ""; | |
SoapObject request = new SoapObject(NAMESPACE, "get"); | |
PropertyInfo param = new PropertyInfo(); | |
param.setName("objectCode"); | |
param.setValue(objectCode); | |
request.addProperty(param); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class SyncHttp { | |
private RequestQueue requestQueue; | |
SyncHttp(Context context){ | |
requestQueue = Volley.newRequestQueue(context); | |
} | |
HashMap<String, String> authHeaders(){ | |
HashMap<String, String> headers = new HashMap<>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Функция MD5(КодируемаяСтрока) Экспорт | |
ScrptCtrl = Новый COMОбъект("MSScriptControl.ScriptControl"); | |
ScrptCtrl.Language = "JScript"; | |
ScrptCtrl.AddCode(" | |
|var hexcase = 0; | |
|var b64pad = """"; | |
|var chrsz = 8; | |
|function hex_md5(s){ return binl2hex(core_md5(str2binl(s), s.length * chrsz));} | |
|function b64_md5(s){ return binl2b64(core_md5(str2binl(s), s.length * chrsz));} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Если НеобходимыеДанные.ИсчисленныйНДФЛ Тогда | |
ИсчисленныйНДФЛТекст = | |
"ВЫБРАТЬ | |
| ВзаиморасчетыПоНДФЛ.Сотрудник КАК Сотрудник, | |
| СУММА(ВзаиморасчетыПоНДФЛ.Налог) КАК НДФЛ | |
|ПОМЕСТИТЬ ВТИсчисленныйНДФЛ | |
|ИЗ | |
| РегистрНакопления.ВзаиморасчетыПоНДФЛ КАК ВзаиморасчетыПоНДФЛ | |
|ГДЕ | |
| ВзаиморасчетыПоНДФЛ.Организация = &парамОрганизация |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Функция СтрокаЧисло(Ч) | |
Возврат Формат(Ч,"ЧДЦ=6; ЧРД=.; ЧН=0.0; ЧГ=0"); | |
КонецФункции // СтрокаЧисло() | |
&НаСервере | |
Процедура ПостроитьКарту() | |
Запрос = Новый Запрос; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private boolean tableExists(SQLiteDatabase sqLiteDatabase, String table){ | |
if (sqLiteDatabase == null || !sqLiteDatabase.isOpen() || table == null){ | |
return false; | |
} | |
int count = 0; | |
String[] args = {"table",table}; | |
Cursor cursor = sqLiteDatabase.rawQuery("SELECT COUNT(*) FROM sqlite_master WHERE type=? AND name=?",args,null); | |
if (cursor.moveToFirst()){ | |
count = cursor.getInt(0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Функция ПодготовитьДанныеОТоварах(МобильныйКлиент,НомерЭлемента) Экспорт | |
Дата = КонецДня(ТекущаяДата()); | |
зТовары = Новый Запрос; | |
зТовары.Текст = | |
"ВЫБРАТЬ ПЕРВЫЕ 1000 | |
| Агент_Товары.Номенклатура КАК Товар, | |
| Агент_Товары.ПорядковыйНомер КАК ПорядковыйНомер | |
|ИЗ |
OlderNewer