| | |
| | | s = "否"; |
| | | Xt_BaseBillFun.DisplayGrid(this.grdMain, base.Name, s, frCol); |
| | | } |
| | | int HEDateCol = Fun_GetCol("计划开工日期"); |
| | | DateTime oNow = DateTime.Today.Date; |
| | | for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | { |
| | | if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow) |
| | | { |
| | | grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red; |
| | | } |
| | | } |
| | | //int HEDateCol = Fun_GetCol("计划开工日期"); |
| | | //DateTime oNow = DateTime.Today.Date; |
| | | //for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | //{ |
| | | // if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow) |
| | | // { |
| | | // grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red; |
| | | // } |
| | | //} |
| | | s = "否"; |
| | | int MainIDCol = Fun_GetCol("hmainid"); |
| | | int SubIDCol = Fun_GetCol("hsubid"); |
| | |
| | | grdMain.DataSource = null; |
| | | grdMain.DataSource = DSet.Tables[0].DefaultView; |
| | | |
| | | int HEDateCol = Fun_GetCol("计划开工日期"); |
| | | DateTime oNow = DateTime.Today.Date; |
| | | for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | { |
| | | if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow) |
| | | { |
| | | grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red; |
| | | } |
| | | } |
| | | //int HEDateCol = Fun_GetCol("计划开工日期"); |
| | | //DateTime oNow = DateTime.Today.Date; |
| | | //for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | //{ |
| | | // if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow) |
| | | // { |
| | | // grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red; |
| | | // } |
| | | //} |
| | | |
| | | |
| | | int MainIDCol = Fun_GetCol("hmainid"); |
| | |
| | | HQty = 0; |
| | | timer1.Enabled = true; |
| | | } |
| | | int HEDateCol = Fun_GetCol("计划开工日期"); |
| | | DateTime oNow = DateTime.Today.Date; |
| | | for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | { |
| | | if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow) |
| | | { |
| | | grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red; |
| | | } |
| | | } |
| | | //int HEDateCol = Fun_GetCol("计划开工日期"); |
| | | //DateTime oNow = DateTime.Today.Date; |
| | | //for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | //{ |
| | | // if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow) |
| | | // { |
| | | // grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red; |
| | | // } |
| | | //} |
| | | } |
| | | |
| | | private void toolStripButton1_Click(object sender, EventArgs e) |