コード例 #1
0
        //Extrae el UserName y lo asigna, coloca el foco en el txt
        private void ucCreateFirm_Load(object sender, EventArgs e)
        {
            ucAvailability.IsInterJetProcess = false;
            string   agent = string.Empty;
            CatQueue item  = CatQueueBL.GetQueue(Login.Firm, Login.PCC);

            if (!string.IsNullOrEmpty(item.Agent))
            {
                agent = item.Agent;
            }
            txtAuthorization.Text = agent;
            txtNumberFirm.Focus();
            lbPCC.BringToFront();
            txtCodeAgent.Text  = GetAllFirmModulesForNewUserBL.GetAgent().AgentCode;
            txtNumberFirm.Text = GetAllFirmModulesForNewUserBL.GetFirm().FirmNumber;


            DialogResult result = MessageBox.Show("¿Este usuario utiliza queue genérica?", Resources.Constants.MYCTS, MessageBoxButtons.YesNo, MessageBoxIcon.Information);

            if (result.Equals(DialogResult.Yes))
            {
                txtQueue.Text = "152";
            }
            else
            {
                txtQueue.Text = GetAllFirmModulesForNewUserBL.GetQueue().QueueCode;
            }
        }
コード例 #2
0
 //Show ListBox
 private void txtPCC_TextChanged(object sender, EventArgs e)
 {
     txt = (TextBox)sender;
     Common.SetListBoxPCCs(txt, lbPCC);
     if (txtPCC.Text.Length == 4)
     {
         txtTA.Text = GetAllFirmModulesForNewUserBL.GetTA(txtPCC.Text).Code;
     }
 }