//查找 private void btn_Search_Click(object sender, System.Windows.RoutedEventArgs e) { try { if (txb_SN_Or_Order_2.Text == "") { Maticsoft.BLL.ICls_Flow I_Flow = new Maticsoft.BLL.Cls_Flow(); //获取已保存工序 int MaxProcessOrder = 0; int YetOverFlowCount = 0; I_Flow.Get_Bar_YetOverFlow(txb_SN_Or_Order.Text, out MaxProcessOrder, out YetOverFlowCount, ref _Yet_ProcessFlow); } else { ExportProcessFlow(txb_SN_Or_Order.Text, txb_SN_Or_Order_2.Text); } } catch (Exception ex) { My_MessageBox.My_MessageBox_Query(ex.Message); } }
private void ExportProcessFlow(string _stratSN, string _endSN) { Maticsoft.BLL.ICls_Flow I_Flow = new Maticsoft.BLL.Cls_Flow(); //获取已保存工序 int MaxProcessOrder = 0; int YetOverFlowCount = 0; long l_startSN = long.Parse(_stratSN); long l_endSN = long.Parse(_endSN); _Yet_ProcessFlow.Clear(); for (long tem = l_startSN; tem <= l_endSN; tem++) { ObservableCollection <Maticsoft.Model.e_ProcessFlow> _TemYet_ProcessFlow = new ObservableCollection <Maticsoft.Model.e_ProcessFlow>(); I_Flow.Get_Bar_YetOverFlow(tem.ToString(), out MaxProcessOrder, out YetOverFlowCount, ref _TemYet_ProcessFlow); foreach (Maticsoft.Model.e_ProcessFlow te in _TemYet_ProcessFlow) { _Yet_ProcessFlow.Add(te); } } }