Example #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            try
            {
                if (ValidateForm() == false)
                {
                    return;
                }

                Hashtable   theHash        = BuildHashTable();
                IMasterList theItemManager = (IMasterList)ObjectFactory.CreateInstance("BusinessProcess.SCM.BMasterList, BusinessProcess.SCM");
                theItemManager.SaveUpdateItemMaster(theHash);
                IQCareWindowMsgBox.ShowWindowConfirm("ItemMasterUpdate", this);
            }
            catch (Exception err)
            {
                MsgBuilder theBuilder = new MsgBuilder();
                theBuilder.DataElements["MessageText"] = err.Message.ToString();
                IQCareWindowMsgBox.ShowWindowConfirm("#C1", theBuilder, this);
            }
        }