コード例 #1
0
 private void frmKhoaSoLieuCDHA_Load(object sender, EventArgs e)
 {
     lbtitle.Text += " : " + AccessData.s_tenkhuvuc;
     try{
         date_lock.Value = Data_option.f_get_CDHA_LockDate(AccessData.s_makhuvuc);
     }catch {}
 }
コード例 #2
0
        private void init()
        {
            try
            {
                lbkhu.Text = AccessData.s_tenkhuvuc;
                DataSet         ds            = new DataSet();
                cdha_hen_Oracle Data_cdha_hen = new cdha_hen_Oracle();
                ds = Data_cdha_hen.f_getCDHA_Loai("");
                cbCDHA_loai.DataSource    = ds.Tables[0];
                cbCDHA_loai.DisplayMember = "Name";
                cbCDHA_loai.ValueMember   = "ID";
                cbCDHA_loai.SelectedIndex = 0;

                ds = Data_cdha_hen.f_getCDHA_NOITHUCHIEN(AccessData.s_makhuvuc);
                cbarea.DataSource    = ds.Tables[0];
                cbarea.DisplayMember = "Name";
                cbarea.ValueMember   = "ID";
                cbarea.SelectedIndex = 0;
                panel1.Visible       = false;
                panel3.Visible       = false;

                xml_read();
                m_option option = new m_option();
                date_lock = option.f_get_CDHA_LockDate(AccessData.s_makhuvuc);
            }
            catch { }
        }