public BomOfferNew(BomOfferTypeEnum bomOfferType, int custVenId) { InitializeComponent(); this.bomOfferType = bomOfferType; this.custVenId = custVenId; if (this.bomOfferType == BomOfferTypeEnum.Excess) { this.Text = "Add a New Excess"; } else if (this.bomOfferType == BomOfferTypeEnum.BOM) { this.Text = "Add a New BOM"; } else { this.Text = "Add a New Company"; } }
public BomOfferNew(BomOfferTypeEnum bomOfferType, int custVenId) { InitializeComponent(); this.bomOfferType = bomOfferType; this.custVenId = custVenId; if (this.bomOfferType==BomOfferTypeEnum.Excess) { this.Text = "Add a New Excess"; } else if (this.bomOfferType == BomOfferTypeEnum.BOM) { this.Text = "Add a New BOM"; } else { this.Text = "Add a New Company"; } }
public BomOfferNewCustVen(BomOfferTypeEnum bomOfferType) { InitializeComponent(); this.bomOfferType = bomOfferType; if (bomOfferType == BomOfferTypeEnum.Excess) { this.Text = "Add a Vendor's Info"; label1.Text = "Vendor Name*:"; } else if (bomOfferType == BomOfferTypeEnum.BOM) { this.Text = "Add a Customer's Info"; label1.Text = "Customer Name*:"; } else { this.Text = "Add a Company's Info"; label1.Text = "Company Name*:"; } }
public BomOfferNewCustVen(BomOfferTypeEnum bomOfferType) { InitializeComponent(); this.bomOfferType = bomOfferType; if (bomOfferType==BomOfferTypeEnum.Excess) { this.Text = "Add a Vendor's Info"; label1.Text="Vendor Name*:"; } else if (bomOfferType == BomOfferTypeEnum.BOM) { this.Text = "Add a Customer's Info"; label1.Text = "Customer Name*:"; } else { this.Text = "Add a Company's Info"; label1.Text = "Company Name*:"; } }
public BomOfferCustVendor(BomOfferTypeEnum bomOfferType) : this() { this.bomOfferType = bomOfferType; switch (bomOfferType) { case BomOfferTypeEnum.BOM: this.Text = "Customer For BOMs"; this.toolStripButton1.Text = "New Customer"; this.tsbImportFromExcel.Text = "Import BOM"; this.tsbNewBomOff.Text = "New BOM"; this.tsbDelete.Text="Delete"; this.tscbSearchBy.Items.Add("Customer Name"); break; case BomOfferTypeEnum.Excess: this.Text = "Vendors For Excess"; this.toolStripButton1.Text = "New Vendor"; this.tsbImportFromExcel.Text = "Import Offer"; this.tsbNewBomOff.Text = "New Offer"; this.tsbDelete.Text = "Delete"; this.tscbSearchBy.Items.Add("Vendor Name"); break; case BomOfferTypeEnum.LTOffer: this.Text = "Company For L/T Offer"; this.toolStripButton1.Text = "New Company"; this.tsbImportFromExcel.Text = "Import Offer"; this.tsbNewBomOff.Text = "New Offer"; this.tsbDelete.Text = "Delete"; this.tscbSearchBy.Items.Add("Company Name"); break; } FillTheDataGridViewColumn(); }
public BomOfferCustVendor(BomOfferTypeEnum bomOfferType) : this() { this.bomOfferType = bomOfferType; switch (bomOfferType) { case BomOfferTypeEnum.BOM: this.Text = "Customer For BOMs"; this.toolStripButton1.Text = "New Customer"; this.tsbImportFromExcel.Text = "Import BOM"; this.tsbNewBomOff.Text = "New BOM"; this.tsbDelete.Text = "Delete"; this.tscbSearchBy.Items.Add("Customer Name"); break; case BomOfferTypeEnum.Excess: this.Text = "Vendors For Excess"; this.toolStripButton1.Text = "New Vendor"; this.tsbImportFromExcel.Text = "Import Offer"; this.tsbNewBomOff.Text = "New Offer"; this.tsbDelete.Text = "Delete"; this.tscbSearchBy.Items.Add("Vendor Name"); break; case BomOfferTypeEnum.LTOffer: this.Text = "Company For L/T Offer"; this.toolStripButton1.Text = "New Company"; this.tsbImportFromExcel.Text = "Import Offer"; this.tsbNewBomOff.Text = "New Offer"; this.tsbDelete.Text = "Delete"; this.tscbSearchBy.Items.Add("Company Name"); break; } FillTheDataGridViewColumn(); }
public BomOfferList(BomOfferTypeEnum bomOfferType, int custVenId) : this(bomOfferType) { this.listbyCustVen = true; this.custVenId = custVenId; }
public BomOfferList(BomOfferTypeEnum bomOfferType) { InitializeComponent(); this.bomOfferType = bomOfferType; FillTheDataGridColumn(); }