예제 #1
0
 protected void CL_TAKVIM_SelectionChanged(object sender, EventArgs e)
 {
     if (Convert.ToInt32(Session["kulid"]) == 12)
     {
         RPT_TIME_SHEET.DataBind();
         RPT_NOTLISTESI.DataSource = DBIslem.DtGetir("select * FROM TBL_CALENDER c LEFT JOIN TBL_TIMESHEET ts ON c.TimeSheetID = ts.ID  LEFT JOIN TBL_KULLANICI k on k.kID = c.userID ");
         RPT_NOTLISTESI.DataBind();
         return;
     }
     RPT_TIME_SHEET.DataSource = DBIslem.DtGetir("SELECT Time From TBL_TIMESHEET");
     RPT_TIME_SHEET.DataBind();
 }
예제 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            CL_TAKVIM.SelectedDate = DateTime.Today.Date;


            if (Convert.ToInt32(Session["kulid"]) == 12)
            {
                RPT_TIME_SHEET.DataBind();
                RPT_NOTLISTESI.DataSource = DBIslem.DtGetir("select * FROM TBL_CALENDER c LEFT JOIN TBL_TIMESHEET ts ON c.TimeSheetID = ts.ID  LEFT JOIN TBL_KULLANICI k on k.kID = c.userID ");
                RPT_NOTLISTESI.DataBind();
            }
            else
            {
                RPT_TIME_SHEET.DataSource = DBIslem.DtGetir("SELECT Time From TBL_TIMESHEET");
                RPT_TIME_SHEET.DataBind();
            }
        }


        CL_TAKVIM.SelectedDayStyle.BackColor = System.Drawing.Color.Olive; // Seçilen
        CL_TAKVIM.DataBind();
    }