예제 #1
0
        private void btnInsertWHPic_Click(object sender, EventArgs e)
        {
            try
            {
                if (txtWHPicIDP.Text.Trim() == "")
                {
                    this.ShowMessage("请输入区分类");
                    txtWHPicIDP.Focus();
                    return;
                }
                WHPicRule rule   = new WHPicRule();
                WHPic     entity = this.GetEntityWHPic();
                rule.RAdd(entity);

                BindGridWHPic();


                FCommon.AddDBLog(this.Text, "区分类新增", "ID:" + entity.WHPicID, "");

                ProcessGrid.GridViewFocus(gridView2, new string[1] {
                    "WHPicID"
                }, new string[1] {
                    entity.WHPicID
                });
            }
            catch (Exception E)
            {
                this.ShowMessage(E.Message);
            }
        }