Ejemplo n.º 1
0
        private void UpdateDisclaimer()
        {
            // Disclaimer objDisc = new Disclaimer();
            Disclaimer objDisc = DesclaimerController.GetDisclaimerByMemberId(MemberId);

            objDisc.clubId                    = LoginUser.ClubId;
            objDisc.memberId                  = MemberId;
            objDisc.RFIDNo                    = txtRFIDCardNumber.Text;
            objDisc.date                      = DateTime.Now;
            objDisc.height                    = txtHeight.Text;
            objDisc.weight                    = txtWeight.Text;
            objDisc.frameSize                 = txtFrameSize.Text;
            objDisc.emergencyRefName1         = txtName1.Text;
            objDisc.emergencyRefRelationship1 = txtRelation1.Text;
            objDisc.emergencyRefMobNo1        = txtMobileno1.Text;
            objDisc.emergencyRefLandLineNo1   = txtLandline1.Text;
            objDisc.emeregencyArea1           = txtArea1.Text;
            objDisc.emergencyRefName2         = txtName2.Text;
            objDisc.emergencyRefRelationship2 = txtRelation2.Text;
            objDisc.emergencyRefMobNo2        = txtMobileno2.Text;
            objDisc.emergencyRefLandLineNo2   = txtLandline2.Text;
            objDisc.emeregencyArea2           = txtArea2.Text;
            objDisc.emergencyRefName3         = txtName3.Text;
            objDisc.emergencyRefRelationship3 = txtRelation3.Text;
            objDisc.emergencyRefMobNo3        = txtMobileno3.Text;
            objDisc.emergencyRefLandLineNo3   = txtLandline3.Text;
            objDisc.emeregencyArea3           = txtArea3.Text;
            objDisc.familyDoctorName          = txtFamDocName.Text;
            objDisc.familyDoctorMobileNumber  = txtFamDocNo.Text;

            objDisc = new DesclaimerController().UpdateDisclaimer(objDisc);
            new DisclaimerQuestionController().DeleteAllDisclaimerQuestionAnswerByDisclaimerId(objDisc.ID);

            InsertDisclaimerQuestionAnswers(objDisc);
        }
Ejemplo n.º 2
0
        private void BindDiscalimerValues()
        {
            Membership objMember = DesclaimerController.GetDisclaimerByRFIDNo(RFIDNumber);
            Disclaimer objDis    = DesclaimerController.GetDisclaimerByMemberId(MemberId);

            txtRFIDCardNumber.Text = objDis.RFIDNo;
            objDis.date            = UtillController.ConvertDateTime(Convert.ToDateTime(txtDate.Text).ToString().Substring(0, 10));
            txtHeight.Text         = objDis.height;
            txtWeight.Text         = objDis.weight;
            txtFrameSize.Text      = objDis.frameSize;
            txtName1.Text          = objDis.emergencyRefName1;
            txtRelation1.Text      = objDis.emergencyRefRelationship1;
            txtMobileno1.Text      = objDis.emergencyRefMobNo1;
            txtLandline1.Text      = objDis.emergencyRefLandLineNo1;
            txtArea1.Text          = objDis.emeregencyArea1;
            txtName2.Text          = objDis.emergencyRefName2;
            txtRelation2.Text      = objDis.emergencyRefRelationship2;
            txtMobileno2.Text      = objDis.emergencyRefMobNo2;
            txtLandline2.Text      = objDis.emergencyRefLandLineNo2;
            txtArea2.Text          = objDis.emeregencyArea2;
            txtName3.Text          = objDis.emergencyRefName3;
            txtRelation3.Text      = objDis.emergencyRefRelationship3;
            txtMobileno3.Text      = objDis.emergencyRefMobNo3;
            txtLandline3.Text      = objDis.emergencyRefLandLineNo3;
            txtArea3.Text          = objDis.emeregencyArea3;
            txtFamDocName.Text     = objDis.familyDoctorName;
            txtFamDocNo.Text       = objDis.familyDoctorMobileNumber;
            new DesclaimerController().UpdateDisclaimer(objDis);
        }
