| | |
| | | if (oGy_DataInTmp2.isOK == 1) |
| | | { |
| | | initGrid(); |
| | | if (grdMain.Rows.Count <= oGy_DataInTmp2.grdMain.RowCount) |
| | | { |
| | | grdMain.RowCount = oGy_DataInTmp2.grdMain.RowCount + 1; |
| | | } |
| | | for (int i = 0; i <= oGy_DataInTmp2.grdMain.RowCount - 1; i++) |
| | | { |
| | | if (DBUtility.ClsPub.isStrNull(oGy_DataInTmp2.grdMain.Rows[i].Cells[HDataMaterNumberCol].Value) != "") |
| | |
| | | //DAL.ClsGy_MateNumRelation_View oRelation = new DAL.ClsGy_MateNumRelation_View(); |
| | | if (oMater.GetInfoByNumber(DBUtility.ClsPub.isStrNull(oGy_DataInTmp2.grdMain.Rows[i].Cells[HDataMaterNumberCol].Value))) |
| | | { |
| | | grdMain.Rows[i].Cells[HMaterIDCol].Value = oMater.omodel.HItemID; |
| | | grdMain.Rows[i].Cells[HMaterNumberCol].Value = oMater.omodel.HNumber; |
| | | grdMain.Rows[i].Cells[HMaterModelCol].Value = oMater.omodel.HModel; |
| | | grdMain.Rows[i].Cells[HMaterNameCol].Value = oMater.omodel.HName; |