public WebHookController(Db db, IHttpClientFactory httpClientFactory) { _stackModel = new StackModel(db); _logModel = new LogModel(db); _systemLogModel = new SystemLogModel(db); _httpClientFactory = httpClientFactory; }
public void BindLIC() { ddLIC.DataSource = StackModel.GetWarehouseLICs(new Guid(Session["CurrentWarehouse"].ToString())); ddLIC.DataTextField = "Name"; ddLIC.DataValueField = "ID"; ddLIC.DataBind(); }
/// <summary> /// /// </summary> private void Start() { _model = GetComponent <StackModel>(); _analyser = GetComponent <StackAnalyser>(); _properties = new MaterialPropertyBlock(); ResetDisplay(); }
public void BindCommodity() { ddlCommodity.DataSource = StackModel.GetCommodyList(); ddlCommodity.DataTextField = "Description"; ddlCommodity.DataValueField = "ID"; ddlCommodity.DataBind(); Messages1.ClearMessage(); }
public void BindShed() { cboShed.Items.Clear(); cboShed.Items.Add(new ListItem("Select Shed", "")); cboShed.DataSource = StackModel.GetWarehouseSheds(new Guid(cboWarehouse.SelectedValue)); cboShed.DataTextField = "ShedNumber"; cboShed.DataValueField = "ID"; cboShed.DataBind(); }
public void BindShedByLIC() { DataTable sheds = StackModel.GetShedByLICForNewStack(new Guid(Session["CurrentWarehouse"].ToString()), new Guid(ddLIC.SelectedValue)); ddlShedID.DataSource = sheds; ddlShedID.DataTextField = "ShedNumber"; ddlShedID.DataValueField = "ShedID"; ddlShedID.DataBind(); }
public void BindLIC() { cboLIC.Items.Clear(); cboLIC.Items.Add(new ListItem("Select LIC", "")); cboLIC.DataSource = StackModel.GetLICbyShed(new Guid(cboWarehouse.SelectedValue), new Guid(cboShed.SelectedValue)); cboLIC.DataTextField = "LIC"; cboLIC.DataValueField = "LICID"; cboLIC.DataBind(); }
public void BindShed() { DataTable sheds = StackModel.GetWarehouseSheds(new Guid(Session["CurrentWarehouse"].ToString())); ddlShedSearch.DataSource = sheds; ddlShedSearch.DataTextField = "ShedNumber"; ddlShedSearch.DataValueField = "ID"; ddlShedSearch.DataBind(); }
public async Task <IActionResult> SendMessage(StackModel model) { if (!ModelState.IsValid) { return(BadRequest()); } await _hubContext.Clients.All.SendAsync("ReceiveMessage", model.User, model.Message); return(Ok(model)); }
public void BindStacksGrisview() { if ((ddlShedSearch.SelectedValue != string.Empty) && (ddlPhyAddressSearch.SelectedValue != string.Empty)) { DataTable dt = StackModel.GetStacks(new Guid(Session["CurrentWarehouse"].ToString()), new Guid(ddlShedSearch.SelectedValue), new Guid(ddlPhyAddressSearch.SelectedValue)); ViewState.Add("dtbl", dt); grvStacks.DataSource = dtbl; grvStacks.DataBind(); } }
public void BindBagTypes() { ddlBagType.Items.Clear(); ddlBagType.Items.Add(new ListItem("Select Bag Types", "")); if (ddlCommodity.SelectedValue != string.Empty) { ddlBagType.DataSource = StackModel.GetBagTypeList(new Guid(ddlCommodity.SelectedValue)); ddlBagType.DataTextField = "BagType"; ddlBagType.DataValueField = "BagGuid"; ddlBagType.DataBind(); } }
public void BindPhysicalAddress() { ddlPhysicalAddress.Items.Clear(); ddlPhysicalAddress.Items.Add(new ListItem("Select Physical Address", "")); if (ddlShedID.SelectedValue != string.Empty) { ddlPhysicalAddress.DataSource = StackModel.GetPhysicalAddresses(new Guid(ddlShedID.SelectedValue)); ddlPhysicalAddress.DataTextField = "AddressName"; ddlPhysicalAddress.DataValueField = "ID"; ddlPhysicalAddress.DataBind(); } }
public void BindCommodityGrade() { ddlCommodityGrade.Items.Clear(); ddlCommodityGrade.Items.Add(new ListItem("Select Commodity Symbol", "")); if (ddlCommodityClass.SelectedValue != string.Empty) { ddlCommodityGrade.DataSource = StackModel.GetCommodySymbolList(new Guid(ddlCommodityClass.SelectedValue)); ddlCommodityGrade.DataTextField = "Symbol"; ddlCommodityGrade.DataValueField = "ID"; ddlCommodityGrade.DataBind(); } }
protected void ddlShedSearch_SelectedIndexChanged(object sender, EventArgs e) { ddlPhyAddressSearch.Items.Clear(); ddlPhyAddressSearch.Items.Add(new ListItem("Select Physical Address", "")); if (ddlShedSearch.SelectedValue != string.Empty) { ddlPhyAddressSearch.DataSource = StackModel.GetPhysicalAddressInStack(new Guid(ddlShedSearch.SelectedValue)); ddlPhyAddressSearch.DataTextField = "AddressName"; ddlPhyAddressSearch.DataValueField = "ID"; ddlPhyAddressSearch.DataBind(); } }
//bool patternUpdated = false; /// <summary> /// /// </summary> private void Start() { _model = GetComponent <StackModel>(); ResetAnalysis(); // Moved to create /* * _columnCount = _model.Stack.ColumnCount; * _rowCount = _model.Stack.RowCount; * _layerCount = _model.Stack.LayerCount; * //_modelCurrentLayer = _model.CurrentLayer; * * cellStates = new int[_rowCount, _columnCount, _layerCount]; */ }
public void BindCommodityClass() { ddlCommodityClass.Items.Clear(); ddlCommodityClass.Items.Add(new ListItem("Select Commodity Class", "")); if (ddlCommodity.SelectedValue != string.Empty) { ddlCommodityClass.DataSource = StackModel.GetCommodyClassList(new Guid(Session["CurrentWarehouse"].ToString()), new Guid(ddlCommodity.SelectedValue)); ddlCommodityClass.DataTextField = "Description"; ddlCommodityClass.DataValueField = "Guid"; ddlCommodityClass.DataBind(); } ddlCommodityGrade.Items.Clear(); ddlCommodityGrade.Items.Add(new ListItem("Select Commodity Symbol", "")); }
/// <summary> /// /// </summary> private void Start() { _model = GetComponent <StackModel>(); _analyser = GetComponent <StackAnalyser>(); _dna = _model.Stack.DNA; /* * instructionSetArray = new GOLInstructionSet[5]; * * instructionSetArray[0] = _instSetMO1; * instructionSetArray[1] = _instSetMO2; * instructionSetArray[2] = _instSetMO3; * instructionSetArray[3] = _instSetMO5; * instructionSetArray[4] = _instSetMO8; */ }
public override void UpdateFromModel() { SetPosition(new Rect(StackModel.Position.x, StackModel.Position.y, 0, 0)); UpdatePortsFromModels(StackModel.InputPorts, "input"); UpdatePortsFromModels(StackModel.OutputPorts, "output"); viewDataKey = StackModel.GetId(); if (!StackModel.NodeModels.Any()) { var contentContainerPlaceholder = this.MandatoryQ("stackNodeContentContainerPlaceholder"); contentContainerPlaceholder.AddToClassList("empty"); } PopulateStack(GraphView, Store, StackModel, this); }
protected void grvStacks_SelectedIndexChanged(object sender, EventArgs e) { try { if (isClosed) { StackModel.CloseStack(new Guid(grvStacks.SelectedDataKey[0].ToString()), 3, UserBLL.CurrentUser.UserId, DateTime.Now); Messages1.SetMessage("Record closed successfully.", WarehouseApplication.Messages.MessageType.Success); } else { StackModel.UpdateStacks(new Guid(grvStacks.SelectedDataKey[0].ToString()), 2, UserBLL.CurrentUser.UserId, DateTime.Now); Messages1.SetMessage("Record cancelled successfully.", WarehouseApplication.Messages.MessageType.Success); } BindStacksGrisview(); } catch (Exception ex) { Messages1.SetMessage(ex.Message, WarehouseApplication.Messages.MessageType.Error); } }
protected override void ExecuteInitialize() { base.ExecuteInitialize(); _stackModel = new StackModel(); _ics = new List<ICInfo>(); _writeTemporaries = new Dictionary<WriteTemporaryExpression, WriteTemporaryInfo>(); _initMethodIndex = ReserveNewICIndex(); }
public void ResetStack() { stackModel = new StackModel(); stackView.ResetStack(); }
private void Awake() { stackModel = new StackModel(); }
protected override void ExecuteInitialize() { //if (JSRuntime.Instance.Configuration.ProfileFunctionTime) // StartJitTimer("JS/Jit/Light/" + funcMetadata.Declaration); //else // StartJitTimer("JS/Jit/Light"); base.ExecuteInitialize(); _stackModel = new StackModel(); _stack = _localVars.Declare(Types.Operations.Stack.TypeOf); }
public void BindPhyscalAddressGrisview() { dtbl = StackModel.GetPhysicalAddresses(new Guid(ddlShedSearch.SelectedValue)); grvPhysicalAddress.DataSource = dtbl; grvPhysicalAddress.DataBind(); }
bool AcceptNode(INodeModel nodeModel) { return(StackModel.NodeModels.Any(m => m == nodeModel) || StackModel.AcceptNode(nodeModel.GetType())); }
public StackController(Entities.Db db) { _stackModel = new StackModel(db); _logModel = new LogModel(db); }
/// <summary> /// /// </summary> private void Start() { _model = GetComponent <StackModel>(); _display = GetComponent <StackDisplay>(); }