示例#1
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            var           fm  = new fileMan();
            List <string> jum = fm.jumlah("c:\\tes\\xls\\tes.xlsx", "xlsx");

            jum.ForEach(el => Console.WriteLine(el));
        }
示例#2
0
        private void button2_Click(object sender, EventArgs e)
        {
            var fm = new fileMan();


            var ws = new wsClass();

            string[] pesan = fm.getFile(outbox);
            string   pes   = ws.invokeProd("", "", pesan[0]);

            MessageBox.Show(pes);
        }
示例#3
0
        private void button4_Click(object sender, EventArgs e)
        {
            //string e = "";
            var fm = new fileMan();
            var ws = new wsClass();

            string[] files = fm.getFile(outbox);
            string   pes   = "";

            string[] fName = null;
            if (files != null && files.Length > 0)
            {
                foreach (string i in files)
                {
                    try
                    {
                        pes = ws.invokeProd("", "", i);
                    }
                    catch (Exception ex)
                    {
                        System.Console.WriteLine(ex);
                    }
                    //string[] has = pes.Split('|');
                    //fName = i.Split('\\');
                    string namaFile = "";// fName[fName.Length - 1];
                    System.Console.WriteLine(namaFile + " " + pes);
                    //if (has[0] == "failed")
                    //{
                    //    fm.moveFile(i, "c:\\tes\\error\\");
                    //}
                    //else
                    //{
                    //    fm.moveFile(i, "c:\\tes\\success\\");
                    //}
                }
            }
        }
示例#4
0
        private void button3_Click_1(object sender, EventArgs e)
        {
            var fm = new fileMan();

            fm.xlsToTxt("c:\\tes\\xls\\satu.xlsx", "xlsx");
        }
示例#5
0
 private void button3_Click(object sender, EventArgs e)
 {
     var fm = new fileMan();
     //int jum = fm.jumlah("c:\\tes\\MB51Jan-Apr.xlsx", "xlsx");
     //MessageBox.Show(jum.ToString());
 }