Пример #1
0
        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();
        }
Пример #2
0
 public void RemoveItemDetail(MAuxilaryDocSubItem pi)
 {
     itemDetails.Remove(pi);
     rearrangeIndex();
 }
Пример #3
0
 public void InsertItemDetail(int index, MAuxilaryDocSubItem pi)
 {
     itemDetails.Insert(index, pi);
     rearrangeIndex();
 }
Пример #4
0
 public void AddItemDetail(MAuxilaryDocSubItem pi)
 {
     itemDetails.Add(pi);
     rearrangeIndex();
 }