public override void DataBind()
        {
            MultiSelectListBoxItem           one = new MultiSelectListBoxItem(0, "New");
            MultiSelectListBoxItem           two = new MultiSelectListBoxItem(1, "Updated");
            MultiSelectListBoxItemCollection col = new MultiSelectListBoxItemCollection();

            col.Add(one);
            col.Add(two);

            this.DataSource     = col;
            this.DataTextField  = "name";
            this.DataValueField = "id";

            base.DataBind();
        }
示例#2
0
        protected void BindValues()
        {
            Pub l_pub = PE_DAL.GetProdComData(this.PubID);

            this.TextCtrl_SpellCkDescription.Text = l_pub.Description;
            this.TextCtrl_SpellCk_Keyword.Text    = l_pub.Keywords;
            this.TextCtrl_SpellCk_Summary.Text    = l_pub.Summary;

            if (l_pub.IsCopyRight > 0)
            {
                this.lblCopyRight.Text = "Yes";
            }
            else if (l_pub.IsCopyRight == 0)
            {
                this.lblCopyRight.Text = "No";
            }
            //this.lblCopyRight.Text = l_pub.IsCopyRight ? "Yes" : "No";
            this.txtThumbnail.Text = l_pub.Thumbnail;
            this.txtLgImage.Text   = l_pub.LargeImage;
            this.txtTotalPage.Text = l_pub.TotalNumPage.ToString();

            this.txtThumbnail.Attributes.CssStyle.Add("color", "#808080");
            this.txtLgImage.Attributes.CssStyle.Add("color", "#808080");

            this.TextCtrl_SpellCk_Dimension.Text = l_pub.Dimension;
            this.TextCtrl_SpellCk_Color.Text     = l_pub.Color;
            this.TextCtrl_SpellCk_Other.Text     = l_pub.Other;

            this.TextCtrl_SpellCk_POSInst.Text = l_pub.POSInst;

            if (l_pub.NEW > 0)
            {
                this.CkboxListNewUpdated.New = true;
            }
            else if (l_pub.NEW == 0)
            {
                this.CkboxListNewUpdated.New = false;
            }

            if (l_pub.UPDATED > 0)
            {
                this.CkboxListNewUpdated.Updated = true;
            }
            else if (l_pub.UPDATED == 0)
            {
                this.CkboxListNewUpdated.Updated = false;
            }

            if (l_pub.EXPDATE.CompareTo(DateTime.MinValue) > 0)
            {
                this.txtExpDate.Text = l_pub.EXPDATE.ToShortDateString();
                this.txtExpDate.Attributes.CssStyle.Add("color", "#808080");
            }

            this.ClearHidSelection();

            MultiSelectListBoxItemCollection rcoll = PE_DAL.GetLangByPubID(this.PubID);

            foreach (Lang p in rcoll)
            {
                ListItem matchItem = this.listLang.Items.FindByValue(p.LangID.ToString());
                if (matchItem != null)
                {
                    matchItem.Selected = true;
                    if (this.hiddenLangSelected.Value.Length != 0)
                    {
                        this.hiddenLangSelected.Value += ",";
                    }
                    this.hiddenLangSelected.Value += matchItem.Value;
                }
            }

            rcoll = PE_DAL.GetCancerTypeByPubID(this.PubID);
            foreach (PubEntAdmin.BLL.CancerType p in rcoll)
            {
                ListItem matchItem = this.listCancerType.Items.FindByValue(p.CancerTypeID.ToString());
                if (matchItem != null)
                {
                    matchItem.Selected = true;
                    if (this.hiddenCancerSelected.Value.Length != 0)
                    {
                        this.hiddenCancerSelected.Value += ",";
                    }
                    this.hiddenCancerSelected.Value += matchItem.Value;
                }
            }

            rcoll = PE_DAL.GetAudienceByPubID(this.PubID);
            foreach (PubEntAdmin.BLL.Audience p in rcoll)
            {
                ListItem matchItem = this.listAudience.Items.FindByValue(p.AudID.ToString());
                if (matchItem != null)
                {
                    matchItem.Selected = true;
                    if (this.hiddenAudienceSelected.Value.Length != 0)
                    {
                        this.hiddenAudienceSelected.Value += ",";
                    }
                    this.hiddenAudienceSelected.Value += matchItem.Value;
                }
            }

            rcoll = PE_DAL.GetProdFormatByPubID(this.PubID);
            foreach (ProdFormat p in rcoll)
            {
                ListItem matchItem = this.listProdFormat.Items.FindByValue(p.ProdFormatID.ToString());
                if (matchItem != null)
                {
                    matchItem.Selected = true;
                    if (this.hiddenProdFormatSelected.Value.Length != 0)
                    {
                        this.hiddenProdFormatSelected.Value += ",";
                    }
                    this.hiddenProdFormatSelected.Value += matchItem.Value;
                }
            }

            //NCIPL_CC rcoll = PE_DAL.GetSeriesByPubID(this.PubID);
            //foreach (PubEntAdmin.BLL.Series p in rcoll)
            //{
            //    ListItem matchItem = this.listSeries.Items.FindByValue(p.SeriesID.ToString());
            //    if (matchItem != null)
            //    {
            //        matchItem.Selected = true;
            //        if (this.hiddenSeriesSelected.Value.Length != 0)
            //            this.hiddenSeriesSelected.Value += ",";
            //        this.hiddenSeriesSelected.Value += matchItem.Value;
            //    }
            //}

            rcoll = PE_DAL.GetRaceByPubID(this.PubID);
            foreach (PubEntAdmin.BLL.Race p in rcoll)
            {
                ListItem matchItem = this.listRace.Items.FindByValue(p.RaceID.ToString());
                if (matchItem != null)
                {
                    matchItem.Selected = true;
                    if (this.hiddenRaceSelected.Value.Length != 0)
                    {
                        this.hiddenRaceSelected.Value += ",";
                    }
                    this.hiddenRaceSelected.Value += matchItem.Value;
                }
            }


            rcoll = PE_DAL.GetReadlevelByPubID(this.PubID);
            foreach (Readlevel p in rcoll)
            {
                ListItem matchItem = this.listReadingLevel.Items.FindByValue(p.ReadlevelID.ToString());
                if (matchItem != null)
                {
                    matchItem.Selected = true;
                    if (this.hiddenReadLevelSelected.Value.Length != 0)
                    {
                        this.hiddenReadLevelSelected.Value += ",";
                    }
                    this.hiddenReadLevelSelected.Value += matchItem.Value;
                }
            }

            rcoll = PE_DAL.GetAwardByPubID(this.PubID);
            foreach (PubEntAdmin.BLL.Award p in rcoll)
            {
                ListItem matchItem = this.listAward.Items.FindByValue(p.AwardID.ToString());
                if (matchItem != null)
                {
                    matchItem.Selected = true;
                    if (this.hiddenAwardSelected.Value.Length != 0)
                    {
                        this.hiddenAwardSelected.Value += ",";
                    }
                    this.hiddenAwardSelected.Value += matchItem.Value;
                }
            }
        }
        protected void BindValues()
        {
            if (Session[PubEntAdminManager.strPubGlobalMode] != null)
            {
                if (Session[PubEntAdminManager.strPubGlobalMode].ToString() == PubEntAdminManager.strPubGlobalAMode)//add
                {
                    this.rdbtnListYesNoEveryOrder.No       = true;
                    this.rdbtnListYesNoShowInSearchRes.Yes = true;
                    this.rdbtnListYesNoROOKit.No           = true;
                }
                else
                {
                    MultiSelectListBoxItemCollection rcoll = PE_DAL.GetROODisplayStatusByPubID(this.PubID);
                    foreach (DisplayStatus p in rcoll)
                    {
                        ListItem matchItem = this.ckboxListDisplayStatusROO.Items.FindByValue(p.DisplayStatusID.ToString());
                        if (matchItem != null)
                        {
                            matchItem.Selected = true;
                        }
                    }

                    ROOCollection l = PE_DAL.GetROOInterface(this.PubID);
                    if (l.Count > 0)
                    {
                        ROO l_ROO = l[0];
                        //this.rdbtnListYesNoEveryOrder.Yes = l_ROO.EVERYORDER_ROO ? true : false;
                        //this.rdbtnListYesNoShowInSearchRes.Yes = l_ROO.ISSEARCHABLE_ROO ? true : false;
                        //this.rdbtnListYesNoMostCommonList.Yes = l_ROO.ROOCOMMONLIST ? true : false;

                        //this.txtMaxQtyROO.Text = l_ROO.MAXQTY_ROO.ToString();

                        if (l_ROO.EVERYORDER_ROO > 0)
                        {
                            this.rdbtnListYesNoEveryOrder.Yes = true;
                        }
                        else if (l_ROO.EVERYORDER_ROO == 0)
                        {
                            this.rdbtnListYesNoEveryOrder.No = true;
                        }

                        if (l_ROO.ISSEARCHABLE_ROO > 0)
                        {
                            this.rdbtnListYesNoShowInSearchRes.Yes = true;
                        }
                        else if (l_ROO.ISSEARCHABLE_ROO == 0)
                        {
                            this.rdbtnListYesNoShowInSearchRes.No = true;
                        }

                        if (l_ROO.ISROO_KIT > 0)
                        {
                            this.rdbtnListYesNoROOKit.Yes = true;
                        }
                        else if (l_ROO.ISROO_KIT == 0)
                        {
                            this.rdbtnListYesNoROOKit.No = true;
                        }
                        else
                        {
                            this.rdbtnListYesNoROOKit.No = true;
                        }

                        //NCIPLCC if (l_ROO.ROOCOMMONLIST > 0)
                        //NCIPLCC     this.rdbtnListYesNoMostCommonList.Yes = true;
                        //NCIPLCC else if (l_ROO.ROOCOMMONLIST == 0)
                        //NCIPLCC     this.rdbtnListYesNoMostCommonList.No = true;

                        if (l_ROO.MAXQTY_ROO != -1)
                        {
                            this.txtMaxQtyROO.Text = l_ROO.MAXQTY_ROO.ToString();
                        }

                        //NCIPLCC this.listMCLSubject.SelectedIndex =
                        //NCIPLCC     this.listMCLSubject.Items.IndexOf(this.listMCLSubject.Items.FindByValue(l_ROO.FK_COMMONLISTSUBJ.ToString()));
                    }

                    rcoll = PE_DAL.GetROOSubjectByPubID(this.PubID);
                    foreach (PubEntAdmin.BLL.Subject p in rcoll)
                    {
                        ListItem matchItem = this.listSubject.Items.FindByValue(p.SubjID.ToString());
                        if (matchItem != null)
                        {
                            matchItem.Selected = true;
                        }
                    }

                    //NCIPL_CC - Part of changes to have collections on NCIPL tab and ROO tab.
                    rcoll = PE_DAL.GetCollectionsByInterfaceByPubId("NCIPL_CC", this.PubID);
                    foreach (PubEntAdmin.BLL.Series p in rcoll)
                    {
                        ListItem matchItem = this.listCollections.Items.FindByValue(p.ID.ToString());
                        if (matchItem != null)
                        {
                            matchItem.Selected = true;
                        }
                    }
                }
            }
        }
