Ejemplo n.º 1
0
        private void addPlanDocument(long acceptancePlanId)
        {
            var row = Plans.GetNewRow(this);

            row[AcceptancePlan] = acceptancePlanId;
            row.AddRowToTable(this);

            var acceptancePlan = new AcceptancePlan()
            {
                ReadingId = acceptancePlanId
            };

            foreach (DataRow stickerRow in acceptancePlan.Stickers.Rows)
            {
                var sticker = new Stickers()
                {
                    ReadingId = stickerRow[acceptancePlan.Sticker]
                };
                addWaresFromSticker(sticker);
            }
        }