示例#1
0
        private void btnInsert_Click(object sender, EventArgs e)
        {
            if (Valid(true) == false)
            {
                return;
            }

            var pk = Proxy.Instance.InsertCheckList(_vm);

            if (InsertQuery == null)
            {
                if (pk < 1)
                {
                    InsertQuery.Invoke(null);
                }
                else
                {
                    _vm.CHECKLIST_PK = pk;
                    InsertQuery.Invoke(_vm);
                }
            }
            this.Close();
        }