示例#1
0
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        try
        {
            List <ATTOrganizationCaseType> listOrgCaseType = (List <ATTOrganizationCaseType>)Session["CloneOrganisations"];
            List <ATTRegistrationDiary>    regDiaryLST     = listOrgCaseType[grdOrganization.SelectedIndex].LstRegistrationDiary;

            if (BLLRegistrationDiary.AddEditDeleteRegistrationDiary(regDiaryLST))
            {
                LoadCases();
                ClearControls(3, 3, 3, true);
                this.lblStatusMessage.Text = "Saved Successfully";
                this.programmaticModalPopup.Show();
            }
        }
        catch (Exception ex)
        {
            this.lblStatusMessage.Text = ex.Message;
            this.programmaticModalPopup.Show();
        }
        ClearControls(3, 3, 3, true);
        grdOrganization.DataSource = null;
        grdOrganization.DataBind();
        DDLCaseType_RQD.SelectedIndex = 0;
    }
示例#2
0
 void LoadRegistrationDiary()
 {
     try
     {
         List <ATTRegistrationDiary> lstRegDiary = BLLRegistrationDiary.GetRegistrationDiary(int.Parse(DDLOrgWithChilds.SelectedValue), int.Parse(DDLCaseType.SelectedValue), null, "Y", 0, 0, 0);
         chkregDiry.DataSource     = lstRegDiary;
         chkregDiry.DataTextField  = "RegistrationDiaryName";
         chkregDiry.DataValueField = "RegistrationDiaryID";
         chkregDiry.DataBind();
     }
     catch (Exception ex)
     {
         lblStatusMessage.Text = ex.Message;
         programmaticModalPopup.Show();
     }
 }