public override void AddRecord() { if ((int)this.m_hndPOST == 0) { this.m_hndPOST = this.GetLink().TablePOST_CreateHandle(this.m_sTableName, 0); this.GetLink().TablePOST_AddDirective(this.m_hndPOST, "allowentonclosedmtr", PLBilling.m_bAllowEntOnClosedMtr ? "1" : "0"); } if (this.TaskID == 0) { this.TaskNN = "WD"; } base.AddRecord(); this.m_EntryType.SetValue(5121); this.m_EntryType.AddField(this.m_hndPOST); for (int nRepeat = 1; nRepeat <= this.m_AllocArray.Count; ++nRepeat) { this.m_AllocArray[nRepeat - 1].AddRepeatFields(this.m_hndPOST, nRepeat); } this.m_AllocArray.Clear(); this.GetLink().TablePOST_AddRecord(this.m_hndPOST); PLWUD plwud = this; plwud.m_lCounter = plwud.m_lCounter + 1; if (this.m_lCounter < PLXMLData.m_nMaxCounter) { return; } this.SendLast(); }
public PCLawConversion() { try { this.PL = new PLLink(); this.GenInf = new PLGenInfo(); this.Lawyer = new PLLawyer(); this.User = new PLUser(); this.Rate = new PLRate(); this.ContactType = new PLContactType(); this.DiaryCode = new PLDiaryCode(); this.ExpCode = new PLExpCode(); this.GLAccts = new PLGLAccts(); this.Task = new PLTask(); this.GBAcct = new PLGBAcct(); this.TBAcct = new PLTBAcct(); this.TypeOfLaw = new PLTypeOfLaw(); this.Location = new PLLocationCode(); this.Department = new PLDepartment(); this.RefSource = new PLRefSource(); this.Client = new PLClient(); this.Contact = new PLContact(); this.Matter = new PLMatter(); this.Vendor = new PLVendor(); this.Bill = new PLBilling(); this.WUD = new PLWUD(); this.TimeEntry = new PLTimeEntry(); this.Trust = new PLTBEnt(); this.General = new PLGBEnt(); this.Expense = new PLExpense(); this.Payable = new PLPayableEntry(); this.GJ = new PLGJEntry(); this.Diary = new PLDiary(); this.SCStageGroup = new PLSafeCustStageGroup(); this.SCStage = new PLSafeCustStage(); this.SCType = new PLSafeCustType(); this.SCStatus = new PLSafeCustStatus(); this.SCPacket = new PLSafeCustPacket(); this.SCSafeCustRecord = new PLSafeCustEntry(); this.SCMovements = new PLSafeCustMovement(); this.CustomTab = new PLCustomTab(); } catch (Exception ex) { int num = (int)MessageBox.Show(ex.Message); } }
public bool Send(ref int nInvID, ref int nInvNum, ref int nInvDate) { 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(); short num = 0; string empty = string.Empty; this.m_lSendErrorCount = 0L; this.GetLink().TablePOST_Send(this.m_hndPOST, ref nProcessed, ref nExceptions); num = Convert.ToInt16(nProcessed); short int16 = Convert.ToInt16(nExceptions); PLXMLData.m_lErrorCount += (long)int16; bool flag; if ((int)int16 > 0) { this.GetLink().TablePOST_DumpExceptionsToLinkLog(this.m_hndPOST); PLWUD plwud = this; plwud.m_lSendErrorCount = plwud.m_lSendErrorCount + 1L; flag = false; } else if (this.GetLink().TablePOST_GetNextResult(this.m_hndPOST, ref vunIDCreated, ref nExceptionError, ref szExceptionErrorMsg, ref szExceptionSentData) == 0) { if ((!this.UseReverseEntryID ? 0 : (this.m_ReverseEntryID != null ? 1 : 0)) != 0) { this.GetLink().TablePOST_ResultDataField_String(this.m_hndPOST, this.m_ReverseEntryID.sLinkName, empty, ref szValue); this.ReverseEntryID = Convert.ToInt32(szValue); } flag = true; } else { flag = false; } return(flag); }