Пример #1
0
        protected void LinkButton_Delete_Command(object sender, CommandEventArgs e)
        {
            SUBSTANCE_SUPPLIER objData = new Pricing.BLL.SUBSTANCE_SUPPLIER();
            objData.SelectByDrugReqID(int.Parse(e.CommandArgument.ToString()));
            objData.MarkAsDeleted();
            objData.Save();

            Drug_Reguest_Substances objData2 = new Pricing.BLL.Drug_Reguest_Substances();
            objData2.LoadByPrimaryKey(int.Parse(e.CommandArgument.ToString()));
            objData2.MarkAsDeleted();
            objData2.Save();

            LoadGeneric();
        }