示例#1
0
        private void btnPeDataDownLoad_Click(object sender, EventArgs e)
        {
            string where = string.Format("user_no like '%{0}%'", txtType.Text.Trim());
            List <Model.TableModel.Sys_user> list = DbEngine.QueryList <Model.TableModel.Sys_user>(where);

            if (list.Count > 0)
            {
                Ctrl.DbOperateCtrl dbOperateCtrl = new Ctrl.DbOperateCtrl(EqmNo);
                object             state         = false;

                bool flag = dbOperateCtrl.PeDataDownLoad(state);
                if (flag)
                {
                    frmMsgBox msg = new frmMsgBox("下载成功!");
                    msg.ShowDialog();
                }
                else
                {
                    frmMsgBox msg = new frmMsgBox("下载失败!");
                    msg.ShowDialog();
                }
                this.Close();
            }
            else
            {
                frmMsgBox msg = new frmMsgBox("用户校验失败无法上传!");
                msg.Show();
            }
        }
示例#2
0
文件: frmPe.cs 项目: radtek/Danfoss
        private void btnLocalDataUpload_Click(object sender, EventArgs e)
        {
            Ctrl.DbOperateCtrl dbOperateCtrl = new Ctrl.DbOperateCtrl();

            bool b = true;

            if (b)
            {
                Ctrl.MsgFrmCtrl.ShowResult("上传成功!");
            }
            else
            {
                Ctrl.MsgFrmCtrl.ShowResult("上传失败!");
                //msgFrm.ShowDialog();
            }
        }