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

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

            if (Miles.Framework.UI.Function.Dialog.ShowQuestionYesNo(msg))
            {
                if (manager.CommitIn(info))
                {
                    LoadNotDoneIn();
                    this.SetButtonClickResultTip(sender, "提交成功");
                }
            }
        }
Ejemplo n.º 2
0
        private void Commit(ToolStripButton sender)
        {
            GetLastStoreState();
            if (storeState != (int)Enum.StoreState.Normal)
            {
                MessageBox.Show("当前正在盘库状态,不能进行出入库等操作");
                return;
            }

            if (this.mDataGrid1.CurrentRow == null)
            {
                return;
            }
            Model.Info_store_in info = this.mDataGrid1.GetCurrentEntity() as Model.Info_store_in;
            string msg = string.Format("确定提交:【{0}】入库单?", info.Oper_Date.ToString("g"));

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