/// <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); }
/// <summary> /// 获取发货单 obtian the invoice /// </summary> private void FillSendCarBillData() { List <SendCarBill> sendList = SendCardBillModel.GetSendCarBill(); if (sendList != null && sendList.Count > 0) { this.SendBillListView.ItemsSource = sendList; this.SendBillCountTb.Text = sendList.Count.ToString(); } else { this.SendBillListView.ItemsSource = null; this.SendBillCountTb.Text = "0"; } }
private void GetData() { mSendCarbills = SendCardBillModel.GetSendCarBill(); this.SendCarDataGrid.ItemsSource = mSendCarbills; }