public override void Send() { object nProcessed = new object(); object nExceptions = new object(); object vunIDCreated = new object(); object nExceptionError = new object(); object szExceptionErrorMsg = new object(); object szExceptionSentData = new object(); object szValue = new object(); string szDefault = ""; this.m_lSendErrorCount = 0L; this.GetLink().TablePOST_Send(this.m_hndPOST, ref nProcessed, ref nExceptions); while (this.GetLink().TablePOST_GetNextResult(this.m_hndPOST, ref vunIDCreated, ref nExceptionError, ref szExceptionErrorMsg, ref szExceptionSentData) == 0) { if (Convert.ToInt32(nExceptionError) <= 0) { int int32 = Convert.ToInt32(vunIDCreated); this.GetLink().TablePOST_ResultDataField_String(this.m_hndPOST, this.m_NickName.sLinkName, szDefault, ref szValue); PLDiaryCode.AddMapIDtoNN(int32, szValue.ToString().ToUpper()); PLDiaryCode.AddMapNNtoID(szValue.ToString().ToUpper(), int32); this.GetLink().TablePOST_ResultDataField_String(this.m_hndPOST, this.m_ExternalID_1.sLinkName, szDefault, ref szValue); if (!szValue.ToString().Equals("")) { PLDiaryCode.AddMapExtID1toPLID(szValue.ToString(), int32); } this.GetLink().TablePOST_ResultDataField_String(this.m_hndPOST, this.m_ExternalID_2.sLinkName, szDefault, ref szValue); if (!szValue.ToString().Equals("")) { PLDiaryCode.AddMapExtID2toPLID(szValue.ToString(), int32); } } } short int16_1 = Convert.ToInt16(nProcessed); short int16_2 = Convert.ToInt16(nExceptions); PLXMLData.m_lErrorCount += (long)int16_2; if (((int)int16_2 > 0 ? 1 : (this.m_lCounter != (int)int16_1 ? 1 : 0)) != 0) { this.GetLink().TablePOST_DumpExceptionsToLinkLog(this.m_hndPOST); PLUser plUser = this; plUser.m_lSendErrorCount = plUser.m_lSendErrorCount + 1L; } this.GetLink().TablePOST_Reset(this.m_hndPOST); this.m_lCounter = 0; }
private static void ReadTable() { if (PLDiaryCode.bRead) { return; } uint num = 0; object obj = new object(); num = PLLink.GetLink().TableGET_CreateHandle("DiaryCode", 0, 0, 0); PLLink.GetLink().TableGET_AddFilter(num, "DiaryCodeStatus", "EQ", "0", 1); while (PLLink.GetLink().TableGET_GetNextRecord(num) == 0) { PLLink.GetLink().TableGET_RecordField_ValueString(num, "DiaryCodeNickName", "", ref obj); string str = obj.ToString().ToUpper().Trim(); int recordFieldValueI32 = PLLink.GetLink().TableGET_RecordField_ValueI32(num, "DiaryCodeID"); PLDiaryCode.AddMapNNtoID(str, recordFieldValueI32); PLDiaryCode.AddMapIDtoNN(recordFieldValueI32, str); PLDiaryCode.AddNicknameToList(str); } PLLink.GetLink().TableGET_CloseHandle(num); num = 0U; PLDiaryCode.bRead = true; }