Exemplo n.º 1
0
 public FrmSaveHotline(Entities.TblConsultantLog cLog)
 {
     // TODO: Complete member initialization
     this.cLog = cLog;
     InitializeComponent();
     txtQuestion.Text = cLog.Question;
 }
Exemplo n.º 2
0
        public FrmEditFull(Entities.TblConsultantLog cLog)
        {
            // TODO: Complete member initialization
            this.cLog = cLog;
            InitializeComponent();

            cbbCountry.DisplayMember = "Display";
            cbbCountry.ValueMember = "Value";
            cbbCountry.DataSource = CountryList();
            cbbCountry.SelectedValue = "VN";

            cbbTgType.DisplayMember = "Display";
            cbbTgType.ValueMember = "Value";
            cbbTgType.DataSource = ConsultantType.listValue;
            cbbTgType.SelectedValue = cLog.TargetType;

            txtDate.Text = cLog.CreateDate.Value.ToString("dd/MM/yyyy hh:mm");
            txtUserInfo.Text = cLog.UserName + " - " + cLog.ClientName + "(" + cLog.ClientCode + ")";

            txtQuestion.Text = cLog.Question;

            txtDescription.Text = cLog.Descriptions;

            if (cLog.TargetCount.HasValue)
                txtSL.Value = cLog.TargetCount.Value;
            txtTgEmail.Text = cLog.TargetEmail;
            txtTgName.Text = cLog.TargetName;
            txtTgPhone.Text = cLog.TargetPhoneNumber;
            cbbCountry.SelectedValue = cLog.TargetCountry;
            cbbTgType.SelectedValue = cLog.TargetType;
        }