private void LoadDSCongTy( )
 {
     cboCongTy.ValueMember   = "CongTyID";
     cboCongTy.DisplayMember = "TenCongTy";
     cboCongTy.DataSource    = null;
     cboCongTy.DataSource    = CongTy.GetAllDSCongTy();
 }
        private void LoadDSCongTy(int CongTyID)
        {
            cboCongTy.ValueMember   = "CongTyID";
            cboCongTy.DisplayMember = "TenCongTy";
            cboCongTy.DataSource    = null;
            cboCongTy.DataSource    = CongTy.GetAllDSCongTy();

            if (CongTyID > 0)
            {
                int iIndex = -1;
                foreach (Janus.Windows.EditControls.UIComboBoxItem objItem in cboCongTy.Items)
                {
                    iIndex += 1;
                    if (objItem.Value.ToString() == CongTyID.ToString())
                    {
                        break;
                    }
                }
                cboCongTy.SelectedIndex = iIndex;
            }
            else
            {
                cboCongTy.SelectedIndex = 0;
            }
        }