Beispiel #1
0
 private void EditCustomerLog_Load(object sender, EventArgs e)
 {
     clsTranslate.InitLanguage(this);
     FillControl.FillCustomerScoreRule(cboActionType, "1", false);
     txtCustId.ReadOnly    = true;
     txtCustName.ReadOnly  = true;
     txtActionMan.ReadOnly = true;
     txtId.ReadOnly        = true;
 }
Beispiel #2
0
 private void rbSchedule_CheckedChanged(object sender, EventArgs e)
 {
     lstActionCode.Enabled = rbSchedule.Checked ? false : true;
     if (rbCustomerLog.Checked)
     {
         FillControl.FillCustomerScoreRule(lstActionCode, "1");
     }
     else if (rbActionScores.Checked)
     {
         FillControl.FillCustomerScoreRule(lstActionCode, string.Empty);
     }
     lstActionCode.SelectedItems.Clear();
     InitDate();
     LoadData();
 }
Beispiel #3
0
        private void CRM_DATA_CALENDAR_Load(object sender, EventArgs e)
        {
            FillControl.FillCustomerScoreRule(lstActionCode, string.Empty);
            txtYear.Text     = DateTime.Today.Year.ToString();
            cboMonth.Text    = DateTime.Today.Month.ToString();
            txtSalesMan.Text = Util.UserName;
            dalSysUserPrivilege bllpri = new dalSysUserPrivilege();
            modSysUserPrivilege modpri = bllpri.GetItem(Util.UserId, "CUST_ACCESS_OPTION", out Util.emsg);

            if (modpri != null && modpri.PrivilegeValue == "3")
            {
                btnSalesMan.Enabled = true;
            }
            else
            {
                btnSalesMan.Enabled = false;
            }

            rbSchedule.Checked    = true;
            lstActionCode.Enabled = false;
            InitDate();
            LoadData();
        }