示例#4
0
        protected void BindValues()
        {
            if (Session[PubEntAdminManager.strPubGlobalMode] != null)
            {
                if (Session[PubEntAdminManager.strPubGlobalMode].ToString() == PubEntAdminManager.strPubGlobalAMode)//add
                {
                    this.rdbtnListYesNoEveryOrder.No       = true;
                    this.rdbtnListYesNoShowInSearchRes.Yes = true;
                }
                else
                {
                    MultiSelectListBoxItemCollection rcoll = PE_DAL.GetNCIPLDisplayStatusByPubID(this.PubID);
                    foreach (DisplayStatus p in rcoll)
                    {
                        ListItem matchItem = this.ckboxListDisplayStatusNCIPL.Items.FindByValue(p.DisplayStatusID.ToString());
                        if (matchItem != null)
                        {
                            matchItem.Selected = true;
                        }
                    }

                    NCIPLCollection l = PE_DAL.GetNCIPLInterface(this.PubID);
                    if (l.Count > 0)
                    {
                        NCIPL l_NCIPL = l[0];
                        //this.rdbtnListYesNoEveryOrder.Yes = l_NCIPL.EVERYORDER_NCIPL ? true : false;
                        //this.rdbtnListYesNoShowInSearchRes.Yes = l_NCIPL.ISSEARCHABLE_NCIPL ? true : false;
                        //this.rdbtnListYesNoFeatured.Yes = l_NCIPL.NCIPLFeatured ? true : false;

                        //this.txtMaxQtyNCIPL.Text = l_NCIPL.MAXQTY_NCIPL.ToString();
                        //this.txtMaxQtyIntl.Text = l_NCIPL.MAXINTL_NCIPL.ToString();

                        if (l_NCIPL.EVERYORDER_NCIPL > 0)
                        {
                            this.rdbtnListYesNoEveryOrder.Yes = true;
                        }
                        else if (l_NCIPL.EVERYORDER_NCIPL == 0)
                        {
                            this.rdbtnListYesNoEveryOrder.No = true;
                        }

                        if (l_NCIPL.ISSEARCHABLE_NCIPL > 0)
                        {
                            this.rdbtnListYesNoShowInSearchRes.Yes = true;
                        }
                        else if (l_NCIPL.ISSEARCHABLE_NCIPL == 0)
                        {
                            this.rdbtnListYesNoShowInSearchRes.No = true;
                        }

                        //if (l_NCIPL.NEW > 0)
                        //    this.CkboxListNewUpdated.New = true;
                        //else if (l_NCIPL.NEW == 0)
                        //    this.CkboxListNewUpdated.New = false;

                        //if (l_NCIPL.UPDATED > 0)
                        //    this.CkboxListNewUpdated.Updated = true;
                        //else if (l_NCIPL.NEW == 0)
                        //    this.CkboxListNewUpdated.Updated = false;

                        //if (l_NCIPL.EXPDATE.CompareTo(DateTime.MinValue) > 0)
                        //{
                        //    this.txtExpDate.Text = l_NCIPL.EXPDATE.ToShortDateString();
                        //}

                        if (l_NCIPL.NCIPLFeatured > 0)
                        {
                            this.rdbtnListYesNoFeatured.Yes = true;
                        }
                        else if (l_NCIPL.NCIPLFeatured == 0)
                        {
                            this.rdbtnListYesNoFeatured.No = true;
                        }

                        if (l_NCIPL.MAXQTY_NCIPL != -1)
                        {
                            this.txtMaxQtyNCIPL.Text = l_NCIPL.MAXQTY_NCIPL.ToString();
                        }

                        if (l_NCIPL.MAXINTL_NCIPL != -1)
                        {
                            this.txtMaxQtyIntl.Text = l_NCIPL.MAXINTL_NCIPL.ToString();
                        }

                        if (l_NCIPL.Rank_NCIPL != -1)
                        {
                            this.txtRank.Text = l_NCIPL.Rank_NCIPL.ToString();
                        }

                        this.fakeFeaturedinput.Value = l_NCIPL.NCIPLFeaturedImage.ToString();
                    }

                    rcoll = PE_DAL.GetNCIPLSubjectByPubID(this.PubID);
                    foreach (PubEntAdmin.BLL.Subject p in rcoll)
                    {
                        ListItem matchItem = this.listSubject.Items.FindByValue(p.SubjID.ToString());
                        if (matchItem != null)
                        {
                            matchItem.Selected = true;
                        }
                    }

                    //Begin CR-36
                    rcoll = PE_DAL.GetNCIPLStacksByPubId(this.PubID);
                    foreach (MultiSelectListBoxItem Item in rcoll)
                    {
                        ListItem matchItem = this.listStacks.Items.FindByValue(Item.ID.ToString());
                        if (matchItem != null)
                        {
                            matchItem.Selected = true;
                        }
                    }
                    //End CR-36

                    //NCIPL_CC - Part of changes to have collections on NCIPL tab and ROO tab.
                    rcoll = PE_DAL.GetCollectionsByInterfaceByPubId("NCIPL", this.PubID);
                    foreach (PubEntAdmin.BLL.Series p in rcoll)
                    {
                        ListItem matchItem = this.listCollections.Items.FindByValue(p.ID.ToString());
                        if (matchItem != null)
                        {
                            matchItem.Selected = true;
                        }
                    }
                }
            }
        }
        protected void BindValues()
        {
            Pub l_pub = PE_DAL.GetProdComData(this.PubID);

            this.TextCtrl_SpellCkDescription.Text = l_pub.Description;
            this.TextCtrl_SpellCk_Keyword.Text    = l_pub.Keywords;
            this.TextCtrl_SpellCk_Summary.Text    = l_pub.Summary;

            if (l_pub.IsCopyRight > 0)
            {
                this.rdbtnListCopyRightMaterial.Yes = true;
            }
            else if (l_pub.IsCopyRight == 0)
            {
                this.rdbtnListCopyRightMaterial.No = true;
            }

            //this.fileTestUpload..Text = l_pub.Thumbnail;
            if (l_pub.TotalNumPage != 0)
            {
                this.txtTotalPage.Text = l_pub.TotalNumPage.ToString();
            }
            //this.txtTotalPage.Text = l_pub.TotalNumPage.ToString();
            this.fakeinput.Value   = l_pub.Thumbnail;
            this.fakeLginput.Value = l_pub.LargeImage;

            this.TextCtrl_SpellCk_Dimension.Text = l_pub.Dimension;
            this.TextCtrl_SpellCk_Color.Text     = l_pub.Color;
            this.TextCtrl_SpellCk_Other.Text     = l_pub.Other;

            this.TextCtrl_SpellCk_POSInst.Text = l_pub.POSInst;

            if (l_pub.NEW > 0)
            {
                this.CkboxListNewUpdated.New = true;
            }
            else if (l_pub.NEW == 0)
            {
                this.CkboxListNewUpdated.New = false;
            }

            if (l_pub.UPDATED > 0)
            {
                this.CkboxListNewUpdated.Updated = true;
            }
            else if (l_pub.UPDATED == 0)
            {
                this.CkboxListNewUpdated.Updated = false;
            }

            if (l_pub.EXPDATE.CompareTo(DateTime.MinValue) > 0)
            {
                this.txtExpDate.Text = l_pub.EXPDATE.ToShortDateString();
            }

            MultiSelectListBoxItemCollection rcoll = PE_DAL.GetLangByPubID(this.PubID);

            foreach (Lang p in rcoll)
            {
                ListItem matchItem = this.listLang.Items.FindByValue(p.LangID.ToString());
                if (matchItem != null)
                {
                    matchItem.Selected = true;
                }
            }


            rcoll = PE_DAL.GetCancerTypeByPubID(this.PubID);
            foreach (PubEntAdmin.BLL.CancerType p in rcoll)
            {
                ListItem matchItem = this.listCancerType.Items.FindByValue(p.CancerTypeID.ToString());
                if (matchItem != null)
                {
                    matchItem.Selected = true;
                }
            }

            rcoll = PE_DAL.GetAudienceByPubID(this.PubID);
            foreach (PubEntAdmin.BLL.Audience p in rcoll)
            {
                ListItem matchItem = this.listAudience.Items.FindByValue(p.AudID.ToString());
                if (matchItem != null)
                {
                    matchItem.Selected = true;
                }
            }

            rcoll = PE_DAL.GetProdFormatByPubID(this.PubID);
            foreach (ProdFormat p in rcoll)
            {
                ListItem matchItem = this.listProdFormat.Items.FindByValue(p.ProdFormatID.ToString());
                if (matchItem != null)
                {
                    matchItem.Selected = true;
                }
            }

            //Commented - NCIPL_CC (Moved Series to NCIPL and ROO tabs)
            //rcoll = PE_DAL.GetSeriesByPubID(this.PubID);
            //foreach (PubEntAdmin.BLL.Series p in rcoll)
            //{
            //    ListItem matchItem = this.listSeries.Items.FindByValue(p.SeriesID.ToString());
            //    if (matchItem != null)
            //    {
            //        matchItem.Selected = true;
            //    }
            //}

            rcoll = PE_DAL.GetRaceByPubID(this.PubID);
            foreach (PubEntAdmin.BLL.Race p in rcoll)
            {
                ListItem matchItem = this.listRace.Items.FindByValue(p.RaceID.ToString());
                if (matchItem != null)
                {
                    matchItem.Selected = true;
                }
            }

            rcoll = PE_DAL.GetReadlevelByPubID(this.PubID);
            foreach (Readlevel p in rcoll)
            {
                ListItem matchItem = this.listReadingLevel.Items.FindByValue(p.ReadlevelID.ToString());
                if (matchItem != null)
                {
                    matchItem.Selected = true;
                }
            }

            rcoll = PE_DAL.GetAwardByPubID(this.PubID);
            foreach (PubEntAdmin.BLL.Award p in rcoll)
            {
                ListItem matchItem = this.listAward.Items.FindByValue(p.AwardID.ToString());
                if (matchItem != null)
                {
                    matchItem.Selected = true;
                }
            }
        }
