Beispiel #1
0
        public void execute(Form hander)
        {
            MainForm mf = hander as MainForm;

            if (ViewUtil.IsEmptyOrder(mf))
            {
                return;
            }
            if (mf != null)
            {
                ConfirmForm  cf = new ConfirmForm("确认挂单?");
                DialogResult dr = cf.ShowDialog();
                if (dr == DialogResult.OK)
                {
                    saleOrderService.update(SystemInfo.CurrentOrderId, "state", OrderState.Holding);
                    mf.presenter.init();
                }
            }
        }