private void ReadContainersOnShipment(ref ListView lv1, string rBillNumber, StageTypes stageType) { lv1.Items.Clear(); sol_Shipment = sol_Shipment_Sp.SelectByRBillNumber(rBillNumber); if (sol_Shipment == null || sol_Shipment.Status == "V" ) { return; } sol_StageList = sol_Stage_Sp._SelectAllByShipmentID(sol_Shipment.ShipmentID); //I-InProgress; P-Picked S-Shipped if (sol_StageList == null) { return; } foreach (Sol_Stage st in sol_StageList) { if (st.Status != "V") { addItemStagedContainers(ref lv1, st.TagNumber, st.ProductName, st.Dozen, st.ContainerDescription, st.StageID, st.Quantity); } } labelContainersOnShipMentCount.Text = String.Format("Count:" + Funciones.Indent(2) + "{0,10:##,###,##0}", listViewContainersOnShipment.Items.Count); }
public CheckClusterHealthCommand(CommandContext context, ICommand innerCommand, StageTypes stage) : base(context.Logger) { _context = context; _innerCommand = innerCommand; _stage = stage; }
public LogMessage(StageTypes stage, string message, LogLevelTypes logLevel) { Timestamp = DateTime.UtcNow.ToString("O"); Stage = stage.ToString(); Message = message; LogLevel = logLevel.ToString(); }
private void buttonAdjustments_Click(object sender, EventArgs e) { detailsButtonView = StageTypes.Adjustment; buttonAdjustments.BackColor = SystemColors.ButtonHighlight; buttonOriginalRbill.BackColor = SystemColors.Control; ReadContainersOnShipment(ref listViewContainersOnShipment, textBoxRBill.Text, StageTypes.Adjustment); }
private void buttonOriginalRbill_Click(object sender, EventArgs e) { detailsButtonView = StageTypes.Original; buttonAdjustments.BackColor = SystemColors.Control; buttonOriginalRbill.BackColor = SystemColors.ButtonHighlight; string rBillNumber = RemoveShipmentPostFix(textBoxRBill.Text); ReadContainersOnShipment(ref listViewContainersOnShipment, rBillNumber, StageTypes.Original); // //if orginal button is clicked, and Delete radioButton is checked uncheck it // if (radioButtonDelete.Checked) // { //// this.radioButtonRemove.CheckedChanged -= new System.EventHandler(this.radioButtonRemove_CheckedChanged); // radioButtonRemove.Checked = true; // //panelRemove.Enabled = true; // //this.radioButtonRemove.CheckedChanged += new System.EventHandler(this.radioButtonRemove_CheckedChanged); // } }
protected void LogError(StageTypes stage, string message) => _logger.Log(new LogMessage(stage, message, LogLevelTypes.Error));
protected void LogInfo(StageTypes stage, string message) => _logger.Log(new LogMessage(stage, message, LogLevelTypes.Ok));