示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     //number = 1;
     if (!IsPostBack)
     {
         MeetingRepeater.DataSource = mbll.GetAllMeetingList();
         MeetingRepeater.DataBind();
     }
 }
示例#2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         int    USERId = int.Parse(Request.QueryString["USERId"]);
         string DId    = mbll.GetDeptIDfromAdminID(USERId);
         MeetingRepeater.DataSource = mbll.GetDept_MeetingInfo(DId);
         MeetingRepeater.DataBind();
         //MeetingRepeater.DataSource = mbll.GetAllMeetingList();
         //MeetingRepeater.DataBind();
     }
 }
示例#3
0
文件: Desk.aspx.cs 项目: cfmis/cfw
    protected void init()
    {
        List <Notice> list0 = new List <Notice>();
        List <Notice> list1 = new List <Notice>();
        List <Notice> list2 = new List <Notice>();


        Leyp.SQLServerDAL.NoticeDAL dl = Leyp.SQLServerDAL.Factory.getNoticeDAL();

        List <VServiceInfo> list3  = null;
        List <VServiceInfo> list30 = new List <VServiceInfo>();

        list3 = Leyp.SQLServerDAL.Factory.getServiceInfoDAL().getMyTopic(getUserName());
        for (int i = 0; i < list3.Count; i++)
        {
            VServiceInfo s = list3[i];
            list30.Add(s);
            if (i == 4)
            {
                break;
            }
        }

        list0 = dl.getNewsByType(0); //通知
        list1 = dl.getNewsByType(1); //热销活动
        list2 = dl.getNewsByType(2); //会议

        Noticelist.DataSource = list0;
        Noticelist.DataBind();

        NewsSales.DataSource = list1;
        NewsSales.DataBind();

        MeetingRepeater.DataSource = list2;
        MeetingRepeater.DataBind();

        VServiceInfoList.DataSource = list30;
        VServiceInfoList.DataBind();
    }
示例#4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (!IsPostBack)
         {
             string Opera = Request.QueryString["Opera"];
             if (Opera == "Check")
             {
                 string DId = Request.QueryString["DId"];
                 MeetingRepeater.DataSource = mbll.GetDept_MeetingInfo(DId);
                 MeetingRepeater.DataBind();
             }
             else
             {
                 MeetingRepeater.DataSource = mbll.GetAllMeetingList();
                 MeetingRepeater.DataBind();
             }
         }
         //MeetingRepeater.DataSource = mbll.GetAllMeetingList();
         //MeetingRepeater.DataBind();
     }
 }