protected void btnAddMemoOk_ClickEx(object sender, EventArgs e)
        {
            List<IRMS.Entities.GeneralMemoConcessionDetail> DuplicateGenMemoDetailList = new List<IRMS.Entities.GeneralMemoConcessionDetail>();

            GeneralMemoConcessionDetailManager GMCDManager = new GeneralMemoConcessionDetailManager();
            List<IRMS.Entities.GeneralMemoConcessionDetail> GenMemoDetailsList = new List<IRMS.Entities.GeneralMemoConcessionDetail>();

            List<PriceGroup> _PriceGroupList = new List<PriceGroup>();

            _PriceGroupList = _PGManager.PriceGroupConcession();

            dtMarkdownList = (DataTable)Session["LIST"];
            dtNewMarkdownList = (DataTable)Session["NEWLIST"];

            //DataRow dtRow;
            GenMemoDetailsList = GMCDManager.GetGeneralMemoConcessionDetailByID(Convert.ToInt64(gvAddMemo.SelectedValue));
            bool bResult = false;
            foreach (IRMS.Entities.GeneralMemoConcessionDetail genMemoConcessionItem in GenMemoDetailsList)
            {
                var ItemFoundResult = (from myRow in dtMarkdownList.AsEnumerable()
                                       where myRow.Field<string>("STYLE #") == genMemoConcessionItem.StyleNumber
                                       select myRow);

                if (ItemFoundResult.Count() > 0)
                    bResult = true;
                else
                {
                    dtNewMarkdownList = (DataTable)Session["NEWLIST"];
                    ItemFoundResult = (from myRow in dtNewMarkdownList.AsEnumerable()
                                       where myRow.Field<string>("STYLE #") == genMemoConcessionItem.StyleNumber
                                       select myRow);

                    bResult = (ItemFoundResult.Count() > 0);
                }

                if (bResult == true)
                    DuplicateGenMemoDetailList.Add(genMemoConcessionItem);
                else
                {
                    if (genMemoConcessionItem.ynFurther == true)
                        AddMemoDetail(genMemoConcessionItem, ref dtMarkdownList);
                    else
                        AddMemoDetail(genMemoConcessionItem, ref dtNewMarkdownList);
                }
            }
            Session["LIST"] = dtMarkdownList;
            Session["NEWLIST"] = dtNewMarkdownList;

            gvMarkdownList.DataSource = (DataTable)Session["LIST"];
            gvMarkdownList.DataBind();

            gvNewMarkdown.DataSource = (DataTable)Session["NEWLIST"];
            gvNewMarkdown.DataBind();

            gvItems.SelectedIndex = -1;
            this.lblDuplicateCount.Text = "{0} items found!";

            if (DuplicateGenMemoDetailList.Count > 0)
            {
                lblDuplicateCount.Text = string.Format(lblDuplicateCount.Text, DuplicateGenMemoDetailList.Count);
                HiddenField2_ModalPopupExtender.Show();
            }
        }
        private void LoadMDMemoList()
        {
            List<IRMS.Entities.GeneralMemoConcessionDetail> DuplicateGenMemoDetailList = new List<IRMS.Entities.GeneralMemoConcessionDetail>();

            GeneralMemoConcessionDetailManager GMCDManager = new GeneralMemoConcessionDetailManager();
            List<IRMS.Entities.GeneralMemoConcessionDetail> GenMemoDetailsList = new List<IRMS.Entities.GeneralMemoConcessionDetail>();

            List<PriceGroup> _PriceGroupList = new List<PriceGroup>();
            _PriceGroupList = _PGManager.PriceGroupConcession();

            DataRow dtRow;
            DataRow dtNewRow;
            GenMemoDetailsList = GMCDManager.GetGeneralMemoConcessionDetailByID(Convert.ToInt64(Session["MemoID"]));
            foreach (IRMS.Entities.GeneralMemoConcessionDetail genMemoConcessionItem in GenMemoDetailsList)
            {
                if (genMemoConcessionItem.ynFurther == true)
                {
                    dtRow = dtMarkdownList.NewRow();
                    dtRow["STYLE #"] = genMemoConcessionItem.StyleNumber;
                    dtRow["DESCRIPTION"] = genMemoConcessionItem.StyleDescription;
                    dtRow["CURRENT PRICE"] = string.Format("{0:0.00}",genMemoConcessionItem.CurrentPrice);
                    dtRow["MARKDOWN PRICE"] = string.Format("{0:0.00}",genMemoConcessionItem.MDPrice);

                    foreach (PriceGroup pgroupItem in _PriceGroupList)
                    {
                        dtRow[pgroupItem.GroupField.ToString()] = string.Format("{0:0.00}", (Convert.ToDouble(genMemoConcessionItem.MDPrice) + Convert.ToDouble(_PGManager.AddValueToRegularPrice(pgroupItem.PGNo))));
                    }

                    dtMarkdownList.Rows.Add(dtRow);
                }
                else
                {
                    dtNewRow = dtNewMarkdownList.NewRow();
                    dtNewRow["STYLE #"] = genMemoConcessionItem.StyleNumber;
                    dtNewRow["DESCRIPTION"] = genMemoConcessionItem.StyleDescription;
                    dtNewRow["CURRENT PRICE"] = string.Format("{0:0.00}", genMemoConcessionItem.CurrentPrice);
                    dtNewRow["MARKDOWN PRICE"] = string.Format("{0:0.00}", genMemoConcessionItem.MDPrice);

                    foreach (PriceGroup pgroupItem in _PriceGroupList)
                    {
                        dtNewRow[pgroupItem.GroupField.ToString()] = string.Format("{0:0.00}", (Convert.ToDouble(genMemoConcessionItem.MDPrice) + Convert.ToDouble(_PGManager.AddValueToRegularPrice(pgroupItem.PGNo))));
                    }
                    dtNewMarkdownList.Rows.Add(dtNewRow);
                }

            }
            Session["LIST"] = dtMarkdownList;
            Session["NEWLIST"] = dtNewMarkdownList;

            gvMarkdownList.DataSource = (DataTable)Session["LIST"];
            gvMarkdownList.DataBind();

            gvNewMarkdownList.DataSource = (DataTable)Session["NEWLIST"];
            gvNewMarkdownList.DataBind();
        }