コード例 #1
0
ファイル: FrmPendingOrder.cs プロジェクト: stanley1501/pos-1
        /// <summary>
        /// 删除挂单所有数据
        /// </summary>
        /// <returns></returns>
        public bool DelPendingOrder()
        {
            if (this._penOrdCount <= 0)
            {
                return(false);
            }
            try
            {
                t_pending_order current = this.bindingPenOrd.Current as t_pending_order;
                this.flowNo = current.flow_no;
                Gattr.Bll.DelPenOrd(flowNo);
                Gattr.Bll.DelPendingPayRow(flowNo);
                this.flowNo = "";
            }
            catch
            {
            }
            this.bindingPenOrd.RemoveCurrent();

            this._penOrdCount = this.bindingPenOrd.Count;

            if (this._penOrdCount == 0)
            {
                if (this.bindingSaleFlow.Count > 0)
                {
                    this.bindingSaleFlow.Clear();
                }
                //this._listSaleFlows = new List<t_cur_saleflow>();
                //this.bindingPenOrd.DataSource = this._listSaleFlows;
                //this.dgvPenOrd.DataSource = this.bindingPenOrd;
            }
            return(true);
        }
コード例 #2
0
ファイル: FrmPendingOrder.cs プロジェクト: stanley1501/pos-1
        public t_pending_order GetCurrentPenOrd()
        {
            t_pending_order _hungbill = new t_pending_order
            {
                flow_no = ""
            };

            if (this._penOrdCount <= 0)
            {
                return(_hungbill);
            }
            return(this.bindingPenOrd.Current as t_pending_order);
        }
コード例 #3
0
ファイル: FrmPendingOrder.cs プロジェクト: stanley1501/pos-1
        private void GetCurSaleFlow()
        {
            if (_penOrdCount > 0)
            {
                try
                {
                    t_pending_order current = this.bindingPenOrd.Current as t_pending_order;

                    this.flowNo         = current.flow_no;
                    this._vip_no        = current.vip_no;
                    this._pendingType   = current.pending_type;
                    this._listSaleFlows = Gattr.Bll.GetPenOrdSaleFlow(flowNo);
                    //获取挂起的支付信息列表
                    this._listPendingPayFlow = Gattr.Bll.GetPendingPayRow(flowNo);
                }
                catch
                {
                }
            }
        }
コード例 #4
0
        /// <summary>
        /// 插入挂单数据
        /// </summary>
        /// <param name="listSaleFlow"></param>
        /// <param name="penOrd"></param>
        public void InsertPendingOrder(string flowNo, List <t_cur_saleflow> listSaleFlow, t_pending_order penOrd)
        {
            for (int i = 0; i < listSaleFlow.Count; i++)
            {
                listSaleFlow[i].flow_no = flowNo;
            }

            base._dal.InsertPendingOrder(listSaleFlow, penOrd);
        }