| | |
| | | //} |
| | | BCol = 7; |
| | | //è·å卿å
容 ï¼æ°éä¿¡æ¯ï¼ |
| | | for (int row = 0; row <= grdMain.RowCount - 1; row++) |
| | | { |
| | | for (int col = BCol; col <= grdMain.ColumnCount - 1; col++) |
| | | { |
| | | //HDeptID = DBUtility.ClsPub.isLong(grdMain.Rows[row].Cells[Fun_GetCol("HDeptID")].Value); |
| | | //HMaterID = DBUtility.ClsPub.isLong(grdMain.Columns[col].Tag); |
| | | //HEmpID = DBUtility.ClsPub.isLong(grdMain.Rows[row].Cells[Fun_GetCol("HEmpID")].Value); |
| | | //HProcID = DBUtility.ClsPub.isLong(grdMain.Rows[row].Cells[Fun_GetCol("HProcID")].Value); |
| | | DsQty = SubCn.RunProcReturn("exec h_p_CCBB", "Gy_Czygl"); |
| | | if (DsQty != null && DsQty.Tables[0].Rows.Count > 0) |
| | | { |
| | | //grdMain.Rows[row].Cells[col].Value = DBUtility.ClsPub.isDoule(DsQty.Tables[0].Rows[0]["HQty"], 2); |
| | | } |
| | | } |
| | | } |
| | | //for (int row = 0; row <= grdMain.RowCount - 1; row++) |
| | | //{ |
| | | // for (int col = BCol; col <= grdMain.ColumnCount - 1; col++) |
| | | // { |
| | | // //HDeptID = DBUtility.ClsPub.isLong(grdMain.Rows[row].Cells[Fun_GetCol("HDeptID")].Value); |
| | | // //HMaterID = DBUtility.ClsPub.isLong(grdMain.Columns[col].Tag); |
| | | // //HEmpID = DBUtility.ClsPub.isLong(grdMain.Rows[row].Cells[Fun_GetCol("HEmpID")].Value); |
| | | // //HProcID = DBUtility.ClsPub.isLong(grdMain.Rows[row].Cells[Fun_GetCol("HProcID")].Value); |
| | | // DsQty = SubCn.RunProcReturn("exec h_p_CCBB", "Gy_Czygl"); |
| | | // if (DsQty != null && DsQty.Tables[0].Rows.Count > 0) |
| | | // { |
| | | // //grdMain.Rows[row].Cells[col].Value = DBUtility.ClsPub.isDoule(DsQty.Tables[0].Rows[0]["HQty"], 2); |
| | | // } |
| | | // } |
| | | //} |
| | | |
| | | //设置å计å |
| | | string sTotalCol = ""; |