private void loadDuration() { int LOP_ID = int.Parse(lookLopHoc.GetColumnValue("LOP_ID").ToString()); BAL.BO_LOP dao_lop = new BO_LOP(); DataRow row = dao_lop.getLOP_ByID(LOP_ID).Rows[0];// search by ID, so there is only one row txtFromDate.Text = Convert.ToDateTime(row["LOP_Ngay_KG"].ToString()).ToShortDateString(); txtEndDate.Text = Convert.ToDateTime(row["LOP_Ngay_KT"].ToString()).ToShortDateString(); }
private void vLoadThoiGianHoc() { boLop = new BO_LOP(); DataRow row = boLop.getLOP_ByID(int.Parse(lookUpLop.GetColumnValue("LOP_ID").ToString())).Rows[0];// search by ID, so there is only one row DateTime DateAllocate = Convert.ToDateTime(row["LOP_Ngay_KG"].ToString()); DateTime DateExpire = Convert.ToDateTime(row["LOP_Ngay_KT"].ToString()); txtDateAllocate.Text = DateAllocate.ToString("dd/MM/yyyy"); txtDateExpire.Text = DateExpire.ToString("dd/MM/yyyy"); }
private void loadDuration() { int LOP_ID = int.Parse(lookUpLop.GetColumnValue("LOP_ID").ToString()); BAL.BO_LOP dao_lop = new BO_LOP(); DataRow row = dao_lop.getLOP_ByID(LOP_ID).Rows[0];// search by ID, so there is only one row DateTime DateAllocate = Convert.ToDateTime(row["LOP_Ngay_KG"].ToString()); DateTime DateExpire = Convert.ToDateTime(row["LOP_Ngay_KT"].ToString()); txtDateAllocate.Text = DateAllocate.ToString("dd/MM/yyyy"); txtDateExpire.Text = DateExpire.ToString("dd/MM/yyyy"); }
private void loadDurationNew() { int LOP_ID = int.Parse(lookLopNew.GetColumnValue("LOP_ID").ToString()); BAL.BO_LOP dao_lop = new BO_LOP(); DataRow row = dao_lop.getLOP_ByID(LOP_ID).Rows[0];// search by ID, so there is only one row txtNgayKg.Text = Convert.ToDateTime(row["LOP_Ngay_KG"].ToString()).ToShortDateString(); txtNgayKt.Text = Convert.ToDateTime(row["LOP_Ngay_KT"].ToString()).ToShortDateString(); txtNgayKg.BackColor = Color.White; txtNgayKt.BackColor = Color.White; }