public frmCMTSelection() { InitializeComponent(); repo = new CMTRepository(); this.cmboCMT.CheckStateChanged += new System.EventHandler(this.cmboDepartment_CheckStateChanged); }
public frmSelectProduction() { InitializeComponent(); repo = new CMTRepository(); rbUnits.Checked = true; rbGradeA.Checked = true; }
public frmCMTDelivery() { InitializeComponent(); Repo = new CMTRepository(); this.cmboCurrentPIMultiple.CheckStateChanged += new System.EventHandler(this.cmboPanelIssue_CheckStateChanged); ; }
public frmNonComplianceSelection() { InitializeComponent(); repo = new CMTRepository(); this.cmboCutSheets.CheckStateChanged += new System.EventHandler(this.cmboCutSheets_CheckStateChanged); this.cmbONonCompliance.CheckStateChanged += new System.EventHandler(this.cmboNonCompliance_CheckStateChanged); }
public frmCMTProdAnalysis() { InitializeComponent(); repo = new CMTRepository(); //-------------------------------------------------------- // wire up the check state changed event //-------------------------------------------------------------------------------------------------------- this.cmboStyles.CheckStateChanged += new System.EventHandler(this.cmboStyles_CheckStateChanged); this.cmboColours.CheckStateChanged += new System.EventHandler(this.cmboColours_CheckStateChanged); }
public frmCMTWip() { InitializeComponent(); repo = new CMTRepository(); //-------------------------------------------------------- // wire up the check state changed event //-------------------------------------------------------------------------------------------------------- this.cmboCMT.CheckStateChanged += new EventHandler(this.cmboDepts_CheckStateChanged); this.cmboLine.CheckStateChanged += new System.EventHandler(this.cmboLine_CheckStateChanged); }
public frmNCRByMonth() { InitializeComponent(); repo = new CMTRepository(); //-------------------------------------------------------- // wire up the check state changed event //-------------------------------------------------------------------------------------------------------- this.cmboLines.CheckStateChanged += new System.EventHandler(this.cmboLines_CheckStateChanged); this.cmboStyles.CheckStateChanged += new EventHandler(this.cmboStyle_CheckStateChanged); }
public frmMPSel() { InitializeComponent(); //-------------------------------------------------------- // wire up the check state changed event //-------------------------------------------------------------------------------------------------------- this.cmboDepartment.CheckStateChanged += new System.EventHandler(this.cmboDepartment_CheckStateChanged); this.cmboStyle.CheckStateChanged += new EventHandler(this.cmboStyle_CheckStateChanged); this.cmboMeasurement.CheckStateChanged += new System.EventHandler(this.cmboMeasurement_CheckStateChanged); this.cmboSize.CheckStateChanged += new System.EventHandler(this.cmboSize_CheckStateChanged); repo = new CMTRepository(); }
public frmDateRequired(bool Mode) { // Mode is either True or False // if Mode True then it is in Reporting Mode // else it is in Edit Mode to allow for adjustment of Required Dates InitializeComponent(); repo = new CMTRepository(); _Mode = Mode; if (Mode) { this.Text = "Required Dates Reporting Facility"; this.dataGridView1.Visible = false; } else { this.Text = "Required Dates Editting facility"; this.label2.Visible = false; this.dtpToDate.Visible = false; this.dataGridView1.Visible = true; core = new Util(); oTxtBoxA = new DataGridViewTextBoxColumn(); oTxtBoxA.ReadOnly = true; oTxtBoxA.Visible = false; oTxtBoxA.HeaderText = "Primary Key"; dataGridView1.Columns.Add(oTxtBoxA); oChkA = new DataGridViewCheckBoxColumn(); oChkA.ValueType = typeof(bool); oChkA.HeaderText = "Select"; dataGridView1.Columns.Add(oChkA); oTxtBoxB = new DataGridViewTextBoxColumn(); oTxtBoxB.ReadOnly = true; oTxtBoxB.Visible = true; oTxtBoxB.HeaderText = "CutSheet Number"; dataGridView1.Columns.Add(oTxtBoxB); oTxtBoxC = new DataGridViewTextBoxColumn(); oTxtBoxC.ReadOnly = true; oTxtBoxC.Visible = true; oTxtBoxC.HeaderText = "Current Required Date"; dataGridView1.Columns.Add(oTxtBoxC); dataGridView1.AllowUserToAddRows = false; dataGridView1.AllowUserToOrderColumns = false; } }
private void frmCMTPanelStock_Load(object sender, EventArgs e) { formloaded = false; var reportOptions = new BindingList <KeyValuePair <int, string> >(); reportOptions.Add(new KeyValuePair <int, string>(1, "CutSheet")); reportOptions.Add(new KeyValuePair <int, string>(2, "Style")); reportOptions.Add(new KeyValuePair <int, string>(3, "Colour")); reportOptions.Add(new KeyValuePair <int, string>(4, "Style By Colour")); reportOptions.Add(new KeyValuePair <int, string>(5, "CutSheet By Style By Colour")); cmboReportOptions.DataSource = reportOptions; cmboReportOptions.ValueMember = "Key"; cmboReportOptions.DisplayMember = "Value"; cmboReportOptions.SelectedIndex = -1; QueryParms = new CMTQueryParameters(); repo = new CMTRepository(); using (var context = new TTI2Entities()) { var Existing = context.TLADM_Departments.Where(x => x.Dep_IsCMT).ToList(); foreach (var Record in Existing) { cmboDepartment.Items.Add(new CMT.CheckComboBoxItem(Record.Dep_Id, Record.Dep_Description, false)); } var Styles = context.TLADM_Styles.ToList(); foreach (var Record in Styles) { comboStyles.Items.Add(new CMT.CheckComboBoxItem(Record.Sty_Id, Record.Sty_Description, false)); } var Colours = context.TLADM_Colours.OrderBy(x => x.Col_Display).ToList(); foreach (var Colour in Colours) { comboColours.Items.Add(new CMT.CheckComboBoxItem(Colour.Col_Id, Colour.Col_Display, false)); } var Sizes = context.TLADM_Sizes.ToList(); foreach (var Size in Sizes) { comboSizes.Items.Add(new CMT.CheckComboBoxItem(Size.SI_id, Size.SI_Description, false)); } } formloaded = true; }
public frmCMTFinishedWAnalysis() { InitializeComponent(); //-------------------------------------------------------- // wire up the check state changed event //-------------------------------------------------------------------------------------------------------- this.cmboFactory.CheckStateChanged += new System.EventHandler(this.cmboDepartment_CheckStateChanged); this.cmboStyle.CheckStateChanged += new EventHandler(this.cmboStyle_CheckStateChanged); this.cmboColour.CheckStateChanged += new System.EventHandler(this.cmboColour_CheckStateChanged); this.cmboSize.CheckStateChanged += new System.EventHandler(this.cmboSize_CheckStateChanged); repo = new CMTRepository(); core = new Util(); txtPercentage.KeyDown += core.txtWin_KeyDownJI; txtPercentage.KeyPress += core.txtWin_KeyPress; }
public frmCMTDeliveryNoteReprint() { InitializeComponent(); dataGridView1.AllowUserToAddRows = false; dataGridView1.AllowUserToOrderColumns = false; //Initialise the dataGrid //------------------------------------ oTxtA = new DataGridViewTextBoxColumn(); // 0 Record Key oTxtA.HeaderText = "Key"; oTxtA.ValueType = typeof(int); oTxtA.Visible = false; oTxtA.ValueType = typeof(Int32); dataGridView1.Columns.Add(oTxtA); oChkA = new DataGridViewCheckBoxColumn(); // 1 Check Box oChkA.ValueType = typeof(Boolean); oChkA.HeaderText = "Select"; dataGridView1.Columns.Add(oChkA); oTxtB = new DataGridViewTextBoxColumn(); // 2 Delivery Note No oTxtB.HeaderText = "Delivery Note No"; oTxtB.ValueType = typeof(Int32); dataGridView1.Columns.Add(oTxtB); oTxtB.ReadOnly = true; oTxtC = new DataGridViewTextBoxColumn(); // 3 Picking List No oTxtC.HeaderText = "Picking List No"; oTxtC.ValueType = typeof(Int32); oTxtC.ReadOnly = true; dataGridView1.Columns.Add(oTxtC); oTxtC = new DataGridViewTextBoxColumn(); // 4 Date oTxtC.HeaderText = "Picking List No"; oTxtC.ValueType = typeof(DateTime); oTxtC.ReadOnly = true; dataGridView1.Columns.Add(oTxtC); repo = new CMTRepository(); }
private void ProdByPeriodSel_Load(object sender, EventArgs e) { formloaded = false; ReportSort = 0; QueryParms = new CMTQueryParameters(); repo = new CMTRepository(); using (var context = new TTI2Entities()) { var Factories = context.TLADM_Departments.Where(x => x.Dep_IsCMT).ToList(); foreach (var Factory in Factories) { cmboFactory.Items.Add(new CheckComboBoxItem(Factory.Dep_Id, Factory.Dep_Description, false)); } var Qualities = context.TLADM_Styles.ToList(); foreach (var Quality in Qualities) { cmboQuality.Items.Add(new CheckComboBoxItem(Quality.Sty_Id, Quality.Sty_Description, false)); } if (_Prod) { var Sizes = context.TLADM_Sizes.ToList(); foreach (var Size in Sizes) { cmboSize.Items.Add(new CheckComboBoxItem(Size.SI_id, Size.SI_Description, false)); } groupBox1.Visible = true; } else { cmboSize.Visible = false; label4.Visible = false; groupBox1.Visible = false; } var Colours = context.TLADM_Colours.OrderBy(x => x.Col_Display).ToList(); foreach (var Colour in Colours) { cmboColour.Items.Add(new CheckComboBoxItem(Colour.Col_Id, Colour.Col_Display, false)); } } var reportOptions = new BindingList <KeyValuePair <int, string> >(); if (_Prod) { reportOptions.Add(new KeyValuePair <int, string>(1, "Line")); reportOptions.Add(new KeyValuePair <int, string>(2, "Style")); } else { reportOptions.Add(new KeyValuePair <int, string>(4, "CMT")); } cmboReportOptions.DataSource = reportOptions; cmboReportOptions.ValueMember = "Key"; cmboReportOptions.DisplayMember = "Value"; cmboReportOptions.SelectedIndex = -1; //-------------------------------------------------------- // wire up the check state changed event //-------------------------------------------------------------------------------------------------------- this.cmboFactory.CheckStateChanged += new System.EventHandler(this.cmboFactorys_CheckStateChanged); this.cmboQuality.CheckStateChanged += new System.EventHandler(this.cmboQualities_CheckStateChanged); this.cmboSize.CheckStateChanged += new System.EventHandler(this.cmboSizes_CheckStateChanged); this.cmboColour.CheckStateChanged += new System.EventHandler(this.cmboColours_CheckStateChanged); formloaded = true; }
public frmPanelStock() { InitializeComponent(); repo = new CMTRepository(); this.cmboWarehouses.CheckStateChanged += new System.EventHandler(this.cmboWareHouse_CheckStateChanged); }