コード例 #1
0
 /// <summary>
 /// Handles the RowDeleting event of the gridConsumables control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="GridViewDeleteEventArgs"/> instance containing the event data.</param>
 /// <exception cref="System.NotImplementedException"></exception>
 void gridConsumables_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     if (gridConsumables.DataKeys[e.RowIndex].Values[0].ToString() != "")
     {
         int         billItemID          = int.Parse(this.gridConsumables.DataKeys[e.RowIndex].Values[0].ToString());
         IConsumable _consumablemManager = (IConsumable)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BConsumable, BusinessProcess.Clinical");
         _consumablemManager.RemoveConsumable(this.UserID, billItemID);
     }
     this.PopulateItems(this.SelectedDate);
 }