Exemplo n.º 1
0
 public dlgThemSuaGiaoVien(frmDanhSachGiaoVien mfrm, int mIDDonVi, EDIT_MODE mEditMode)
 {
     InitializeComponent();
     IDDonVi       = mIDDonVi;
     pGiaoVienInfo = mfrm.pGiaoVienInfo;
     EditMode      = mEditMode;
     frm           = mfrm;
     cls           = new clsStringHelper();
 }
 private void lbTotal_TextChanged(object sender, EventArgs e)
 {
     if (lbTotal.Text != "" && lbTotal.Text != "0")
     {
         clsStringHelper cls = new clsStringHelper();
         lbTienBangChu.Text = cls.ReadMoney(double.Parse("0" + lbTotal.Text.Trim())) + " đồng";
     }
     else
     {
         lbTienBangChu.Text = "Không đồng";
     }
 }
 public dlgToChucThi_ThiSinhTuDo(DataTable mdtSinhVien, DataRow mdrSinhVien, int mIDDM_Lop, EDIT_MODE mEditMode)
 {
     InitializeComponent();
     this.Tag             = "";
     IDDM_Lop             = mIDDM_Lop;
     dtSinhVien           = mdtSinhVien;
     edit                 = mEditMode;
     drSinhVien           = mdrSinhVien;
     pDM_LopInfo          = new DM_LopInfo();
     oBDM_Lop             = new cBDM_Lop();
     pSV_SinhVienInfo     = new SV_SinhVienInfo();
     oBSV_SinhVien        = new cBSV_SinhVien();
     pSV_SinhVien_LopInfo = new SV_SinhVien_LopInfo();
     oBSV_SinhVien_Lop    = new cBSV_SinhVien_Lop();
     cls = new clsStringHelper();
 }
        protected DataTable _CreateTableChiTiet()
        {
            DataTable dt = new DataTable();

            dt.Columns.Add("CaHoc", typeof(string));
            dt.Columns.Add("Tiet", typeof(string));
            for (int i = Program.pgrThamSo.THU_BAT_DAU; i <= Program.pgrThamSo.THU_KET_THUC; i++)
            {
                dt.Columns.Add("T" + i.ToString(), typeof(string));
            }
            DataRow dr = dt.NewRow();

            dr["CaHoc"] = "Buổi học";
            dr["Tiet"]  = "Tiết";
            clsStringHelper cls = new clsStringHelper();

            for (int i = Program.pgrThamSo.THU_BAT_DAU; i <= Program.pgrThamSo.THU_KET_THUC; i++)
            {
                dr["T" + i.ToString()] = cls.TenThu()[i];
            }
            dt.Rows.Add(dr);

            for (int i = 0; i < Program.pgrThamSo.SO_TIET_CASANG; i++)
            {
                dr          = dt.NewRow();
                dr["CaHoc"] = "Sáng";
                dr["Tiet"]  = (i + 1).ToString();
                dt.Rows.Add(dr);
            }
            for (int i = 0; i < Program.pgrThamSo.SO_TIET_CACHIEU; i++)
            {
                dr          = dt.NewRow();
                dr["CaHoc"] = "Chiều";
                dr["Tiet"]  = (i + 1).ToString();
                dt.Rows.Add(dr);
            }
            for (int i = 0; i < Program.pgrThamSo.SO_TIET_CATOI; i++)
            {
                dr          = dt.NewRow();
                dr["CaHoc"] = "Tối";
                dr["Tiet"]  = (i + 1).ToString();
                dt.Rows.Add(dr);
            }
            return(dt);
        }