protected void btnYes_Click(object sender, EventArgs e)
 {
     try
     {
         dsMaterial_IssueATableAdapters.PIP_MAT_ISUE_ADDTableAdapter issue = new dsMaterial_IssueATableAdapters.PIP_MAT_ISUE_ADDTableAdapter();
         issue.DeleteQuery(decimal.Parse(IssueGridView.SelectedValue.ToString()));
         Master.ShowMessage("Item Deleted.");
         IssueGridView.Rebind();
     }
     catch (Exception ex)
     {
         Master.ShowWarn(ex.Message);
     }
 }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "Material Transfer";
         try
         {
             if (Session["MTN_SESSION"] != null)
             {
                 RadPersistenceManager1.LoadState();
                 IssueGridView.Rebind();
             }
         }
         catch (Exception ex)
         {
         }
     }
     if (WebTools.UserInRole("MTN_RCVFLG_VISIBLE"))
     {
         btnRCVstatus.Visible = true;
         return;
     }
 }