Exemple #1
0
        private void toolStripButton1_Click(object sender, EventArgs e)//新增
        {
            FormVehicleEdit form = new FormVehicleEdit(null);

            form.ShowDialog();
            if (form.ruslt == System.Windows.Forms.DialogResult.Yes)
            {
                RefreshDataGridView();
                this.PharmacyDatabaseService.WriteLog(BugsBox.Pharmacy.AppClient.Common.AppClientContext.CurrentUser.Id, ",新增一条运输工具信息");
            }
        }
Exemple #2
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            selectVehicle = (Vehicle)this.dataGridView1.CurrentRow.DataBoundItem;
            FormVehicleEdit form = new FormVehicleEdit(selectVehicle);

            form.ShowDialog();
            if (form.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                RefreshDataGridView();
                this.PharmacyDatabaseService.WriteLog(BugsBox.Pharmacy.AppClient.Common.AppClientContext.CurrentUser.Id, ",修改一条运输工具信息:" + selectVehicle.LiscenceCode);
            }
        }