Beispiel #1
0
 public YesNoMenu()
 {
     Items.Add(new MenuItem { State = true, Text = "Yes" });
     Items.Add(new MenuItem { State = false, Text = "No" });
     Labels = new LabelSequence[] { new FixedLabelSequence("Y", "N") };
 }
Beispiel #2
0
        public bool AddToReceiveHistory(int intQuantity, string strOperator, double dblGrossWeight, int intPalletCount)
        {
            SqlCommand objSQLCommand;
            string     strSQL;
            ExtraSytelineTablesSettings objExtraSytelineTableSettings;


            objExtraSytelineTableSettings = new ExtraSytelineTablesSettings();
            strSQL = QueryDefinitions.GetQuery("InsertIntoRecievedItemHistory", new string[] { SelectedJob.JobNumber, ItemID, intQuantity.ToString(),
                                                                                               strOperator, dblGrossWeight.ToString(), LabelSequence.ToString(), SelectedOrder.CustomerOrderNumber, intPalletCount.ToString(), SelectedJob.Suffix.ToString() });
            objExtraSytelineTableSettings.SQLConnection.Open();
            objSQLCommand             = objExtraSytelineTableSettings.SQLConnection.CreateCommand();
            objSQLCommand.CommandText = strSQL;

            if (objSQLCommand.ExecuteNonQuery() == 1) //appropriate row was affected
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }