private void gridMedOrders_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			long medicalOrderNum=PIn.Long(table.Rows[e.Row]["MedicalOrderNum"].ToString());
			MedicalOrder ord=MedicalOrders.GetOne(medicalOrderNum);
			if(ord.MedOrderType==MedicalOrderType.Laboratory) {
				FormEhrMedicalOrderLabEdit FormMlab=new FormEhrMedicalOrderLabEdit();
				FormMlab.MedOrderCur=ord;
				FormMlab.ShowDialog();
			}
			else {//Rad
				FormEhrMedicalOrderRadEdit FormMrad=new FormEhrMedicalOrderRadEdit();
				FormMrad.MedOrderCur=ord;
				FormMrad.ShowDialog();
			}
			FillGridMedOrders();
		}
Beispiel #2
0
        private void gridMedOrders_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            long         medicalOrderNum = PIn.Long(table.Rows[e.Row]["MedicalOrderNum"].ToString());
            MedicalOrder ord             = MedicalOrders.GetOne(medicalOrderNum);

            if (ord.MedOrderType == MedicalOrderType.Laboratory)
            {
                FormEhrMedicalOrderLabEdit FormMlab = new FormEhrMedicalOrderLabEdit();
                FormMlab.MedOrderCur = ord;
                FormMlab.ShowDialog();
            }
            else              //Rad
            {
                FormEhrMedicalOrderRadEdit FormMrad = new FormEhrMedicalOrderRadEdit();
                FormMrad.MedOrderCur = ord;
                FormMrad.ShowDialog();
            }
            FillGridMedOrders();
        }