示例#1
0
        public void GetDoctorInfo(ref JMMMedicalHist objJMMMedicalHist)
        {
            JmsDoctor   objJmsDoc   = new JmsDoctor();
            JmsDoctorBL objJmsDocBL = new JmsDoctorBL();

            try
            {
                if (objJMMMedicalHist != null && objJMMMedicalHist.JMBookingID.HasValue && objJMMMedicalHist.JMBookingID.Value > 0 && objJMMMedicalHist.PrimeDentistID.HasValue && objJMMMedicalHist.PrimeDentistID.Value > 0)
                {
                    objJmsDoc.DoctorID = objJMMMedicalHist.PrimeDentistID.Value;
                    objJmsDoc.JurisID  = objJMMMedicalHist.JurisID.Value;
                    objJmsDoc.IsDental = 1;
                    objJmsDoc          = objJmsDocBL.SelectDoctor(ref objJmsDoc);
                    if (objJmsDoc != null)
                    {
                        txtOfficeLocation.Text     = objJmsDoc.Location;
                        cusHeaderPhone.PhoneNumber = KPIHlp.GVS(objJmsDoc.PhoneNbrIsNull, objJmsDoc.PhoneNbr);
                        cusHeaderPhone.PhoneType   = KPIHlp.GVS(objJmsDoc.PhoneTypeIsNull, objJmsDoc.PhoneType);

                        lupPrimaryDentist.KPIID    = objJmsDoc.DoctorID;
                        lupPrimaryDentist.KPIValue = objJmsDoc.DoctorName;
                    }
                    else
                    {
                        txtOfficeLocation.Text     = "";
                        cusHeaderPhone.PhoneNumber = null;
                        cusHeaderPhone.PhoneType   = null;
                        lupPrimaryDentist.KPIID    = long.MinValue;
                        lupPrimaryDentist.KPIValue = string.Empty;
                    }
                }
                else
                {
                    txtOfficeLocation.Text     = "";
                    cusHeaderPhone.PhoneNumber = null;
                    cusHeaderPhone.PhoneType   = null;
                    lupPrimaryDentist.KPIID    = long.MinValue;
                    lupPrimaryDentist.KPIValue = string.Empty;
                    ((BasePage)this.Page).AddClientOnLoadScript("SCV('Dental', 'txtOfficeLocation', '',0);");
                }
            }
            catch (Exception objError)
            {
                throw objError;
            }
        }
示例#2
0
        /// <summary>
        /// To display doctor Location and Phone number in INquiy
        /// </summary>
        /// <param name="DoctorID">Return Location and Phone number</param>

        public void getDoctorInfo(ref JMMMedicalHist objJMMMedicalHist)
        {
            JmsDoctor objJmsDoc = new JmsDoctor();;

            try
            {
                if (objJMMMedicalHist != null && objJMMMedicalHist.JMBookingID.HasValue && objJMMMedicalHist.JMBookingID.Value > 0 && objJMMMedicalHist.PrimeDoctorID.HasValue && objJMMMedicalHist.PrimeDoctorID.Value > 0)
                {
                    objJmsDoc.DoctorID = objJMMMedicalHist.PrimeDoctorID.Value;
                    objJmsDoc.IsDental = 0;
                    objJmsDoc.JurisID  = objJMMMedicalHist.JurisID.Value;
                    objJmsDoc          = new JmsDoctorBL().SelectDoctor(ref objJmsDoc);

                    if (objJmsDoc != null)
                    {
                        txtOfficeLocation.Text     = objJmsDoc.Location;
                        cusHeaderPhone.PhoneNumber = KPIHlp.GVS(objJmsDoc.PhoneNbrIsNull, objJmsDoc.PhoneNbr);
                        cusHeaderPhone.PhoneType   = KPIHlp.GVS(objJmsDoc.PhoneTypeIsNull, objJmsDoc.PhoneType);
                        lupPrimaryDoctor.KPIID     = objJmsDoc.DoctorID;
                        lupPrimaryDoctor.KPIValue  = objJmsDoc.DoctorName;
                    }
                    else
                    {
                        cusHeaderPhone.PhoneNumber = null;
                        cusHeaderPhone.PhoneType   = null;
                        ((BasePage)this.Page).AddClientOnLoadScript("SCV('Main', 'txtOfficeLocation', '',0);SCV('Main', 'lupPrimaryDoctor', '',6);SCV('Main', 'lupPrimaryDoctor', '',7);SCV('Main', 'lupPrimaryDoctor', '',77);");
                    }
                }
                else
                {
                    cusHeaderPhone.PhoneNumber = null;
                    cusHeaderPhone.PhoneType   = null;
                    ((BasePage)this.Page).AddClientOnLoadScript("SCV('Main', 'txtOfficeLocation', '',0);SCV('Main', 'lupPrimaryDoctor', '',6);SCV('Main', 'lupPrimaryDoctor', '',7);SCV('Main', 'lupPrimaryDoctor', '',77);");
                }
            }
            catch (Exception objError)
            {
                throw objError;
            }
        }
示例#3
0
        protected void Inquiry(long DoctorID)
        {
            try
            {
                JmsDoctor   objJmsDoctor   = new JmsDoctor();
                JmsDoctorBL objJmsDoctorBL = new JmsDoctorBL();

                objJmsDoctor = objJmsDoctorBL.Select(DoctorID);

                txtadrMainAddress.Text     = KPIHlp.GVS(objJmsDoctor.LocationIsNull, objJmsDoctor.Location);
                custHeaderCSZ.City         = KPIHlp.GVS(objJmsDoctor.CityIsNull, objJmsDoctor.City);
                custHeaderCSZ.State        = KPIHlp.GVS(objJmsDoctor.StateIsNull, objJmsDoctor.State);
                custHeaderCSZ.Zip          = KPIHlp.GVS(objJmsDoctor.ZipIsNull, objJmsDoctor.Zip);
                cusHeaderPhone.PhoneNumber = KPIHlp.GVS(objJmsDoctor.PhoneNbrIsNull, objJmsDoctor.PhoneNbr);
                cusHeaderPhone.PhoneType   = KPIHlp.GVS(objJmsDoctor.PhoneTypeIsNull, objJmsDoctor.PhoneType);
                if (objJmsDoctor.IsActive == 0)
                {
                    chkInActive.Checked = true;
                    txtInActive.Text    = Convert.ToDateTime(objJmsDoctor.InActiveDttm).ToString();
                }
                else
                {
                    chkInActive.Checked = false;
                }
                if (objJmsDoctor.IsDental == 1)
                {
                    chkDentist.Checked = true;
                }
                else
                {
                    chkDentist.Checked = false;
                }
                txtDoctorName.Text = KPIHlp.GVS(objJmsDoctor.DoctorNameIsNull, objJmsDoctor.DoctorName);
            }
            catch (Exception objErr)
            {
                throw objErr;
            }
        }