protected void btnProcess_Click(object sender, EventArgs e) { string sReturn = ""; hidCorseFlag.Value = chkCourse.SelectedValue.Trim(); hidCollUniFlag.Value = rdConfigureRights.SelectedValue.Trim(); if (hidBrnID.Value == "") { hidBrnID.Value = "0"; } lblNote.Text = ""; if (hidEditAdd.Value == "0" || hidEditAdd.Value == "") { sReturn = objclsEligibility.Add_EligibilityRights(hidUniID.Value, hidFacID.Value, hidCrID.Value, hidMoLrnID.Value, hidPtrnID.Value, hidBrnID.Value, hidCollUniFlag.Value, userid.ToString(), hidCorseFlag.Value); FillGrid(); } else { sReturn = objclsEligibility.Modify_EligibilityRights(hidUniID.Value, hidFacID.Value, hidCrID.Value, hidMoLrnID.Value, hidPtrnID.Value, hidBrnID.Value, hidCollUniFlag.Value, userid.ToString(), hidCorseFlag.Value); // hidEditAdd.Value = "0"; tblSelectCr.Attributes.Add("style", "Display:none"); tblSelectCr2.Attributes.Add("style", "Display:none"); hidEditAdd.Value = "0"; //fnFacWiseCr(hidUniID.Value, hidFacID.Value, hidCrID.Value, hidCrMoLrnID.Value); chkCourse.SelectedItem.Selected = false; rdConfigureRights.SelectedItem.Selected = false; //DisplayGrid(""); FillGrid(); } if (sReturn == "Y") { lblNote.Text = "Information Saved Successfully"; lblNote.CssClass = "saveNote"; ResetCtrl(); } else if (sReturn == "E") { lblNote.Text = "Record already exists."; lblNote.CssClass = "errorNote"; ResetCtrl(); } else { lblNote.Text = "Information can not be processed"; lblNote.CssClass = "errorNote"; } }
protected void btnProcess_Click(object sender, EventArgs e) { string sReturn = ""; hidCorseFlag.Value = chkCourse.SelectedValue.Trim(); hidCollUniFlag.Value = rdConfigureRights.SelectedValue.Trim(); if (hidEditAdd.Value == "0" || hidEditAdd.Value == "") { sReturn = objclsEligibility.Add_EligibilityRights(hidUniID.Value, hidFacID.Value, hidCrID.Value, hidMoLrnID.Value, hidCrPtrnID.Value, hidCollUniFlag.Value, userid.ToString(), hidCorseFlag.Value); DisplayGrid(""); } else { sReturn = objclsEligibility.Modify_EligibilityRights(hidUniID.Value, hidFacID.Value, hidCrID.Value, hidCrMoLrnID.Value, hidCrMoLrnPtrnID.Value, hidCollUniFlag.Value, userid.ToString(), hidCorseFlag.Value); // hidEditAdd.Value = "0"; tblSelectCr.Attributes.Add("style", "Display:inline"); fnFacWiseCr(hidUniID.Value, hidFacID.Value, hidCrID.Value, hidCrMoLrnID.Value); dd_Fac_Desc.SelectedValue = hidFacID.Value; dd_Cr_Desc.SelectedValue = hidCrID.Value.Trim(); dd_ModeLrn_Desc.SelectedValue = hidCrMoLrnID.Value.Trim(); dd_CrPtrn_Desc.SelectedValue = hidCrMoLrnPtrnID.Value; DisplayGrid(""); } if (sReturn == "Y") { lblNote.Text = "Record Saved Sucessfully"; lblNote.CssClass = "saveNote"; } else { lblNote.Text = "Information can not be processed"; lblNote.CssClass = "errorNote"; } }