protected override void BindControls() { bsBranch.DataSource = DictionaryManager.GetDictionary(ObjectNames.Branch); lookBranch.EditValue = GlobalVariable.BranchID.ToString(); bsCurrency.DataSource = DictionaryManager.GetDictionary(ObjectNames.Currency); bsMedicamentCategory.DataSource = DictionaryManager.GetDictionary(ObjectNames.MedicamentCategory); bsMedicamentSubcategory.DataSource = DictionaryManager.GetDictionary(ObjectNames.MedicamentSubcategoryWithMedicamentCategoryID); bsMedicamentSubcategory.Filter = "Code=" + MedicamentCategoryID.ToString(); lookProductCurrencyCode.Properties.DataSource = DictionaryManager.GetDictionary(ObjectNames.Currency); }
protected override void BindControls() { bsMedicamentCategory.DataSource = DictionaryManager.GetDictionary(ObjectNames.MedicamentCategory); bsMedicamentSubcategory.DataSource = DictionaryManager.GetDictionary(ObjectNames.MedicamentSubcategoryWithMedicamentCategoryID); bsMedicamentSubcategory.Filter = "Code=" + MedicamentCategoryID.ToString(); }
private void lookMedicamentCategory_EditValueChanged(object sender, EventArgs e) { lookMedicamentSubcategory.EditValue = null; bsMedicamentSubcategory.Filter = "Code=" + MedicamentCategoryID.ToString(); }