Exemplo n.º 1
0
        /// <summary>
        /// 更新派车单
        /// </summary>
        private void UpdateSendCarBill()
        {
            SendCarBill bill = null;

            if (mSendCarBill == null)
            {
                if (mWeighingBill.sendCarBillId != null)
                {
                    bill = SendCardBillModel.GetById(mWeighingBill.sendCarBillId);
                }
            }
            else
            {
                bill = mSendCarBill;
            }
            if (bill == null)
            {
                return;
            }
            CommonFunction.WeighingMargeToSendCarrBill(mWeighingBill, ref bill);
            if (isInsert)
            {
                bill.weightStatus = (int)SendCarWeighingStatus.In;
            }
            else
            {
                bill.weightStatus = (int)SendCarWeighingStatus.Out;
            }
            DatabaseOPtionHelper.GetInstance().update(bill);
        }