Example #1
0
        private void ShowInfo(int Id)
        {
            VAN_OA.Model.ReportForms.TB_GuestTrack model = guestTrackSer.GetModel(Id);

            lblGuestName.Text = model.GuestName;
            lblAE.Text        = model.AEName;

            if (model.AEPer != null)
            {
                lblAE.Text += "---" + model.AEPer.ToString() + "%";
            }
            if (model.GuestLiRun != null)
            {
                txtGuestLiRun.Text = model.GuestLiRun.ToString();
            }

            if (model.GuestTotal != null)
            {
                txtGuestTotal.Text = model.GuestTotal.ToString();
            }

            if (model.GuestDays != null)
            {
                txtGuestDays.Text = model.GuestDays.ToString();
            }
            txtINSIDERemark.Text = model.INSIDERemark;
            lblProNo.Text        = model.ProNo;

            lblContrPer.Text = model.LikeMan;
            lblEMail.Text    = model.FoxOrEmail;
            lblQQ.Text       = model.QQMsn;
            lblTel.Text      = model.Phone;
        }
Example #2
0
        private void ShowInfo(int Id)
        {
            VAN_OA.Model.ReportForms.TB_GuestTrack model = guestTrackSer.GetModel(Id);

            this.txtTime.Text       = model.Time.ToString();
            this.txtGuestName.Text  = model.GuestName;
            this.txtPhone.Text      = model.Phone;
            this.txtLikeMan.Text    = model.LikeMan;
            this.txtJob.Text        = model.Job;
            this.txtFoxOrEmail.Text = model.FoxOrEmail;
            this.chkIfSave.Checked  = model.IfSave;
            this.txtQQMsn.Text      = model.QQMsn;

            this.txtGuestId.Text        = model.GuestId;
            this.txtGuestAddress.Text   = model.GuestAddress;
            this.txtGuestHttp.Text      = model.GuestHttp;
            this.txtGuestShui.Text      = model.GuestShui;
            this.txtGuestGong.Text      = model.GuestGong;
            this.txtGuestBrandNo.Text   = model.GuestBrandNo;
            this.txtGuestBrandName.Text = model.GuestBrandName;
            try
            {
                this.ddlAE.SelectedValue = model.AE.ToString();
            }
            catch (Exception)
            {
            }
            try
            {
                this.ddlINSIDE.SelectedValue = model.INSIDE.ToString();
            }
            catch (Exception)
            {
            }
            txtRemark.Text = model.Remark;

            //this.txtFristMeet.Text = model.FristMeet;
            //this.txtSecondMeet.Text = model.SecondMeet;
            //this.txtFaceMeet.Text = model.FaceMeet;
            //this.txtPrice.Text = model.Price.ToString();
            //this.chkIfSuccess.Checked = model.IfSuccess;
            //this.txtMyAppraise.Text = model.MyAppraise;
            //this.txtManAppraise.Text = model.ManAppraise;

            if (model.GuestLiRun != null)
            {
                txtGuestLiRun.Text = model.GuestLiRun.ToString();
            }

            if (model.GuestTotal != null)
            {
                txtGuestTotal.Text = model.GuestTotal.ToString();
            }

            if (model.GuestDays != null)
            {
                txtGuestDays.Text = model.GuestDays.ToString();
            }


            if (model.AEPer != null)
            {
                ddlAEPre.Text = model.AEPer.ToString();
            }

            if (model.INSIDEPer != null)
            {
                ddlINSIDEPre.Text = model.INSIDEPer.ToString();
            }

            txtINSIDERemark.Text = model.INSIDERemark;
            lblProNo.Text        = model.ProNo;

            txtMouth.Text         = model.QuartNo;
            txtYear.Text          = model.YearNo;
            txtSimpGuestName.Text = model.SimpGuestName;
        }