public void FillData() { dtDmDvCs_DefaultList = DataTool.SQLGetDataTable("SYSDMDVCS_DEFAULTLIST", null, this.strLookupKeyFilter, null); bdsDmDvCs_DefaultList.DataSource = dtDmDvCs_DefaultList; //Uy quyen cho lop co so tim kiem bdsSearch = bdsDmDvCs_DefaultList; ExportControl = tlDmDvCs_DefaultList; tlDmDvCs_DefaultList.DataSource = bdsDmDvCs_DefaultList; bdsDmDvCs_DefaultList.Position = 0; if (this.isLookup) { this.MoveToLookupValue(); } tlDmDvCs_DefaultList.Expand = (bool)SQLExec.ExecuteReturnValue("SELECT Expand FROM SYSZONE WHERE ZONE = '" + tlDmDvCs_DefaultList.strZone + "'"); tlDmDvCs_DefaultList.Select(); }
public void FillData() { dtBoPhan = DataTool.SQLGetDataTable("LIBOPHAN", null, this.strLookupKeyFilter, null); bdsBoPhan.DataSource = dtBoPhan; //Uy quyen cho lop co so tim kiem bdsSearch = bdsBoPhan; ExportControl = tlBoPhan; tlBoPhan.DataSource = bdsBoPhan; bdsBoPhan.Position = 0; if (this.isLookup) { this.MoveToLookupValue(); } tlBoPhan.Expand = (bool)SQLExec.ExecuteReturnValue("SELECT Expand FROM SYSZONE WHERE ZONE = '" + tlBoPhan.strZone + "'"); tlBoPhan.Select(); }
void FillData() { dtDoiTuongNh = DataTool.SQLGetDataTable("LIDOITUONGNH", null, this.strLookupKeyFilter, null); bdsDoiTuongNh.DataSource = dtDoiTuongNh; tlDoiTuongNh.DataSource = bdsDoiTuongNh; //Uy quyen cho lop co so tim kiem bdsSearch = bdsDoiTuongNh; ExportControl = tlDoiTuongNh; if (bdsDoiTuongNh.Count >= 0) { bdsDoiTuongNh.Position = 0; } if (this.isLookup) { this.MoveToLookupValue(); } tlDoiTuongNh.Expand = (bool)SQLExec.ExecuteReturnValue("SELECT Expand FROM SYSZONE WHERE ZONE = '" + tlDoiTuongNh.strZone + "'"); tlDoiTuongNh.Select(); }