Ejemplo n.º 1
0
        public void GetKho()
        {
            var listKho = ExecSQL.ExecQueryData <Kho>("SELECT makho, tenkho FROM dbo.tbl_kho ORDER BY tenkho");

            cbo_kho.Properties.DataSource    = listKho;
            cbo_kho.Properties.DisplayMember = "tenkho";
            cbo_kho.Properties.ValueMember   = "makho";
        }
Ejemplo n.º 2
0
        public void GetLoaiPhieu()
        {
            var listLoaiPhieu = ExecSQL.ExecQueryData <LoaiPhieu>("SELECT id, loaiphieu FROM dbo.tbl_loaiphieunhapxuat");

            cbo_loaiphieu.Properties.DataSource    = listLoaiPhieu;
            cbo_loaiphieu.Properties.DisplayMember = "loaiphieu";
            cbo_loaiphieu.Properties.ValueMember   = "id";
            cbo_loaiphieu.EditValue = 2;
        }