private string SeleteCell(string rows, string cols) { Class_count[] Ctemp = new Class_count[selectTemp.Count]; string count_values = ""; for (int j = 0; j < selectTemp.Count; j++) { Ctemp[j] = new Class_count(); Ctemp[j] = (Class_count)selectTemp[j]; if (Ctemp[j].Rowindex == rows && Ctemp[j].Colsindex == cols) { count_values = "0"; return(count_values); } } return(""); }
private void flgView_DoubleClick(object sender, EventArgs e) { if (flgView.RowSel > 0) { lists.Clear(); string Bed = flgView[flgView.RowSel, 0].ToString(); string Pid_Name = flgView[flgView.RowSel, 1].ToString(); string PID = flgView[flgView.RowSel, 11].ToString(); string Section_name = flgView[flgView.RowSel, 12].ToString(); string Sickarea_name = flgView[flgView.RowSel, 13].ToString(); string Pid_IDS = flgView[flgView.RowSel, 17].ToString(); string pids = Class_Blood.GetSelectItemId(PID); if (PID != "") { if (flgView[0, flgView.ColSel].ToString().Trim() == "打印") { DataSet ds = Class_Blood.GETDaes(pids); frmBlood_Sugar_Record_Print bgprit = new frmBlood_Sugar_Record_Print(ds, null, Bed, Pid_Name, PID, Section_name, Sickarea_name); bgprit.Show(); } else { if (flgView.Rows.Count > 0) { if (flgView[flgView.RowSel, flgView.ColSel] != null) { SelectCellVal = flgView[flgView.RowSel, flgView.ColSel].ToString(); if (SelectCellVal != "") { //RowIndex = 2; Class_count C_count = new Class_count(); RowIndex = flgView.RowSel; ColIndex = flgView.ColSel; C_count.Selectvalues = SelectCellVal; C_count.Rowindex = RowIndex.ToString(); C_count.Colsindex = ColIndex.ToString(); selectTemp.Add(C_count); } } } } } } }
private void flgView_DoubleClick(object sender, EventArgs e) { if (flgView.RowSel > 1) { if (flgView.Rows.Count > 2) { if (flgView[flgView.RowSel, flgView.ColSel] != null) { SelectCellVal = flgView[flgView.RowSel, flgView.ColSel].ToString(); if (SelectCellVal != "") { //RowIndex = 2; Class_count C_count = new Class_count(); RowIndex = flgView.RowSel; ColIndex = flgView.ColSel; C_count.Selectvalues = SelectCellVal; C_count.Rowindex = RowIndex.ToString(); C_count.Colsindex = ColIndex.ToString(); selectTemp.Add(C_count); } } } } }