コード例 #1
0
ファイル: flow.cs プロジェクト: lihongtao8209/myComsume_Recpt
        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);
        }
コード例 #3
0
 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);
     }
 }