Ejemplo n.º 1
0
        private void DoSearchRanking(string rankingId)
        {
            RankingData ranking = RankingBiz.SearchRankingData(rankingId);

            hidRankingId.Value = ranking.coc_RankingId.ToString();
            txtSeq.Text        = ranking.coc_Seq.ToString();

            if (ranking.coc_Name != null)
            {
                txtName.Text = ranking.coc_Name.ToString();
            }

            txtSkip.Text = ranking.coc_SkipDate.ToString();


            if (ranking.coc_IsAllDealer == null || ranking.coc_IsAllDealer == "" || ranking.coc_IsAllDealer == "N")
            {
                chkAllDealer.Checked = false;
            }
            else
            {
                chkAllDealer.Checked = true;
            }

            if (ranking.coc_Seq == 1)
            {
                trSkip.Visible  = true;
                divEdit.Visible = false;
                trAdd.Visible   = true;
            }
            else
            {
                trSkip.Visible = false;
            }
        }
Ejemplo n.º 2
0
        private void DoSearchRankingData(int pageIndex = 0)//, string sortExpression, SortDirection sortDirection)
        {
            try
            {
                string orderByFlag = "";


                List <SearchRankingResult> result = RankingBiz.SearchRankingData();



                BindGridview(result.ToArray(), pageIndex); //(SLM.Application.Shared.GridviewPageController)pcTop,
                upResult.Update();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }