Esempio n. 1
0
        /// <summary>
        /// 绑定StoreTasks数据源
        /// </summary>

        private void LoadData(string where)
        {
            //List<WSS.Model.Tasks> list = new WSS.BLL.Tasks().GetModelList(where);


            //this.StoreTasks.DataSource = list;
            //this.StoreTasks.DataBind();


            //List<WSS.Model.Dictionary> lisd = new WSS.BLL.Dictionary().GetModelList("F_ParentID=100100 or F_ParentID=100101 ");
            //StoreDic.DataSource = lisd;
            //StoreDic.DataBind();



            AllOther.ComboBoxDic(cbFrom, "100103");
            AllOther.ComboBoxDic(cbJinjiLevel, "100104");
            AllOther.ComboBoxDic(cbGameName, "100102");
            AllOther.ComboBoxDic(cbType, "100101");
            AllOther.ComboBoxUser(cbDutyMan, "1=1");
        }
        private void LoadData(string where)// 绑定StoreTasks数据源
        {
            where += " order by f_datetime desc";
            List <WSS.Model.Tasks> list = new WSS.BLL.Tasks().GetModelList(where);

            foreach (WSS.Model.Tasks ts in list)
            {
                if (ts.F_Note.Length > 25)
                {
                    ts.F_Note = Server.HtmlDecode(ts.F_Note.Substring(0, 25));
                }
            }

            this.StoreTasks.DataSource = list;
            this.StoreTasks.DataBind();


            List <WSS.Model.Dictionary> lisd = new WSS.BLL.Dictionary().GetModelList("F_ParentID=100100 or F_ParentID=100101 ");

            StoreDic.DataSource = lisd;
            StoreDic.DataBind();



            AllOther.ComboBoxDic(cbFrom, "100103");
            AllOther.ComboBoxDic(cbJinjiLevel, "100104");
            AllOther.ComboBoxDic(cbGameName, "100102");
            AllOther.ComboBoxDic(cbType, "100101");
            AllOther.ComboBoxDic(cbstate, "100100");
            AllOther.ComboBoxUser(cbDutyMan, "1=1");

            cbFrom.SelectedIndex              = 0;
            cbJinjiLevel.SelectedIndex        = 0;
            cbGameName.SelectedIndex          = 0;
            cbstate.SelectedIndex             = 0;
            GridPanelNewsList.SelectionMemory = SelectionMemoryMode.Auto;
            RowSelectionModel sm = this.GridPanelNewsList.SelectionModel.Primary as RowSelectionModel;

            sm.ClearSelections();
        }