private void pingfentoolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (c1FlexGrid1.RowSel <= 0)
            {
                App.Msg("您还未选中要评分的人");
                return;
            }
            string  sql  = "select * from t_doc_grade where pid ='" + SetPingfen() + "' and alltypepf is not null ";
            string  sql1 = "select * from t_doc_grade where pid ='" + SetPingfen() + "' and sectiontypepf is not null ";
            DataSet ds   = App.GetDataSet(sql);
            DataSet ds1  = App.GetDataSet(sql1);

            if (ds.Tables[0].Rows.Count > 0)
            {
                App.Msg("该病案全院已评完!无法操作!");
                return;
            }
            if (ds1.Tables[0].Rows.Count > 0)
            {
                App.Msg("该病案科室已评完!无法操作!");
                return;
            }
            if (checkBox2.Checked == true)
            {
                strDOCType = "1";
            }
            else
            {
                strDOCType = "2";
            }
            frmGrade fg = new frmGrade(this, strText, true, strDOCType);

            fg.ShowDialog();
        }
Exemplo n.º 2
0
        private void ucC1FlexGrid1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            //if (e.Button == MouseButtons.Right)
            //{
            //    Point p = ucC1FlexGrid1.fg.PointToClient(Cursor.Position);
            //    if (ucC1FlexGrid1.fg.HitTest(e.X, e.Y).Row >= 1)// 判断他是否在信息行里面
            //    {
            //        contextMenuStripDeleteUpdate.Show(ucC1FlexGrid1, p);
            //    }
            //}

            int rows = ucC1FlexGrid1.fg.RowSel;

            if (rows > 0)
            {
                string fgid   = ucC1FlexGrid1.fg[ucC1FlexGrid1.fg.RowSel, "ID"] == null ? "" : ucC1FlexGrid1.fg[ucC1FlexGrid1.fg.RowSel, "ID"].ToString();
                string fgpid  = ucC1FlexGrid1.fg[ucC1FlexGrid1.fg.RowSel, "住院号"] == null ? "" : ucC1FlexGrid1.fg[ucC1FlexGrid1.fg.RowSel, "住院号"].ToString();
                string fgtime = ucC1FlexGrid1.fg[ucC1FlexGrid1.fg.RowSel, "评分时间"] == null ? "" : ucC1FlexGrid1.fg[ucC1FlexGrid1.fg.RowSel, "评分时间"].ToString();
                if (fgpid != "" && fgtime != "")
                {
                    frmGrade fGrade = new frmGrade(fgid, fgpid, fgtime);
                    fGrade.ShowDialog();
                }
            }
        }
Exemplo n.º 3
0
        private void simpleButton3_Click(object sender, EventArgs e)
        {
            frmGrade f = new frmGrade();

            f.type = "3";
            f.InitData(uid);
            f.Show();
            f.CK();
        }
        /// <summary>
        /// 编辑扣分值
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void 编辑ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (ucC1FlexGrid1.fg.RowSel <= 0)
            {
                App.Msg("您还未选中要编辑的人");
                return;
            }
            frmGrade fg = new frmGrade(this);

            //App.AddNewChildForm(fg);
            fg.ShowDialog();
        }
Exemplo n.º 5
0
        private void tsmlsws_Click(object sender, EventArgs e)
        {
            if (c1FlexGrid1.RowSel <= 0)
            {
                App.Msg("您还未选中要评分的人");
                return;
            }
            if (checkBox2.Checked == true)
            {
                strDOCType = "1";
            }
            else
            {
                strDOCType = "2";
            }
            frmGrade fg = new frmGrade(this, strText, false, strDOCType);

            fg.ShowDialog();
        }
        private void ucC1FlexGrid1_DoubleClick(object sender, EventArgs e)
        {
            ucC1FlexGrid1.fg.AllowEditing = false;
            int rows = ucC1FlexGrid1.fg.RowSel;

            if (rows > 0)
            {
                if (oldRow2 == rows)
                {
                    this.ucC1FlexGrid1.fg.Rows[rows].StyleNew.BackColor = ColorTranslator.FromHtml("#a8d4df");
                }
                else
                {
                    //如果不是头行
                    if (rows > 0)
                    {
                        //就改变背景色
                        this.ucC1FlexGrid1.fg.Rows[rows].StyleNew.BackColor = ColorTranslator.FromHtml("#a8d4df");
                    }
                    if (oldRow2 > 0 && dt.Rows.Count >= oldRow)
                    {
                        //定义上一次点击过的行还原
                        this.ucC1FlexGrid1.fg.Rows[oldRow2].StyleNew.BackColor = ucC1FlexGrid1.fg.BackColor;
                    }
                }
                string fgid   = ucC1FlexGrid1.fg[ucC1FlexGrid1.fg.RowSel, "ID"] == null ? "" : ucC1FlexGrid1.fg[ucC1FlexGrid1.fg.RowSel, "ID"].ToString();
                string fgpid  = ucC1FlexGrid1.fg[ucC1FlexGrid1.fg.RowSel, "住院号"] == null ? "" : ucC1FlexGrid1.fg[ucC1FlexGrid1.fg.RowSel, "住院号"].ToString();
                string fgtime = ucC1FlexGrid1.fg[ucC1FlexGrid1.fg.RowSel, "评分时间"] == null ? "" : ucC1FlexGrid1.fg[ucC1FlexGrid1.fg.RowSel, "评分时间"].ToString();
                if (fgpid != "" && fgtime != "")
                {
                    frmGrade fGrade = new frmGrade(fgid, fgpid, fgtime);
                    fGrade.ShowDialog();
                }
            }
            oldRow2 = rows;
        }