public void InitItemDetails() { string[] tupples = ItemDetail.Split(';'); int len = tupples.Length; itemDetails.Clear(); for (int i = 0; i < len; i++) { String tupple = tupples[i]; if (tupple.Equals("")) { continue; } string[] fields = tupple.Split('|'); MAuxilaryDocSubItem v = new MAuxilaryDocSubItem(new CTable("")); v.Description = fields[0]; v.Quantity = fields[1]; v.Unit = fields[2]; v.UnitPrice = fields[3]; v.Amount = fields[4]; v.Remark = fields[5]; itemDetails.Add(v); } rearrangeIndex(); }
public void RemoveItemDetail(MAuxilaryDocSubItem pi) { itemDetails.Remove(pi); rearrangeIndex(); }
public void InsertItemDetail(int index, MAuxilaryDocSubItem pi) { itemDetails.Insert(index, pi); rearrangeIndex(); }
public void AddItemDetail(MAuxilaryDocSubItem pi) { itemDetails.Add(pi); rearrangeIndex(); }