示例#1
0
        private void FillData()
        {
            if (strType != string.Empty && strType != null)
            {
                if (strLookupKeyFilter == string.Empty || strLookupKeyFilter == null)
                {
                    strLookupKeyFilter = "Type = '" + strType + "'";
                }
                else
                {
                    strLookupKeyFilter = strLookupKeyFilter + " AND (Type = '" + strType + "')";
                }
            }
            dtKhac = DataTool.SQLGetDataTable("LIKHAC", null, this.strLookupKeyFilter, null);

            bdsKhac.DataSource = dtKhac;
            dgvKhac.DataSource = bdsKhac;
            bdsKhac.Position   = 0;

            //Uy quyen cho lop co so tim kiem
            bdsSearch     = bdsKhac;
            ExportControl = dgvKhac;

            if (this.isLookup)
            {
                this.MoveToLookupValue();
            }

            dgvKhac.Select();
        }
示例#2
0
        private void FillData()
        {
            dtType = DataTool.SQLGetDataTable("KPITYPE", null, this.strLookupKeyFilter, null);

            bdsType.DataSource = dtType;
            dgvType.DataSource = bdsType;
            bdsType.Position   = 0;

            //Uy quyen cho lop co so tim kiem
            bdsSearch     = bdsType;
            ExportControl = dgvType;

            if (this.isLookup)
            {
                this.MoveToLookupValue();
            }

            dgvType.Select();
        }
示例#3
0
        public void FillData()
        {
            dtNghiepVu             = DataTool.SQLGetDataTable("LINGHIEPVU", null, this.strLookupKeyFilter, null);
            bdsNghiepVu.DataSource = dtNghiepVu;

            //Uy quyen cho lop co so tim kiem
            bdsSearch     = bdsNghiepVu;
            ExportControl = dgvNghiepVu;

            dgvNghiepVu.DataSource = bdsNghiepVu;
            bdsNghiepVu.Position   = 0;

            if (this.isLookup)
            {
                this.MoveToLookupValue();
            }

            dgvNghiepVu.Select();
        }