private void toolStripButton7_Click(object sender, EventArgs e)
        {
            Form_PurchaseOrderImpt frm = new Form_PurchaseOrderImpt();

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.Show(this);
        }
Ejemplo n.º 2
0
        private void FromXls()
        {
            if (this.CurrentPurchaseOrder.SupplyUnitId == Guid.Empty)
            {
                //请选择供货商
                SearchSupplyUnit(false);
                return;
            }
            Form_PurchaseOrderImpt frm = new Form_PurchaseOrderImpt();

            frm.Show(this);
            frm.OnPurchaseOrderImpt += (args) =>
            {
                args.ImptList.ForEach(r =>
                {
                    r.TaxRate = this.PurchaseOrderDefaultTaxRate.DefaultTaxRate;
                    if (!this.CurrentListDetail.Any(a => a.DrugInfoId == r.DrugInfoId))
                    {
                        this.CurrentListDetail.Add(r);
                    }
                });
            };
        }