예제 #1
0
        public base_Flow InitFlow(int flag)
        {
            if (flag == Macro.FlowFlag.query_issue_record)
            {
                flow = new Query_issue_recordFlow(issueHelp);
            }

            if (flag == Macro.FlowFlag.query_recpt_record)
            {
                flow = new Query_recpt_recordFlow(issueHelp);
            }
            return flow;
        }
예제 #2
0
        public base_Flow InitFlow(int flag)
        {
            if (flag == Macro.FlowFlag.query_issue_record)
            {
                flow = new Query_issue_recordFlow(issueHelp);
            }

            if (flag == Macro.FlowFlag.query_recpt_record)
            {
                flow = new Query_recpt_recordFlow(issueHelp);
            }
            return(flow);
        }
 public void AddToList_Filter(ref List<string> arg)
 {
     listView1.Items.Clear();
     try
     {
         ListViewItem item = null;
         string[] inputParamters = new string[] { arg[1] };
         List<string[]> result = new List<string[]>();
         bf = flow.InitFlow(flow.flowFlag.Get_query_recpt_record());
         bf.Do(ref result, ref inputParamters);
         for (int i = 0; i < result.Count; i++)
         {
             item = new ListViewItem(result[i]);
             listView1.Items.Add(item);
         }
     }
     catch (System.Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }