Exemple #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            if (!CheckInfo())
            {
                return;
            }

            GetInfo();

            if (!m_serverGoods.EditGoodsInfo(m_goodsInfo, m_lstRecord, m_lstReplaceInfo, m_lstBlankToProductInfo, m_lstWaterCode, out m_strErr))
            {
                MessageDialog.ShowErrorMessage(m_strErr);
                return;
            }
            else
            {
                MessageDialog.ShowPromptMessage("保存成功");
                m_goodsID = m_serverGoods.GetGoodsID(m_goodsInfo.GoodsCode, m_goodsInfo.GoodsName, m_goodsInfo.Spec);
                this.Close();
            }
        }