private void BaseSet() { HBBLL hb = new HBBLL(); var data = hb.GetLeaderRole(SessionBox.GetUserSession().DeptNumber, 431); var q = from p in data select new { Personnumber = p.personnumber, Name = p.name }; perStore.DataSource = q; perStore.DataBind(); if (SessionBox.GetUserSession().Role.Contains("11,矿级管理员")) { //cbbPerson.SelectedItem.Value = SessionBox.GetUserSession().PersonNumber; if (SessionBox.GetUserSession().Role.Contains("431,副总及以上领导")) { cbbPerson.SelectedItem.Value = SessionBox.GetUserSession().PersonNumber; cbbPerson.Disabled = false; } else { cbbPerson.SelectedIndex = 0; } } else { cbbPerson.Items.Add(new Coolite.Ext.Web.ListItem(SessionBox.GetUserSession().Name, SessionBox.GetUserSession().PersonNumber)); cbbPerson.SelectedItem.Value = SessionBox.GetUserSession().PersonNumber; cbbPerson.Disabled = true; } df_begin.MinDate = System.DateTime.Today; df_begin.SelectedDate = df_begin.MinDate; //cx_date.SelectedDate = System.DateTime.Today; //var q = from p in dc.Person // where p.Personnumber==SessionBox.GetUserSession().PersonNumber // select new // { // p.Personnumber, // p.Name // }; //perStore.DataSource = q; //perStore.DataBind(); DeptStore.DataSource = PublicCode.GetMaindept(""); DeptStore.DataBind(); if (SessionBox.GetUserSession().rolelevel.Contains("1") || SessionBox.GetUserSession().rolelevel.Contains("0")) { cbbDept.Items.Insert(0, new Coolite.Ext.Web.ListItem("--全部--", "-1")); cbbDept.SelectedItem.Value = "-1"; cbbDept.Disabled = false; } else { cbbDept.SelectedItem.Value = SessionBox.GetUserSession().DeptNumber; cbbDept.Disabled = true; } //HBBLL hb = new HBBLL(); //var data2 = hb.GetYPPT(SessionBox.GetUserSession().PersonNumber, SessionBox.GetUserSession().DeptNumber, "个人"); //var pt = from r in data2 // select new // { // Id = r.Id, // Name = r.Name, // Level = r.TLevel // }; //placeTemplateStore.DataSource = pt; //placeTemplateStore.DataBind(); //cboPlaceTemplate.Items.Insert(0, new Coolite.Ext.Web.ListItem("--不使用模板--", "-1")); cx_date.SelectedValue = DateTime.Today; }