Esempio n. 1
0
        public Form1()
        {
            InitializeComponent();
            CheckForIllegalCrossThreadCalls = false;
            //this.Text += "  Version:" + Application.ProductVersion;

            string title = MCSFramework.Common.ConfigHelper.GetConfigString("PageTitle");
            if (title != null)
            {
                this.Text += "  " + title;
            }

            _importsevice = new ImportExcel();
            _importsevice.OnMessage += new ImportExcel.MessageHandel(_service_OnMessage);
            bt_Begin_Click(null, null);
        }
Esempio n. 2
0
 private void toolStripButton2_Click(object sender, EventArgs e)
 {
     ImportExcel i = new ImportExcel();
     i.ImportSAPService();
 }
Esempio n. 3
0
        void _service_OnMessage(object Sender, ImportExcel.MessageEventArgs Args)
        {
            if (tbx_Message.Text.Length > 30000) tbx_Message.Text = "";

            tbx_Message.AppendText(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
            if (Args.Task != "") tbx_Message.AppendText(" 当前操作:" + Args.Task.ToString());
            tbx_Message.AppendText("\r\n");
            tbx_Message.AppendText("消息内容:" + Args.Message + "\r\n");
            tbx_Message.AppendText("\r\n");
        }
Esempio n. 4
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            ImportExcel i = new ImportExcel();

            i.ImportSAPService();
        }