| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | public static void GraphLine_XB(DataGridView grdMain, int MainIDCol, int SubIDCol, string s, ref long n) |
| | | { |
| | | long HMainID = 0; |
| | | bool b = false; |
| | | //å¾ªç¯ææè¡ |
| | | for (int i = 0; i < grdMain.RowCount; i++) |
| | | { |
| | | if (HMainID == 0) |
| | | { |
| | | HMainID = ClsPub.isLong(grdMain.Rows[i].Cells[MainIDCol].Value); |
| | | n++; |
| | | } |
| | | else |
| | | { |
| | | if (HMainID == ClsPub.isLong(grdMain.Rows[i].Cells[MainIDCol].Value)) |
| | | { |
| | | if (s == "å¦") |
| | | { |
| | | //åºåæ§æ¸
空 |
| | | SetDataGrid(grdMain, i, MainIDCol + 1, i, SubIDCol - 1, ""); |
| | | |
| | | } |
| | | } |
| | | else |
| | | { |
| | | HMainID = ClsPub.isLong(grdMain.Rows[i].Cells[MainIDCol].Value); |
| | | b = !b; |
| | | n++; |
| | | } |
| | | } |
| | | if (b) |
| | | { |
| | | grdMain.Rows[i].DefaultCellStyle.BackColor = Color.Black; |
| | | } |
| | | else |
| | | { |
| | | grdMain.Rows[i].DefaultCellStyle.BackColor = Color.Black; |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | //è®¾ç½®ç½æ ¼ |
| | | public static void SetDataGrid(DataGridView grdMain, int BRow, int BCol, int ERow, int ECol, string sText) |
| | | { |
| | |
| | | |
| | | } |
| | | |
| | | //è®¾ç½®ç½æ ¼ |
| | | public static void SetDataGrid_XB(DataGridView grdMain, int BRow, int BCol, int ERow, int ECol, string sText) |
| | | { |
| | | for (int i = BRow; i <= ERow; i++) |
| | | { |
| | | for (int j = BCol; j <= ECol; j++) |
| | | { |
| | | grdMain.Rows[i].Cells[j].Value = DBNull.Value; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | //ç»ç½æ ¼ä¸çº¿ |
| | | /// <summary> |
| | | /// ç»ç½æ ¼ä¸çº¿ |