Пример #1
0
        private void FillPartyNameDetails()
        {
            try
            {
                _objDalPartyMaster = new DAL_PartyMaster();
                var result = _objDalPartyMaster.GetPartyMaster(new Models.PartyMasterRQ()
                {
                });

                result.Insert(0, new Models.PartyMasterRS()
                {
                    PartyId = 0, PartyName = " "
                });
                if (result != null && result.Count > 0)
                {
                    cmbPartyName.DataSource    = result;
                    cmbPartyName.DisplayMember = "PartyName";
                    cmbPartyName.ValueMember   = "PartyCode";
                }
                cmbPartyName.SelectedIndex = 0;

                //Set AutoCompleteMode.
                cmbPartyName.AutoCompleteMode   = AutoCompleteMode.Suggest;
                cmbPartyName.AutoCompleteSource = AutoCompleteSource.ListItems;
            }
            catch (Exception)
            {
                throw;
            }
        }
Пример #2
0
 private void FillPartyMaster(Models.PartyMasterRQ _obj)
 {
     try
     {
         _objDal = new DAL_PartyMaster();
         var result = _objDal.GetPartyMaster(_obj);
         grdvwPartyMaster.DataSource = result;
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #3
0
 private void FillPartyMaster(Models.PartyMasterRQ _obj)
 {
     try
     {
         _objDalPartyMaster = new DAL_PartyMaster();
         var result = _objDalPartyMaster.GetPartyMaster(_obj);
         grdvwPartyNameForInvoice.DataSource         = result;
         grdvwPartyNameForInvoice.Columns[0].Visible = false;
     }
     catch (Exception)
     {
         throw;
     }
 }