private void CreateNewProfileLine() { if (this.Parameters != null) { if (this.Parameters.Length.Equals(4)) { SetStarsLevel1InfoBL.AddStarslevel1Info(this.Parameters[0], this.Parameters[1], ((ListItem)(cmbLineType.SelectedItem)).Value.ToString(), txtDescription.Text, Convert.ToDateTime(this.Parameters[2]), Convert.ToBoolean(this.Parameters[3])); SetProfileChangesBL.SetProfile(Login.PCC, Login.Agent, this.Parameters[1], string.Empty, DateTime.Now); ucProfileSearch.star1Info.Clear(); ucProfileSearch.star1Info = Star1stLevelInfoBL.GetStar1stLevelInfo(this.Parameters[0], this.Parameters[1]); frmProfiles._ucProfileSearch = null; LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_PROFILE_INFO_DISPLAY); } else if (this.Parameters.Length.Equals(5)) { SetStarsLevel2InfoBL.AddStarsLevel2Info(this.Parameters[0], this.Parameters[1], this.Parameters[2], ((ListItem)(cmbLineType.SelectedItem)).Value.ToString(), txtDescription.Text, Convert.ToDateTime(this.Parameters[3]), Convert.ToBoolean(this.Parameters[4])); SetProfileChangesBL.SetProfile(Login.PCC, Login.Agent, this.Parameters[1], this.Parameters[2], DateTime.Now); ucProfileSearch.star1Info.Clear(); ucProfileSearch.star2Info.Clear(); ucProfileSearch.star1Info = Star1stLevelInfoBL.GetStar1stLevelInfo(this.Parameters[0], this.Parameters[1]); ucProfileSearch.star2Info = Star2ndLevelInfoBL.GetStar2ndLevelInfo(this.Parameters[0], this.Parameters[1], this.Parameters[2]); frmProfiles._ucProfileSearch = null; LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_PROFILE_INFO_DISPLAY); } } }
/// <summary> /// Carga el catalogo de perfiles por codigo y carga la primer pantalla dependiendo si es por flujo /// o por opcion del menu /// </summary> private void InitialProcess() { if (IsReservationFlow) { toolStripDropDownOptionProfiles.Enabled = false; pnlProfiles.TabIndex = 1; toolStripProfileMenu.TabIndex = 2; LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_WELCOME_PROFILES); } else { string activeProfiles = ParameterBL.GetParameterValue(Resources.Profiles.Constants.ACTIVE_PROFILES).Values; if (Convert.ToBoolean(activeProfiles)) { toolStriptxtSearch.Enabled = true; toolStripTextDK.Enabled = true; ToolStripMenuItemCreateProfile2ndLevel.Enabled = true; ToolStripMenuItemNewProfile.Enabled = true; } else { ToolStripMenuItemCreateProfile2ndLevel.Enabled = false; ToolStripMenuItemNewProfile.Enabled = false; } LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_WELCOME_PROFILES); } }
private void txtProfileNameFirstLevel_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData.Equals(Keys.Escape)) { frmProfiles frm = this.ParentForm as frmProfiles; frm.Width = frm.MinWidth; frm.Height = frm.MinHeight; frm.CenterForm(); frm.IsMinSize = true; LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_WELCOME_PROFILES); } else if (e.KeyData.Equals(Keys.Enter)) { btnAccept_Click(sender, e); } else if (e.KeyCode == Keys.Down) { if (lbProfileInfo.Items.Count > 0) { lbProfileInfo.SelectedIndex = 0; lbProfileInfo.Focus(); lbProfileInfo.Visible = true; lbProfileInfo.Focus(); flag = true; } } }
//Evento txtControls_KeyDown private void txtControls_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData.Equals(Keys.Enter)) { btnUpdate_Click(sender, e); } else if (e.KeyData.Equals(Keys.Escape)) { frmProfiles._ucProfileSearch = null; LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_PROFILE_INFO_DISPLAY); } }
/// <summary> /// aborta el proceso al presionar la tecla ESC /// o ejecutar las funciones al presionar la tecla ENTER /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BackEnterUserControl_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData.Equals(Keys.Escape)) { GetPreviousControlValues(); LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_CREATE_PROFILE_SECOND_LEVEL); } else if (e.KeyData.Equals(Keys.Enter)) { btnAccept_Click(sender, e); } }
private void LoadCreate2ndLevelProfile() { _ucProfileSearch = null; if (IsMinSize) { this.Width = MaxWidth; this.Height = MaxHeight; this.CenterToScreen(); IsMinSize = false; } LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_SECOND_LEVEL_PROFILES); _ucProfileSearch = null; }
/// <summary> /// Carga user control para la busqueda avanzada de perfil /// </summary> private void LoadSearchProfileDetailed() { if (!IsMinSize) { this.Width = this.MinWidth; this.Height = this.MinHeight; //this.CenterForm(); IsMinSize = true; frmPreloading frm2 = new frmPreloading(this); frm2.Show(); } _ucProfileSearch = null; LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_SEARCH_PROFILE_DETAILED); }
//Evento txtControls_KeyDown private void txtControls_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData.Equals(Keys.Escape)) { if (frmProfiles.IsReservationFlow) { this.ParentForm.Close(); } else { frmProfiles._ucProfileSearch = null; LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_WELCOME_PROFILES); } } }
/// <summary> /// Verifica la contraseña del perfil para tener acceso a la información /// </summary> private void AccessProfile(string Profile) { string pwdProfile = string.Empty; if (ucProfileSearch.star1Info.Count > 0) { if (!(!string.IsNullOrEmpty(Login.ProfileAllAccess) && Login.ProfileAllAccess.Equals("A"))) { foreach (Star1stLevelInfo line in ucProfileSearch.star1Info) { if (line.Type.Equals(Resources.Profiles.Constants.LINE_TYPE_N) && line.Text.Contains(Resources.Profiles.Constants.PWD_ID)) { string[] password = line.Text.Split(new char[] { '*' }); pwdProfile = password[1]; break; } } } if (!string.IsNullOrEmpty(pwdProfile)) { InputBoxDialog ib = new InputBoxDialog(); ib.FormPrompt = Resources.Profiles.Constants.INTRODUCE_PASSWORD; ib.FormCaption = string.Concat(Resources.Profiles.Constants.MODAL_PWD_TITLE, " ", Profile); ib.DefaultValue = string.Empty; ib.ModeToShow = InputBoxDialog.ModeTextBox.Password; ib.ShowDialog(); string s = ib.InputResponse.ToUpper(); ib.Close(); if (s.Equals(pwdProfile)) { frmProfiles._ucProfileSearch = null; LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_PROFILE_INFO_DISPLAY); } else { MessageBox.Show(Resources.Profiles.Constants.PASSWORD_ERROR, Resources.Constants.MYCTS, MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { frmProfiles._ucProfileSearch = null; LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_PROFILE_INFO_DISPLAY); } } }
/// <summary> /// aborta el proceso al presionar la tecla ESC /// o ejecutar las funciones al presionar la tecla ENTER /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BackEnterUserControl_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData.Equals(Keys.Escape)) { frmProfiles frm = this.ParentForm as frmProfiles; frm.Width = frm.MinWidth; frm.Height = frm.MinHeight; frm.CenterForm(); frm.IsMinSize = true; LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_WELCOME_PROFILES); } else if (e.KeyData.Equals(Keys.Enter)) { btnAccept_Click(sender, e); } }
//Evento frmProfiles_Load private void frmProfiles_Load(object sender, EventArgs e) { ucAvailability.IsInterJetProcess = false; frmPreloading fr = new frmPreloading(this); fr.Show(); MinWidth = this.Width; MinHeight = this.Height; IsMinSize = true; Focus(); InitialProcess(); if (IsTicket) { LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_SECOND_LEVEL_PROFILES); TxtContadorRegistros.Visible = false; } }
/// <summary> /// Renombra el nombre de la estrella /// </summary> private void RenameProfile() { if (this.Parameters != null) { if (this.Parameters.Length.Equals(2)) { DialogResult result = MessageBox.Show(Resources.Profiles.Constants.SAVE_CHANGES, Resources.Constants.MYCTS, MessageBoxButtons.YesNo, MessageBoxIcon.Information); if (result.Equals(DialogResult.Yes)) { Update1stLevelBL.Update1stLevel(this.Parameters[0], this.Parameters[1], txtStar1name.Text, 0); SetProfileChangesBL.SetProfile(Login.PCC, Login.Agent, this.Parameters[1], string.Empty, DateTime.Now); CatAllStarsBL.ListAllStars.Clear(); ucProfileSearch.star1Info.Clear(); ucProfileSearch.star1Info = Star1stLevelInfoBL.GetStar1stLevelInfo(this.Parameters[0], txtStar1name.Text); frmProfiles._ucProfileSearch = null; LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_PROFILE_INFO_DISPLAY); } else { frmProfiles._ucProfileSearch = null; LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_WELCOME_PROFILES); } } else if (this.Parameters.Length.Equals(3)) { DialogResult result = MessageBox.Show(Resources.Profiles.Constants.SAVE_CHANGES, Resources.Constants.MYCTS, MessageBoxButtons.YesNo, MessageBoxIcon.Information); if (result.Equals(DialogResult.Yes)) { //Update2ndLevelBL.Update2ndLevel(this.Parameters[0], this.Parameters[1], this.Parameters[2], txtStar2Name.Text); SetProfileChangesBL.SetProfile(Login.PCC, Login.Agent, this.Parameters[1], this.Parameters[2], DateTime.Now); CatAllStarsBL.ListAllStars.Clear(); ucProfileSearch.star1Info.Clear(); ucProfileSearch.star2Info.Clear(); ucProfileSearch.star1Info = Star1stLevelInfoBL.GetStar1stLevelInfo(this.Parameters[0], this.Parameters[1]); ucProfileSearch.star2Info = Star2ndLevelInfoBL.GetStar2ndLevelInfo(this.Parameters[0], this.Parameters[1], txtStar2Name.Text); frmProfiles._ucProfileSearch = null; LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_PROFILE_INFO_DISPLAY); } else { frmProfiles._ucProfileSearch = null; LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_WELCOME_PROFILES); } } } }
/// <summary> /// Muestra los valores resultantes de la busqueda deacuerdo al texto de busqueda /// de perfil ingresado /// </summary> /// <param name="sender">Item Seleccionado</param> private void LoadProfileSearchResult(object sender) { string strToSearch = ((ToolStripTextBox)sender).Text; if (strToSearch.Length > 4) { sTextoActual = strToSearch; InitTimer(); } else { _ucProfileSearch = null; this.Width = MinWidth; this.Height = MinHeight; timerBusqueda.Tick -= new EventHandler(timerBusqueda_Tick); LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_WELCOME_PROFILES); TxtContadorRegistros.Visible = true; TxtContadorRegistros.Text = ""; } }
private void toolStripTextDK_TextChanged(object sender, EventArgs e) { if (!IsMinSize) { this.Width = this.MinWidth; this.Height = this.MinHeight; //this.CenterForm(); IsMinSize = true; } if (toolStripTextDK.Text.Length >= 5) { sTipoBusqueda = "DK"; LoadProfileSearchResult(sender); } else { LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_WELCOME_PROFILES); _ucProfileSearch = null; } }
/// <summary> /// Crea el perfil de primer nivel /// </summary> private void ContinueCreatingProfile() { //string send = "*S"; //string sabreAnswer = string.Empty; string textValue = string.Empty; //using (CommandsAPI objCommand = new CommandsAPI()) //{ // sabreAnswer = objCommand.SendReceive(send, 0, 0); //} //int col = 0; //int row = 0; //CommandsQik.searchResponse(sabreAnswer, ".", ref row, ref col); //if (row > 0) //{ // CommandsQik.CopyResponse(sabreAnswer, ref pcc, 1, 1, 4); //} if (string.IsNullOrEmpty(this.Parameters[0])) { pcc = Login.PCC; } else { pcc = this.Parameters[0]; } //SetStarsLevel2BL.AddStarslevel2(pcc, ProfileNameFirstLevel, ProfileNameSecondLevel, true, ); if (!string.IsNullOrEmpty(txtStreetAndNumber.Text)) { textValue = string.Format("DIRECCIÓN PERSONAL: {0}, {1}, {2}, {3}, {4}", txtStreetAndNumber.Text, txtColony.Text, txtCP.Text, txtState.Text, txtCity.Text); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, textValue, ref ucCreateProfileSecondLevel.profileList); } if (!string.IsNullOrEmpty(txtNames.Text) && string.IsNullOrEmpty(txtLastName.Text)) { textValue = string.Format("NOMBRE COMPLETO: {0} {1} {2} {3}", txtNames.Text, txtNames2.Text, txtLastName.Text, txtLastName2.Text); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, textValue, ref ucCreateProfileSecondLevel.profileList); } if (!string.IsNullOrEmpty(txtOcupation.Text)) { textValue = string.Format("OCUPACIÓN: {0}", txtOcupation.Text); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, textValue, ref ucCreateProfileSecondLevel.profileList); } if (!string.IsNullOrEmpty(txtSeat.Text)) { textValue = string.Format("PREFERENCIA DE ASIENTO: {0}", txtSeat.Text); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, textValue, ref ucCreateProfileSecondLevel.profileList); } if (!string.IsNullOrEmpty(txtFamiliarName1.Text)) { textValue = string.Format("FAMILIAR : {0} {1} {2}", txtFamiliarName1.Text, (!string.IsNullOrEmpty(txtFamiliarLastname1.Text)? txtFamiliarLastname1.Text : FamiliarLastName), txtPassengerType1.Text); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, textValue, ref ucCreateProfileSecondLevel.profileList); } if (!string.IsNullOrEmpty(txtFamiliarName2.Text)) { textValue = string.Format("FAMILIAR : {0} {1} {2}", txtFamiliarName2.Text, (!string.IsNullOrEmpty(txtFamiliarLastname2.Text) ? txtFamiliarLastname2.Text : FamiliarLastName), txtPassengerType2.Text); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, textValue, ref ucCreateProfileSecondLevel.profileList); } if (!string.IsNullOrEmpty(txtFamiliarName3.Text)) { textValue = string.Format("FAMILIAR : {0} {1} {2}", txtFamiliarName3.Text, (!string.IsNullOrEmpty(txtFamiliarLastname3.Text) ? txtFamiliarLastname3.Text : FamiliarLastName), txtPassengerType3.Text); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, textValue, ref ucCreateProfileSecondLevel.profileList); } if (!string.IsNullOrEmpty(txtFamiliarName4.Text)) { textValue = string.Format("FAMILIAR : {0} {1} {2}", txtFamiliarName4.Text, (!string.IsNullOrEmpty(txtFamiliarLastName4.Text) ? txtFamiliarLastName4.Text : FamiliarLastName), txtPassengerType4.Text); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, textValue, ref ucCreateProfileSecondLevel.profileList); } if (!string.IsNullOrEmpty(txtFamiliarName5.Text)) { textValue = string.Format("FAMILIAR : {0} {1} {2}", txtFamiliarName5.Text, (!string.IsNullOrEmpty(txtFamiliarLastName5.Text) ? txtFamiliarLastName5.Text : FamiliarLastName), txtPassengerType5.Text); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, textValue, ref ucCreateProfileSecondLevel.profileList); } if (!string.IsNullOrEmpty(txtComment1.Text)) { SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, txtComment1.Text, ref ucCreateProfileSecondLevel.profileList); } if (!string.IsNullOrEmpty(txtComment2.Text)) { SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, txtComment2.Text, ref ucCreateProfileSecondLevel.profileList); } if (!string.IsNullOrEmpty(txtComment3.Text)) { SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, txtComment3.Text, ref ucCreateProfileSecondLevel.profileList); } if (!string.IsNullOrEmpty(txtCreditCardNumber.Text)) { SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, string.Format("TARJETA DE CREDITO PARA AUTO/HOTEL: {0}{1} {2}-{3} {4}", txtCreditCardCode.Text, txtCreditCardNumber.Text, txtCCVigencyMonth.Text, txtCCVigencyYear.Text, txtCCLastName.Text), ref ucCreateProfileSecondLevel.profileList); } if (!string.IsNullOrEmpty(txtHotelNumber1.Text)) { SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, string.Format("PREFERENCIA HOTEL: {0}{1}", txtHotelCode1.Text, txtHotelNumber1.Text), ref ucCreateProfileSecondLevel.profileList); } if (!string.IsNullOrEmpty(txtHotelNumber2.Text)) { SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, string.Format("PREFERENCIA HOTEL: {0}{1}", txtHotelCode2.Text, txtHotelNumber2.Text), ref ucCreateProfileSecondLevel.profileList); } if (!string.IsNullOrEmpty(txtCarAgencyNumber1.Text)) { SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, string.Format("PREFERENCIA ARRENDADORA: {0}{1}", txtCarAgencyCode1.Text, txtCarAgencyNumber1.Text), ref ucCreateProfileSecondLevel.profileList); } if (!string.IsNullOrEmpty(txtCarAgencyNumber2.Text)) { SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, string.Format("PREFERENCIA ARRENDADORA: {0}{1}", txtCarAgencyCode2.Text, txtCarAgencyNumber2.Text), ref ucCreateProfileSecondLevel.profileList); } DateTime date = DateTime.Now; foreach (ListItem Content in ucCreateProfileSecondLevel.profileList) { SetStarsLevel2InfoBL.AddStarsLevel2Info(pcc, ProfileNameFirstLevel, ProfileNameSecondLevel, Content.Value, Content.Text, date, false); } Update1stLevelBL.Update1stLevel(pcc, ProfileNameFirstLevel, string.Empty, 1); ucProfileSearch.star1Info = Star1stLevelInfoBL.GetStar1stLevelInfo(pcc, ProfileNameFirstLevel); ucProfileSearch.star2Info = Star2ndLevelInfoBL.GetStar2ndLevelInfo(pcc, ProfileNameFirstLevel, ProfileNameSecondLevel); frmProfiles._ucProfileSearch = null; frmProfiles frm = this.ParentForm as frmProfiles; frm.Width = frm.MinWidth; frm.Height = frm.MinHeight; frm.CenterForm(); frm.IsMinSize = true; CatAllStarsBL.ListAllStars.Clear(); LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_PROFILE_INFO_DISPLAY); }
/// <summary> /// Crea el perfil de primer nivel /// </summary> private void CreateProfile() { //string send = "*S"; //string sabreAnswer = string.Empty; string pcc = string.Empty; string textValue = string.Empty; List <ListItem> profileList = new List <ListItem>(); //using (CommandsAPI objCommand = new CommandsAPI()) //{ // sabreAnswer = objCommand.SendReceive(send); //} //int col = 0; //int row = 0; //CommandsQik.searchResponse(sabreAnswer, ".", ref row, ref col); //if (row > 0) //{ // CommandsQik.CopyResponse(sabreAnswer, ref pcc, 1, 1, 4); //} pcc = txtPCC.Text; if (string.IsNullOrEmpty(txtPCC.Text)) { pcc = Login.PCC; } SetStarsLevel1BL.AddStarslevel1(pcc, txtProfileName.Text, false, true); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_S, txtEnterpriseName.Text, ref profileList); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_A, string.Concat(Resources.Profiles.Constants.COMMAND_NINE, txtPhone.Text, (!string.IsNullOrEmpty(txtExt.Text)) ? string.Concat(Resources.Profiles.Constants.COMMAND_X, txtExt.Text) : string.Empty), ref profileList); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_A, string.Concat(Resources.Profiles.Constants.COMMAND_DK, txtDK.Text), ref profileList); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_P, txtTravelPolicy1.Text, ref profileList); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_P, txtTravelPolicy2.Text, ref profileList); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_P, txtTravelPolicy3.Text, ref profileList); if (txtDK.Text != @"INSTOP") { SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_A, string.Concat(Resources.Profiles.Constants.COMMAND_FIVE_SLASH, txtSocialReason.Text), ref profileList); textValue = string.Format("5/{0}{1}{2},{3}", txtStreet.Text, string.Concat(Resources.Profiles.Constants.AST, txtNumberExt.Text), (!string.IsNullOrEmpty(txtNumberInt.Text)) ? string.Concat(Resources.Profiles.Constants.AST, txtNumberInt.Text) : string.Empty, txtColony.Text); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_A, textValue, ref profileList); textValue = string.Format("5/{0}, {1}, {2}", txtDelorMunicipality.Text, txtCity.Text, txtState.Text); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_A, textValue, ref profileList); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_A, string.Concat(Resources.Profiles.Constants.COMMAND_FIVE_SLASH, txtPostalCode.Text), ref profileList); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_A, string.Concat(Resources.Profiles.Constants.COMMAND_FIVE_SLASH, txtRFC1.Text, txtRFC2.Text, txtRFC3.Text), ref profileList); } if (!string.IsNullOrEmpty(txtCreditCardCode.Text) && !string.IsNullOrEmpty(txtCreditCardNumber.Text)) { textValue = (!string.IsNullOrEmpty(txtExpirationDateMonth.Text) && !string.IsNullOrEmpty(txtExpirationDateYear.Text)) ? string.Format("-{0}/{1}", txtExpirationDateMonth.Text, txtExpirationDateYear.Text) : string.Empty; SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, string.Concat(txtCreditCardCode.Text, txtCreditCardNumber.Text, textValue), ref profileList); } SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, string.Concat("CONTACTO EMPRESA:", " ", txtEnterpriseContact.Text), ref profileList); SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, string.Concat("EMAIL CONTACTO:", " ", txtEmailContact.Text), ref profileList); if (!string.IsNullOrEmpty(txtComment1.Text)) { SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, txtComment1.Text, ref profileList); } if (!string.IsNullOrEmpty(txtComment2.Text)) { SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, txtComment2.Text, ref profileList); } if (!string.IsNullOrEmpty(txtComment3.Text)) { SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, txtComment3.Text, ref profileList); } SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, string.Concat(Resources.Profiles.Constants.LABEL_PROFILE_CREATED_BY, " ", txtCreateBy.Text), ref profileList); if (!string.IsNullOrEmpty(txtPassword.Text)) { SetCategoryValue(Resources.Profiles.Constants.LINE_TYPE_N, string.Concat(Resources.Profiles.Constants.LABEL_PASSWORD, txtPassword.Text), ref profileList); } DateTime date = DateTime.Now; foreach (ListItem Content in profileList) { SetStarsLevel1InfoBL.AddStarslevel1Info(pcc, txtProfileName.Text, Content.Value, Content.Text, date, false); } ucProfileSearch.star2Info.Clear(); ucProfileSearch.star1Info = Star1stLevelInfoBL.GetStar1stLevelInfo(pcc, txtProfileName.Text); frmProfiles._ucProfileSearch = null; frmProfiles frm = this.ParentForm as frmProfiles; frm.Width = frm.MinWidth; frm.Height = frm.MinHeight; frm.CenterForm(); frm.IsMinSize = true; CatAllStarsBL.ListAllStars.Clear(); LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_PROFILE_INFO_DISPLAY); }