コード例 #1
0
ファイル: CDBalance.cs プロジェクト: giagiigi/Branch
 private void okButton_Click(object sender, EventArgs e)
 {
     check();
     //MessageBox.Show(alreadyTotalAmount + "");
     //
     //CDBShow cDBShow = new CDBShow(orderNum);
     //cDBShow.ShowDialog();
     if (alreadyTotalAmount != totalAmountValue)
     {
         //MessageBox.Show(alreadyTotalAmount + "已支付" + totalAmountValue + "合计");
         MessageBox.Show("当前商品尚未完成支付");
         return;
     }
     //MessageBox.Show(alreadyTotalAmount+"alreadyTotalAmount_" + totalAmountValue+"totalAmountValue");
     MessageBox.Show("当前商品已完成支付!");
     customerDelivery.balance_data();
     customerDelivery.initData();
     customerDelivery.initNumberAndAmount();
     this.Close();
 }
コード例 #2
0
ファイル: CDQueryList.cs プロジェクト: giagiigi/Branch
        /// <summary>
        /// 将选中的单据内的数据传入页面
        /// </summary>
        private void chooseDocket()
        {
            customerDelivery.initNumberAndAmount();

            string order_Num = listDataGridView.CurrentRow.Cells[0].Value.ToString();
            string name      = listDataGridView.CurrentRow.Cells[2].Value.ToString();
            string phone     = listDataGridView.CurrentRow.Cells[3].Value.ToString();
            string card      = listDataGridView.CurrentRow.Cells[4].Value.ToString();
            /////当前工作模式为提货状态
            //if (WorkMode == Constant.PICK_UP_GOODS)
            //{
            string order_Amount = listDataGridView.CurrentRow.Cells[1].Value.ToString();

            customerDelivery.setOrderNum(order_Num);
            customerDelivery.setinform(order_Num, order_Amount, name, phone, card);
            //}
            /////当前工作模式为退款状态
            //if (WorkMode == Constant.REFUND)
            //{
            //    string actual_moneycard = listDataGridView.CurrentRow.Cells[5].Value.ToString();
            //    customerDelivery.setOrderNum(order_Num);
            //    customerDelivery.setinform(order_Num, actual_moneycard, name, phone, card);
            //}
        }