/// <summary>
        /// 保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MatSaveBtn_Click(object sender, EventArgs e)
        {
            DateTime now  = DateTime.Now;
            string   user = UserBLL.userInfo.UserName;

            if (string.IsNullOrEmpty(materialTB.Text.Trim()))
            {
                MessageBox.Show("物料号不能为空!", "警告");
                materialTB.Focus();
                return;
            }
            #region 组装物料
            tblMaterial mat = new tblMaterial
            {
                MAT_ID      = materialTB.Text.Trim(),
                MAT_OLD     = oldMaterialTB.Text.Trim().ToUpper(),
                MAT_DESC    = matDesc.Text.Trim(),
                MAT_OLDDESC = oldMatDesc.Text.Trim(),
                MAT_SPECI   = matSpeci.Text.Trim(),
                MAT_JHSPECI = matJHSpeci.Text.Trim(),
                MAT_STATUS  = Mat_Status.启用.GetHashCode(),
                CREATEDATE  = now,
                CREATEUSER  = user,
                MODIFYDATE  = now,
                MODIFYUSER  = user
            };
            #endregion
            MaterialBLL matbll = new MaterialBLL();
            var         result = matbll.AddMatInfo(mat);
            MessageBox.Show(result.Msg);
            materialTB.Text = "";
        }