void SharedLookup_TLU_LookUpClosedEvent() { TransactionControlViewState = null; SharedLookup_TLU.Clean(); //Flushs before next use SharedLookup_TLU.Visible = false; SharedLookup.Visible = false; //upLookUpContainer.Update(); //upTroposTrans.Update(); }
protected void CreateLookUp(string lookUpCode) { if (String.IsNullOrEmpty(TransactionControlViewState)) { SharedLookup_TLU.Clean(); } SharedLookup_TLU.LookUpClosedEvent += new LookUp.LookUpClosedEventHandler(SharedLookup_TLU_LookUpClosedEvent); SharedLookup_TLU.LookUpDataSelectedEvent += new LookUp.LookUpDataSelectedEventHandler(SharedLookup_TLU_LookUpDataSelectedEvent); SharedLookup_TLU.LaunchInModalWindow = true; SharedLookup_TLU.Parameters = this.UserContext.ListParameters; SharedLookup_TLU.ID = lookUpCode; SharedLookup_TLU.Code = lookUpCode; SharedLookup_TLU.Visible = true; SharedLookup.Visible = true; //upLookUpContainer.Update(); if (String.IsNullOrEmpty(TransactionControlViewState)) { TransactionControlViewState = lookUpCode; } }
void SharedLookup_TLU_LookUpDataSelectedEvent(List <ListParameter> Parameters) { Dictionary <int, string> LookupFields = this.UserContext.LookupFields; if (LookupFields == null) { return; } foreach (ListParameter Parameter in Parameters) { if (LookupFields.ContainsKey(Parameter.No)) { Control Field = TroposFields.Controls[0].FindControl(LookupFields[Parameter.No]); TextBox InputField = Field as TextBox; if (InputField != null) { InputField.Text = Parameter.Value.Replace(" ", " "); } else { Label DisplayField = Field as Label; if (DisplayField != null) { DisplayField.Text = Parameter.Value.Replace(" ", " "); } } } } SharedLookup_TLU.Clean(); //Flushs before next use SharedLookup_TLU.Visible = false; SharedLookup.Visible = false; TransactionControlViewState = null; //upLookUpContainer.Update(); //upTroposTrans.Update(); }