Esempio n. 1
0
        protected void btnReceipts_Click(object sender, EventArgs e)
        {
            string       PatientID = ASPxGridView.GetDetailRowKeyValue(sender as Control).ToString();
            ASPxGridView gvPatient = ASPxGridView.FindParentGridTemplateContainer(sender as Control).Grid;
            string       DoctorID  = gvPatient.GetMasterRowKeyValue().ToString();
            string       ClinicID  = ASPxGridView.FindParentGridTemplateContainer(gvPatient).Grid.GetMasterRowKeyValue().ToString();

            dsReceipts.SelectParameters["PatientID"].DefaultValue = PatientID;
            dsReceipts.SelectParameters["DoctorID"].DefaultValue  = DoctorID;
            dsReceipts.SelectParameters["ClinicID"].DefaultValue  = ClinicID;
            popupReceipts.AllowDragging  = true;
            popupReceipts.AllowResize    = true;
            popupReceipts.ResizingMode   = DevExpress.Web.ASPxClasses.ResizingMode.Live;
            popupReceipts.ShowOnPageLoad = true;
        }