private void GetProduce() { if (dgvWorkList.Rows.Count > 0) { string id = SettingID(dgvWorkList, 0); try { ProduceService service = new ProduceService(); produces = service.GetProduceByWorkID(id); } catch (Exception err) { Log.WriteError(err.Message, err); } } }
private void GetPerformance() { if (dgvProduce.SelectedRows.Count > 0) { string id = SettingID(dgvProduce, 1); try { ProduceService service = new ProduceService(); performances = service.GetPerformanceByProduceID(id); } catch (Exception err) { Log.WriteError(err.Message, err); } } }