示例#1
0
 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);
         }
     }
 }
示例#2
0
 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);
         }
     }
 }