Esempio n. 1
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex < 0)
            {
                return;
            }
            if (e.ColumnIndex == this.dataGridView1.ColumnCount - 1)
            {
                return;
            }
            if (e.ColumnIndex == this.dataGridView1.ColumnCount - 2)
            {
                return;
            }

            if (e.RowIndex < 0)
            {
                return;
            }
            Guid gid = storage[e.RowIndex].InventoryID;

            if (gid == null || gid == Guid.Empty)
            {
                return;
            }
            Guid druginfoid = this.PharmacyDatabaseService.GetDrugInventoryRecord(out msg, gid).DrugInfoId;

            Storage.Form_DrugPath frm = new Storage.Form_DrugPath(druginfoid, 3);
            frm.ShowDialog();
        }
Esempio n. 2
0
        private void SupplyAndSale()
        {
            var c = this.dataGridView1.CurrentRow.DataBoundItem as Business.Models.SupplyUnitHistoryDrugList;

            Storage.Form_DrugPath frm = new Storage.Form_DrugPath(c.DrugInfoId, 3);
            frm.Show(this);
        }
Esempio n. 3
0
        void miBatch_Click()
        {
            Guid saleOrderDetailID = Guid.Empty;
            var  c = this.dgvMain.CurrentRow.DataBoundItem as Business.Models.SalesOrderRecordOutput;

            saleOrderDetailID = c.id;
            Storage.Form_DrugPath frm = new Storage.Form_DrugPath(saleOrderDetailID, 1);
            frm.ShowDialog();
        }
Esempio n. 4
0
        private void button3_Click(object sender, EventArgs e)
        {
            if (this.dataGridView1.SelectedCells.Count <= 0)
            {
                return;
            }
            var m = this.dataGridView1.CurrentRow.DataBoundItem as Business.Models.InstInventeryModel;

            Storage.Form_DrugPath frm = new Storage.Form_DrugPath(m.DrugInfoId, 3);
            frm.ShowDialog();
        }
Esempio n. 5
0
        private void button3_Click(object sender, EventArgs e)
        {
            if (this.dataGridView1.SelectedCells.Count <= 0)
            {
                return;
            }
            int  rdx        = this.dataGridView1.SelectedCells[0].RowIndex;
            Guid gid        = storage[rdx].InventoryID;
            Guid druginfoid = this.PharmacyDatabaseService.GetDrugInventoryRecord(out msg, gid).DrugInfoId;

            Storage.Form_DrugPath frm = new Storage.Form_DrugPath(druginfoid, 3);
            frm.ShowDialog();
        }
Esempio n. 6
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex < 0)
            {
                return;
            }
            if (e.ColumnIndex == this.dataGridView1.ColumnCount - 1)
            {
                return;
            }
            if (e.ColumnIndex == this.dataGridView1.ColumnCount - 2)
            {
                return;
            }

            if (e.RowIndex < 0)
            {
                return;
            }
            var m = this.dataGridView1.Rows[e.RowIndex].DataBoundItem as Business.Models.InstInventeryModel;

            Storage.Form_DrugPath frm = new Storage.Form_DrugPath(m.DrugInfoId, 3);
            frm.ShowDialog();
        }