public override void InitBindings() { Bindings.Add(this.SetBinding(() => ViewModel.Message, () => Label.Text)); GoBackButton.SetOnClickCommand(ViewModel.GoBackCommand); NavigateMore.SetOnClickCommand(ViewModel.NavigateCCommand); NavigateCNoBackstack.SetOnClickCommand(ViewModel.NavigateCNoBackCommand); }
void ReleaseDesignerOutlets() { if (GoBackButton != null) { GoBackButton.Dispose(); GoBackButton = null; } if (Label != null) { Label.Dispose(); Label = null; } if (NavigateCNoBackstack != null) { NavigateCNoBackstack.Dispose(); NavigateCNoBackstack = null; } if (NavigateMore != null) { NavigateMore.Dispose(); NavigateMore = null; } }
void ReleaseDesignerOutlets() { if (AddressLabel != null) { AddressLabel.Dispose(); AddressLabel = null; } if (CityLabel != null) { CityLabel.Dispose(); CityLabel = null; } if (ConfirmButton != null) { ConfirmButton.Dispose(); ConfirmButton = null; } if (GoBackButton != null) { GoBackButton.Dispose(); GoBackButton = null; } if (NameLabel != null) { NameLabel.Dispose(); NameLabel = null; } if (PhoneLabel != null) { PhoneLabel.Dispose(); PhoneLabel = null; } }
public void EndMatch_Tut_S3() { // called from StationForButton.StationDetail() //弹窗漫画 Debug.Log("?? EndMatch_Tut_S3"); GoBackButton.GetComponent <Button>().enabled = true; isInstruction = false; Animator myAnim = matchButton.GetComponent <Animator>(); myAnim.SetTrigger("idle"); }
// 如果是chap 1 开屏在地铁内显示图片instruction 关闭时用这个 public void CloseInstruction() { //if (Practicing) return; ////StationDetail.SetActive(false); ////GoBackButton.SetActive(true); if (stageTransiting && stage == 1) { ShowHint(); MapHint.gameObject.transform.parent = GoBackButton.transform; MapHint.gameObject.transform.localPosition = new Vector3(20f, 0, 0); GoBackButton.SetActive(true); isInstruction = false; } }
// Start is called before the first frame update void Start() { Saw.gameObject.transform.GetChild(0).GetComponent <Animator>().enabled = false; zoomedIn = false; isZooming = false; SetBodyAnimations(false); SetBackAnimations(false); SetLegAnimations(false); GoBackButton.SetActive(false); BodyPart.enabled = false; BodyPartSecond.enabled = false; TrueNumber = 0; }
void ReleaseDesignerOutlets() { if (DisplayLabel != null) { DisplayLabel.Dispose(); DisplayLabel = null; } if (GoBackButton != null) { GoBackButton.Dispose(); GoBackButton = null; } if (GoToPage4Button != null) { GoToPage4Button.Dispose(); GoToPage4Button = null; } }
public IEnumerator EnterMap_Tut_S3() { isInstruction = true; Animator myAnim = MapInSubway.GetComponent <Animator>(); myAnim.SetTrigger("idle"); //car animation MapHint.gameObject.transform.parent = waypoint1.transform; MapHint.gameObject.transform.localPosition = new Vector3(40f, -30f, 0); ShowHint(); GoBackButton.SetActive(true); GoBackButton.GetComponent <Button>().enabled = false; yield return(null); }
//--------------------------------------------------------------------------------------------- public void ConfigureUI(bool showGoBack) { StateManager stateManager = stateManagerGO.GetComponent <StateManager>(); Player1UI.SetActive(true); Text player1Name = Player1UI.transform.Find("PlayerName").GetComponent <Text>(); player1Name.color = stateManager.Players[0].PlayerColor; player1Name.text = stateManager.Players[0].PlayerName; Player1UI.transform.Find("PlayerMoney").GetComponent <Text>().text = string.Format(LangManager.GetTranslation("currency_abreviation"), stateManager.Players[0].Money); Player1UI.transform.Find("PlayerPGS").GetComponent <Text>().text = string.Format(LangManager.GetTranslation("points_abreviation"), stateManager.Players[0].PGS); Player2UI.SetActive(true); Text player2Name = Player2UI.transform.Find("PlayerName").GetComponent <Text>(); player2Name.color = stateManager.Players[1].PlayerColor; player2Name.text = stateManager.Players[1].PlayerName; Player2UI.transform.Find("PlayerMoney").GetComponent <Text>().text = string.Format(LangManager.GetTranslation("currency_abreviation"), stateManager.Players[1].Money); Player2UI.transform.Find("PlayerPGS").GetComponent <Text>().text = string.Format(LangManager.GetTranslation("points_abreviation"), stateManager.Players[1].PGS); if (StateManager.NumberOfPlayers > 2) { Player3UI.SetActive(true); Text player3Name = Player3UI.transform.Find("PlayerName").GetComponent <Text>(); player3Name.color = stateManager.Players[2].PlayerColor; player3Name.text = stateManager.Players[2].PlayerName; Player3UI.transform.Find("PlayerMoney").GetComponent <Text>().text = string.Format(LangManager.GetTranslation("currency_abreviation"), stateManager.Players[2].Money); Player3UI.transform.Find("PlayerPGS").GetComponent <Text>().text = string.Format(LangManager.GetTranslation("points_abreviation"), stateManager.Players[2].PGS); if (StateManager.NumberOfPlayers > 3) { Player4UI.SetActive(true); Text player4Name = Player4UI.transform.Find("PlayerName").GetComponent <Text>(); player4Name.color = stateManager.Players[3].PlayerColor; player4Name.text = stateManager.Players[3].PlayerName; Player4UI.transform.Find("PlayerMoney").GetComponent <Text>().text = string.Format(LangManager.GetTranslation("currency_abreviation"), stateManager.Players[3].Money); Player4UI.transform.Find("PlayerPGS").GetComponent <Text>().text = string.Format(LangManager.GetTranslation("points_abreviation"), stateManager.Players[3].PGS); } } GoBackButton.SetActive(showGoBack); }
void ReleaseDesignerOutlets() { if (ClientUserButton != null) { ClientUserButton.Dispose(); ClientUserButton = null; } if (GoBackButton != null) { GoBackButton.Dispose(); GoBackButton = null; } if (ServiceProviderUserButton != null) { ServiceProviderUserButton.Dispose(); ServiceProviderUserButton = null; } }
void ReleaseDesignerOutlets() { if (GoBackButton != null) { GoBackButton.Dispose(); GoBackButton = null; } if (NavigateAToFirstOccurenceButton != null) { NavigateAToFirstOccurenceButton.Dispose(); NavigateAToFirstOccurenceButton = null; } if (NavigateBToFirstOccurence != null) { NavigateBToFirstOccurence.Dispose(); NavigateBToFirstOccurence = null; } }
public IEnumerator EnterMap_Tut_S2() { isInstruction = true; Animator myAnim = MapInSubway.GetComponent <Animator>(); myAnim.SetTrigger("idle"); FinalCameraController.enableScroll = true; GoBackButton.SetActive(false); Hide(MapCar.GetComponent <CanvasGroup>()); MapCar_Tut_S2.SetActive(true); MapTutorialBubble.SetActive(true); yield return(new WaitForSeconds(2f)); ShowHint(); MapTutorialBubble.SetActive(false); }
private void SetAllButtons(bool active) { GoBackButton.SetActive(!active); if (!firstCutted) { FirstButton.SetActive(active); FirstZoomButton.SetActive(active); } if (!secondCutted) { SecondButton.SetActive(active); SecondZoomButton.SetActive(active); } if (!thirdCutted) { ThirdButton.SetActive(active); ThirdZoomButton.SetActive(active); } }
void ReleaseDesignerOutlets() { if (GoBackButton != null) { GoBackButton.Dispose(); GoBackButton = null; } if (AdjustBrightnessCheckbox != null) { AdjustBrightnessCheckbox.Dispose(); AdjustBrightnessCheckbox = null; } if (AdjustHueCheckbox != null) { AdjustHueCheckbox.Dispose(); AdjustHueCheckbox = null; } if (AdjustOpacityCheckbox != null) { AdjustOpacityCheckbox.Dispose(); AdjustOpacityCheckbox = null; } if (AdjustSaturationCheckbox != null) { AdjustSaturationCheckbox.Dispose(); AdjustSaturationCheckbox = null; } if (BaseColorSelector != null) { BaseColorSelector.Dispose(); BaseColorSelector = null; } if (BrightnessSlider != null) { BrightnessSlider.Dispose(); BrightnessSlider = null; } if (BrightnessValue != null) { BrightnessValue.Dispose(); BrightnessValue = null; } if (Color != null) { Color.Dispose(); Color = null; } if (ColorName != null) { ColorName.Dispose(); ColorName = null; } if (HueSlider != null) { HueSlider.Dispose(); HueSlider = null; } if (HueValue != null) { HueValue.Dispose(); HueValue = null; } if (OpacitySlider != null) { OpacitySlider.Dispose(); OpacitySlider = null; } if (OpacityValue != null) { OpacityValue.Dispose(); OpacityValue = null; } if (SaturationSlider != null) { SaturationSlider.Dispose(); SaturationSlider = null; } if (SaturationValue != null) { SaturationValue.Dispose(); SaturationValue = null; } }
private void SetButtons(bool active) { BodyZoomButton.SetActive(active); LegZoomButton.SetActive(active); GoBackButton.SetActive(!active); }
void ReleaseDesignerOutlets() { if (addNewItemBtn != null) { addNewItemBtn.Dispose(); addNewItemBtn = null; } if (ChooseLabel != null) { ChooseLabel.Dispose(); ChooseLabel = null; } if (closeBoxBtn != null) { closeBoxBtn.Dispose(); closeBoxBtn = null; } if (GMUButton != null) { GMUButton.Dispose(); GMUButton = null; } if (GoBackButton != null) { GoBackButton.Dispose(); GoBackButton = null; } if (GroupLabel != null) { GroupLabel.Dispose(); GroupLabel = null; } if (GroupPicker != null) { GroupPicker.Dispose(); GroupPicker = null; } if (LaunchView != null) { LaunchView.Dispose(); LaunchView = null; } if (PasswordField != null) { PasswordField.Dispose(); PasswordField = null; } if (PasswordLabel != null) { PasswordLabel.Dispose(); PasswordLabel = null; } if (SchoolLabel != null) { SchoolLabel.Dispose(); SchoolLabel = null; } if (searchBtn != null) { searchBtn.Dispose(); searchBtn = null; } if (SelectGroupLabel != null) { SelectGroupLabel.Dispose(); SelectGroupLabel = null; } if (SubmitButton != null) { SubmitButton.Dispose(); SubmitButton = null; } if (VCUButton != null) { VCUButton.Dispose(); VCUButton = null; } }
protected override void CreateChildControls() { try { #region Creacion de controles pnlFormulario = new Panel(); pnlFormulario.ID = "pnlFormulario"; pnlAdjuntos = new Panel(); pnlAdjuntos.ID = "pnlAdjuntos"; pnlAdjuntos.Visible = false; lblTipoCarta = new Label(); lblTipoCarta.Text = "Tipo <span class='ms-formvalidation'>*</span>"; lblDescTipoCarta = new Label(); lblDescTipoCarta.Text = "Tipo de correspondencia recibida"; rblTipoCarta = new RadioButtonList(); rblTipoCarta.ID = "rblTipoCarta"; rblTipoCarta.Items.Add("INTERNA"); rblTipoCarta.Items.Add("EXTERNA"); rfvTipoCarta = new RequiredFieldValidator(); rfvTipoCarta.ID = "rfvTipoCarta"; rfvTipoCarta.Text = "<br/>Tiene que especificar un valor para este campo requerido."; rfvTipoCarta.Display = ValidatorDisplay.Dynamic; rfvTipoCarta.ControlToValidate = "rblTipoCarta"; rfvTipoCarta.SetFocusOnError = true; lblOrigenCarta = new Label(); lblOrigenCarta.Text = "Origen <span class='ms-formvalidation'>*</span>"; lblDescOrigenCarta = new Label(); lblDescOrigenCarta.Text = "Origen de la correspondencia"; rblOrigenCarta = new RadioButtonList(); rblOrigenCarta.ID = "rblOrigenCarta"; rblOrigenCarta.Items.Add(new ListItem("", "COMBO")); rblOrigenCarta.Items.Add(new ListItem("", "TEXTO")); rblOrigenCarta.SelectedIndex = 0; ddlOrigenCarta = new DropDownList(); ddlOrigenCarta.ID = "ddlOrigenCarta"; ddlOrigenCarta.Attributes.Add("style", "width:385px;"); ddlOrigenCarta.DataSource = ConectorWebPart.RecuperarOrigenesCorrespondencia(); ddlOrigenCarta.DataTextField = "text"; ddlOrigenCarta.DataValueField = "value"; ddlOrigenCarta.DataBind(); ddlOrigenCarta.Items.Insert(0, new ListItem("", string.Empty)); ddlOrigenCarta.SelectedIndex = 0; txbOrigenCarta = new TextBox(); txbOrigenCarta.ID = "txbOrigenCarta"; txbOrigenCarta.Attributes.Add("style", "width:385px;"); ctvOrigenCarta = new CustomValidator(); ctvOrigenCarta.ID = "ctvOrigenCarta"; ctvOrigenCarta.Text = "<br/>Tiene que especificar un valor para este campo requerido."; ctvOrigenCarta.Display = ValidatorDisplay.Dynamic; ctvOrigenCarta.ControlToValidate = "rblOrigenCarta"; ctvOrigenCarta.ServerValidate += new ServerValidateEventHandler(ctvOrigenCarta_ServerValidate); //rfvDdlOrigenCarta = new RequiredFieldValidator(); //rfvDdlOrigenCarta.ID = "rfvDdlOrigenCarta"; //rfvDdlOrigenCarta.Text = "<br/>Tiene que especificar un valor para este campo requerido."; //rfvDdlOrigenCarta.InitialValue = string.Empty; //rfvDdlOrigenCarta.Display = ValidatorDisplay.Dynamic; //rfvDdlOrigenCarta.ControlToValidate = "ddlOrigenCarta"; //rfvDdlOrigenCarta.Enabled = false; //rfvTxbOrigenCarta = new RequiredFieldValidator(); //rfvTxbOrigenCarta.ID = "rfvTxbOrigenCarta"; //rfvTxbOrigenCarta.Text = "<br/>Tiene que especificar un valor para este campo requerido."; //rfvTxbOrigenCarta.Display = ValidatorDisplay.Dynamic; //rfvTxbOrigenCarta.ControlToValidate = "txbOrigenCarta"; //rfvTxbOrigenCarta.Enabled = false; lblReferencia = new Label(); lblReferencia.Text = "Referencia <span class='ms-formvalidation'>*</span>"; lblDescReferencia = new Label(); lblDescReferencia.Text = "<br/>Referencia de la carta"; txbReferencia = new InputFormTextBox(); txbReferencia.ID = "txbReferencia"; txbReferencia.Attributes.Add("style", "width:385px;"); txbReferencia.RichText = false; txbReferencia.RichTextMode = SPRichTextMode.Compatible; txbReferencia.Rows = 5; txbReferencia.TextMode = TextBoxMode.MultiLine; rfvReferencia = new RequiredFieldValidator(); rfvReferencia.ID = "rfvReferencia"; rfvReferencia.Text = "<br/>Tiene que especificar un valor para este campo requerido."; rfvReferencia.Display = ValidatorDisplay.Dynamic; rfvReferencia.ControlToValidate = "txbReferencia"; rfvReferencia.SetFocusOnError = true; lblFechaCarta = new Label(); lblFechaCarta.Text = "Fecha origen <span class='ms-formvalidation'>*</span>"; lblDescFechaCarta = new Label(); lblDescFechaCarta.Text = "Fecha de la correspondencia"; dtcFechaCarta = new DateTimeControl(); dtcFechaCarta.ID = "dtcFechaCarta"; dtcFechaCarta.IsRequiredField = true; dtcFechaCarta.DateOnly = true; lblFechaRecibida = new Label(); lblFechaRecibida.Text = "Fecha recibida <span class='ms-formvalidation'>*</span>"; lblDescFechaRecibida = new Label(); lblDescFechaRecibida.Text = "Fecha de recepción de la carta"; dtcFechaRecibida = new DateTimeControl(); dtcFechaRecibida.ID = "dtcFechaRecibida"; dtcFechaRecibida.IsRequiredField = true; dtcFechaRecibida.SelectedDate = DateTime.Now; lblDestinatario = new Label(); lblDestinatario.Text = "Destinatario <span class='ms-formvalidation'>*</span>"; lblDescDestinatario = new Label(); lblDescDestinatario.Text = "<br/>Destinatario indicado en la carta"; txbDestinatario = new TextBox(); txbDestinatario.ID = "txbDestinatario"; txbDestinatario.Attributes.Add("style", "width:385px;"); rfvDestinatario = new RequiredFieldValidator(); rfvDestinatario.ID = "rfvDestinatario"; rfvDestinatario.Text = "<br/>Tiene que especificar un valor para este campo requerido."; rfvDestinatario.Display = ValidatorDisplay.Dynamic; rfvDestinatario.ControlToValidate = "txbDestinatario"; rfvDestinatario.SetFocusOnError = true; lblDirigidaA = new Label(); lblDirigidaA.Text = "Dirigida a <span class='ms-formvalidation'>*</span>"; lblDescDirigidaA = new Label(); lblDescDirigidaA.Text = "Usuario(s) al(os) cual(es) será enviada la notificación de correspondencia. El primero usuario definido en este campo será el dueño de esta correspondencia."; pedDirigidaA = new PeopleEditor(); pedDirigidaA.ID = "pedDirigidaA"; pedDirigidaA.AllowEmpty = false; pedDirigidaA.MultiSelect = true; pedDirigidaA.Rows = 1; pedDirigidaA.PlaceButtonsUnderEntityEditor = false; rfvDirigidaA = new RequiredFieldValidator(); rfvDirigidaA.ID = "rfvDirigidaA"; rfvDirigidaA.Text = "<br/>Tiene que especificar un valor para este campo requerido."; rfvDirigidaA.Display = ValidatorDisplay.Dynamic; rfvDirigidaA.ControlToValidate = "pedDirigidaA"; rfvDirigidaA.SetFocusOnError = true; lblNumCarta = new Label(); lblNumCarta.Text = "Num. ó Cite"; lblDescNumCarta = new Label(); lblDescNumCarta.Text = "<br/>Código de indentificación de la carta"; txbNumCarta = new TextBox(); txbNumCarta.ID = "txbNumCarta"; txbNumCarta.Attributes.Add("style", "width:385px;"); lblAdjunto = new Label(); lblAdjunto.Text = "Adjunto <span class='ms-formvalidation'>*</span>"; lblDescAdjunto = new Label(); lblDescAdjunto.Text = "<br/>Indica si la correspondencia trae documentos adjuntos o no"; txbAdjunto = new TextBox(); txbAdjunto.ID = "txbAdjunto"; txbAdjunto.Attributes.Add("style", "width:385px;"); rfvAdjunto = new RequiredFieldValidator(); rfvAdjunto.ID = "rfvAdjunto"; rfvAdjunto.Text = "<br/>Tiene que especificar un valor para este campo requerido."; rfvAdjunto.Display = ValidatorDisplay.Dynamic; rfvAdjunto.ControlToValidate = "txbAdjunto"; rfvAdjunto.SetFocusOnError = true; lblClase = new Label(); lblClase.Text = "Clase de documento <span class='ms-formvalidation'>*</span>"; lblDescClase = new Label(); lblDescClase.Text = ""; txbClase = new TextBox(); txbClase.ID = "txbClase"; txbClase.Attributes.Add("style", "width:385px;"); rfvClase = new RequiredFieldValidator(); rfvClase.ID = "rfvClase"; rfvClase.Text = "<br/>Tiene que especificar un valor para este campo requerido."; rfvClase.Display = ValidatorDisplay.Dynamic; rfvClase.ControlToValidate = "txbClase"; rfvClase.SetFocusOnError = true; lblPrioridad = new Label(); lblPrioridad.Text = "Prioridad <span class='ms-formvalidation'>*</span>"; lblDescPrioridad = new Label(); lblDescPrioridad.Text = "<br/>Prioridad de la correspondencia"; ddlPrioridad = new DropDownList(); ddlPrioridad.ID = "ddlPrioridad"; ddlPrioridad.Attributes.Add("style", "width:150px;"); ddlPrioridad.Items.Add("NORMAL"); ddlPrioridad.Items.Add("URGENTE"); ddlPrioridad.SelectedIndex = 0; lblPrivada = new Label(); lblPrivada.Text = "Privada"; lblDescPrivada = new Label(); lblDescPrivada.Text = "<br/>Si se marca, esta carta será leida solo por el(los) usuario(s) indicado(s) en el campo \"Dirigida a\""; chkPrivada = new CheckBox(); chkPrivada.ID = "chkPrivada"; chkPrivada.Checked = true; lblHojaDeRuta = new Label(); lblHojaDeRuta.Text = "Hoja de ruta"; lblDescHojaDeRuta = new Label(); lblDescHojaDeRuta.Text = "<br/>Si se marca, imprime la hoja de ruta"; chkHojaDeRuta = new CheckBox(); chkHojaDeRuta.ID = "chkHojaDeRuta"; chkHojaDeRuta.Checked = true; lblArchivo = new Label(); lblArchivo.Text = "Archivo"; lblDescArchivo = new Label(); lblDescArchivo.Text = "<br/>Descripción de la ubicación física final de la correspondencia"; txbArchivo = new InputFormTextBox(); txbArchivo.ID = "txbArchivo"; txbArchivo.Attributes.Add("style", "width:385px;"); txbArchivo.RichText = false; txbArchivo.RichTextMode = SPRichTextMode.Compatible; txbArchivo.Rows = 5; txbArchivo.TextMode = TextBoxMode.MultiLine; lblAdjuntos = new Label(); lblAdjuntos.Text = "Adjuntos"; lblDescAdjuntos = new Label(); lblDescAdjuntos.Text = "Seleccione el o los archivos que desea adjuntar a este registro de correspondencia"; grvAdjuntos = new GridView(); grvAdjuntos.ID = "grvAdjuntos"; grvAdjuntos.GridLines = GridLines.None; grvAdjuntos.ForeColor = Color.FromArgb(51, 51, 51); grvAdjuntos.CellPadding = 4; grvAdjuntos.AutoGenerateColumns = false; grvAdjuntos.DataKeyNames = new string[] { "RutaArchivo" }; grvAdjuntos.RowStyle.BackColor = Color.FromArgb(227, 234, 235); //grvAdjuntos.HeaderStyle.BackColor = Color.FromArgb(28, 94, 85); grvAdjuntos.HeaderStyle.Font.Bold = true; //grvAdjuntos.HeaderStyle.ForeColor = Color.FromArgb(255, 255, 255); grvAdjuntos.AlternatingRowStyle.BackColor = Color.White; grvAdjuntos.Width = Unit.Percentage(100); //grvAdjuntos.RowDataBound += new GridViewRowEventHandler(grvAdjuntos_RowDataBound); #region Adicion de columnas al Grid TemplateField chkAdjuntar = new TemplateField(); CheckBoxTemplate chkBox = new CheckBoxTemplate(); chkAdjuntar.ItemTemplate = chkBox; BoundField bflNombreArchivo = new BoundField(); bflNombreArchivo.HeaderText = "Nombre archivo"; bflNombreArchivo.DataField = "NombreArchivo"; BoundField bflTipoArchivo = new BoundField(); bflTipoArchivo.HeaderText = "Tipo"; bflTipoArchivo.DataField = "TipoArchivo"; ImageField imfVistaPrevia = new ImageField(); imfVistaPrevia.HeaderText = "Vista Previa"; imfVistaPrevia.DataImageUrlField = "VistaPrevia"; BoundField bflRutaArchivo = new BoundField(); bflRutaArchivo.HeaderText = "URL"; bflRutaArchivo.DataField = "RutaArchivo"; bflRutaArchivo.Visible = false; grvAdjuntos.Columns.Add(chkAdjuntar); grvAdjuntos.Columns.Add(bflNombreArchivo); grvAdjuntos.Columns.Add(bflTipoArchivo); grvAdjuntos.Columns.Add(imfVistaPrevia); grvAdjuntos.Columns.Add(bflRutaArchivo); grvAdjuntos.DataSource = ConectorWebPart.RecuperarDocumentosFP().Tables["DataTable"]; grvAdjuntos.DataBind(); #endregion btnAdjuntarArchivos = new LinkButton(); btnAdjuntarArchivos.ID = "btnAdjuntarArchivos"; btnAdjuntarArchivos.Text = "Adjuntar Archivos"; btnAdjuntarArchivos.ToolTip = "Ver el panel de adjuntar archivos."; btnAdjuntarArchivos.Attributes.Add("style", "font-size:8.5pt;"); btnAdjuntarArchivos.Click += new EventHandler(btnAdjuntarArchivos_Click); btnAdjuntarArchivos.CausesValidation = false; //OJO btnFinalizarRegistro = new Button(); btnFinalizarRegistro.ID = "btnFinalizarRegistro"; btnFinalizarRegistro.Text = "Finalizar"; btnFinalizarRegistro.ToolTip = "Finalizar el registro de nueva correspondencia."; btnFinalizarRegistro.Visible = true; btnFinalizarRegistro.Attributes.Add("style", "width:140px; font-size:8.5pt;"); btnFinalizarRegistro.Click += new EventHandler(btnFinalizarRegistro_Click); //btnIrAtras = new Button(); //btnIrAtras.ID = "btnIrAtras"; //btnIrAtras.Text = "Ir Atras"; //btnIrAtras.ToolTip = "Volver al formulario de registro"; //btnIrAtras.Visible = false; //btnIrAtras.Attributes.Add("style", "width:140px; font-size:8.5pt;"); //btnIrAtras.Click += new EventHandler(btnIrAtras_Click); btnCancelar = new GoBackButton(); btnCancelar.ID = "btnCancelar"; btnCancelar.ControlMode = SPControlMode.New; #endregion #region Adiccion de controles pnlFormulario.Controls.Add(new LiteralControl("<table border='0' cellspacing='0' width='100%'>")); pnlFormulario.Controls.Add(new LiteralControl("<tr><td colspan='2' style='border-bottom:1px black solid'><b>Datos de la Correspondencia</b></td></tr>")); pnlFormulario.Controls.Add(new LiteralControl("<tr><td width='190px' valign='top' class='ms-formlabel'><H3 class='ms-standardheader'><nobr>")); pnlFormulario.Controls.Add(lblTipoCarta); pnlFormulario.Controls.Add(new LiteralControl("</nobr></H3></td><td width='500px' valign='top' class='ms-formbody'>")); pnlFormulario.Controls.Add(rblTipoCarta); pnlFormulario.Controls.Add(lblDescTipoCarta); pnlFormulario.Controls.Add(rfvTipoCarta); pnlFormulario.Controls.Add(new LiteralControl("</td></tr>")); pnlFormulario.Controls.Add(new LiteralControl("<tr><td width='190px' valign='top' class='ms-formlabel'><H3 class='ms-standardheader'><nobr>")); pnlFormulario.Controls.Add(lblOrigenCarta); pnlFormulario.Controls.Add(new LiteralControl("</nobr></H3></td><td width='500px' valign='top' class='ms-formbody'>")); pnlFormulario.Controls.Add(new LiteralControl("<table><tr><td>")); pnlFormulario.Controls.Add(rblOrigenCarta); pnlFormulario.Controls.Add(new LiteralControl("</td><td>")); pnlFormulario.Controls.Add(ddlOrigenCarta); pnlFormulario.Controls.Add(new LiteralControl("<br/>")); pnlFormulario.Controls.Add(txbOrigenCarta); pnlFormulario.Controls.Add(new LiteralControl("</td></tr></table>")); pnlFormulario.Controls.Add(lblDescOrigenCarta); pnlFormulario.Controls.Add(ctvOrigenCarta); pnlFormulario.Controls.Add(new LiteralControl("</td></tr>")); pnlFormulario.Controls.Add(new LiteralControl("<tr><td width='190px' valign='top' class='ms-formlabel'><H3 class='ms-standardheader'><nobr>")); pnlFormulario.Controls.Add(lblReferencia); pnlFormulario.Controls.Add(new LiteralControl("</nobr></H3></td><td width='500px' valign='top' class='ms-formbody'>")); pnlFormulario.Controls.Add(txbReferencia); pnlFormulario.Controls.Add(lblDescReferencia); pnlFormulario.Controls.Add(rfvReferencia); pnlFormulario.Controls.Add(new LiteralControl("</td></tr>")); pnlFormulario.Controls.Add(new LiteralControl("<tr><td width='190px' valign='top' class='ms-formlabel'><H3 class='ms-standardheader'><nobr>")); pnlFormulario.Controls.Add(lblFechaCarta); pnlFormulario.Controls.Add(new LiteralControl("</nobr></H3></td><td width='500px' valign='top' class='ms-formbody'>")); pnlFormulario.Controls.Add(dtcFechaCarta); pnlFormulario.Controls.Add(lblDescFechaCarta); pnlFormulario.Controls.Add(new LiteralControl("</td></tr>")); pnlFormulario.Controls.Add(new LiteralControl("<tr><td width='190px' valign='top' class='ms-formlabel'><H3 class='ms-standardheader'><nobr>")); pnlFormulario.Controls.Add(lblFechaRecibida); pnlFormulario.Controls.Add(new LiteralControl("</nobr></H3></td><td width='500px' valign='top' class='ms-formbody'>")); pnlFormulario.Controls.Add(dtcFechaRecibida); pnlFormulario.Controls.Add(lblDescFechaRecibida); pnlFormulario.Controls.Add(new LiteralControl("</td></tr>")); pnlFormulario.Controls.Add(new LiteralControl("<tr><td width='190px' valign='top' class='ms-formlabel'><H3 class='ms-standardheader'><nobr>")); pnlFormulario.Controls.Add(lblDestinatario); pnlFormulario.Controls.Add(new LiteralControl("</nobr></H3></td><td width='500px' valign='top' class='ms-formbody'>")); pnlFormulario.Controls.Add(txbDestinatario); pnlFormulario.Controls.Add(lblDescDestinatario); pnlFormulario.Controls.Add(rfvDestinatario); pnlFormulario.Controls.Add(new LiteralControl("</td></tr>")); pnlFormulario.Controls.Add(new LiteralControl("<tr><td width='190px' valign='top' class='ms-formlabel'><H3 class='ms-standardheader'><nobr>")); pnlFormulario.Controls.Add(lblDirigidaA); pnlFormulario.Controls.Add(new LiteralControl("</nobr></H3></td><td width='500px' valign='top' class='ms-formbody'>")); pnlFormulario.Controls.Add(pedDirigidaA); pnlFormulario.Controls.Add(lblDescDirigidaA); pnlFormulario.Controls.Add(rfvDirigidaA); pnlFormulario.Controls.Add(new LiteralControl("</td></tr>")); pnlFormulario.Controls.Add(new LiteralControl("<tr><td width='190px' valign='top' class='ms-formlabel'><H3 class='ms-standardheader'><nobr>")); pnlFormulario.Controls.Add(lblNumCarta); pnlFormulario.Controls.Add(new LiteralControl("</nobr></H3></td><td width='500px' valign='top' class='ms-formbody'>")); pnlFormulario.Controls.Add(txbNumCarta); pnlFormulario.Controls.Add(lblDescNumCarta); pnlFormulario.Controls.Add(new LiteralControl("</td></tr>")); pnlFormulario.Controls.Add(new LiteralControl("<tr><td width='190px' valign='top' class='ms-formlabel'><H3 class='ms-standardheader'><nobr>")); pnlFormulario.Controls.Add(lblAdjunto); pnlFormulario.Controls.Add(new LiteralControl("</nobr></H3></td><td width='500px' valign='top' class='ms-formbody'>")); pnlFormulario.Controls.Add(txbAdjunto); pnlFormulario.Controls.Add(lblDescAdjunto); pnlFormulario.Controls.Add(rfvAdjunto); pnlFormulario.Controls.Add(new LiteralControl("</td></tr>")); pnlFormulario.Controls.Add(new LiteralControl("<tr><td width='190px' valign='top' class='ms-formlabel'><H3 class='ms-standardheader'><nobr>")); pnlFormulario.Controls.Add(lblClase); pnlFormulario.Controls.Add(new LiteralControl("</nobr></H3></td><td width='500px' valign='top' class='ms-formbody'>")); pnlFormulario.Controls.Add(txbClase); pnlFormulario.Controls.Add(lblDescClase); pnlFormulario.Controls.Add(rfvClase); pnlFormulario.Controls.Add(new LiteralControl("</td></tr>")); pnlFormulario.Controls.Add(new LiteralControl("<tr><td width='190px' valign='top' class='ms-formlabel'><H3 class='ms-standardheader'><nobr>")); pnlFormulario.Controls.Add(lblPrioridad); pnlFormulario.Controls.Add(new LiteralControl("</nobr></H3></td><td width='500px' valign='top' class='ms-formbody'>")); pnlFormulario.Controls.Add(ddlPrioridad); pnlFormulario.Controls.Add(lblDescPrioridad); pnlFormulario.Controls.Add(new LiteralControl("</td></tr>")); pnlFormulario.Controls.Add(new LiteralControl("<tr><td width='190px' valign='top' class='ms-formlabel'><H3 class='ms-standardheader'><nobr>")); pnlFormulario.Controls.Add(lblPrivada); pnlFormulario.Controls.Add(new LiteralControl("</nobr></H3></td><td width='500px' valign='top' class='ms-formbody'>")); pnlFormulario.Controls.Add(chkPrivada); pnlFormulario.Controls.Add(lblDescPrivada); pnlFormulario.Controls.Add(new LiteralControl("</td></tr>")); pnlFormulario.Controls.Add(new LiteralControl("<tr><td width='190px' valign='top' class='ms-formlabel'><H3 class='ms-standardheader'><nobr>")); pnlFormulario.Controls.Add(lblHojaDeRuta); pnlFormulario.Controls.Add(new LiteralControl("</nobr></H3></td><td width='500px' valign='top' class='ms-formbody'>")); pnlFormulario.Controls.Add(chkHojaDeRuta); pnlFormulario.Controls.Add(lblDescHojaDeRuta); pnlFormulario.Controls.Add(new LiteralControl("</td></tr>")); pnlFormulario.Controls.Add(new LiteralControl("<tr><td width='190px' valign='top' class='ms-formlabel'><H3 class='ms-standardheader'><nobr>")); pnlFormulario.Controls.Add(lblArchivo); pnlFormulario.Controls.Add(new LiteralControl("</nobr></H3></td><td width='500px' valign='top' class='ms-formbody'>")); pnlFormulario.Controls.Add(txbArchivo); pnlFormulario.Controls.Add(lblDescArchivo); pnlFormulario.Controls.Add(new LiteralControl("</td></tr>")); pnlFormulario.Controls.Add(new LiteralControl("</table>")); pnlAdjuntos.Controls.Add(new LiteralControl("<table border='0' cellspacing='0' width='100%'>")); pnlAdjuntos.Controls.Add(new LiteralControl("<tr><td colspan='2' style='border-bottom:1px black solid'><b>Archivos Adjuntos</b></td></tr>")); pnlAdjuntos.Controls.Add(new LiteralControl("<tr><td width='190px' valign='top' class='ms-formlabel'><H3 class='ms-standardheader'><nobr>")); pnlAdjuntos.Controls.Add(lblAdjuntos); pnlAdjuntos.Controls.Add(new LiteralControl("</nobr></H3></td><td width='500px' valign='top' class='ms-formbody'>")); pnlAdjuntos.Controls.Add(lblDescAdjuntos); pnlAdjuntos.Controls.Add(grvAdjuntos); pnlAdjuntos.Controls.Add(new LiteralControl("</td></tr>")); pnlAdjuntos.Controls.Add(new LiteralControl("</table>")); this.Controls.Add(pnlFormulario); this.Controls.Add(pnlAdjuntos); this.Controls.Add(new LiteralControl("<table border='0' cellspacing='0' width='100%'>")); this.Controls.Add(new LiteralControl("<tr><td style='text-align:right' class='ms-toolbar'>")); this.Controls.Add(new LiteralControl("<table><tr><td width='99%' class='ms-toolbar'><IMG SRC='/_layouts/images/blank.gif' width='1' height='18'/></td>")); this.Controls.Add(new LiteralControl("<td nowrap='nowrap' class='ms-toolbar'>")); this.Controls.Add(btnAdjuntarArchivos); this.Controls.Add(new LiteralControl("</td><td class='ms-separator'> </td><td class='ms-toolbar' align='right'>")); this.Controls.Add(btnFinalizarRegistro); this.Controls.Add(new LiteralControl("</td><td class='ms-separator'> </td><td class='ms-toolbar' align='right'>")); this.Controls.Add(btnCancelar); //this.Controls.Add(btnIrAtras); this.Controls.Add(new LiteralControl("</td></tr></table>")); this.Controls.Add(new LiteralControl("</td></tr>")); this.Controls.Add(new LiteralControl("</table>")); #endregion } catch (Exception ex) { Literal error = new Literal(); error.Text = ex.Message; this.Controls.Clear(); this.Controls.Add(error); } }
public override void InitBindings() { NavigateAToFirstOccurenceButton.SetOnClickCommand(ViewModel.NavigateAWithFirstOccurrence); NavigateBToFirstOccurence.SetOnClickCommand(ViewModel.NavigateBWithFirstOccurrence); GoBackButton.SetOnClickCommand(ViewModel.GoBackCommand); }