Ejemplo n.º 1
0
        //添加
        private void btnAdd_Click(object sender, EventArgs e)
        {
            EditWellInfoForm ef = new EditWellInfoForm(null, true, false, null);

            ef.ShowDialog();
            if (ef.DialogResult == DialogResult.OK)
            {
                List <WellInfo> list = wellInfoService.GetWellInfo_List(ef.GetTerminal_ID());
                string          json = JsonConvert.SerializeObject(list);
                WebBrower.webBrower.ExecuteScriptAsync("addMaker", json);
            }
            DataLoade(null);
        }
Ejemplo n.º 2
0
        public void UpdateContent(IJavascriptCallback javascriptCallback)
        {
            EditWellInfoForm ef = new EditWellInfoForm(terminal_ID, false, false, null);

            ef.ShowDialog();
            if (ef.DialogResult == DialogResult.OK)
            {
                Task.Run(async() =>
                {
                    using (javascriptCallback)
                    {
                        list = wellInfoService.GetWellInfo_List(terminal_ID);
                        json = JsonConvert.SerializeObject(list);
                        await javascriptCallback.ExecuteAsync(json);
                    }
                });
            }
        }
Ejemplo n.º 3
0
        public void AddMaker(IJavascriptCallback javascriptCallback)
        {
            EditWellInfoForm ef = new EditWellInfoForm(null, true, true, menuPositon);

            ef.ShowDialog();
            terminal_ID = ef.GetTerminal_ID();
            if (ef.DialogResult == DialogResult.OK)
            {
                Task.Run(async() =>
                {
                    using (javascriptCallback)
                    {
                        list = wellInfoService.GetWellInfo_List(terminal_ID);
                        json = JsonConvert.SerializeObject(list);
                        await javascriptCallback.ExecuteAsync(json);
                    }
                });
            }
        }