Exemple #1
0
        private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ElectricLoadCal elc = new ElectricLoadCal();

            //TreeListNode node = treeList1.FocusedNode;
            if (strID == null)
            {
                MessageBox.Show("请先选择电气计算方案!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            //WaitDialogForm wait = null;
            try {
                //wait = new WaitDialogForm("", "正在处理数据, 请稍候...");
                //strID = node["ID"].ToString();
                elc.LFCER(strID, 2, 100);
                //elc.ALLShortThread(strID, this.ProjectUID, n3, 100, wait);
                //wait.Close();
            } catch (Exception exc) {
                Debug.Fail(exc.Message);
                Itop.Client.Common.HandleException.TryCatch(exc);
                //wait.Close();
                return;
            }
        }
Exemple #2
0
        private void barORP_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ElectricLoadCal elc = new ElectricLoadCal();

            // TreeListNode node = treeList1.FocusedNode;
            if (string.IsNullOrEmpty(strID))
            {
                MessageBox.Show("请先选择电气计算方案!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            //strID = node["ID"].ToString();
            elc.ORP(strID, 100);
        }
Exemple #3
0
        protected override void Query()
        {
            ElectricLoadCal elc = new ElectricLoadCal();

            //TreeListNode node = treeList1.FocusedNode;
            //if (node == null) {
            //    MessageBox.Show("请先选择电气计算方案!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            //    return;
            //}
            //strID = node["ID"].ToString();
            elc.LFC(strID, 1, 100);
            // base.Query();
        }
Exemple #4
0
        private void barNL_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ElectricLoadCal elc  = new ElectricLoadCal();
            TreeListNode    node = treeList1.FocusedNode;

            if (node == null)
            {
                MessageBox.Show("请先选择电气计算方案!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            strID = node["ID"].ToString();
            elc.LFCERS(strID, 4, 100);
        }
Exemple #5
0
        private void barCheck_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ElectricLoadCal elc = new ElectricLoadCal();

            //TreeListNode node = treeList1.FocusedNode;
            if (strID == null)
            {
                MessageBox.Show("请先选择电气计算方案!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            //strID = node["ID"].ToString();
            if (elc.DataCheck(strID))
            {
                MessageBox.Show("检测成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }