コード例 #1
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            string error = "";

            m_lnqLibrary.GoodsID         = Convert.ToInt32(txtGoodsName.Tag);
            m_lnqLibrary.Version         = txtVersion.Text;
            m_lnqLibrary.Remark          = txtRemark.Text;
            m_lnqLibrary.PivotalPart     = txtPivotalPart.Text;
            m_lnqLibrary.PartType        = cmbPartType.Text;
            m_lnqLibrary.Material        = txtMaterial.Text;
            m_lnqLibrary.CreatePersonnel = BasicInfo.LoginID;

            if (!m_serverBom.UpdateBOMPartsLibrary(m_lnqLibrary, out error))
            {
                MessageDialog.ShowPromptMessage(error);
                return;
            }
            else
            {
                MessageDialog.ShowPromptMessage("更新成功");
            }

            RefreshData();
            PositioningRecord(m_lnqLibrary.GoodsID.ToString());
        }