public void OrderList() { IncommingService service = new IncommingService(); OList = service.OrderList(); dgvOrder.DataSource = OList; }
public void Incomming() { IncommingService service = new IncommingService(); list = service.IncommingStatus(); dgvIncomming.DataSource = list; }
private void newBtns1_btnWait_Event(object sender, EventArgs e) { IncommingService service = new IncommingService(); List <IncommingVO> list = new List <IncommingVO>(); IncommingVO vo; foreach (DataGridViewRow row in dgvOrder.Rows) { bool bCheck = (bool)row.Cells["chk"].EditedFormattedValue; if (bCheck) { vo = new IncommingVO(); vo.incomming_count = Convert.ToInt32(row.Cells["order_count"].Value); vo.incomming_rep = row.Cells["user_name"].Value.ToString(); vo.order_id = Convert.ToInt32(row.Cells["order_id"].Value); list.Add(vo); } } if (list.Count == 0) { MessageBox.Show("입고대기 목록을 선택해주십시오."); } else { if (service.IncommingWait(list) == 1) { MessageBox.Show("입고대기 처리완료"); OrderList(); } } }
public ElishAppHub(IncommingService incomingService) { _incomingService = incomingService; }