public void TEST_8() { var drug = _자낙스정_2; var result = BarcodeParser.Parse(drug); Assert.AreEqual(result.표준코드, "8806489006630"); Assert.AreEqual(result.제조번호, "B1234"); Assert.AreEqual(result.일련번호, "0000000010"); Assert.AreEqual(result.효기한, "20170505"); }
public void TEST_1_Serial() { //_자낙스정_2_Serial = "01088064890066301717050510B1234210000000010"; var drug = _자낙스정_2_Serial; var result = BarcodeParser.Parse(drug); Assert.AreEqual(result.표준코드, "8806489006630"); Assert.AreEqual(result.제조번호, "B1234"); Assert.AreEqual(result.일련번호, "0000000010"); Assert.AreEqual(result.효기한, "20170505"); }
/// <summary> /// Create a new cannibalization control /// </summary> /// <param name="postgres">Postgres object</param> /// <param name="oracle">Oracle object</param> public CannibalizationControl(Postgres postgres, OracleDB oracle, Search search, BarcodeParser barcodeParser) { this.postgres = postgres; this.oracle = oracle; this.barcodeParser = barcodeParser; this.search = search; InitializeComponent(); // Set control specific settings kitQueuePanel.AutoScroll = true; // Event Handlers this.cannibalizeSearchButton.Click += new EventHandler(this.cannibalizeSearchButton_Click); this.cannibalizeResetButton.Click += new EventHandler(this.cannibalizeResetButton_Click); this.kitQueueTable.CellContentClick += new DataGridViewCellEventHandler(this.kitQueueTable_CellContentClick); }
public void TEST_3() { var drug = _데파스정_1; if (IsBarcode(drug)) { var GSIdx = drug.IndexOf(' '); drug = drug.Remove(GSIdx, 1).Insert(GSIdx, ((char)29).ToString()); } var result = BarcodeParser.Parse(drug); Assert.AreEqual(result.표준코드, "8806433003128"); Assert.AreEqual(result.제조번호, "CE007"); Assert.AreEqual(result.일련번호, "171222L4G5928"); Assert.AreEqual(result.효기한, "20201113"); }
public void TEST_2() { var 스틸녹스정 = _스틸녹스정_2; if (IsBarcode(스틸녹스정)) { var GSIdx = 스틸녹스정.IndexOf(' '); 스틸녹스정 = 스틸녹스정.Remove(GSIdx, 1).Insert(GSIdx, ((char)29).ToString()); } var result = BarcodeParser.Parse(스틸녹스정); Assert.AreEqual(result.표준코드, "8806521006437"); Assert.AreEqual(result.제조번호, "SNFW001"); Assert.AreEqual(result.일련번호, "A02031781GWH79"); Assert.AreEqual(result.효기한, "20210910"); }
public void TEST_1() { var 스틸녹스정 = _스틸녹스정_1; if (IsBarcode(스틸녹스정)) { var GSIdx = 스틸녹스정.IndexOf(' '); 스틸녹스정 = 스틸녹스정.Remove(GSIdx, 1).Insert(GSIdx, ((char)29).ToString()); } var result = BarcodeParser.Parse(스틸녹스정); Assert.AreEqual("8806521006437", result.표준코드); Assert.AreEqual("SNFV015", result.제조번호); Assert.AreEqual("A02030P3358KT0", result.일련번호); Assert.AreEqual("20210725", result.효기한); }
public void TEST_2_Serial() { var drug = _스틸녹스_1_Serial; if (IsBarcode(drug)) { var GSIdx = drug.IndexOf(' '); drug = drug.Remove(GSIdx, 1).Insert(GSIdx, ((char)29).ToString()); } var result = BarcodeParser.Parse(drug); Assert.AreEqual("8806521006437", result.표준코드); Assert.AreEqual("SNFV015", result.제조번호); Assert.AreEqual("A02030P3358KT0", result.일련번호); Assert.AreEqual("20210725", result.효기한); }
public void TEST_7() { var drug = _자낙스정_2; if (IsBarcode(drug)) { var GSIdx = drug.IndexOf(' '); drug = drug.Remove(GSIdx, 1).Insert(GSIdx, ((char)29).ToString()); } var result = BarcodeParser.Parse(drug); Assert.AreEqual(result.표준코드, "8806489006630"); Assert.AreEqual(result.제조번호, "B1234"); Assert.AreEqual(result.일련번호, "0000000010"); Assert.AreEqual(result.효기한, "20170505"); }
public void TEST_6() { var drug = _아네폴주사; if (IsBarcode(drug)) { var GSIdx = drug.IndexOf(' '); drug = drug.Remove(GSIdx, 1).Insert(GSIdx, ((char)29).ToString()); } var result = BarcodeParser.Parse(drug); Assert.AreEqual(result.표준코드, "8806578045731"); Assert.AreEqual(result.제조번호, "A1234"); Assert.AreEqual(result.일련번호, "0000000006"); Assert.AreEqual(result.효기한, "20170501"); }
public void TEST_5() { var drug = _자낙스정_1; if (IsBarcode(drug)) { var GSIdx = drug.IndexOf(' '); drug = drug.Remove(GSIdx, 1).Insert(GSIdx, ((char)29).ToString()); } var result = BarcodeParser.Parse(drug); Assert.AreEqual(result.표준코드, "8806489006647"); Assert.AreEqual(result.제조번호, "N42949"); Assert.AreEqual(result.일련번호, "532300874225"); Assert.AreEqual(result.효기한, "20181014"); }
/// <summary> /// Main constructor /// </summary> /// <param name="postgres">Postgres database object</param> /// <param name="oracle">OracleDB database object</param> public MainWindow(Postgres postgres, OracleDB oracle) { // Instantiate connections this.postgres = postgres; this.oracle = oracle; // Instantiate tools barcodeParser = new BarcodeParser(postgres, oracle); search = new Search(postgres, oracle, barcodeParser); CannibalizationControl cc = new CannibalizationControl(this.postgres, this.oracle, this.search, this.barcodeParser); cc.Dock = DockStyle.Fill; // Initialize Components onto the form InitializeComponent(); //Load controls tabCannibalize.Controls.Add(cc); }
public void CanBarcodeParserObjectCreat() { var obj = new BarcodeParser(""); Assert.IsNotNull(obj); }
/// <summary> /// Searches through the IW for the given information /// </summary> public Search(Postgres postgres, OracleDB oracle, BarcodeParser parser) { this.postgres = postgres; this.oracle = oracle; this.parser = parser; }