private void FromProperty(GetStyle getStyle) { var styleName = StylesToMsaglTypes.FirstOrDefault(x => x.Value == getStyle()).Key; if (styleName == null) { return; } CheckBox.IsChecked = true; //Enable(); ?? _styles.Where(r => (string)r.Content == styleName).ToList().ForEach(r => r.IsChecked = true); }
private void BindGetStyle() { using (SqlConnection conn = new SqlConnection(DbSpecFo.x)) { SqlCommand cmd = new SqlCommand("select nStyleID,cStyleNo from SpecFo.dbo.Smt_StyleMaster ", conn); GetStyle.AppendDataBoundItems = true; conn.Open(); SqlDataReader rdr = cmd.ExecuteReader(); GetStyle.DataTextField = "cStyleNo"; GetStyle.DataValueField = "nStyleID"; GetStyle.DataSource = rdr; GetStyle.DataBind(); } }
private void BindGetStyle() { using (SqlConnection conn = new SqlConnection(DbConnect.x)) { SqlCommand cmd = new SqlCommand("select ord_id,ord_no from Order_Master ", conn); GetStyle.AppendDataBoundItems = true; conn.Open(); SqlDataReader rdr = cmd.ExecuteReader(); GetStyle.DataTextField = "ord_no"; GetStyle.DataValueField = "ord_id"; GetStyle.DataSource = rdr; GetStyle.DataBind(); } }
public IHttpActionResult GetStyles() { if (IsTokenValid() && authenticationService.IsAllowedToGetStyles(GetTokenUserEmail())) { try { string formatName = Request.Headers.GetValues("Format-Name").FirstOrDefault(); string styleclassName = Request.Headers.GetValues("StyleClass-Name").FirstOrDefault(); return(Ok(GetStyle.ToModel(styleManagementService.GetAll(formatName, styleclassName)))); } catch (Exceptions e) { return(BadRequest(e.Message)); } } return(Unauthorized()); }
protected void Btnsave_Click(object sender, System.EventArgs e) { try { SqlConnection conn = new SqlConnection(DbConnect.x); SqlCommand Syscmd = new SqlCommand(); Syscmd.CommandType = CommandType.StoredProcedure; Syscmd.CommandText = "Sp_BookingCAD_Data"; //DateTime shipDate = DateTime.ParseExact(txtentdt.Text, "d", null); //Syscmd.Parameters.AddWithValue("@sp_Date", shipDate); Syscmd.Parameters.AddWithValue("@ord_no", GetStyle.SelectedItem.ToString()); Syscmd.Parameters.AddWithValue("@art_no", GetPo.SelectedItem.ToString()); Syscmd.Parameters.AddWithValue("@art_qty", int.Parse(txtQty.Text.Trim())); Syscmd.Parameters.AddWithValue("@byr_nm", txtBuyer.Text.Trim()); Syscmd.Parameters.AddWithValue("@bCADCons", txtBCons.Text.Trim()); Syscmd.Parameters.AddWithValue("@bCADDia", int.Parse(txtBDia.Text.Trim())); Syscmd.Parameters.AddWithValue("@bCADGsm", int.Parse(txtBGsm.Text.Trim())); Syscmd.Parameters.AddWithValue("@sp_User", this.Session["Username"].ToString()); Syscmd.Connection = conn; conn.Open(); Syscmd.ExecuteNonQuery(); conn.Close(); } catch (Exception ex) { throw ex; } GetStyle.ClearSelection(); GetPo.ClearSelection(); txtQty.Text = string.Empty; txtBuyer.Text = string.Empty; txtBCons.Text = string.Empty; txtBDia.Text = string.Empty; txtBGsm.Text = string.Empty; }
=> Search(GetStyle(type), c, out index);
public NewTemplateElement() { InitializeComponent(); LoadUrl loadUrl = new LoadUrl(); loadUrl.NewInstance(); availableBaseObjects.Add(loadUrl); GetInputFromUser getInputFromUser = new GetInputFromUser(); getInputFromUser.NewInstance(); availableBaseObjects.Add(getInputFromUser); SwitchWindowVisibility switchWindowVisibility = new SwitchWindowVisibility(); switchWindowVisibility.NewInstance(); availableBaseObjects.Add(switchWindowVisibility); ElementToLoad elementToLoad = new ElementToLoad(); elementToLoad.NewInstance(); availableBaseObjects.Add(elementToLoad); EventToTrigger eventToTrigger = new EventToTrigger(); eventToTrigger.NewInstance(); availableBaseObjects.Add(eventToTrigger); GetAttribute getAttribute = new GetAttribute(); getAttribute.NewInstance(); availableBaseObjects.Add(getAttribute); GetHttpAuth getHttpAuth = new GetHttpAuth(); getHttpAuth.NewInstance(); availableBaseObjects.Add(getHttpAuth); GetImage getImage = new GetImage(); getImage.NewInstance(); availableBaseObjects.Add(getImage); GetJsPrompt getJsPrompt = new GetJsPrompt(); getJsPrompt.NewInstance(); availableBaseObjects.Add(getJsPrompt); GetStyle getStyle = new GetStyle(); getStyle.NewInstance(); availableBaseObjects.Add(getStyle); InvokeSubmit invokeSubmit = new InvokeSubmit(); invokeSubmit.NewInstance(); availableBaseObjects.Add(invokeSubmit); InvokeMouseClick invokeMouseClick = new InvokeMouseClick(); invokeMouseClick.NewInstance(); availableBaseObjects.Add(invokeMouseClick); JavascriptToExecute javascriptToExecute = new JavascriptToExecute(); javascriptToExecute.NewInstance(); availableBaseObjects.Add(javascriptToExecute); ResourceToLoad resourceToLoad = new ResourceToLoad(); resourceToLoad.NewInstance(); availableBaseObjects.Add(resourceToLoad); SetAttribute setAttribute = new SetAttribute(); setAttribute.NewInstance(); availableBaseObjects.Add(setAttribute); SetHttpAuth setHttpAuth = new SetHttpAuth(); setHttpAuth.NewInstance(); availableBaseObjects.Add(setHttpAuth); SetJsPrompt setJsPrompt = new SetJsPrompt(); setJsPrompt.NewInstance(); availableBaseObjects.Add(setJsPrompt); SetStyle setStyle = new SetStyle(); setStyle.NewInstance(); availableBaseObjects.Add(setStyle); SiteLoaded siteLoaded = new SiteLoaded(); siteLoaded.NewInstance(); availableBaseObjects.Add(siteLoaded); GetInnerText getInnerText = new GetInnerText(); getInnerText.NewInstance(); availableBaseObjects.Add(getInnerText); GetInnerHtml getInnerHtml = new GetInnerHtml(); getInnerHtml.NewInstance(); availableBaseObjects.Add(getInnerHtml); SetValue setValue = new SetValue(); setValue.NewInstance(); availableBaseObjects.Add(setValue); SecondsToWait secondsToWait = new SecondsToWait(); secondsToWait.NewInstance(); availableBaseObjects.Add(secondsToWait); InvokeFullKeyboardEvent invokeFullKeyBoardEvent = new InvokeFullKeyboardEvent(); invokeFullKeyBoardEvent.NewInstance(); availableBaseObjects.Add(invokeFullKeyBoardEvent); }