Ejemplo n.º 3
0
        //protected void btnNext1_Click(object sender, EventArgs e)

        protected void Details()
        {
            Membership objMember = DesclaimerController.GetDisclaimerByRFIDNo(MemberId);
            Lead       objLead   = LeadController.GetLeadById(objMember.LeadId);
            DateTime   dob;
            int        age = 0;

            txtRFIDCardNumber.Text = objMember.RFIDCardNumber;
            dob                     = (DateTime)objLead.dateOfBirth;
            age                     = DateTime.Now.Year;
            age                     = age - dob.Year;
            txtAge.Text             = Convert.ToString(age);
            txtDate.Text            = Convert.ToString(objLead.insertDate).Substring(0, 10);
            txtName.Text            = objLead.firstName;
            txtRegNumber.Text       = Convert.ToString(objMember.AgreementNo);
            txtAddress.Text         = objLead.address;
            txtCity.Text            = objLead.city;
            txtEmail.Text           = objLead.Email;
            txtMobileNumber.Text    = objLead.mobileNumber;
            txtSex.Text             = objLead.gender;
            lblAgreeNum.Text        = objMember.AgreementNo;
            lblTitle.Text           = objMember.Title + " " + objLead.firstName + " " + objLead.lastName + " ";
            pnlLeadsDetails.Visible = true;
            updtpnl1.Visible        = true;
            MeasurementPanelVisibility(true, false);
            pnlOffice.Visible       = true;
            pnlLeadsDetails.Visible = true;
            updtpnl1.Visible        = true;
            Pnlnext1.Visible        = false;
            pnlSave.Visible         = true;
            Disclaimer objDis = DesclaimerController.GetDisclaimerByMemberId(MemberId);

            txtRFIDCardNumber.Text = objMember.RFIDCardNumber;
            txtDate.Text           = Convert.ToString(DateTime.Now).Substring(0, 10);
            if (objDis == null)
            {
                txtHeight.Text     = "";
                txtWeight.Text     = "";
                txtFrameSize.Text  = "";
                txtName1.Text      = "";
                txtRelation1.Text  = "";
                txtMobileno1.Text  = "";
                txtLandline1.Text  = "";
                txtArea1.Text      = "";
                txtName2.Text      = "";
                txtRelation2.Text  = "";
                txtMobileno2.Text  = "";
                txtLandline2.Text  = "";
                txtArea2.Text      = "";
                txtName3.Text      = "";
                txtRelation3.Text  = "";
                txtMobileno3.Text  = "";
                txtLandline3.Text  = "";
                txtArea3.Text      = "";
                txtFamDocName.Text = "";
                txtFamDocNo.Text   = "";
            }
            else
            {
                txtHeight.Text     = objDis.height;
                txtWeight.Text     = objDis.weight;
                txtFrameSize.Text  = objDis.frameSize;
                txtName1.Text      = objDis.emergencyRefName1;
                txtRelation1.Text  = objDis.emergencyRefRelationship1;
                txtMobileno1.Text  = objDis.emergencyRefMobNo1;
                txtLandline1.Text  = objDis.emergencyRefLandLineNo1;
                txtArea1.Text      = objDis.emeregencyArea1;
                txtName2.Text      = objDis.emergencyRefName2;
                txtRelation2.Text  = objDis.emergencyRefRelationship2;
                txtMobileno2.Text  = objDis.emergencyRefMobNo2;
                txtLandline2.Text  = objDis.emergencyRefLandLineNo2;
                txtArea2.Text      = objDis.emeregencyArea2;
                txtName3.Text      = objDis.emergencyRefName3;
                txtRelation3.Text  = objDis.emergencyRefRelationship3;
                txtMobileno3.Text  = objDis.emergencyRefMobNo3;
                txtLandline3.Text  = objDis.emergencyRefLandLineNo3;
                txtArea3.Text      = objDis.emeregencyArea3;
                txtFamDocName.Text = objDis.familyDoctorName;
                txtFamDocNo.Text   = objDis.familyDoctorMobileNumber;



                // new DesclaimerController().UpdateDisclaimer(objDis);

                //BindQuestions();
            }
        }