コード例 #1
0
        public List <DataTable> PricelistPricingLevelViewAllForComboBox()
        {
            List <DataTable> ListObj = new List <DataTable>();

            try
            {
                ListObj = spPriceList.PricelistPricingLevelViewAllForComboBox();
            }
            catch (Exception ex)
            {
                MessageBox.Show("PL4:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(ListObj);
        }
コード例 #2
0
 /// <summary>
 /// Function to fill the pricelevel combobox
 /// </summary>
 public void PricelevelComboFill()
 {
     try
     {
         DataTable   dtbl        = new DataTable();
         PriceListSP spPriceList = new PriceListSP();
         dtbl = spPriceList.PricelistPricingLevelViewAllForComboBox();
         cmbPricingLevel.DataSource    = dtbl;
         cmbPricingLevel.ValueMember   = "pricinglevelId";
         cmbPricingLevel.DisplayMember = "pricinglevelName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("PCL3" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }