示例#1
0
        private void DrugSouce_Click(object sender, EventArgs e)
        {
            var m = this.dataGridView1.CurrentRow.DataBoundItem as Business.Models.InstInventeryModel;

            Common.Form_HistoryPurchase frm = new Common.Form_HistoryPurchase(m.DrugInfoId, 1);
            frm.ShowDialog();
            this.dataGridView1.Focus();
        }
示例#2
0
        /// <summary>
        /// 查看品种来源
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DrugBatchSource_Click(object sender, EventArgs e)
        {
            var m = this.dataGridView1.CurrentRow.DataBoundItem as Business.Models.InstInventeryModel;

            if (m.PurchaseInInventoryDetailId == Guid.Empty)
            {
                MessageBox.Show("前期库存,无入库信息!请到老系统中查询入库相关信息!");
                return;
            }

            Common.Form_HistoryPurchase frm = new Common.Form_HistoryPurchase(m.PurchaseInInventoryDetailId);
            frm.ShowDialog();
            this.dataGridView1.Focus();
        }
示例#3
0
        private void DrugSouce_Click(object sender, EventArgs e)
        {
            if (this.dataGridView1.SelectedCells.Count > 0)
            {
                Guid InvID = storage[this.dataGridView1.SelectedCells[0].RowIndex].InventoryID;
                DrugInventoryRecord diir = this.PharmacyDatabaseService.GetDrugInventoryRecord(out msg, InvID);
                Guid pinId = diir.PurchaseInInventeryOrderDetailId;

                if (pinId != Guid.Empty)
                {
                    Common.Form_HistoryPurchase frm = new Common.Form_HistoryPurchase(pinId, 1);
                    frm.ShowDialog();
                    this.dataGridView1.Focus();
                }
            }
        }