/// <summary>
        /// 查看订单领料详细信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void BtnDetail_Click(object sender, EventArgs e)
        {
            var dgvRow = this.dgvOrderlist.CurrentRow;

            if (dgvRow == null)
            {
                MessageBox.Show("请选中一个订单");
                return;
            }

            var dgvOrderListCurrentRow = this.dgvOrderlist.CurrentRow;

            if (dgvOrderListCurrentRow != null)
            {
                var orderId = ((OrderCollectionDto)dgvOrderListCurrentRow.DataBoundItem).OrderId;

                var collectionService = AutofacContainer.GetInstance().GetObject <ICollectionService>();

                var collectionList = await collectionService.GetOrderIdCollectionList(orderId);

                var detailForm = new FrmDetail($"订单:{orderId}领料详情", collectionList);

                detailForm.ShowDialog();
            }
        }
Beispiel #2
0
        private async void BtnStorageDetail_Click(object sender, EventArgs e)
        {
            var orderId = CheckAndGetOrderId();

            if (orderId != 0)
            {
                var storageService = AutofacContainer.GetInstance().GetObject <IStorageService>();

                var storageList = await storageService.GetOrderStorageList(orderId);

                var detailForm = new FrmDetail($"订单:{orderId}入库详情", storageList);

                detailForm.ShowDialog();
            }
        }
Beispiel #3
0
        private async void BtnCollectionDetail_Click(object sender, EventArgs e)
        {
            var orderId = CheckAndGetOrder().OrderId;

            if (orderId != 0)
            {
                var collectionService = AutofacContainer.GetInstance().GetObject <ICollectionService>();

                var collectionList = await collectionService.GetOrderIdCollectionList(orderId);

                var detailForm = new FrmDetail($"订单:{orderId}领料详情", collectionList);

                detailForm.ShowDialog();
            }
        }
Beispiel #4
0
        private async void BtnAssembleDetail_Click(object sender, EventArgs e)
        {
            var orderId = CheckAndGetOrder().OrderId;

            if (orderId != 0)
            {
                var assembleService = AutofacContainer.GetInstance().GetObject <IAssembleService>();

                var assembleList = await assembleService.GetOrderAssembleList(orderId);

                var detailForm = new FrmDetail($"订单:{orderId}组装详情", assembleList);


                detailForm.ShowDialog();
            }
        }