Esempio n. 1
0
        private void btn_Tim_Click(object sender, EventArgs e)
        {
            oQuyetDinh.Ma_Quyet_Dinh  = txt_Ma.Text == "" ? null : txt_Ma.Text;
            oQuyetDinh.Ten_Quyet_Dinh = txt_Ten.Text == "" ? null : txt_Ten.Text;

            oQuyetDinh.Loai_QuyetDinh_ID = null;
            if (comB_Loai.Text != "")
            {
                oQuyetDinh.Loai_QuyetDinh_ID = Convert.ToInt16(comB_Loai.SelectedValue);
            }

            oQuyetDinh.Ngay_Ky_Tu  = null;
            oQuyetDinh.Ngay_Ky_Den = null;
            if (dTP_TuNgay.Checked == true)
            {
                oQuyetDinh.Ngay_Ky_Tu  = dTP_TuNgay.Value;
                oQuyetDinh.Ngay_Ky_Den = dTP_DenNgay.Value;
            }
            try
            {
                dtDSQuyetDinh = oQuyetDinh.Search_QD();
                //dtgv_DSQD.DataSource = dtDSQuyetDinh;
                if (dtDSQuyetDinh != null)
                {
                    PrepareDataSource();
                    EditDtgInterface();
                    if (dtDSQuyetDinh.Rows.Count != 0)
                    {
                        ResetInterface(true);
                    }
                    else
                    {
                        ResetInterface(false);
                    }
                }
            }
            catch { }
        }
Esempio n. 2
0
 /// <summary>
 /// Refresh Data Source cho dtg sau moi lan thao tac
 /// </summary>
 private void RefreshDataSource()
 {
     Business.HDQD.QuyetDinh quyetdinh = new Business.HDQD.QuyetDinh();    // khong dung chung oChucVu duoc ???
     dtDSQuyetDinh = quyetdinh.Search_QD();
     PrepareDataSource();
 }
Esempio n. 3
0
        /// <summary>
        /// Refresh Data Source cho dtg sau moi lan thao tac
        /// </summary>
        private void RefreshDataSource()
        {
            Business.HDQD.QuyetDinh quyetdinh = new Business.HDQD.QuyetDinh();    // khong dung chung oChucVu duoc ???
            dtDSQuyetDinh = quyetdinh.Search_QD();
            PrepareDataSource();

        }