private void ViewRec(string str) { try { BL_ItemCategoryMaster = new ItemCategoryMaster_BL(mlCode); DataTable dt = new DataTable(); BL_ItemCategoryMaster.GetInfo(); GetValues(str); if (str == "MOD") { CommonClasses.SetModifyLock("ITEM_CATEGORY_MASTER", "MODIFY", "I_CAT_CODE", mlCode); } } catch (Exception Ex) { CommonClasses.SendError("Item Category Master", "ViewRec", Ex.Message); } }