Ejemplo n.º 1
0
        private void dgvOutInventory_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }
            var entity = dgvOutInventory.Rows[e.RowIndex].DataBoundItem as Business.Models.SalesOrderOutInventoryModel;

            if (dgvOutInventory.Columns[e.ColumnIndex].Name == "查看详细")
            {
                if (this.toolStripComboBox1.SelectedIndex == 0)
                {
                    FormOutInventory form = new FormOutInventory(entity.SalesOrderId, entity.Id);
                    form.ShowDialog();
                }
                else
                {
                    Forms.PurchaseBusiness.FormReturnOrder frm = new Forms.PurchaseBusiness.FormReturnOrder(pceList[e.RowIndex], false);
                    if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                    {
                        this.ReadPurchaseReturnOrderList();
                    }
                }
            }
        }
Ejemplo n.º 2
0
        private void GetSalesOrderCheckInfo()
        {
            Business.Models.SaleOrderModel som = this.dgvMain.CurrentRow.DataBoundItem as Business.Models.SaleOrderModel;
            if (string.IsNullOrEmpty(som.CheckUserName))
            {
                MessageBox.Show("该单据暂未出库复核,无出库复核单据!");
                return;
            }

            FormOutInventory form = new FormOutInventory(som.Id, true);

            form.ShowDialog();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 查看详细
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dgvOutInventory_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }

            var entity = dgvOutInventory.Rows[e.RowIndex].DataBoundItem as OutInventory;

            if (dgvOutInventory.Columns[e.ColumnIndex].Name == "查看详细")
            {
                FormOutInventory form = new FormOutInventory(entity.SalesOrderID, entity.Id, true);
                (Parent.FindForm() as frmMain).ShowForm(form);
            }
        }