private void LoadManageInventory()
 {
     lkAccountType.SetupActivityEditor().SetDefaultActivity();
     lkInventoryAccount.SetupActivityEditor().SetDefaultActivity();
     lkInventoryStore.SetupAllowedPhysicalStores().SetDefaultPhysicalStore();
     lkPhysicalStore.SetupAllowedPhysicalStores().SetDefaultPhysicalStore();
     gridManageInventory.DataSource = InventoryPeriod.GetInvetoryPeriods();
 }
 private void lkInventoryStore_EditValueChanged(object sender, EventArgs e)
 {
     if (lkInventoryStore.EditValue != null && lkInventoryStore.EditValue != "" && lkAccount.EditValue != null)
     {
         lkPeriod.Properties.DataSource = InventoryPeriod.GetInvetoryPeriods(Convert.ToInt32(lkInventoryStore.EditValue));
     }
     else
     {
         lkPeriod.Properties.DataSource = null;
     }
 }