/// <summary>
        /// Procedure is processing  the PM Items on screen, i.e. to add or delete 
        /// if them check boxes was selected/unselected
        /// </summary>
        private void ProcessingItems()
        {
            try
            {
                order = new clsWorkOrders();
                order.iOrgId = OrgId;
                order.iId = OrderId;

                foreach(DataGridItem item in dgPMServices.Items)
                {
                    order.iPMItemId = Convert.ToInt32(item.Cells[2].Text);;
                    order.iSchedDetailId = Convert.ToInt32(item.Cells[0].Text);
                    order.bChecked = ((CheckBox)item.FindControl("chAdd")).Checked;
                    order.UpdatePMItem();
                }
            }
            catch(Exception ex)
            {
                throw new Exception(ex.Message, ex);
            }
            finally
            {
                if(order != null)
                    order.Dispose();
            }
        }