| | |
| | | public int HProcNoCol = 0; //å·¥åºåºå· |
| | | public int HProcNameCol = 0; //å·¥åº |
| | | public int HWorkCenterNameCol = 0; //å·¥ä½ä¸å¿ |
| | | public int HWorkQtyCol = 0; //äº§è½ |
| | | public int HWorkQtyCol = 0; //å å·¥æ°é |
| | | public int HBeginDayQtyCol = 6; //å¼å·¥åºå¤© |
| | | public int HBeginFixQtyCol = 7; //å¼å·¥ä½é |
| | | public int HFixPriceCol = 8; //å®é¢ å°æ¶å·¥èµ |
| | |
| | | public int HVerNumCol = 0; //çæ¬ |
| | | public int HMouldNoCol = 0; //模å
·ç¼å· |
| | | public int HProcWorkNumCol = 0; //ç¨åºå· |
| | | public int HPassRateCol = 0; //è¯ç |
| | | // |
| | | public const int HBeginRow = 2; //æææ°æ®ï¼å¼å§è¡æ° |
| | | // |
| | |
| | | HProcNoCol = DBUtility.Gy_BaseFun.Fun_GetCol("å·¥åºåºå·", grdMain); |
| | | HProcNameCol = DBUtility.Gy_BaseFun.Fun_GetCol("å·¥åº", grdMain); |
| | | HWorkCenterNameCol = DBUtility.Gy_BaseFun.Fun_GetCol("å·¥ä½ä¸å¿", grdMain); |
| | | HWorkQtyCol = DBUtility.Gy_BaseFun.Fun_GetCol("产è½", grdMain); |
| | | HWorkQtyCol = DBUtility.Gy_BaseFun.Fun_GetCol("å å·¥æ°é", grdMain); |
| | | HPicNumCol = DBUtility.Gy_BaseFun.Fun_GetCol("å¾çº¸ç¼å·", grdMain); |
| | | HTechnologyParameterCol = DBUtility.Gy_BaseFun.Fun_GetCol("å·¥èºåæ°", grdMain); |
| | | HProcCheckNoteCol = DBUtility.Gy_BaseFun.Fun_GetCol("æ¬å·¥åºç¡®è®¤è®°å½", grdMain); |
| | |
| | | HBeginDayQtyCol = DBUtility.Gy_BaseFun.Fun_GetCol("å¼å·¥åºå¤©", grdMain); |
| | | HFixPriceCol = DBUtility.Gy_BaseFun.Fun_GetCol("å°æ¶å·¥èµ", grdMain); |
| | | HProcPriceCol = DBUtility.Gy_BaseFun.Fun_GetCol("å个工价", grdMain); |
| | | HPassRateCol = DBUtility.Gy_BaseFun.Fun_GetCol("è¯ç", grdMain); |
| | | |
| | | //æ²¡ææ¾å°å |
| | | if (HMaterNumberCol == -1) |
| | |
| | | } |
| | | if (HWorkQtyCol == -1) |
| | | { |
| | | MessageBox.Show("æ²¡ææ¾å°ã产è½ãçæ é¢", "æç¤º"); |
| | | MessageBox.Show("æ²¡ææ¾å°ãå å·¥æ°éãçæ é¢", "æç¤º"); |
| | | return; |
| | | } |
| | | if (HBeginFixQtyCol == -1) |
| | |
| | | if (HProcWorkNumCol == -1) |
| | | { |
| | | MessageBox.Show("æ²¡ææ¾å°ãç¨åºå·ãçæ é¢", "æç¤º"); |
| | | return; |
| | | } |
| | | if (HPassRateCol == -1) |
| | | { |
| | | MessageBox.Show("æ²¡ææ¾å°ãè¯çãçæ é¢", "æç¤º"); |
| | | return; |
| | | } |
| | | // |
| | |
| | | Single sWorkQty = 0; |
| | | Single sBeginDayQty = 0; |
| | | Single sBeginFixQty = 0; |
| | | Single sHPassRate = 0; |
| | | //long HItemID = 0; |
| | | // |
| | | sHNumber = DBUtility.ClsPub.isStrNull(grdMain.Rows[row].Cells[HMaterNumberCol].Value); |
| | |
| | | sWorkQty = DBUtility.ClsPub.isSingle(grdMain.Rows[row].Cells[HWorkQtyCol].Value); |
| | | sBeginDayQty = DBUtility.ClsPub.isSingle(grdMain.Rows[row].Cells[HBeginDayQtyCol].Value); |
| | | sBeginFixQty = DBUtility.ClsPub.isSingle(grdMain.Rows[row].Cells[HBeginFixQtyCol].Value); |
| | | sHPassRate = DBUtility.ClsPub.isSingle(grdMain.Rows[row].Cells[HPassRateCol].Value); |
| | | //夿æ¯å¦å
许 ä¿å |
| | | |
| | | Model.ClsGy_RoutingBillSub oSub=new Model.ClsGy_RoutingBillSub(); |
| | |
| | | oSub.HProcNo = DBUtility.ClsPub.isInt(grdMain.Rows[row].Cells[HProcNoCol].Value); |
| | | oSub.HUnitTime = 1; |
| | | oSub.HWorkQty = sWorkQty; |
| | | oSub.HPassRate = sHPassRate; |
| | | oSub.HRemark = ""; |
| | | oSub.HTimeUnit = "Сʱ"; |
| | | oSub.HReadyTime = 0; |
| | |
| | | string sHNumber = ""; |
| | | string sHNamePoc = ""; |
| | | string sHNumberCen = ""; |
| | | Single sWorkQty = 0; |
| | | Single sHPassRate = 0; |
| | | |
| | | // |
| | | sHNumber = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HMaterNumberCol].Value); |
| | | sHNumberCen = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HWorkCenterNameCol].Value); |
| | | sHNamePoc = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HProcNameCol].Value); |
| | | sWorkQty = DBUtility.ClsPub.isSingle(grdMain.Rows[i].Cells[HWorkQtyCol].Value); |
| | | sHPassRate = DBUtility.ClsPub.isSingle(grdMain.Rows[i].Cells[HPassRateCol].Value); |
| | | if (sHNumber != "" ) |
| | | { |
| | | // |
| | | int index = i + 1; |
| | | //å å·¥æ°éä¸è½å°äºçäºé¶ |
| | | if (sWorkQty <= 0) |
| | | { |
| | | MessageBox.Show("第" + index + "è¡å å·¥æ°éä¸è½å°äºçäºé¶ï¼", "æç¤º"); |
| | | return false; |
| | | } |
| | | //è¯çä¸è½å°äºçäºé¶ |
| | | if (sHPassRate <= 0) |
| | | { |
| | | MessageBox.Show("第" + index + "è¡è¯çä¸è½å°äºçäºé¶ï¼", "æç¤º"); |
| | | return false; |
| | | } |
| | | //å®¡æ ¸ä»£ç æ¯å¦åç |
| | | if (!DBUtility.ClsPub.AllowNumber(sHNumber)) |
| | | { |