public virtual void AddInfo(GstImportInfoGSTIN info) { this.RowCount = this.RowCount + info.RowCount; this.RecordCount = this.RecordCount + info.RecordCount; this.ErrorCount = this.ErrorCount + info.ErrorCount; this.txval = this.txval + Math.Round(info.txval, 2); this.iamt = this.iamt + Math.Round(info.iamt, 2); this.camt = this.camt + Math.Round(info.camt, 2); this.samt = this.samt + Math.Round(info.samt, 2); this.csamt = this.csamt + Math.Round(info.csamt, 2); }
public virtual GstImportInfoGSTIN AddRecord(string GSTIN, string ret_pd, int RowCount, bool IsSuccess) { var found = GSTIN_List.Where(a => myUtils.IsInList(a.GSTIN, GSTIN) && myUtils.IsInList(a.ret_pd, ret_pd)).FirstOrDefault(); if (found == null) { found = new GstImportInfoGSTIN { GSTIN = GSTIN, ret_pd = ret_pd }; GSTIN_List.Add(found); } found.AddRecord(RowCount, IsSuccess); return(found); }
public virtual GstImportInfoGSTIN AddInfo(GstImportInfoGSTIN info) { var found = GSTIN_List.Where(a => myUtils.IsInList(a.GSTIN, info.GSTIN) && myUtils.IsInList(a.ret_pd, info.ret_pd)).FirstOrDefault(); if (found == null) { found = info; GSTIN_List.Add(info); } else { found.AddInfo(info); } return(found); }