Beispiel #1
0
 private void btnXuatExcel_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (this.ActiveMdiChild == null)
     {
         ribbonIn.Enabled = false;
         return;
     }
     if (this.ActiveMdiChild.Name == "TkbNgayLopForm")
     {
         TkbNgayLopForm frm = (TkbNgayLopForm)this.ActiveMdiChild;
         frm.save();
     }
     else if (this.ActiveMdiChild.Name == "TkbHocKyLopForm")
     {
         TkbHocKyLopForm frm = (TkbHocKyLopForm)this.ActiveMdiChild;
         frm.save();
     }
     else if (this.ActiveMdiChild.Name == "TkbTuanTruongForm")
     {
         TkbTuanTruongForm frm = (TkbTuanTruongForm)this.ActiveMdiChild;
         frm.save();
     }
     else if (this.ActiveMdiChild.Name == "TkbHocKyTieuDoanForm")
     {
         TkbHocKyTieuDoanForm frm = (TkbHocKyTieuDoanForm)this.ActiveMdiChild;
         frm.save();
     }
     else if (this.ActiveMdiChild.Name == "TkbNgayTatCaLopForm")
     {
         TkbNgayTatCaLopForm frm = (TkbNgayTatCaLopForm)this.ActiveMdiChild;
         frm.save();
     }
 }
Beispiel #2
0
        private void btnXemTkbTuan_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (edtNgayTruong.EditValue == null)
            {
                sttHeader.Caption = "Vui lòng chọn ngày";
                edtNgayTruong.Links[0].Focus();
                return;
            }
            TkbTuanTruongForm frm = new TkbTuanTruongForm(this, getMonday((DateTime)dateNgay.EditValue));

            frm.MdiParent = this;
            frm.Show();
        }