Esempio n. 1
0
        private void Commit(ToolStripButton sender)
        {
            GetLastStoreState();
            if (storeState != (int)Enum.StoreState.Normal)
            {
                MessageBox.Show("当前正在盘库状态,不能进行出入库等操作");
                return;
            }

            if (this.ucOutOrderList1.CurrentSelectValue == null)
            {
                return;
            }
            Model.Info_store_out info = ucOutOrderList1.CurrentSelectValue as Model.Info_store_out;
            string msg = string.Format("确定提交:{0},{1}出库单?", info.Odr_No, info.LinkBill_Name);

            if (Miles.Framework.UI.Function.Dialog.ShowQuestionYesNo(msg))
            {
                if (manager.CommitOut(info))
                {
                    LoadNotDoneOut();
                    this.SetButtonClickResultTip(sender, "提交成功");
                }
            }
        }