public override void AddRecord() { Decimal num = new Decimal(0); for (int index = 1; index <= this.listAllocations.Count; ++index) { num += (Decimal)this.listAllocations[index - 1].Amount; } if (num != new Decimal(0)) { return; } base.AddRecord(); for (int nRepeat = 1; nRepeat <= this.listAllocations.Count; ++nRepeat) { this.m_AllocGLID.SetValue(this.listAllocations[nRepeat - 1].GLID); this.m_AllocGLID.AddRepeatField(this.m_hndPOST, nRepeat); this.m_AllocAmount.SetValue(this.listAllocations[nRepeat - 1].Amount); this.m_AllocAmount.AddRepeatField(this.m_hndPOST, nRepeat); } this.listAllocations.Clear(); this.GetLink().TablePOST_AddRecord(this.m_hndPOST); PLGJEntry plgjEntry = this; plgjEntry.m_lCounter = plgjEntry.m_lCounter + 1; if (this.m_lCounter >= PLXMLData.m_nMaxCounter) { this.Send(); } }
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); } }