예제 #1
0
 void BindItemUnit()
 {
     oblItemUnit = new Store.ItemUnit.BusinessLogic.ItemUnit();
     try
     {
         objItemUnitlist = oblItemUnit.GetAllItemUnitList(0, 0, "");
         if (objItemUnitlist != null)
         {
             ListItem al = new ListItem("<-Select Item Unit->", "0", true);
             ddlItemUnitId.DataSource     = objItemUnitlist;
             ddlItemUnitId.DataTextField  = "UnitName";
             ddlItemUnitId.DataValueField = "UnitID";
             ddlItemUnitId.DataBind();
             ddlItemUnitId.Items.Insert(0, al);
         }
         else
         {
             ddlItemUnitId.DataSource = null;
             ddlItemUnitId.DataBind();
         }
     }
     catch (Exception ex)
     {
         Store.Common.Utility.ExceptionLog.Exceptionlogs(ex.Message, Store.Common.Utility.ExceptionLog.LineNumber(ex), typeof(Item).FullName, 1);
     }
     finally
     {
         oblItemUnit     = null;
         objItemUnitlist = null;
     }
 }
예제 #2
0
 void BindItemUnit()
 {
     oblItemUnit = new Store.ItemUnit.BusinessLogic.ItemUnit();
     try
     {
         obItemUnitList = oblItemUnit.GetAllItemUnitList(0, 0, "");
         if (obItemUnitList != null)
         {
             dgvItemUnit.DataSource = obItemUnitList;
             dgvItemUnit.DataBind();
         }
         else
         {
             dgvItemUnit.DataSource = null;
             dgvItemUnit.DataBind();
         }
     }
     catch (Exception ex)
     {
         Store.Common.Utility.ExceptionLog.Exceptionlogs(ex.Message, Store.Common.Utility.ExceptionLog.LineNumber(ex), typeof(ItemUnit).FullName, 1);
     }
     finally
     {
         oblItemUnit    = null;
         obItemUnitList = null;
     }
 }