| | |
| | | |
| | | |
| | | //ç®±å·çæè§å æ¥æ + æºå° + çæ¬¡ + ç©æ åªè¦è·åæå¤§çæµæ°´å· |
| | | string sBoxYear; |
| | | string sBoxPeriod; |
| | | string sBoxDay; |
| | | DateTime HBoxDate = DBUtility.ClsPub.isDate(DBUtility.ClsPub.GetServerDate(0)); |
| | | sBoxYear = HBoxDate.Year.ToString().Substring(2, 2); |
| | | sBoxPeriod = "0" + HBoxDate.Month.ToString(); |
| | | sBoxPeriod = HPeriod.Substring(HPeriod.Length - 2, 2); |
| | | sBoxDay = "0" + HBoxDate.Day.ToString(); |
| | | sBoxDay = HDay.Substring(HDay.Length - 2, 2); |
| | | HJT = DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[Fun_GetCol("设å¤")].Value); |
| | | HXH = HYear + HPeriod + HDay + HBC + HJT + HMaterNumber; |
| | | HXH = sBoxYear + sBoxPeriod + sBoxDay + HBC + HJT + HMaterNumber; |
| | | Ds99 = oCn.RunProcReturn("exec h_p_WMS_GetMaxNo '" + HXH + "'", "h_p_WMS_GetMaxNo"); //è·åæå¤§æµæ°´å· |
| | | LSH3 = ClsPub.isLong(Ds99.Tables[0].Rows[0][0]) + 1; |
| | | LSH4 = LSH3.ToString(); |