Example #1
0
        protected void BtnSubmitStatus_Click(object sender, EventArgs e)
        {
            purchaseData = new PurchaseData();
            DS           = new DataSet();
            request      = new Request();

            request.RequestId = Convert.ToInt32(hfId.Value);
            request.ReqStatus = dpReqStatus.SelectedItem.Text.ToString();
            request.CreatedBy = GlobalInfo.Userid;
            request.Flag      = 3; //3 for updating status

            bool result = purchaseData.SubmitRequestStatus(request);

            if (result)
            {
                GetDetailsById(request.RequestId);
                upModal.Update();
                ScriptManager.RegisterStartupScript(Page, Page.GetType(), "myModal", "$('#myModal').modal();", true);
                ScriptManager.RegisterStartupScript(Page, Page.GetType(), "my1", "$('#Sidebars').addClass('dispnone');", true);
            }
        }