Example #1
0
        private void btnInsert_Click(object sender, EventArgs e)
        {
            var laneInfoPk = Proxy.Instance.InsertLaneInfo(_vm);

            if (laneInfoPk > 0)
            {
                _vm.LANEINFO_PK = laneInfoPk;
                if (OnInsertQuery != null)
                {
                    OnInsertQuery.Invoke(_vm);
                }
                this.Close();
            }
        }
Example #2
0
        private void btnInsert_Click(object sender, EventArgs e)
        {
            var idx = Proxy.Instance.InsertRequest(_vm);

            if (idx <= 0)
            {
                return;
            }
            _vm.IDX = idx;
            var item = Proxy.Instance.GetRequestBy(_vm.CHECKLIST_PK, _vm.IDX);

            if (item == null)
            {
                return;
            }

            _vm.CREATE_DT = item.CREATE_DT;
            if (OnInsertQuery != null)
            {
                OnInsertQuery.Invoke(_vm);
            }
            this.Close();
        }