Ejemplo n.º 1
0
        /// <summary>
        /// LoadBySaleDetailIdArrayList
        /// </summary>
        /// <param name="jlinerIdArrayList">ArrayList of JLinedIds</param>
        /// <param name="selected">1 = Selected by default, 0 = Not selected by default</param>
        public void LoadBySaleDetailIdArrayList(ArrayList jlinerIdArrayList, int selected)
        {
            // Loading data
            FlatSectionJlinerGateway flatSectionJlinerGateway = new FlatSectionJlinerGateway(Data);

            flatSectionJlinerGateway.Table.Clear();
            flatSectionJlinerGateway.ClearBeforeFill = false;

            foreach (JlinerId jlinerId in jlinerIdArrayList)
            {
                flatSectionJlinerGateway.LoadByIdRefIdSelected(jlinerId.id, jlinerId.refId, jlinerId.companyId, selected);
            }

            flatSectionJlinerGateway.ClearBeforeFill = true;
        }