Exemple #1
0
        protected void hplDeleteDocumentType_Click(object sender, EventArgs e)
        {
            var gv    = (GridViewRow)((LinkButton)sender).NamingContainer;
            var strNo = (Label)gv.FindControl("lblNo");

            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var res = biz.DeleteDocumentType(strNo.Text);

            if (res.IsError)
            {
                UCModalError.ShowMessageError = res.ErrorMsg;
                UCModalError.ShowModalError();
            }
            else
            {
                UCModalSuccess.ShowMessageSuccess = SysMessage.DeleteSuccess;
                UCModalSuccess.ShowModalSuccess();
                GetDocumentTypeGrid();
                UpdatePanelGrid.Update();
            }
        }