示例#6
0
        protected void BindValues()
        {
            //If the mode is add, apply the following;
            //else retrieve from DB
            if (Session[PubEntAdminManager.strPubGlobalMode] != null)
            {
                if (Session[PubEntAdminManager.strPubGlobalMode].ToString() == PubEntAdminManager.strPubGlobalAMode)//add
                {
                    this.rdbtnListYesNoEveryOrder.No       = true;
                    this.rdbtnListYesNoShowInSearchRes.Yes = true;
                    //this.ckboxListDisplayStatusExh.IsOrder = true;
                }
                else
                {
                    MultiSelectListBoxItemCollection rcoll = PE_DAL.GetExhDisplayStatusByPubID(this.PubID);
                    foreach (DisplayStatus p in rcoll)
                    {
                        ListItem matchItem = this.ckboxListDisplayStatusExh.Items.FindByValue(p.DisplayStatusID.ToString());
                        if (matchItem != null)
                        {
                            matchItem.Selected = true;
                        }
                    }

                    ExhCollection l = PE_DAL.GetExhInterface(this.PubID);
                    if (l.Count > 0)
                    {
                        Exh l_Exh = l[0];

                        if (l_Exh.EVERYORDER_EXHIBIT > 0)
                        {
                            this.rdbtnListYesNoEveryOrder.Yes = true;
                        }
                        else if (l_Exh.EVERYORDER_EXHIBIT == 0)
                        {
                            this.rdbtnListYesNoEveryOrder.No = true;
                        }

                        //if (!this.rdbtnListYesNoEveryOrder.Selected())
                        //{
                        //    this.rdbtnListYesNoEveryOrder.No = true;
                        //    this.rdbtnListYesNoShowInSearchRes.Yes = true;
                        //}

                        if (l_Exh.ISSEARCHABLE_EXHIBIT > 0)
                        {
                            this.rdbtnListYesNoShowInSearchRes.Yes = true;
                        }
                        else if (l_Exh.ISSEARCHABLE_EXHIBIT == 0)
                        {
                            this.rdbtnListYesNoShowInSearchRes.No = true;
                        }

                        //this.rdbtnListYesNoEveryOrder.Yes = l_Exh.EVERYORDER_EXHIBIT ? true : false;
                        //this.rdbtnListYesNoShowInSearchRes.Yes = l_Exh.ISSEARCHABLE_EXHIBIT ? true : false;

                        this.txtMaxQtyExh.Text  = l_Exh.MAXQTY_EXHIBIT.ToString();
                        this.txtMaxQtyIntl.Text = l_Exh.MAXINTL_EXHIBIT.ToString();
                    }

                    rcoll = PE_DAL.GetKioskConfByPubID(this.PubID);

                    this.listSeledConf.DataSource     = rcoll;
                    this.listSeledConf.DataTextField  = "name";
                    this.listSeledConf.DataValueField = "id";
                    this.listSeledConf.DataBind();


                    MultiSelectListBoxItemCollection lstConfSource = this.listConf.DataSource;
                    foreach (PubEntAdmin.BLL.Conf p in rcoll)
                    {
                        MultiSelectListBoxItem li = new MultiSelectListBoxItem();
                        li.Name = p.ConfName.ToString();
                        li.ID   = p.ConfID;

                        int count = lstConfSource.Count;

                        for (int i = 0; i < count; i++)
                        {
                            MultiSelectListBoxItem item = lstConfSource[i];
                            if (item.Name == li.Name)
                            {
                                lstConfSource.RemoveAt(i);
                                i--;
                                count--;
                            }
                        }
                        li = null;

                        this.txtSeledConf.Text += p.ID + ",";
                    }

                    listConf.DataSource = lstConfSource;
                    listConf.DataBind();

                    MultiSelectListBoxItemCollection rcollR = PE_DAL.GetKioskConfRotateByPubID(this.PubID);
                    this.listRotate.DataSource     = rcollR;
                    this.listRotate.DataTextField  = "name";
                    this.listRotate.DataValueField = "id";
                    this.listRotate.DataBind();
                    foreach (PubEntAdmin.BLL.Conf p in rcollR)
                    {
                        this.txtRotate.Text += p.ID + ",";
                    }
                }
            }
        }