| | |
| | | ////æ¡ç åç¼ = ç»ç»ä»£ç + ç©æä»£ç + å¹´ + æ + æ¥ |
| | | //sTMNumber = HOrgNumber + sMaterID + sYear + sPeriod + sDay; |
| | | |
| | | //循ç¯å¤æè¯¥è¡å颿æè¡ä¸æ¯å¦åå¨ç¸åç©æ |
| | | //循ç¯å¤æè¯¥è¡å颿æè¡ä¸æ¯å¦åå¨ç¸åæ¡ç åç¼ |
| | | for (int i = 0; i < j; i++) |
| | | { |
| | | if(ClsPub.isLong(grdMain.Rows[j].Cells[HMaterIDCol].Value)== ClsPub.isLong(grdMain.Rows[j - i - 1].Cells[HMaterIDCol].Value)) |
| | | if(sTMNumber == ClsPub.isStrNull(grdMain.Rows[j - i - 1].Cells[HTMNumberCol].Value)) |
| | | { |
| | | LSH = ClsPub.isLong(grdMain.Rows[j - i - 1].Cells[HLSHCol].Value); |
| | | HBarcodeNo = ClsPub.isLong(grdMain.Rows[j - i - 1].Cells[HBarcodeNoCol].Value); |
| | |
| | | } |
| | | else |
| | | { |
| | | //循ç¯å¤æè¯¥è¡åé¢çææè¡æ¯å¦åå¨å该è¡ç©æç¸åçè¡ï¼å¦ä¸åå¨ ååå¡«å¯¹åºæµæ°´å·ä¿¡æ¯ï¼åå¨åä¸åå¡«æµæ°´å·ä¿¡æ¯ |
| | | //循ç¯å¤æè¯¥è¡åé¢çææè¡æ¯å¦åå¨åè¯¥è¡æ¡ç åç¼ç¸åçè¡ï¼å¦ä¸åå¨ ååå¡«å¯¹åºæµæ°´å·ä¿¡æ¯ï¼åå¨åä¸åå¡«æµæ°´å·ä¿¡æ¯ |
| | | bool b = false; |
| | | for (int i = 0; i < j; i++) |
| | | { |
| | | if (ClsPub.isLong(grdMain.Rows[grdMain.Rows.Count - j - 1].Cells[HMaterIDCol].Value) == ClsPub.isLong(grdMain.Rows[grdMain.Rows.Count - i - 1].Cells[HMaterIDCol].Value)) |
| | | if (ClsPub.isStrNull(grdMain.Rows[grdMain.Rows.Count - j - 1].Cells[HTMNumberCol].Value) == ClsPub.isStrNull(grdMain.Rows[grdMain.Rows.Count - i - 1].Cells[HTMNumberCol].Value)) |
| | | { |
| | | b = true; |
| | | break; |